/* style.css */
html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Evita comportamientos extraños del scroll nativo en iOS */
body {
    -webkit-overflow-scrolling: touch;
}

/* Carrusel Infinito (Marquee) */
.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 0;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    white-space: nowrap;
    animation: scrollText 30s linear infinite;
}

@keyframes scrollText {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* =========================================
   ADICIONAR: Estilos para Animación de Letras y Pop-up
   (Pegar al final de style.css)
   ========================================= */

/* Lógica para que las letras se comporten bien en línea */
.word {
    display: inline-flex;
    white-space: nowrap;
}

/* Estado inicial de cada letra para la animación JS */
.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
}

/* El degradado seguro para WebKit que se le aplica a cada letra vía JS */
.text-gradiente-seguro {
    background: linear-gradient(to right, #a3e635, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Propiedad estándar */
}

/* Clases para mostrar el Modal (Pop-up) */
#brete-modal.active {
    opacity: 1;
    pointer-events: auto;
}

#brete-modal.active .modal-content {
    transform: scale(1);
}
/* =========================================
   FIN ADICIÓN CSS
   ========================================= */