/* 🔥 ELIMINAR TODOS LOS BORDES BLANCOS DE LA PÁGINA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background: #000; /* o tu fondo principal */
    overflow-x: hidden; /* evita línea blanca por desplazamiento horizontal */
}

/* =======================================================
   HERO CNN VISION — LAYOUT
======================================================= */

.vision-hero {
    padding: 160px 40px 120px;
    background: #000;
    position: relative;
    overflow: hidden;
}

.vision-hero-container {
    max-width: 1500px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;

    position: relative;
    z-index: 2;
}

/* -------------------------------------------------------
   TEXTO IZQUIERDA
------------------------------------------------------- */

.vision-hero-text {
    max-width: 620px;
}

.vision-hero-text h1 {
    font-size: 58px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 18px;
    font-family: "Raleway", sans-serif;
    

}

.vision-hero-text p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    font-family: "Raleway", sans-serif;
    text-align: justify;
}

.btn-vision {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);

    color: #fff;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    transition: .25s ease;
    display: inline-block;
    font-family: "Raleway", sans-serif;

}

.btn-vision:hover {
    background: #ff0000;
}


.btn-vision-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    color: #fff;
    text-decoration: none;

    padding: 12px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    font-family: "Raleway", sans-serif;

    transition: 0.25s ease;
}

.btn-vision-secondary:hover {
    background: rgb(255, 0, 0);
    border-color: rgba(255, 255, 255, 0.35);
}
/* -------------------------------------------------------
   VIDEOS DERECHA — ESTRUCTURA 1×2
------------------------------------------------------- */

.vision-hero-videos {
    display: flex;
    gap: 22px;
}

/* VIDEO GRANDE */
.video-large {
    width: 520px;
    height: 520px;
    border-radius: 20px;
    overflow: hidden;
    background: #111;
}

.video-large video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* COLUMNA 2 VIDEOS */
.video-small-column {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.video-small {
    width: 260px;
    height: 249px; /* sumado da 498, pero con gap coincide visualmente con el grande */
    border-radius: 20px;
    overflow: hidden;
    background: #111;
}

.video-small video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ajuste perfecto de proporción */
.video-small-column {
    justify-content: space-between;
}

/* -------------------------------------------------------
   RESPONSIVE
------------------------------------------------------- */

@media(max-width: 1100px) {
    .vision-hero-container {
        flex-direction: column;
        text-align: center;
    }

    .vision-hero-videos {
        flex-direction: column;
    }

    .vision-hero-text h1 {
        font-size: 42px;
    }

    .video-large, .video-small {
        width: 100%;
        height: 300px;
    }

    .video-small-column {
        flex-direction: row;
    }
}

.gradient-red::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 5%;
    width: 650px;
    height: 400px;

    background: radial-gradient(circle,
        #ff0000,
        #ff3b3b 40%,
        #ff0000 80%,
        transparent 100%
    );

    opacity: 0.45;
    filter: blur(180px);
    transform: translate(-50%, -50%);
    animation: redMove 3s ease-in-out infinite alternate;

    z-index: 1;
}

.gradient-red * {
    position: relative;
    z-index: 2;
}

@keyframes redMove {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-45%, -60%) scale(1.25); }
}

:root {
    /* 🎨 Colores del gradiente */
    --red-g1: #ff0000;
    --red-g2: #ff3b3b;
    --red-g3: #ff0066;

    /* 🔥 Tamaño del gradiente */
    --red-grad-size: 650px;

    /* 📍 Posición del gradiente */
    --red-grad-x: 55%;
    --red-grad-y: 50%;

    /* 💧 Transparencia */
    --red-grad-opacity: 0.45;

    /* 🌫 Difuminado */
    --red-grad-blur: 180px;

    /* ⚡ Velocidad de animación */
    --red-grad-speed: 12s;

    /* 🔁 Intensidad del movimiento */
    --red-scale-min: 1;
    --red-scale-max: 1.25;

    /* 🔃 Offset del movimiento */
    --red-move-x: -45%;
    --red-move-y: -60%;
}


/* ==========================================================
   SECCIÓN DETALLES CNN VISION — SIN IMÁGENES / VIDEO
========================================================== */

.vision-detalles {
    padding: 120px 40px;
    background: #000;
    position: relative;
    overflow: hidden;
    font-family: "Raleway", sans-serif;
}

.vision-detalles-container {
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* TITULO */
.detalles-header {
    text-align: center;
    margin-bottom: 60px;
}

.detalles-header h2 {
    color: #fff;
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 16px;
    
}

.detalles-header p {
    color: rgba(255,255,255,0.7);
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
}

/* GRID 2 columnas */
.detalles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    
}

/* CARD */
.detalle-card {
    padding: 32px;
    background: #fffdfd;
    border-radius: 22px;
    border: 1px solid rgba(255, 0, 0, 0.18);
    transition: .25s ease;
}

.detalle-card:hover {
    background: #f7000050;
    border-color: rgba(255, 70, 70, 0.45);
    transform: translateY(-5px);
}

/* TEXTO */
.detalle-card h3 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 12px;
    font-family: "Raleway", sans-serif;
}

.detalle-card p {
    color: rgba(255,255,255,0.75);
    font-size: 16px;
    line-height: 1.6;
    font-family: "Raleway", sans-serif;

}

/* RESPONSIVE */
@media(max-width: 1100px) {
    .detalles-grid {
        grid-template-columns: 1fr;
    }
}

/* CARD GLASS + GRAIN + GLOW ROJO */
.detalle-card {
    position: relative;
    padding: 32px;
    border-radius: 22px;

    /* Glassmorphism */
    background: rgb(0, 0, 0); /* leve tinte rojo */
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);

    /* Borde iluminado */
    border: 1px solid rgba(0, 0, 0, 0.25);

    /* Sombra premium */
    box-shadow: 0 8px 20px rgba(0,0,0,0.45);

    /* Animación */
    transition: 0.35s ease;
    overflow: hidden; /* necesario para el grano */
}

/* Granulado Apple */
.detalle-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQYGWP4////fwAJ+wP9n9KuWAAAAABJRU5ErkJggg==');
    opacity: 0.18; /* intensidad del grano */
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
}

/* Hover premium */
.detalle-card:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.detalle-card h3,
.detalle-card p {
    position: relative;
    z-index: 2; /* texto encima del grano */
}


:root {

    /* Colores del gradiente Vision */
    --vision-g1: #ff0000;
    --vision-g2: #ff0000;
    --vision-g3: #ff0000;

    /* Tamaño del halo */
    --vision-grad-size: 620px;

    /* Posición */
    --vision-grad-x: 50%;
    --vision-grad-y: 60%;

    /* Intensidad / transparencia */
    --vision-grad-opacity: 0.40;

    /* Difuminado */
    --vision-grad-blur: 220px;

    /* Velocidad */
    --vision-grad-speed: 14s;
}

/* ======================================================
   GRADIENTE ANIMADO EXCLUSIVO PARA VISION DETALLES
====================================================== */

.gradient-vision {
    position: relative;
    overflow: hidden;
}

.gradient-vision::before {
    content: "";
    position: absolute;
    top: var(--vision-grad-y);
    left: var(--vision-grad-x);

    width: var(--vision-grad-size);
    height: var(--vision-grad-size);

    background: radial-gradient(circle,
        var(--vision-g1) 0%,
        var(--vision-g2) 40%,
        var(--vision-g3) 80%,
        transparent 100%
    );

    opacity: var(--vision-grad-opacity);
    filter: blur(var(--vision-grad-blur));

    transform: translate(-50%, -50%);
    animation: gradVisionMove var(--vision-grad-speed) ease-in-out infinite alternate;

    pointer-events: none;
    z-index: 1; /* debajo del contenido */
}

/* Asegura que el contenido esté siempre arriba */
.gradient-vision * {
    position: relative;
    z-index: 2;
}

/* Animación */
@keyframes gradVisionMove {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-40%, -60%) scale(1.25); }
}
