/* =========================================================
       VARIABLES
    ========================================================= */
    :root {
        --color-teal:       #42bac5;
        --color-teal-dark:  #00E7F9;
        --color-yellow:     #FFE770;
        --color-yellow-bajo:#FFE770;
        --color-pink:       #e16582;
        --color-cyan-light: #80C3C3;
        --color-navy:       #0f172a;        
        --color-purple:     #6F42C1;        
        --color-dark:       #1a1a1a;
        --color-navy-bg:    rgb(15 23 42 / 1);
        --color-navy-glass: rgb(15 23 42 / 0.4);
        --color-white-90:   rgba(255,255,255,0.9);

        --font-bitter:      "Bitter", serif;
        --font-semibold:    "Bitter SemiBold", serif;

        --radius-pill:      9999px;
        --radius-card:      2.5rem;
        --radius-card-lg:   4rem;

        --shadow-text:      0 20px 25px -5px rgba(0,0,0,0.5);
        --shadow-card:      0 25px 50px -12px rgba(0,0,0,0.25);
    }

    /* =========================================================
       1. BASE Y TIPOGRAFÍA
    ========================================================= */
    body {
        font-family: var(--font-bitter);
        color: var(--color-navy);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        overflow-x: hidden;
        font-family: 'Bitter', serif;
        font-weight: 200;
        line-height: 1.6;
    }

    h1, h2, h3, h4 {
        font-family: var(--font-semibold);
        font-weight: 900;
    }

    /* =========================================================
       2. COLORES UTILITARIOS
    ========================================================= */
    .bg-teal        { background-color: var(--color-teal); }
    .bg-yellow      { background-color: var(--color-yellow); }
    .bg-cyan        { background-color: var(--color-teal-dark); }
    .bg-light-cyan  { background-color: var(--color-cyan-light); }
    .bg-soft-pink   { background-color: var(--color-pink); }
    .bg-navy        { background-color: var(--color-navy-bg); }

    .text-teal      { color: var(--color-teal); }
    .text-yellow    { color: var(--color-yellow); }
    .text-yellow-bajo    { color: var(--color-yellow-bajo); }
    .text-cyan      { color: var(--color-teal-dark); }
    .text-soft-pink { color: var(--color-pink); }
    .text-teal-dark { color: var(--color-teal-dark); }
    .text-dark-50   { color: #000; }

    .text-white-90  { color: white; }
    .text-white-75  { color: white; }

    .opacity-10     { opacity: 0.1; }

    /* =========================================================
       3. TIPOGRAFÍA PERSONALIZADA
    ========================================================= */
    .font-bitter {
        font-family: var(--font-bitter);
    }

    .text-extralight {
        font-family: var(--font-bitter);
        font-weight: 200;
        line-height: 1.6;
        margin-top: auto;
    }

   .title-semibold {
        font-family: var(--font-bitter);
        font-weight: 600; /* Bitter SemiBold */
        font-size: 31pt;
        line-height: 1.1;
    }

    .text-bitter-regular {
        font-family: var(--font-bitter);
        font-weight: 400; /* Peso Regular */
        font-size: 1.1rem; /* Tamaño ideal para lectura fluida */
        line-height: 1.6; /* Mayor interlineado para párrafos descriptivos */
        letter-spacing: 0.01em;
        color: #000; /* El tono oscuro de tu marca para máxima legibilidad */
    }

    .text-label {
        font-size: 0.8rem;
        letter-spacing: 0.3em;
    }

    .text-label-sm {
        font-size: 0.8rem;
    }

    .body-light {
        font-family: var(--font-bitter);
        font-weight: 300; /* Un toque más de grosor que el 200 */
        font-style: italic;
        font-size: 1.1rem;
        line-height: 1.5;
        color: #000000;
        padding: 30px; /* Más aire dentro de la nube */
        position: relative;
        z-index: 1;
    }

    .somos-title {
        font-family: var(--font-bitter);
        /* 300 suele ser el límite de legibilidad segura en web para itálicas delgadas */
        font-weight: 200; 
        font-size: 1.3rem;
        /* En lugar de opacity, usa un color con transparencia para que el renderizado sea más nítido */
        color: #000000; 
        padding: 15px; /* Un poco más de aire */
        line-height: 1.5; /* Un interlineado ligeramente mayor ayuda a la lectura en itálica */
        
        /* Mejora el dibujo de la letra delgada */
        -webkit-font-smoothing: antialiased;
        text-align: center;
        max-width: 85%;
        margin: 0 auto;
    }

    .somos-body {
        font-family: var(--font-bitter);
        font-weight: 200;
        line-height: 1.6;
        color: #000000; /* Mayor contraste */
        max-width: 400px
    }

    .text-stat {
        font-family: var(--font-bitter);
        font-weight: 400;
        font-size: 1.1rem;
        line-height: 1.6;
        color: #000000;
    }

    .text-pilares{
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 1.1rem;
        line-height: 1.6;
        letter-spacing: 1.8px;
        color: var(--color-yellow);
        text-transform: uppercase;
    }

    /* =========================================================
       4. BOTONES
    ========================================================= */
    .btn-pill-teal {
        display: inline-block;
        padding: 0.75rem 2.5rem;
        background-color: var(--color-teal);
        color: white;
        font-weight: 700;
        border-radius: var(--radius-pill);
        font-size: 0.625rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        transition: all 0.3s;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        text-decoration: none;
    }
    .btn-pill-teal:hover {
        background-color: white;
        color: var(--color-teal-dark);
    }

    .btn-pill-yellow {
        background-color: #FACC15;
        color: #000;
        padding: 10px 25px;
        border-radius: 50px;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.8rem;
        cursor: pointer;
        border: none !important;
        outline: none;
        box-shadow: 0 4px 15px rgba(251,188,30,0.3);
        transition: all 0.3s ease;
    }
    .btn-pill-yellow:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(251,188,30,0.4);
        background-color: var(--color-yellow);
    }

    .btn-hero {
        font-family: var(--font-bitter);
        font-weight: 400;
        font-size: 1rem;
        line-height: 1.4;
        text-transform: capitalize;
        display: inline-block;
        padding: 12px 28px;
        border-radius: 50px; /* Estilo redondeado coherente con la marca */
        transition: all 0.3s ease; /* Transición suave para todos los cambios */
        cursor: pointer;
    }

    /* Efecto de elevación general para todos los btn-hero */
    .btn-hero:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    }

    /* 1. Botón Cyan (Teal Dark) */
    .btn-hero-cyan {
        background-color: var(--color-teal-dark);
        color: white;
        text-decoration: none;
        border: none;
    }

    .btn-hero-cyan:hover {
        background-color: #1a3337; /* Un tono más oscuro del teal original */
        color: white;
    }

    /* 2. Botón Light Cyan */
    .btn-hero-light-cyan {
        background-color: var(--color-cyan-light);
        border: 1px solid rgba(255,255,255,0.3);
        color: white;
        text-decoration: none;
    }

    .btn-hero-light-cyan:hover {
        background-color: #008ba0; /* Ajuste manual para que gane fuerza */
        border-color: white;
        color: white;
    }

    /* 3. Botón Soft Pink */
    .btn-soft-pink {
        background-color: var(--color-pink);
        color: white;
        border: none;
    }

    .btn-soft-pink:hover {
        background-color: #c44d6a; /* Un rosa más profundo */
        color: white;
    }

    /* 4. Botón Suscribirse (reutiliza el rosa) */
    .btn-suscribirse {
        background-color: var(--color-pink);
        color: white;
        border: none;
        transition: filter 0.3s ease;
    }

    .btn-suscribirse:hover {
        filter: brightness(1.1); /* Alternativa: lo hace un poco más brillante */
    }

    /* =========================================================
       5. HERO
    ========================================================= */
    .hero-image-wrapper {
        position: absolute;
        inset: 0;
        z-index: 0;
        overflow: hidden;
        background-color: #1a1a1a;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .hero-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: none !important;
        transition: none !important;
    }
    .hero-overlay {
        position: absolute;
        inset: 0;
        z-index: 1;
        
        /* Fondo sólido inicial (el azul oscuro de la fundación) */
        background-color: rgba(15, 23, 42, 0.4); 
        
        /* MÁSCARA: Hace que el fondo de arriba sea sólido y el de abajo desaparezca */
        /* El color en 'linear-gradient' aquí no importa, lo que importa es la opacidad */
        -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 0%, transparent 100%);

        /* Opcional: añade la sombra interna que querías */
        box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.2);
        
        pointer-events: none;
    }
    .hero-z {
        z-index: 10;
    }
    .hero-spacing {
        padding-bottom: 60vh;
    }

  .hero-spacing-nosotros {
        padding-top: 25vh; /* Menos padding porque tiene el Nav arriba */
        padding-bottom: 25vh;
    }

    /* Espaciado para la sección Visión (Segunda Nube) */
    .hero-spacing-nosotros-2 {
        padding-top: 45vh; /* El valor que definiste para centrar en la nube */
        padding-bottom: 30vh;
    }

    /* Asegurar que la imagen de fondo cubra todo el espacio */
    .hero-image-wrapper img {
        width: 100%;
        height: 100%;
    }
    .hero-title {
        font-size: 2.6rem;
        line-height: 1.05;
        text-shadow: var(--shadow-text);
    }
    .hero-lead {
        max-width: 40rem;
        text-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    }
    .hero-icon-sm { width: 1.25rem; height: 1.25rem; }
    .hero-icon-md { width: 2.5rem; height: 2.5rem; }

    /* =========================================================
       6. NAVEGACIÓN
    ========================================================= */
    .nav-wrapper {
        position: relative;
        z-index: 50;
    }
    .nav-logo { height: 4.5rem; filter: drop-shadow(0 20px 13px rgba(0,0,0,0.3)); }

    #menu-btn {
        position: relative;
        z-index: 1100;
        display: flex;
        flex-direction: column;
        gap: 0.375rem;
        padding: 0.5rem;
        background: transparent;
        border: none;
    }
    #menu-btn span {
        display: block;
        width: 2.5rem;
        height: 0.25rem;
        background-color: white;
        border-radius: var(--radius-pill);
        transition: all 0.3s ease-in-out;
        transform-origin: center;
    }
    #menu-btn span:nth-child(2)  { background-color: var(--color-yellow); }
    #menu-btn:hover span          { background-color: var(--color-yellow); }
    #menu-btn:hover span:nth-child(2) { background-color: white; }
    #menu-btn.open span:nth-child(1) { transform: translateY(10px) rotate(45deg);  background-color: var(--color-yellow); }
    #menu-btn.open span:nth-child(2) { opacity: 0; transform: translateX(40px); }
    #menu-btn.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); background-color: var(--color-yellow); }

    #mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 1080;
        background-color: rgba(26,26,26,0.95);
        backdrop-filter: blur(24px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
    }
    #mobile-menu.active { transform: translateX(0); }

    .mobile-link {
        font-weight: 900;
        color: white;
        text-transform: uppercase;
        letter-spacing: -0.05em;
        transition: all 0.5s ease-out;
        font-size: 2.2rem;
        line-height: 1.2;
        opacity: 0;
        transform: translateY(30px);
        text-decoration: none;
    }
    .mobile-link.active { opacity: 1; transform: translateY(0); }
    .mobile-link:hover {
        color: var(--color-yellow);
        transform: scale(1.1);
        letter-spacing: 0.1em;
        text-shadow: 0 0 30px rgba(251,188,30,0.3);
    }

    body.menu-open { overflow: hidden; }

    /* =========================================================
       7. SECCIÓN NOSOTROS — NUBES Y STATS
    ========================================================= */
    .nosotros-float-left  { position: absolute; bottom: 0; left: 0;  margin: 1rem; z-index: 1; width: 5rem; }
    .nosotros-float-right { position: absolute; top: 0;    right: 0; margin: 1rem; z-index: 1; width: 7rem; }

    .logo-wrapper   { max-width: 280px; width: 100%; }
    .logo-somos     { font-size: 1.15rem; opacity: 0.8; }

    .quote-card {
        position: relative;
    }
    .quote-card .cloud-bg {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        pointer-events: none;
        z-index: 0;
    }
    .quote-card .hand-deco {
        position: absolute;
        bottom: 0;
        right: 0;
        margin: 0.75rem;
        width: 3rem;
        height: 3rem;
        z-index: 2;
        opacity: 0.25;
    }

    /* =========================================================
       8. SLIDER DE PILARES
    ========================================================= */
    #work-slider    { min-height: 850px; }
    #slider-bg {
        position: absolute;
        inset: 0;
        z-index: 0;
        background-size: cover;
        background-position: center;
        transition: all 1s;
        transform: scale(1.1);
    }
    #slider-content { transition: all 0.5s ease-out; }
    #accent-bar     { width: 0.5rem; transition: all 0.5s ease-in-out; }
    .slide-dot      { height: 0.25rem; border-radius: var(--radius-pill); transition: all 0.7s ease-in-out; }

    .slider-card {
        border-radius: 15px;
        position: relative;
        margin-top: 80px;
    }
    .slider-accent {
        position: absolute;
        left: 0;
        top: 25%;
        width: 0.5rem;
        height: 8rem;
        border-radius: 0 4px 4px 0;
        box-shadow: 0 0 20px rgba(251,188,30,0.4);
    }

    #slide-title{
        font-family: 'Montserrat', sans-serif;
        font-weight: 800; /* ExtraBold */
        text-transform: uppercase;
        letter-spacing: -0.02em;
        color: #fff;
        font-size: 2.5rem;
    }

    #slide-title span {
        font-family: 'Montserrat', sans-serif;
        font-weight: 800; /* ExtraBold */
        text-transform: uppercase;
        letter-spacing: -0.02em;
        font-size: 2.5rem;
        font-style: normal !important;
    }

    #slide-meta{
        font-family: 'Montserrat', sans-serif;
        font-weight: 800; /* ExtraBold */
        text-transform: uppercase;
        letter-spacing: -0.02em;
        font-size: 0.8rem;
        font-style: normal;
        font-style: normal !important;
    }

    /* =========================================================
       9. PROGRAMAS
    ========================================================= */

    #programas{
        
        position: relative;
        background-color: #EBAB17;
        background-image: radial-gradient(circle, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
        background-size: 20px 20px;
    }
    .section-tag {
        font-size: 1.5rem;
        font-family: 'Bitter', serif;
        font-weight: 400;
        line-height: 1.6;
        color: var(--color-yellow);
    }
    .section-title {
        font-size: 3rem;
        line-height: 0.9;
    }
    .section-title-accent { color: var(--color-teal-dark); }

    .section-side-text {
        max-width: 350px;
        font-family: var(--font-bitter);
        font-weight: 400;
        font-size: 16px;
        line-height: 1.6;
        border-right: 4px solid #fff;
        padding-right: 0.75rem;
        letter-spacing: 0.5px;
        color: #fff;
    }

    .program-card {
        transition: all 0.5s;
        position: relative;
        overflow: hidden;
        min-height: 300px;
        border-radius: var(--radius-card);
    }
    .program-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-card);
    }
    .program-number {
        position: absolute;
        top: 0;
        right: 0;
        width: 5rem;
        height: 5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom-left-radius: 2rem;
        font-weight: 900;
        font-size: 1.875rem;
        transition: all 0.3s;
    }
    .program-number--teal  { background-color: rgba(0,169,192,0.1); }
    .program-number--yellow{ background-color: rgba(251,188,30,0.1); }
    .program-number--pink  { background-color: rgba(225,101,130,0.1); }
    .program-number--cyan  { background-color: rgb(67 187 195 / 0.2); }

    .accent-line {
        width: 2.5rem;
        height: 3px;
        margin-bottom: 1.5rem;
        flex-shrink: 0;
    }

    .program-card p {
        margin-top: 0; /* Reseteamos márgenes superiores */
        margin-bottom: 0;
        flex-grow: 1; /* Ocupa el espacio restante para empujar contenido si es necesario */
    }
    .program-card:hover .accent-line { width: 100%; }

    .accent-teal   { background-color: var(--color-teal-dark); }
    .accent-yellow { background-color: var(--color-yellow); }
    .accent-pink   { background-color: var(--color-pink); }
    .accent-cyan   { background-color: #43bbc3; }

    .card-dark     { background-color: var(--color-navy-bg); }

    /* =========================================================
       10. MODELO HANDS 360°
    ========================================================= */
   .modelo-section {
        position: relative;
        overflow: hidden;
        /* Ajustamos el padding para que el contenido respire sobre la imagen */
        padding: 80px 0; 
        background-color: #131829; 
        
        /* Configuración de la imagen de fondo */
        background-image: url('../img/img-modelo.png');
        background-repeat: no-repeat;
        
        /* 'center top' asegura que las nubes y el cielo siempre se vean primero */
        background-position: center top; 
        
        /* '100% auto' es la clave: 100% de ancho y el alto se ajusta proporcionalmente */
        background-size: 100% auto; 
        
        z-index: 1;
    }

    /* 2. Eliminamos el div innecesario para limpiar el DOM */
    .modelo-bg {
        display: none; 
    }

    /* 3. Aseguramos que el contenido flote sobre el fondo */
    .modelo-z {
        position: relative;
        z-index: 10;
    }



    /* 4. Ajuste para pantallas muy anchas (evita que la imagen se pixele) */
    @media (min-width: 2000px) {
        .modelo-section {
            background-size: cover !important;
            background-position: center !important;
            
            /* 2. Control de desborde vertical y horizontal */
            overflow: hidden; 
            position: relative;
            padding: 150px 0 !important;
            
            /* 3. Centrado total del bloque */
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .modelo-section .container {
            max-width: 1400px !important; /* El diseño no se estirará más allá de esto */
            width: 90%; 
            margin-left: auto !important;
            margin-right: auto !important;
            position: relative;
            z-index: 2; /* Asegura que el texto esté sobre cualquier decoración de fondo */
        }

        /* 5. Ajuste de las "manos" o elementos flotantes */
        .decor-hand {
            position: absolute;
            /* Las anclamos respecto al borde del container, no del monitor */
            max-width: 300px; 
        }

        .modelo-z {
            margin-top: 38rem;
        }
    }

    /* 5. Ajuste para móviles (opcional para mejorar la visibilidad) */
    @media (max-width: 768px) {
        .modelo-section {
            background-size: cover; /* En móvil suele verse mejor que cubra todo el espacio */            
        }

        .familia-badge{
            padding: 10px !important;
        }

        .photo-rect-sm{
            padding: 10px !important;
        }

        .somos-title{
            font-weight: 400 !important;
        }

        .pb-5{
            padding-bottom: 1.5 rem !important;
        }

        .text-pilares{
            font-size: 0.8rem;
            text-align: center;
        }
        #slide-title{
            font-weight: 600; /* ExtraBold */
            text-transform: uppercase;
            letter-spacing: -0.02em;
            color: #fff;
            font-size: 1.5rem;
        }

        #slide-title span {
            font-weight: 600; /* ExtraBold */
            text-transform: uppercase;
            letter-spacing: -0.02em;
            font-size: 1.5rem;
            font-style: normal !important;
        }

        #slide-meta{
            font-weight: 500 !important; /* ExtraBold */
            text-transform: uppercase !important;
            letter-spacing: -0.02em !important;
            font-size: 0.6rem !important;
            font-style: normal !important;
        }
    } 

    /* Ajuste de las tarjetas para que no ocupen tanto espacio vertical */
    .program-card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        eight: 100%; /* Obliga a todas las tarjetas de la fila a medir lo mismo */
        min-height: 320px; 
        transition: transform 0.3s ease;
    }

    .modelo-step {
        padding: 1.5rem;
        height: 260px; /* Reducimos de 300px a 260px para compactar el mosaico */
    }
    .modelo-z { position: relative; z-index: 10;}

    .modelo-badge {
        color: var(--color-teal-dark);
        letter-spacing: 4px;
        font-size: 0.7rem;
        margin-top: 15px;
    }
    

    .slide-title{
        font-family: 'Montserrat', sans-serif;
        font-weight: 800; /* ExtraBold */
        text-transform: uppercase;
        letter-spacing: -0.02em;
    }
    .modelo-title-accent { color: #FBBC1E; }
    .modelo-lead       { font-weight: 200; font-size: 1.2rem; max-width: 500px; }

    .modelo-circle-dashed {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 200px;
        height: 200px;
        border: 2px dashed rgba(255,255,255,0.4);
        border-radius: 50%;
    }
    .modelo-circle-icon {
        width: 120px;
        height: 120px;
        background-color: var(--color-teal-dark);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modelo-step {
        padding: 1.5rem;
        height: 100%;
        height: 300px;
        display: flex;
        flex-direction: column;
        border: 1px solid rgba(255,255,255,0.1);
    }
    .modelo-step__num  { font-size: 3.5rem; font-weight: 900; color: rgba(255,255,255,0.4); line-height: 1; }
    .modelo-step__title{ 
        font-size: 1.2rem;
        text-transform: uppercase;
        color: white;
        margin: 0.5rem 0;
        font-family: 'Montserrat', sans-serif;
        font-weight: 800; /* Light para el párrafo descriptivo */
        line-height: 1.4;
        min-height: 3em; /* Reserva espacio para 2 líneas, así el texto de abajo siempre empieza igual */
        display: flex;
        align-items: center;
        margin-top: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    .modelo-step__body { font-family: var(--font-bitter); }

    .step-navy   { background-color: #123548; }
    .step-gold   { background-color: #F6C983; }
    .step-pink   { background-color: var(--color-pink); }
    .step-yellow { background-color: #FBB935; }
    .step-salmon { background-color: #F7AFAF; }
    .step-teal   { background-color: var(--color-teal); }
    .step-cyan   { background-color: #00A9C0}

    /* =========================================================
       11. SECCIÓN FAMILIA
    ========================================================= */
    .familia-section { position: relative; overflow: hidden; }

    .section-pill-line {
        width: 4rem;
        height: 0.25rem;
        background-color: var(--color-teal-dark);
        border-radius: var(--radius-pill);
        margin: 0 auto;
    }

    .familia-title {
        font-family: var(--font-bitter);
        font-weight: 800;             /* Peso extra para compensar el brillo del amarillo */
        font-size: 4.8rem;            /* Impacto visual masivo */
        line-height: 0.95;
        letter-spacing: -0.04em;      /* Letras compactas (clave del diseño azul) */
        color: white;
        text-transform: uppercase;
        text-align: center;
        
        /* Optimización de renderizado */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        
        /* Sombra técnica: define los bordes sin que se note que hay sombra */
        text-shadow: 1px 1px 1px rgba(0,0,0,0.08);
    }

    .subtitulo-familia {
        font-family: var(--font-bitter);
        font-weight: 400;
        font-size: 1.2rem;
        color: #000;
        text-align: center;
        margin-bottom: 0.5rem;
        display: block;
    }

    .familia-lead {
        font-family: var(--font-bitter);
        font-weight: 200;
        line-height: 1.6;
        color: #000000; /* Mayor contraste */
    }

    .familia-col-side  { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }

    .photo-circle {
        border-radius: 50%;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border: 4px solid white;
        width: 10rem;
        height: 10rem;
    }
    .photo-rect {
        width: 100%;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        height: 12rem;
    }
    .photo-rect-sm {
        height: 8rem;
        border-radius: 1rem;
        overflow: hidden;
    }
    .photo-circle-sm {
        width: 8rem;
        height: 8rem;
        border-radius: 50%;
        overflow: hidden;
        border: 4px solid white;
        margin: 0 auto;
    }
    .photo-main {
        border-radius: 1.5rem;
        overflow: hidden;
        border: 16px solid white;
        aspect-ratio: 4/3;
        max-width: 500px;
        margin: 0 auto;
    }
    .photo-main img, .photo-circle img, .photo-rect img,
    .photo-circle-sm img, .photo-rect-sm img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .familia-glow {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(251,188,30,0.2) 0%, transparent 70%);
        filter: blur(40px);
        z-index: -1;
    }

    .familia-badge {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        margin-bottom: -1.8rem;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        gap: 0.75rem;
        min-width: 200px;
        z-index: 20;
    }
    .familia-badge__icon {
        background-color: var(--color-yellow);
        border-radius: 0.5rem;
        width: 3rem;
        height: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .familia-badge__num   { font-size: 1.1rem; font-weight: 900; color: var(--color-navy); margin: 0; }
    .familia-badge__label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: #64748b; margin: 0; }

    .comunidad-watermark {
        font-family: var(--font-bitter);
        font-size: 3.5rem;
        line-height: 1;
        opacity: 0.25;
        color: #94a3b8;
        font-style: italic;
    }

    /* =========================================================
       12. FOOTER
    ========================================================= */
    .footer {
        background-color: #131829;
        color: white;
    }
    .footer-glow {
        position: absolute;
        top: -6rem;
        right: -6rem;
        width: 25%;
        aspect-ratio: 1;
        border-radius: 50%;
    }
    .footer-logo { height: 2.5rem; }
    .footer-desc { max-width: 20rem; }

    .footer-social {
        width: 2rem;
        height: 2rem;
        border-radius: 50%;
        border: 1px solid #334155;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
    }

    .footer-heading {
        font-size: 0.8rem;
        letter-spacing: 0.1em;
        border-left: 2px solid var(--color-teal-dark);
        padding-left: 0.75rem;
    }
    .footer-heading--yellow { border-left-color: var(--color-yellow); }

    .footer-link {
        color: #94a3b8;
        text-decoration: none;
        font-size: 0.875rem;
    }
    .footer-link:hover { color: white; }

    .newsletter-box {
        background-color: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.05);
        border-radius: 1rem;
        padding: 1.5rem;
    }
    .newsletter-input {
        background-color: white !important;
        border: 0;
        border-radius: var(--radius-pill);
    }
    .newsletter-btn {
        background-color: var(--color-pink);
        color: white;
        width: 100%;
        border-radius: var(--radius-pill);
        font-weight: 700;
        font-size: 0.875rem;
        border: none;
        padding: 0.5rem;
    }

    .footer-copy {
        font-size: 0.625rem;
        color: #94a3b8;
        font-weight: 700;
        text-transform: uppercase;
    }
    .footer-legal {
        font-size: 0.5625rem;
        color: #94a3b8;
        text-decoration: none;
        text-transform: uppercase;
        font-weight: 700;
    }

    /* =========================================================
       13. ESTILOS GLOBALES BOOTSTRAP OVERRIDE
    ========================================================= */
    .bg-dark {
        background-color: var(--color-navy-glass) !important;
        backdrop-filter: blur(12px);
    }
    .text-secondary { color: rgb(148 163 184 / 1) !important; }

    section { scroll-margin-top: 80px; }

    .p-10  { padding: 2.5rem; }
    .rounded-card   { border-radius: var(--radius-card); }
    .rounded-card-lg{ border-radius: var(--radius-card-lg); }

    /* =========================================================
       14. ANIMACIONES
    ========================================================= */
    @keyframes slow-zoom {
        0%   { transform: scale(1); }
        100% { transform: scale(1.1); }
    }
    .animate-slow-zoom {
        animation: slow-zoom 20s ease-in-out infinite alternate;
        transform-origin: top;
    }

    @keyframes bounce-slow {
        0%, 100% { transform: translateY(0); }
        50%       { transform: translateY(-15px); }
    }
    .animate-bounce-slow { animation: bounce-slow 4s ease-in-out infinite; }

    @keyframes float {
        0%   { transform: translate(0, 0) rotate(0deg); }
        50%  { transform: translate(-10px, 15px) rotate(3deg); }
        100% { transform: translate(0, 0) rotate(0deg); }
    }
    .animate-float       { animation: float 5s ease-in-out infinite; }
    .animate-float-delay { animation: float 6s ease-in-out infinite; animation-delay: 1s; }

    @keyframes spin-infinite {
        from { transform: rotate(0deg); }
        to   { transform: rotate(360deg); }
    }
    .custom-rotate-bg {
        animation: spin-infinite 80s linear infinite;
        transform-origin: center center;
    }

    @keyframes hand-bounce {
        0%, 100% { transform: translateY(0) rotate(0deg); }
        50%       { transform: translateY(-10px) rotate(10deg); }
    }
    .manitos { animation: hand-bounce 2s ease-in-out infinite; }

    .grayscale { filter: grayscale(100%); transition: filter 0.3s ease; }
    .grayscale:hover { filter: grayscale(0%); }

    .glass-card {
        background-color: rgba(255,255,255,0.05);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255,255,255,0.1);
        padding: 2rem;
        border-radius: 1rem;
        box-shadow: var(--shadow-card);
    }

     /* =========================================================
       15. RESPONSIVE — ESCRITORIO (≥768px)
    ========================================================= */
    @media (min-width: 768px) {
        .mobile-link { font-size: 1.5rem; }
        .p-md-10    { padding: 5.2rem !important; }

            .p-md-4 {
            padding: 3.3rem !important;
        }

        .modelo-z{
            margin-top: 13rem;
        }
    }

    @media (min-width: 1290px) {
        .modelo-z{
            margin-top: 25rem;
        }
    }
 
    /* =========================================================
       16. RESPONSIVE — MÓVIL (≤767px)
 
       Escala tipográfica móvil:
         Hero h1 ............. 2rem   / lh 1.1
         Títulos h2 (sección) . 1.75rem / lh 1.15
         H3 (cards) ........... 1.1rem  / lh 1.25
         Lead / párrafo base .. 0.95rem / lh 1.65
         Texto pequeño / label  0.75rem
         Stats grandes ........ 2.25rem
         Watermark fondo ...... 1.75rem
 
       Espaciado de secciones:
         Padding vertical sec . 2.5rem (py)
         Padding horizontal ... 1.25rem (px)
         Gap entre bloques .... 1.25rem
    ========================================================= */
    @media (max-width: 767px) {
 
        /* ── TIPOGRAFÍA BASE ───────────────────────────────── */
        h1,
        .hero-title,
        h1.title-semibold,
        .title-semibold {
            font-size: 2.25rem !important; /* Un poco más grande para compensar el peso visual */
            line-height: 1.1 !important;
            letter-spacing: -0.02em !important;
            text-align: center;
            
            /* Sombra técnica para legibilidad en móviles */
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25), 
                         0px 0px 10px rgba(0, 0, 0, 0.1);
            
            /* Refuerza el grosor en pantallas pequeñas */
            font-weight: 700 !important;
        }
 
        h2,
        .section-title,
        .familia-title {
            font-size: 1.75rem !important;
            line-height: 1.15 !important;
            letter-spacing: -0.01em !important;
        }
 
        h3 {
            font-size: 1.1rem !important;
            line-height: 1.25 !important;
        }
 
        p,
        .lead,
        .body-light,
        .text-extralight,
        .somos-body {
            font-size: 18px !important;
            line-height: 1.65 !important;
        }
 
        .text-label,
        .text-label-sm,
        .small,
        .footer-link,
        .footer-copy, 
        .section-tag {
            font-size: 16px !important;
            text-transform: none !important;
        }

        .footer-copy{
            text-transform: none;
            font-weight: 500;
        }

        .section-tag{color:#000;}
 
        .responsive-stat { font-size: 2.25rem !important; }
 
        .section-title-accent { font-size: 2.1rem !important; }
        .comunidad-watermark  { font-size: 1.75rem !important; }
        .modelo-step__num     { font-size: 2.5rem !important; }
        .modelo-step__title   { font-size: 1rem !important; width:100% !important }
        .familia-badge__num   { font-size: 1rem !important; }

        .align-items-end{
            align-items: center !important;
        }

        .modelo-z{
            margin-top: 0 !important;
        }

        .familia-col-side{
            margin-top: 15px;
        }
 
        /* ── ESPACIADO GLOBAL ──────────────────────────────── */
        section {
            padding-left:  1.25rem !important;
            padding-right: 1.25rem !important;
        }
 
        /* Unifica el padding vertical de todas las secciones */
        section.py-5,
        .py-5 {
            padding-top:    1rem !important;
            padding-bottom: 1rem !important;
        }

        .modelo-bg {
                /* En móvil cambiamos a 'cover' para evitar deformación */
                background-size: cover;
                
            }
            
            .mosaic-grid {
                /* Añadimos un pequeño radio de borde individual en móvil para separar visualmente */
                border-radius: 15px !important;
                margin-bottom: 20px;
            }
 
        .mb-5  { margin-bottom: 1.5rem !important; }
        .mb-4  { margin-bottom: 1rem   !important; }
        .mt-5  { margin-top:    1.5rem !important; }
        .gap-4 { gap: 1rem !important; }
        .gap-5 { gap: 1.25rem !important; }
 
        /* Filas: reduce el espacio vertical entre columnas apiladas */
        .row > * { margin-top: 0; }
        .row.g-4 { --bs-gutter-y: 1.25rem; --bs-gutter-x: 1rem; }
        .row.g-5 { --bs-gutter-y: 1.5rem;  --bs-gutter-x: 1rem; }
 
        /* ── NAV ───────────────────────────────────────────── */
        .nav-wrapper { padding: 1rem 1.25rem; }
        .nav-logo    { height: 2.75rem; }
 
        /* ── MENÚ MÓVIL ────────────────────────────────────── */
        #mobile-menu { top: 0; } /* corrige el top: -350px heredado */
        .mobile-link { font-size: 1.5rem !important; line-height: 1.3 !important; }
 
        /* ── HERO ──────────────────────────────────────────── */
        .hero-image-wrapper {
            background-color: #FABA24;
        }
        .hero-image-wrapper img {
            transform: none !important;
            object-fit: contain;
            object-position: top center;
        }
        .hero-spacing {
            padding-bottom: 10px; /* proporcional a la imagen mobile */
            padding-top: 1.5rem;
        }
        .hero-lead { max-width: 100%; margin-top: 5rem;}
 
        /* Ocultar elementos decorativos y secundarios en hero */
        .manitos,
        .animate-float,
        .animate-float-delay,
        #text-superior-hero,
        #btn-conocenos        { display: none !important; }
 
        /* Botones hero: full width apilados */
        .d-flex.flex-md-row.gap-3 .btn { width: 100%; margin-bottom: 0.5rem; }
 
        /* ── BOTONES GENERALES ─────────────────────────────── */
        .btn-pill-teal,
        .btn-pill-yellow {
            width: 100%;
            text-align: center;
            padding: 0.65rem 1rem !important;
            font-size: 0.8rem !important;
            margin-bottom: 0.5rem;
        }
 
        /* ── SECCIÓN NOSOTROS ──────────────────────────────── */
       
        #nosotros .col-lg-5,
        #nosotros .col-lg-7       { text-align: center; }
        #nosotros p               { text-align: center !important; margin-top: 0.5rem !important; padding: 1px !important}
        #img-logo                 { max-width: 180px !important; margin: 0 auto; display: block; }
        .logo-wrapper             { margin: 0 auto; }
        .quote-card               { padding: 1.5rem !important; }
        .quote-card p             { font-size: 18px !important; margin-top: 1rem !important; }
 
        /* Stats: tres en fila o apiladas con espacio justo */
        .nube-stat                { padding: 0 !important; }
 
        /* ── SECCIÓN PROGRAMAS ─────────────────────────────── */
        #programas                { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
        #programas .mb-5          { margin-bottom: 1.5rem !important; }
        .section-side-text        { display: none; } /* ya oculto con d-none d-md-block, refuerzo */
        .program-card             { padding: 1.25rem !important; min-height: auto; border-radius: 1.5rem !important; margin: 0.7rem}
        .program-card h3          { font-size: 1rem !important; margin-top: 2.5rem !important; margin-bottom: 0.5rem !important; }
        .program-number           { width: 3.5rem; height: 3.5rem; font-size: 1.25rem; }
        .accent-line              { margin-bottom: 0.75rem; }
 
        /* ── MODELO HANDS 360° ─────────────────────────────── */
        .modelo-section           { padding: 10px 0 !important; }
        .modelo-step              { padding: 1.25rem !important;  justify-content: center !important; height: auto !important}
        .modelo-badge             { font-size: 0.65rem; padding: 0.4rem 0.9rem; }
        .modelo-lead              { font-size: 0.95rem !important; max-width: 100%; }
 
        /* Grid de pasos: 2 columnas en móvil */
        .modelo-section .row.g-0  { display: grid; grid-template-columns: 1fr 1fr; }
        .modelo-section .col-md-6.col-lg-3 { width: 100%; }

        .body-light{
            padding: 10px !important;
        }

        .py-4{
            padding: 5px 0 !important;
        }
 
        /* ── SECCIÓN FAMILIA ───────────────────────────────── */
        .familia-section          { padding-top: 2.5rem !important; padding-bottom: 2rem !important; }
        .familia-lead             { font-size: 0.95rem !important; }
        .section-pill-line        { margin-top: 0.75rem; }

        .familia-grid-mobile {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.625rem;
        }

        .familia-grid-item {
            aspect-ratio: 1 / 1;
            border-radius: 1rem;
            overflow: hidden;
            background-color: #e2e8f0;
        }

        .familia-grid-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.4s ease;
        }

        .familia-grid-item:hover img {
            transform: scale(1.05);
        }
 
        /* El bloque de fotos es solo desktop; en móvil queda el watermark */
        .familia-section .d-none.d-md-block { display: none !important; }
 
        /* ── FOOTER ────────────────────────────────────────── */
        .footer                   { padding-top: 2.5rem !important; }
        .footer .row.g-4          { --bs-gutter-y: 1.5rem; }
        .footer .col-md-6         { text-align: center; }
        .footer-desc              { max-width: 100%; margin: 0 auto; }
        .footer-heading           { justify-content: center; }
        .footer-social            { margin: 0 auto; }
        .d-flex.gap-2             { justify-content: center; }
 
        .newsletter-box           { padding: 1.25rem !important; }
        .newsletter-input,
        .newsletter-btn           { font-size: 0.875rem; }
 
        .footer .pt-3.border-top  { text-align: center; flex-direction: column !important; gap: 0.75rem !important; }
        .footer-legal             { font-size: 0.65rem !important; }
    }
 
    /* ── MÓVIL PEQUEÑO (≤400px) ────────────────────────────── */
    @media (max-width: 400px) {
        h1,
        .title-semibold,
        h1.title-semibold { font-size: 1.75rem !important; }
 
        h2,
        .section-title    { font-size: 1.5rem !important; text-align: center;}
 
        p, .lead          { font-size: 18px !important; line-height: 1.65 !important;}
 
        .responsive-stat  { font-size: 2rem !important; }
 
        .modelo-section .row.g-0 { grid-template-columns: 1fr; }
    }

