:root {
    --azul: #1e3a8a;
    --azul-claro: #1e40af;
    --amarillo: #fbbf24;
    --rojo: #ef4444;
    --texto: #1f2937;
    --gris: #f5f5f5;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }
body { color: var(--texto); background: #fff; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.top-bar { background: var(--azul); color: #fff; font-size: 0.85rem; padding: 0.4rem 0; }
.top-bar .container { display: flex; justify-content: flex-end; gap: 2rem; }

/* Header */
.main-nav {
    background: #1e3a8a;
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.main-nav .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.main-nav .logo img {
    height: 50px;      /* ← AJUSTA ESTE VALOR */
    width: auto;
    max-height: 50px;
    display: block;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul a {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.main-nav ul a:hover {
    color: #fbbf24;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.nav-actions a {
    color: #ffffff;
    text-decoration: none;
}
.cart-icon { position: relative; font-size: 1.3rem; }
#cart-count { background: var(--amarillo); color: var(--azul); border-radius: 50%; padding: 0.1rem 0.4rem; font-size: 0.7rem; }

/* Hero */
.hero {
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(30, 58, 138, 0.55);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; }

/* Grid de paquetes */
.paquetes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}
.paquete-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.paquete-card:hover { transform: translateY(-4px); }
.paquete-card img { width: 100%; height: 220px; object-fit: cover; }
.paquete-card .info { padding: 1.2rem; }
.paquete-card h3 { color: var(--azul); margin-bottom: 0.5rem; }
.paquete-card .precio { font-size: 1.4rem; font-weight: bold; color: var(--rojo); }
.paquete-card .btn {
    display: inline-block;
    background: var(--amarillo);
    color: var(--azul);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 1rem;
}

/* Footer */
.site-footer { background: var(--azul); color: #fff; padding: 3rem 0 1rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; }
.site-footer h4 { color: var(--amarillo); margin-bottom: 1rem; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 0.5rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.85;
}
.aviso-legal { margin-top: 0.5rem; font-size: 0.75rem; }

/* Hero de páginas interiores */
.page-hero {
    background: linear-gradient(rgba(30,58,138,0.6), rgba(30,58,138,0.6)), url('/assets/img/banner.jpg') center/cover;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.page-hero h1 { font-size: 2.5rem; }

/* =========================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
}

/* =========================================
   REDES SOCIALES FOOTER
   ========================================= */
.footer-social-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Colores de fondo específicos por red social */
.social-icon.whatsapp { background-color: #25d366; }
.social-icon.facebook { background-color: #1877f2; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon.tiktok { background-color: #000000; }

/* Efecto al pasar el ratón */
.social-icon:hover {
    transform: translateY(-5px) scale(1.05); /* Se levantan un poco más y crecen */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Sombra para dar efecto 3D */
}


/* =========================================
   DISEÑO DE LA MARCA DESARROLLADORA (RSsystems)
   ========================================= */
.brand-footer-container {
    max-width: 1400px;
    margin: 2rem auto 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-align: left;
}

/* Textos de la izquierda */
.brand-subtitle {
    font-size: 9px;
    font-weight: 700;
    color: #9ca3af; /* Gris claro */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
}

.brand-logo {
    font-size: 20px;
    font-weight: 900;
    font-style: italic;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.brand-logo-small {
    font-size: 16px;
    font-weight: 900;
    font-style: italic;
    color: #ffffff;
    line-height: 1;
    margin-top: 0.25rem;
    letter-spacing: -0.02em;
}

.brand-logo span, 
.brand-logo-small span {
    color: #60a5fa; /* Azul claro */
}

/* Textos de la derecha */
.brand-contact-info {
    font-size: 11px;
    font-weight: 400;
    color: #d1d5db; /* Gris más claro */
    text-align: right;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.brand-link {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.brand-link a {
    color: #60a5fa;
    transition: color 0.2s;
    text-decoration: none;
}

.brand-link a:hover {
    color: #ffffff;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .brand-footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .brand-contact-info {
        text-align: left;
    }
}
/* =========================================
   LÍNEA FINAL DEL FOOTER (SPLIT)
   ========================================= */
.footer-bottom-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 3rem; /* Margen generoso para que respire */
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Plus Jakarta Sans', sans-serif;
    flex-wrap: wrap;
    gap: 2rem;
}

/* --- LADO IZQUIERDO: MARCA --- */
.brand-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand-logo-group {
    border-right: 1px solid rgba(255,255,255,0.2);
    padding-right: 1.5rem;
}

.brand-subtitle {
    font-size: 9px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.2rem;
}

.brand-logo {
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    color: #ffffff; /* RS en blanco */
    line-height: 1;
    letter-spacing: -0.02em;
}

.brand-logo span {
    color: #3b82f6; /* systems en azul */
}

.brand-logo-small {
    font-size: 16px;
    font-weight: 900;
    font-style: italic;
    color: #ffffff; /* Apli en blanco */
    line-height: 1;
    margin-top: 0.2rem;
    letter-spacing: -0.02em;
}

.brand-logo-small span {
    color: #3b82f6; /* SoftWeb en azul */
}

.brand-data {
    font-size: 11px;
    color: #d1d5db;
    line-height: 1.6;
}

.brand-web a {
    color: #60a5fa;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 0.2rem;
    display: inline-block;
}
.brand-web a:hover { color: #ffffff; }

/* --- LADO DERECHO: AVISO LEGAL --- */
.legal-right {
    text-align: right;
    font-size: 10px;
    color: #d1d5db;
    max-width: 400px; /* Limitamos el ancho para que no choque con el botón de WhatsApp */
    padding-bottom: 10px; /* Espacio extra para que el botón flotante no lo tape */
}

.legal-right .copyright {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.3rem;
    font-size: 11px;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .footer-bottom-split {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
    }
    .legal-right {
        text-align: left;
        max-width: 100%;
    }
    .brand-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .brand-logo-group {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        padding-right: 0;
        padding-bottom: 0.5rem;
        width: 100%;
    }
}
/* Botón de Proceder al Pago en el Carrito */
.btn-pagar {
    display: block;
    text-align: center;
    width: 100%;
    background-color: #fbbf24;
    color: #1e3a8a;
    font-size: 1.1rem;
    font-weight: 900;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
}

.btn-pagar:hover {
    background-color: #f59e0b;
    transform: scale(1.02);
    color: #1e3a8a;
}
