/* ==============================================
   1. VARIABLES DE DISEÑO (Colores y Estilos)
   ============================================== */
:root {
    --blanco-fondo: #F9F8FC;
    --lila-principal: #9F86C0; /* Lavanda suave */
    --lila-claro: #E0DBEC;     /* Tono tenue para fondos */
    --morado-oscuro: #433860;  /* Para textos principales y botones */
    --acento-amarillo: #F3C63F; /* Toque cálido para destacar */
    --texto-oscuro: #2D2544;
}

/* ==============================================
   2. ESTILOS GENERALES
   ============================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px; /* ¡OJO AQUÍ! Reajusta según el alto de tu header fijo */
}
body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--blanco-fondo);
    color: var(--texto-oscuro);
}

/* ==============================================
   1. HEADER / NAVBAR (Estilos base para Escritorio)
   ============================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(159, 134, 192, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: padding 0.4s ease, background-color 0.4s ease;
}

/* El contenedor del logo */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
    transition: height 0.4s ease, transform 0.3s ease;
}

/* El menú en computadora */
nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #2D2544; /* Tu morado oscuro */
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #9F86C0; /* Lila principal */
}

/* Ocultar los botones del menú móvil en la computadora */
.menu-toggle, .menu-close {
    display: none; /* Asegura que NO se vean en la compu */
    background: none;
    border: none;
    color: #433860;
    font-size: 26px;
    cursor: pointer;
}

/* Estado encogido por Scroll */
header.shrink {
    padding: 10px 8%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

header.shrink .logo-img {
    height: 60px;
}


/* ==============================================
   2. REGLAS EXCLUSIVAS PARA CELULARES Y TABLETS
   ============================================== */
@media (max-width: 768px) {
    header, header.shrink {
        padding: 15px 5%; /* Padding fijo en celular */
    }

    header .logo-img, header.shrink .logo-img {
        height: 50px; /* El logo se queda en un tamaño cómodo en celular */
    }

    /* Mostrar el botón de hamburguesa en celular */
    .menu-toggle {
        display: block;
    }

    /* Transformar por completo el NAV en el menú lateral */
    nav {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido a la derecha */
        width: 280px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: -10px 0 30px rgba(67, 56, 96, 0.15);
        z-index: 9999;
        
        /* Cambiamos de fila horizontal a columna vertical */
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 40px 30px;
        gap: 15px;
        
        /* Animación de deslizamiento */
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        backdrop-filter: blur(10px);
    }

    /* Clase activa que inyectará el JavaScript */
    nav.active {
        right: 0 !important; /* Fuerza a que se muestre al dar clic */
    }

    /* Mostrar la X de cerrar */
    .menu-close {
        display: block;
        align-self: flex-end;
        margin-bottom: 20px;
    }

    /* Enlaces inflados para el dedo en el cel */
    nav a {
        width: 100%;
        font-size: 18px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(224, 219, 236, 0.5);
    }

    nav a:hover {
        padding-left: 8px;
    }
}
/* ==============================================
   4. ESTADO ENCOGIDO (Clase que activará JS)
   ============================================== */
header.shrink {
    padding: 10px 8%; /* Reduce el alto del contenedor */
    background-color: rgba(255, 255, 255, 0.95); /* Ligera transparencia */
    backdrop-filter: blur(5px); /* Efecto esmerilado de fondo */
}

header.shrink .logo-img {
    height: 60px; /* El logo se encoge a 60px de forma fluida */
}

/* ==============================================
   5. HERO SECTION (Sección Principal)
   ============================================== */
.hero {
    /* Margen superior para compensar el header fijo y evitar que tape el contenido */
    margin-top: 140px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 8%;
    background: linear-gradient(135deg, #ffffff 0%, var(--lila-claro) 100%);
    min-height: 70vh;
}

.hero-content {
    max-width: 48%;
    z-index: 2;
}

.hero-content h1 {
    font-size: 44px;
    color: var(--morado-oscuro);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 35px;
}

/* Botón de Acción */
.btn-principal {
    background-color: var(--morado-oscuro);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(67, 56, 96, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-principal:hover {
    background-color: var(--lila-principal);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(159, 134, 192, 0.4);
}

/* Imagen del Hero (Lado Derecho) */
.hero-image-container {
    max-width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-image-container img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 50px 10px 50px 10px; /* Esquinas amigables */
    box-shadow: 0 15px 30px rgba(67, 56, 96, 0.15);
}

/* ==============================================
   6. RESPONSIVE DESIGN (Pantallas Móviles)
   ============================================== */
@media (max-width: 992px) {
    header, header.shrink {
        padding: 15px 5%;
    }
    header .logo-img, header.shrink .logo-img {
        height: 60px; /* En móviles se queda estático en tamaño cómodo */
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
        margin-top: 90px;
    }
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }
    .hero-image-container {
        max-width: 80%;
    }
}
        
/* ==============================================
   ESTILOS PARA EL FOOTER (BIEN PADROTE)
   ============================================== */
.main-footer {
    background-color: #2D2544; /* Morado muy oscuro de fondo para contrastar con el lila */
    color: #E0DBEC; /* Letras lila claro para una lectura descansada */
    padding: 60px 0 20px 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin-top: auto; /* Por si usas layouts flexbox de pantalla completa */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* Distribución de columnas proporcional */
    gap: 40px;
}

.footer-column h3 {
    color: #FFFFFF;
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
}

/* Línea lila decorativa debajo de los títulos */
.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 35px;
    height: 3px;
    background-color: #9F86C0; /* Tu lila principal */
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #C3B9D5;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

/* Efecto elegante al pasar el cursor sobre los links */
.footer-column ul li a:hover {
    color: #FFFFFF;
    padding-left: 5px; 
}

/* Columna de la Marca */
.footer-logo {
    height: 80px; /* Ajusta según el alto de tu logo */
    width: auto;
    margin-bottom: 15px;
    /*filter: brightness(0) invert(1); */
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #C3B9D5;
}

/* Iconos de Redes Sociales */
.footer-socials {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background-color: #433860; /* Fondo morado un poco más claro */
    color: #FFFFFF;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background-color: #9F86C0; /* Cambia a lila */
    transform: translateY(-3px);
}

/* Columna de Contacto */
.contact-column p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-column p a {
    text-decoration: none;
    color: inherit;
}

.contact-column .icon {
    font-size: 16px;
}

/* Barra inferior de derechos */
.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0 auto;
    padding: 20px 8% 0 8%;
    border-top: 1px solid #433860; /* Línea divisoria sutil */
    text-align: center;
    font-size: 13px;
    color: #9F86C0;
}

/* ==============================================
   RESPONSIVE DESIGN (Para Tablets y Celulares)
   ============================================== */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr; /* 2 columnas en tablets */
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr; /* 1 sola columna en celulares */
        text-align: center;
    }
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%); /* Centra la línea decorativa en móvil */
    }
    .footer-socials {
        justify-content: center;
    }
    .contact-column p {
        justify-content: center;
    }
}

/* ==============================================
   ESTILOS: SECCIÓN SOBRE NOSOTROS
   ============================================== */
.about-section {
    padding: 100px 8%;
    background-color: #ffffff; /* Contraste limpio con el fondo general */
    position: relative;
    overflow: hidden;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* --- LADO IZQUIERDO: COMPOSICIÓN VISUAL ASIMÉTRICA --- */
.about-images-grid {
    position: relative;
    width: 45%;
    height: 480px;
    display: flex;
    align-items: center;
}

/* Mancha orgánica de fondo en color lila */
.blob-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #E0DBEC; /* var(--lila-claro) */
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; /* Forma de gota/blob fluida */
    z-index: 1;
    transform: rotate(-10deg);
}

.about-img {
    position: absolute;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(67, 56, 96, 0.15);
    object-fit: cover;
    transition: transform 0.4s ease;
    z-index: 2;
}

.about-img:hover {
    transform: scale(1.03) translateY(-5px);
    z-index: 4;
}

/* Imagen Principal Grande */
.img-main {
    width: 75%;
    height: 380px;
    top: 0;
    left: 0;
}

/* Imagen Secundaria Pequeña que se superpone */
.img-sub {
    width: 55%;
    height: 260px;
    bottom: 0;
    right: 0;
    border: 8px solid #ffffff; /* Marco blanco para separarla elegantemente */
    z-index: 3;
}

/* --- LADO DERECHO: CONTENIDO --- */
.about-content {
    width: 50%;
}

.about-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9F86C0; /* var(--lila-principal) */
    margin-bottom: 10px;
}

.about-content h2 {
    font-size: 38px;
    color: #433860; /* var(--morado-oscuro) */
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.about-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 20px;
}

/* --- CUADRÍCULA DE CARACTERÍSTICAS (FEATURES) --- */
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 35px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: #F9F8FC; /* var(--blanco-fondo) */
    border-radius: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
    background-color: #E0DBEC; /* Se pinta levemente lila al pasar el mouse */
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 26px;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 5px 10px rgba(159, 134, 192, 0.1);
    display: inline-flex;
}

.feature-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #433860; /* var(--morado-oscuro) */
}

.feature-info p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #666666;
}

/* --- RESPONSIVE (Para pantallas pequeñas) --- */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
        gap: 50px;
    }
    .about-images-grid {
        width: 80%;
        height: 400px;
        margin: 0 auto;
    }
    .img-main {
        height: 320px;
    }
    .img-sub {
        height: 200px;
    }
    .about-content {
        width: 100%;
        text-align: center;
    }
    .about-content h2 {
        font-size: 32px;
    }
    .about-features {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .about-images-grid {
        width: 100%;
        height: 320px;
    }
    .img-main {
        width: 80%;
        height: 260px;
    }
    .img-sub {
        width: 60%;
        height: 160px;
    }
    .about-features {
        grid-template-columns: 1fr; /* Una columna en celulares */
    }
}

/* ==============================================
   ESTILOS: SECCIÓN SERVICIOS (Grid Interactivo)
   ============================================== */
.services-section {
    padding: 100px 8%;
    background-color: #F9F8FC; /* Fondo ligeramente lila/gris para contrastar con Nosotros */
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Encabezado */
.services-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.services-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9F86C0; /* Lila principal */
    margin-bottom: 10px;
}

.services-header h2 {
    font-size: 38px;
    color: #433860; /* Morado oscuro */
    line-height: 1.2;
    margin: 0 0 15px 0;
}

.services-header p {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}

/* Grid de Tarjetas */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en pantallas grandes */
    gap: 30px;
}

/* Tarjeta de Servicio Individual */
.service-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(159, 134, 192, 0.05);
    border: 1px solid rgba(224, 219, 236, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Efecto Hover en la Tarjeta */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(67, 56, 96, 0.1);
}

/* Contenedor del Icono */
.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: #E0DBEC; /* Fondo lila claro inicial */
    color: #433860; /* Icono morado oscuro inicial */
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin-bottom: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Cambia el color del icono cuando tocas la tarjeta */
.service-card:hover .service-icon-wrapper {
    background-color: #9F86C0; /* Fondo lila principal */
    color: #ffffff; /* Icono blanco */
}

.service-card h3 {
    font-size: 20px;
    color: #433860;
    margin: 0 0 15px 0;
}

.service-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    margin: 0 0 25px 0;
    flex-grow: 1; /* Hace que el texto use el espacio y empuje el link al fondo */
}

/* Enlaces internos de los servicios */
.service-link {
    font-size: 14px;
    font-weight: 700;
    color: #9F86C0; /* Color lila */
    text-decoration: none; /* Sin subrayado */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    width: fit-content;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link {
    color: #433860; /* El enlace cambia a morado oscuro al hacer hover en la card */
}

.service-link:hover i {
    transform: translateX(5px); /* Pequeño desplazamiento de la flecha al tocar el link */
}

/* ==============================================
   RESPONSIVE DESIGN (Tablets y Móviles)
   ============================================== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
        gap: 25px;
    }
    .services-header h2 {
        font-size: 32px;
    }
}

@media (max-width: 650px) {
    .services-grid {
        grid-template-columns: 1fr; /* 1 sola columna en smartphones */
    }
    .services-section {
        padding: 60px 5%;
    }
    .service-card {
        padding: 30px 20px;
    }
}

/* ==============================================
   ESTILOS: SECCIÓN PROMOCIONES (Layout Moderno)
   ============================================== */
.promos-section {
    padding: 100px 8%;
    background-color: #ffffff; /* Contraste blanco limpio */
}

.promos-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Encabezado */
.promos-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.promos-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9F86C0; /* Lila principal */
    margin-bottom: 10px;
}

.promos-header h2 {
    font-size: 38px;
    color: #433860; /* Morado oscuro */
    line-height: 1.2;
    margin: 0 0 15px 0;
}

.promos-header p {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}

/* Lista de Promociones */
.promos-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- BANNER PRINCIPAL (Destacado) --- */
.promo-banner-main {
    background: linear-gradient(135deg, #433860 0%, #2D2544 100%); /* Fondo morado profundo elegante */
    color: #ffffff;
    border-radius: 35px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(67, 56, 96, 0.2);
}

.promo-content {
    padding: 50px;
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* Etiquetas (Badges) */
.promo-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.badge-accent {
    background-color: #F3C63F; /* Amarillo oro de acento */
    color: #2D2544;
}

.badge-purple {
    background-color: #E0DBEC;
    color: #433860;
}

.promo-content h3 {
    font-size: 30px;
    margin: 0 0 15px 0;
    color: #ffffff;
}

.promo-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #E0DBEC;
    margin: 0 0 25px 0;
}

.promo-details {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 20px;
    border-radius: 15px;
}

/* Botón llamativo de la promoción fuerte */
.btn-promo-accent {
    background-color: #F3C63F;
    color: #2D2544;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 15px rgba(243, 198, 63, 0.3);
}

.btn-promo-accent:hover {
    transform: translateY(-3px);
    background-color: #ffffff;
}

.promo-image {
    width: 45%;
    position: relative;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- GRID SECUNDARIO (Abajo) --- */
.promos-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.promo-card-secondary {
    background-color: #F9F8FC; /* Fondo sutilmente lila */
    padding: 40px;
    border-radius: 28px;
    border: 1px solid rgba(224, 219, 236, 0.7);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(159, 134, 192, 0.1);
}

.promo-card-secondary h3 {
    font-size: 22px;
    color: #433860;
    margin: 0 0 15px 0;
}

.promo-card-secondary p {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.price-box {
    margin-bottom: 25px;
}

.discount-text {
    font-weight: 700;
    color: #9F86C0; /* Color lila principal */
    font-size: 14px;
}

/* Botón delineado secundario */
.btn-promo-outline {
    border: 2px solid #433860;
    color: #433860;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}

.btn-promo-outline:hover {
    background-color: #433860;
    color: #ffffff;
}

/* ==============================================
   RESPONSIVE DESIGN (Pantallas Chicas)
   ============================================== */
@media (max-width: 992px) {
    .promo-banner-main {
        flex-direction: column; /* Se apila en tablet/celular */
    }
    .promo-content {
        width: 100% !important; /* Fuerza a que use todo el ancho del celular */
        padding: 30px 20px !important; /* Reduce el padding para ganar espacio libre */
        box-sizing: border-box;
    }
    .promo-content h3 {
        font-size: 26px; /* Achica un poco el título en móvil para que no rompa feo */
        word-wrap: break-word; /* Fuerza el salto de línea si la palabra es muy larga */
        overflow-wrap: break-word;
        white-space: normal; /* Evita que el texto se mantenga en una sola línea */
    }
    .promo-content p {
        font-size: 14px;
        line-height: 1.5;
    }
    .promo-image {
        width: 100%;
        height: 250px;
    }
    .promos-secondary-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil */
    }
    .promos-header h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    /* Si estás usando un contenedor flex para los enlaces de tu menú, ajusta esto: */
    .tu-clase-del-menu { 
        display: flex;
        flex-wrap: wrap; /* Permite que bajen de forma ordenada si no caben */
        justify-content: center;
        gap: 10px 15px; /* Controla la separación entre los enlaces */
        padding: 10px 0;
    }

    .tu-clase-del-menu a {
        font-size: 13px; /* Reduce un pelín la letra de los enlaces en celular */
    }
    
    /* Dale espacio al header para que no pise la tarjeta de abajo */
    header {
        padding: 15px 4%;
    }
}

@media (max-width: 576px) {
    .promo-card-secondary {
        padding: 30px 20px;
    }
    .promo-details {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .promos-section {
        padding: 60px 5%;
    }
}

/* --- Sección de Descargables --- */
.downloads-section {
    padding: 80px 20px;
    background-color: #f9fbfd; /* Un tono sutilmente diferente para separar las secciones */
}

.downloads-container {
    max-width: 1200px;
    margin: 0 auto;
}

.downloads-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.downloads-subtitle {
    color: #8e44ad; /* Reemplazar por tu color de acento morado/rosa de Lumina */
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.downloads-header h2 {
    font-size: 2.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Tarjetas */
.download-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #eef2f5;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Etiquetas superior derecha */
.download-type {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.download-type.free {
    background-color: #e8f8f5;
    color: #2ecc71;
}

.download-type.premium {
    background-color: #fef9e7;
    color: #f1c40f;
}

/* Iconos y Textos */
.download-icon {
    font-size: 2.5rem;
    color: #3498db; /* Cambiar según paleta de Lumina */
    margin-bottom: 20px;
}

.download-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.download-card p {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Contenedor del botón inferior */
.downloads-more-cta {
    text-align: center;
    margin-top: 50px; /* Separación de las tarjetas */
}

/* Botón Grande de la Tienda */
.btn-tienda-principal {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #8e44ad, #9b59b6); /* Degradado elegante en tonos morados */
    color: #ffffff;
    padding: 18px 40px;
    border-radius: 50px; /* Bordes completamente redondeados */
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(142, 68, 173, 0.3);
    transition: all 0.3s ease;
}

.btn-tienda-principal:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(142, 68, 173, 0.5);
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.btn-tienda-principal i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

/* Animación sutil en el ícono al pasar el mouse */
.btn-tienda-principal:hover i {
    transform: scale(1.1);
}

/* Footer de la tarjeta */
.download-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f2f6;
    padding-top: 20px;
    margin-top: auto;
}

.price-tag {
    font-weight: 700;
    font-size: 1.1rem;
}

.price-tag.gratis {
    color: #2ecc71;
}

.price-tag.costo {
    color: #2c3e50;
}

/* Botones */
.btn-download {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.free-btn {
    background-color: #3498db;
    color: #fff;
}

.free-btn:hover {
    background-color: #2980b9;
}

.premium-btn {
    background-color: #25d366; /* Color oficial WhatsApp */
    color: #fff;
}

.premium-btn:hover {
    background-color: #20ba5a;
}

/* ==============================================
   ESTILOS: SECCIÓN DE CONTACTO PREMIUM
   ============================================== */
.contact-section {
    padding: 100px 8%;
    background-color: #F9F8FC; /* Fondo sutilmente lila */
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: flex-start;
}

/* --- COLUMNA IZQUIERDA (INFO) --- */
.contact-info-side {
    width: 45%;
}

.contact-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9F86C0; /* Lila principal */
    margin-bottom: 10px;
}

.contact-info-side h2 {
    font-size: 38px;
    color: #433860; /* Morado oscuro */
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.contact-main-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 35px;
}

/* Canales de contacto rápidos */
.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.channel-icon {
    width: 45px;
    height: 45px;
    background-color: #E0DBEC; /* Lila claro */
    color: #433860;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.channel-text h4 {
    margin: 0 0 2px 0;
    font-size: 15px;
    color: #433860;
}

.channel-text p {
    margin: 0;
    font-size: 14px;
    color: #666666;
}

/* Contenedor del Mapa */
.map-wrapper {
    width: 100%;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(67, 56, 96, 0.08);
    border: 1px solid rgba(159, 134, 192, 0.2);
}

/* --- COLUMNA DERECHA (FORMULARIO CARD) --- */
.contact-form-side {
    width: 50%;
}

.form-card {
    background-color: #ffffff;
    padding: 45px;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(67, 56, 96, 0.06);
    border: 1px solid rgba(224, 219, 236, 0.5);
}

.form-card h3 {
    font-size: 24px;
    color: #433860;
    margin: 0 0 10px 0;
}

.form-card p {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Formulario */
.pro-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #433860;
}

/* Contenedores de los Inputs para los iconos internos */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: #9F86C0; /* Color de iconos del form */
    font-size: 14px;
    pointer-events: none;
}

.input-wrapper input,
.input-wrapper select,
.pro-form textarea {
    width: 100%;
    padding: 14px 15px 14px 45px; /* Margen izquierdo extra para que el texto no pise el icono */
    border: 2px solid #E0DBEC;
    background-color: #F9F8FC;
    border-radius: 14px;
    font-size: 14px;
    color: #2D2544;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* El textarea no lleva icono interno, ajustamos su padding normal */
.pro-form textarea {
    padding: 14px 15px;
}

/* --- EFECTO PRO AL HACER CLIC EN LOS INPUTS --- */
.input-wrapper input:focus,
.input-wrapper select:focus,
.pro-form textarea:focus {
    border-color: #9F86C0; /* Cambia a lila principal */
    background-color: #ffffff; /* Se vuelve blanco puro */
    box-shadow: 0 0 0 4px rgba(159, 134, 192, 0.15); /* Brillo difuminado muy elegante */
}

/* Botón de Envío */
.btn-submit {
    background: linear-gradient(135deg, #433860 0%, #2D2544 100%);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(67, 56, 96, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(159, 134, 192, 0.4);
    background: #9F86C0; /* Cambia a lila */
}

.btn-submit i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translate(3px, -3px); /* Efecto de despegue del avioncito de papel */
}

/* ==============================================
   RESPONSIVE DESIGN (Pantallas Chicas)
   ============================================== */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column; /* Cambia a una sola columna */
        gap: 50px;
    }
    .contact-info-side, .contact-form-side {
        width: 100%;
    }
    .contact-info-side h2 {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column; /* Deshace las dos columnas en móviles para los inputs */
        gap: 20px;
    }
    .form-card {
        padding: 30px 20px;
    }
    .contact-section {
        padding: 60px 5%;
    }
}

/* ==============================================
   ESTILOS: PÁGINA JUEGA Y APRENDE
   ============================================== */
.juega-page {
    background-color: #F9F8FC;
    padding-top: 120px; /* Evita que el header fijo tape el contenido */
}

/* Hero de Bienvenida */
.juega-hero {
    padding: 60px 8% 40px 8%;
    text-align: center;
}

.juega-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.juega-tag {
    background-color: #9F86C0;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.juega-hero h1 {
    font-size: 42px;
    color: #433860;
    margin: 20px 0 15px 0;
}

.juega-hero p {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
}

/* Grid de Juegos */
.games-section {
    padding: 40px 8% 100px 8%;
}

.games-container {
    max-width: 1200px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px;
}

/* Tarjetas de los Juegos */
.game-card {
    background-color: #ffffff;
    border-radius: 30px;
    padding: 35px 25px;
    box-shadow: 0 15px 35px rgba(67, 56, 96, 0.05);
    border: 1px solid rgba(224, 219, 236, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(67, 56, 96, 0.12);
}

/* Badge de categoría */
.game-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #F0DBEC;
    color: #433860;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* Contenedor del Icono Visual */
.game-icon-visual {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    margin: 20px 0 25px 0;
    transition: transform 0.3s ease;
}

.game-card:hover .game-icon-visual {
    transform: scale(1.1) rotate(5deg);
}

.game-card h3 {
    font-size: 22px;
    color: #433860;
    margin: 0 0 12px 0;
}

.game-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin: 0 0 30px 0;
    flex-grow: 1; /* Alinea los botones al fondo equitativamente */
}

/* Botón de Jugar */
.btn-play {
    background: linear-gradient(135deg, #9F86C0 0%, #433860 100%);
    color: #ffffff !important;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(159, 134, 192, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(67, 56, 96, 0.4);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .juega-hero h1 {
        font-size: 34px;
    }
}

@media (max-width: 650px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    .juega-hero h1 {
        font-size: 28px;
    }
    .games-section {
        padding: 20px 5% 80px 5%;
    }
}