/* ===== Section de video ===== */
.video-section {
    width: 100%;
    background: #000;
    border-bottom: 1px solid #ff0000;
}

.video-wrap {
    position: relative;
    width: 100%;
    height: clamp(380px, 55vh, 560px);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

/* Degradado suave: solo oscurece un poco abajo para dar legibilidad,
   el video se sigue viendo completo arriba */
.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 35%,
            rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

/* ===== Stats sobre el video ===== */
.video-stats {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0 20px 28px;
    pointer-events: none;
    /* no bloquea el video */
}

.video-stats .stats-grid {
    margin-top: 0;
    /* anula el margin de 64px original */
    max-width: 1100px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (min-width: 1024px) {
    .video-stats .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* Tarjeta tipo cristal */
.video-stats .stat-card {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);

    /* Animación de entrada */
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    transition:
        opacity 0.7s cubic-bezier(.2, .8, .2, 1),
        transform 0.7s cubic-bezier(.2, .8, .2, 1),
        background 0.25s,
        box-shadow 0.25s;
}

.video-stats.is-visible .stat-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Escalonado */
.video-stats.is-visible .stat-card:nth-child(1) {
    transition-delay: 0.05s;
}

.video-stats.is-visible .stat-card:nth-child(2) {
    transition-delay: 0.20s;
}

.video-stats.is-visible .stat-card:nth-child(3) {
    transition-delay: 0.35s;
}

.video-stats.is-visible .stat-card:nth-child(4) {
    transition-delay: 0.50s;
}

/* Después de entrar, el hover responde rápido */
.video-stats.is-visible .stat-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    transition-delay: 0s;
}

.video-stats .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(186, 37, 29, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.video-stats .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.video-stats .stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
}

/* ===== Celular ===== */
@media (max-width: 600px) {
    .video-wrap {
        height: clamp(420px, 70svh, 560px);
    }

    .video-stats {
        padding: 0 12px 16px;
    }

    .video-stats .stat-card {
        padding: 14px 10px;
    }

    .video-stats .stat-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }

    .video-stats .stat-value {
        font-size: 22px;
    }

    .video-stats .stat-label {
        font-size: 12px;
    }
}

/* Respeta usuarios con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .video-stats .stat-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}