/* ===================================================================
   ANIMACIONES PREMIUM - DARK LUXURY
   =================================================================== */

/* === ANIMACIONES PALPITANTES PARA SEMÁFORO === */
@keyframes pulseRed {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(239, 68, 68, 0.9));
    }
}

@keyframes pulseYellow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(245, 158, 11, 0.9));
    }
}

@keyframes pulseCyan {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(6, 182, 212, 0.9));
    }
}

.pulse-red {
    animation: pulseRed 2s ease-in-out infinite;
}

.pulse-yellow {
    animation: pulseYellow 2s ease-in-out infinite;
}

.pulse-cyan {
    animation: pulseCyan 2s ease-in-out infinite;
}

/* === ANIMACIONES DE CARGA === */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fade-in-rotate {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }

    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* === ANIMACIONES EN LOOP === */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(2deg);
    }

    50% {
        transform: translateY(-10px) rotate(-2deg);
    }

    75% {
        transform: translateY(-30px) rotate(1deg);
    }
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.4;
    }

    25% {
        transform: translate(100px, -100px);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50px, -200px);
        opacity: 0.6;
    }

    75% {
        transform: translate(-100px, -100px);
        opacity: 0.8;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(6, 182, 212, 0.5),
            0 4px 24px rgba(6, 182, 212, 0.4),
            0 0 60px rgba(6, 182, 212, 0.3);
    }

    50% {
        box-shadow:
            0 0 0 2px rgba(6, 182, 212, 0.8),
            0 8px 40px rgba(6, 182, 212, 0.6),
            0 0 80px rgba(6, 182, 212, 0.5);
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* === APLICAR ANIMACIONES A ELEMENTOS === */
.hero-title {
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    text-align: center;
    font-size: 56px;
}

.hero-subtitle {
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    font-size: 28px;
    line-height: 1.6;
}

.hero {
    margin-top: 40px;
}

.hero-message {
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
    font-size: 32px;
    font-weight: 700;
    color: #06B6D4;
    text-align: center;
    margin: 50px auto 20px;
    max-width: 900px;
    line-height: 1.4;
}

.hero-message-secondary {
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
    font-size: 28px;
    font-weight: 600;
    color: #22D3EE;
    text-align: center;
    font-style: italic;
    margin: 0 auto 50px;
    max-width: 800px;
    line-height: 1.4;
}

.btn-cta,
.btn-primary {
    animation: scale-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.6s forwards;
    opacity: 0;
    display: block;
    margin: 30px auto;
    text-align: center;
}

.btn-cta {
    animation: scale-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.6s forwards,
        pulse-glow 3s ease-in-out 1s infinite;
    background: linear-gradient(135deg, #0891B2 0%, #06B6D4 50%, #22D3EE 100%);
    background-size: 200% 200%;
}

.btn-cta:hover {
    animation: scale-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.6s forwards,
        pulse-glow 3s ease-in-out infinite,
        gradient-shift 4s ease infinite;
}

.stat-card {
    animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    text-align: center;
}

.stat-card:nth-child(1) {
    animation-delay: 0.5s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.6s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.7s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.8s;
}

.benefit-item {
    animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.benefit-item:nth-child(1) {
    animation-delay: 0.7s;
}

.benefit-item:nth-child(2) {
    animation-delay: 0.8s;
}

.benefit-item:nth-child(3) {
    animation-delay: 0.9s;
}

.benefit-item:nth-child(4) {
    animation-delay: 1s;
}

/* === NÚMEROS TIPO CONTADOR === */
.stat-number,
.score-number,
#chart-percentage {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0891B2 0%, #06B6D4 50%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.stat-number {
    font-size: 96px;
    display: block;
    text-align: center;
}

/* === RECOMENDACIONES PRIORITARIAS === */
.priority-recommendation {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid;
    animation: fade-in-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* Nivel Crítico - Rojo */
.priority-recommendation.critical {
    background: rgba(239, 68, 68, 0.15);
    border-left-color: #EF4444;
    color: #FCA5A5;
}

.priority-recommendation.critical strong {
    color: #EF4444;
}

/* Nivel Moderado - Amarillo */
.priority-recommendation.moderate {
    background: rgba(245, 158, 11, 0.15);
    border-left-color: #F59E0B;
    color: #FCD34D;
}

.priority-recommendation.moderate strong {
    color: #F59E0B;
}

/* Nivel Bueno - Cyan */
.priority-recommendation.good {
    background: rgba(6, 182, 212, 0.15);
    border-left-color: #06B6D4;
    color: #67E8F9;
}

.priority-recommendation.good strong {
    color: #06B6D4;
}

/* Delays escalonados */
.priority-recommendation:nth-child(1) {
    animation-delay: 0.1s;
}

.priority-recommendation:nth-child(2) {
    animation-delay: 0.2s;
}

.priority-recommendation:nth-child(3) {
    animation-delay: 0.3s;
}

.priority-recommendation:nth-child(4) {
    animation-delay: 0.4s;
}

.priority-recommendation:nth-child(5) {
    animation-delay: 0.5s;
}

.priority-recommendation:nth-child(6) {
    animation-delay: 0.6s;
}