/*
 * hsd-phrase.css
 * Hector Solis Digital — Estilos base para sección de frase animada
 * Reutilizable en cualquier página que incluya hsd-phrase.js
 *
 * Los colores de cada .hsd-gsap-word van inline en el HTML
 * (necesario para sobrescribir resets de Porto)
 */

/* ============================================================
   SECCIÓN CONTENEDOR
   ============================================================ */

#hsdPhrase {
    background: #0F172A !important;
    padding: 120px 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    display: block !important;
}

#hsdPhrase > div {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
}

/* Cada línea = máscara que oculta el overflow del slide ── */
#hsdPhrase .hsd-word-line {
    overflow: hidden !important;
    display: block !important;
    line-height: 1 !important;
    padding: 0.05em 0 !important;
}

/* ============================================================
   PALABRA BASE — color e inline-block van en el HTML
   Solo tipografía y comportamiento aquí
   ============================================================ */

.hsd-gsap-word {
    font-family: 'Rubik', sans-serif !important;
    font-size: clamp(3.5rem, 9vw, 8rem) !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: -3px !important;
    line-height: 1 !important;
    display: inline-block !important;
    margin-right: 0.3em !important;
    opacity: 0;   /* GSAP parte desde aquí */
    will-change: transform, opacity;
}

/* Última palabra de cada línea — sin margen derecho */
.hsd-gsap-word:last-child {
    margin-right: 0 !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {
    #hsdPhrase {
        padding: 80px 0 !important;
    }
    .hsd-gsap-word {
        font-size: clamp(2.5rem, 10vw, 5rem) !important;
        letter-spacing: -2px !important;
    }
}

@media (max-width: 575px) {
    #hsdPhrase {
        padding: 60px 0 !important;
    }
    #hsdPhrase > div {
        padding: 0 24px !important;
    }
    .hsd-gsap-word {
        font-size: clamp(2rem, 12vw, 3.5rem) !important;
        letter-spacing: -1px !important;
        margin-right: 0.2em !important;
    }
}
