/* ===== SECCIÓN HÉROE DE VIDEO INDEPENDIENTE ===== */
.hero-video-section {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%232d4f95' fill-opacity='0.4' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    padding: 120px 0;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Brillo ambiental sutil en el fondo */
.hv-ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(45, 79, 149, 0.04) 0%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.hv-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

/* ===== COLUMNA IZQUIERDA: TEXTO EDITORIAL ===== */
.hv-content {
    flex: 1;
    max-width: 600px;
}

.hv-tag {
    font-size: 10px;
    font-weight: 700;
    color: #2d4f95;
    background-color: rgba(45, 79, 149, 0.06);
    border: 1px solid rgba(45, 79, 149, 0.15);
    padding: 6px 14px;
    border-radius: 30px;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hv-pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #d01341;
    border-radius: 50%;
    box-shadow: 0 0 6px #d01341;
    animation: hvDotBlur 1.8s infinite;
}

@keyframes hvDotBlur {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.hv-title {
    font-size: clamp(32px, 4vw, 35px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 20px 0;
    color: #0a1b36;
}

.hv-title span {
    font-weight: 200;
    color: #64748b;
}

.hv-gradient-text {
    background: #1d468d;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: clamp(32px, 4vw, 30px);
}

.hv-line-accent {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #d01341, #d01341);
    margin-bottom: 30px;
    border-radius: 2px;
}

.hv-lead {
    font-size: 16.5px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 35px 0;
}

/* Botón Premium */
.hv-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #0a1b36;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 32px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(10, 27, 54, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hv-btn-primary svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.hv-btn-primary:hover {
    background: #d01341;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(208, 19, 65, 0.25);
}

.hv-btn-primary:hover svg {
    transform: translateX(4px);
}

/* ===== COLUMNA DERECHA: VIDEO CON CONTENEDOR 3D ===== */
.hv-media-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hv-video-card {
    position: relative;
    width: 100%;
    max-width: 540px;
    aspect-ratio: 16 / 10;
    background: #0a1b36;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(45, 79, 149, 0.12);
    box-shadow: 0 30px 60px rgba(10, 27, 54, 0.12);
    transform: perspective(1000px) rotateX(2deg) rotateY(-4deg) rotateZ(1deg);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.hv-video-card:hover {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    box-shadow: 0 40px 80px rgba(45, 79, 149, 0.18);
}

.hv-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: normal;
}

/* Animación Láser Médica (Escáner de Diagnóstico) */
.hv-laser-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d01341, #ff4d7a, #d01341, transparent);
    box-shadow: 0 0 12px #ff4d7a, 0 0 6px #d01341;
    z-index: 3;
    pointer-events: none;
    animation: hvLaserScan 4s ease-in-out infinite;
}

@keyframes hvLaserScan {

    0%,
    100% {
        top: 0%;
        opacity: 0.2;
    }

    50% {
        top: 100%;
        opacity: 1;
    }
}

/* Capa HUD / Marcos Holográficos */
.hv-hud-frame {
    position: absolute;
    inset: 0;
    border: 12px solid transparent;
    pointer-events: none;
    z-index: 2;
    box-sizing: border-box;
}

.hv-hud-frame span {
    position: absolute;
    font-family: monospace;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

.hud-top-left {
    top: 8px;
    left: 10px;
}

.hud-top-right {
    top: 8px;
    right: 10px;
    color: #d01341 !important;
    font-weight: bold;
}

/* ===== CONFIGURACIÓN RESPONSIVA (MÓVIL AL CENTRO) ===== */
@media (max-width: 992px) {
    .hv-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
        padding: 0 30px;
    }

    .hv-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hv-line-accent {
        margin: 0 auto 25px;
    }

    .hv-media-wrapper {
        width: 100%;
        justify-content: center;
        /* Alínea y centra el video por completo en móvil */
    }

    .hv-video-card {
        max-width: 480px;
        transform: none;
        /* Elimina inclinación en mobile para mejorar renderizado */
    }
}

@media (max-width: 576px) {
    .hero-video-section {
        padding: 80px 0;
    }

    .hv-video-card {
        border-radius: 16px;
    }
}