/* Animación para el banner de texto infinito (Marquee) */
@keyframes marquee {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        transform: translateX(-50%); 
    }
}

.animate-marquee {
    display: flex;
    animation: marquee 20s linear infinite;
}

/* Estilos para el Modal de Aviso de Privacidad */
#modalPrivacidad {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#modalPrivacidad.hidden {
    display: none;
}

/* Estilos adicionales para mejor presentación */
.text-headline-sm {
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
}

.stat-highlight {
    position: relative;
    display: inline-block;
    overflow: hidden;
    isolation: isolate;
    text-shadow: 0 0 0 transparent;
    transition: text-shadow 0.25s ease;
}

.stat-highlight::after {
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -45%;
    width: 28%;
    content: '';
    background: rgb(255 255 255 / 0.85);
    transform: skewX(-20deg);
    pointer-events: none;
}

/* Botón flotante con giro continuo */
.floating-action-btn {
    animation: floating-btn-bounce 2.4s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    perspective: 600px;
}

.floating-action-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
}

.floating-action-icon {
    transform-style: preserve-3d;
    animation: floating-btn-spin-3d 4s linear infinite;
}

@keyframes floating-btn-spin-3d {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

@keyframes floating-btn-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Mensaje en forma de nube junto al botón flotante */
.floating-cloud-msg {
    position: relative;
    animation: floating-cloud-bob 2.4s ease-in-out infinite;
}

.floating-cloud-msg::before,
.floating-cloud-msg::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 22px;
    width: 14px;
    height: 14px;
    background: inherit;
    border-radius: 50%;
}

.floating-cloud-msg::after {
    bottom: -12px;
    right: 12px;
    width: 8px;
    height: 8px;
}

@keyframes floating-cloud-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.stat-highlight:hover {
    text-shadow: 0 0 18px rgb(255 255 255 / 0.8);
}

.stat-highlight:hover::after {
    animation: numberShine 0.65s ease-out;
}

@keyframes numberShine {
    from {
        left: -45%;
    }
    to {
        left: 125%;
    }
}

/* Estilos para los enlaces de navegación */
.nav-link {
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link.active {
    color: rgb(162 57 0); /* text-primary */
    font-weight: 700; /* font-bold */
    border-bottom: 2px solid rgb(162 57 0); /* border-b-2 border-primary */
    padding-bottom: 0.25rem; /* pb-1 */
}

.nav-link:not(.active) {
    color: rgb(89 65 57); /* text-on-surface-variant */
}

/* Movimiento sutil para los iconos de servicios */
#servicios .group > .material-symbols-outlined {
    transform-origin: center;
    transition: transform 0.3s ease;
}

#servicios .group:hover > .material-symbols-outlined,
#servicios .group:focus-within > .material-symbols-outlined {
    animation: serviceIconMotion 1.1s ease-in-out infinite;
}

@keyframes serviceIconMotion {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-5px) rotate(-3deg) scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .stat-highlight {
        transition: none;
    }

    .stat-highlight:hover::after {
        animation: none;
    }

    #servicios .group:hover > .material-symbols-outlined,
    #servicios .group:focus-within > .material-symbols-outlined {
        animation: none;
    }
}