/* ========================================
           SECCIÓN PRINCIPAL DEL VIDEO
           
           AJUSTE DE ALTURA:
           - min-height: 50vh (50% de la altura de la ventana)
           - Cambiar "50vh" por otro valor si necesitas más/menos altura
           - Opciones comunes: 60vh, 70vh, 80vh, 100vh
        ======================================== */
        @font-face {
            font-family: 'Cormorant_Garamond';
            src: url('../fuentes/Cormorant_Garamond/static/CormorantGaramond-Regular.ttf');
        }

        @font-face {
            font-family: 'Montserrat';
            src: url('../fuentes/Montserrat/static/Montserrat-Regular.ttf');
        }

        .video-section {
            position: relative;
            padding: 80px 20px;
            min-height: 50vh; /* ← AQUÍ SE AJUSTA LA ALTURA DE LA SECCIÓN */
            display: flex;
            align-items: center;
            justify-content: center;
            overflow-x: hidden;
            /* Background movido desde body */
            background: linear-gradient(135deg, #000000 0%, #8A0303 100%);
        }

        /* ========================================
           ELEMENTOS FLOTANTES DECORATIVOS
           - Círculos animados en el fondo
           - Usar colores de la paleta definida
        ======================================== */
        .floating-elements {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            overflow: hidden;
        }

        .floating-circle {
            position: absolute;
            border-radius: 50%;
            background: linear-gradient(45deg, rgba(193, 18, 31, 0.1), rgba(141, 25, 25, 0.1));
            animation: float 20s infinite linear;
        }

        .floating-circle:nth-child(1) {
            width: 200px;
            height: 200px;
            top: 10%;
            left: 10%;
            animation-delay: 0s;
        }

        .floating-circle:nth-child(2) {
            width: 150px;
            height: 150px;
            top: 70%;
            right: 20%;
            animation-delay: -5s;
        }

        .floating-circle:nth-child(3) {
            width: 100px;
            height: 100px;
            top: 30%;
            right: 10%;
            animation-delay: -10s;
        }

        @keyframes float {
            0% {
                transform: translateY(0px) rotate(0deg);
                opacity: 0.1;
            }
            50% {
                transform: translateY(-50px) rotate(180deg);
                opacity: 0.3;
            }
            100% {
                transform: translateY(0px) rotate(360deg);
                opacity: 0.1;
            }
        }

        /* ========================================
           CONTENEDOR PRINCIPAL
           - Grid de dos columnas: contenido | video
           - Gap: espacio entre columnas
        ======================================== */
        .contenedor-video {
            max-width: 1200px;
            width: 100%;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        /* ========================================
           ÁREA DE CONTENIDO TEXTUAL
        ======================================== */
        .content {
            color: #ffffff;
        }

        /* Título principal con efecto degradado */
        .content h2 {
            font-family: 'Cormorant_Garamond';
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 700;
            margin-bottom: 20px;
            background: linear-gradient(135deg, #ffffff, #C1121F);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.2;
            animation: glow 3s ease-in-out infinite alternate;
        }

        /* Animación de brillo en el título */
        @keyframes glow {
            from {
                filter: drop-shadow(0 0 10px rgba(193, 18, 31, 0.3));
            }
            to {
                filter: drop-shadow(0 0 20px rgba(193, 18, 31, 0.6));
            }
        }

        /* Párrafos de descripción */
        .content p {
            font-family: 'Montserrat';
            font-size: 1.3rem;
            line-height: 1.8;
            margin-bottom: 30px;
            opacity: 0.9;
            font-weight: 300;
        }

        /* Palabras destacadas en color rojo */
        .highlight {
            font-family: 'Cormorant_Garamond';
            font-size: 1.7rem;
            color: #C1121F;
            font-weight: 600;
        }

        /* ========================================
           CONTENEDOR DEL VIDEO
           - Efecto glassmorphism
           - Sombras y bordes suaves
        ======================================== */
        .video-container {
            position: relative;
            background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(193,18,31,0.1));
            border-radius: 20px;
            padding: 20px;
            box-shadow: 
                0 20px 40px rgba(0,0,0,0.4),
                inset 0 1px 0 rgba(255,255,255,0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.1);
            transition: all 0.3s ease;
        }

        /* Efecto hover en el contenedor del video */
        .video-container:hover {
            transform: translateY(-10px);
            box-shadow: 
                0 30px 60px rgba(193,18,31,0.3),
                inset 0 1px 0 rgba(255,255,255,0.2);
        }

        /* ========================================
           WRAPPER DEL VIDEO
           - Aspect ratio 16:9 (56.25%)
           - padding-bottom controla la proporción
        ======================================== */
        .video-wrapper {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 56.25%; /* Proporción 16:9 */
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 15px 35px rgba(0,0,0,0.3);
        }

        .video-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 15px;
        }

        /* ========================================
           OVERLAY DE REPRODUCCIÓN (opcional)
           - Aparece al hacer hover sobre el video
        ======================================== */
        .play-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #C1121F, #8D1919);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(193,18,31,0.4);
            pointer-events: none;
            opacity: 0;
        }

        .video-container:hover .play-overlay {
            opacity: 1;
        }

        /* Triángulo de play */
        .play-overlay::before {
            content: '';
            width: 0;
            height: 0;
            border-left: 20px solid #ffffff;
            border-top: 12px solid transparent;
            border-bottom: 12px solid transparent;
            margin-left: 4px;
        }

        /* ========================================
           LÍNEA DECORATIVA
           - Barra animada antes del contenido
        ======================================== */
        .decorative-line {
            width: 100px;
            height: 3px;
            background: linear-gradient(90deg, #C1121F, transparent);
            margin-bottom: 30px;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% {
                opacity: 0.6;
                transform: scaleX(1);
            }
            50% {
                opacity: 1;
                transform: scaleX(1.1);
            }
        }

                /* ========================================
                RESPONSIVE DESIGN
                - Adaptación para tablets y móviles
                
                AJUSTE DE ALTURA MÓVIL:
                - Cambiar padding y min-height si necesario
                ======================================== */
        @media (max-width: 768px) {
            .contenedor-video {
                grid-template-columns: 1fr;
                gap: 40px;
                text-align: center;
            }
            
            .video-section {
                padding: 40px 20px; /* ← Padding para móviles */
                min-height: 60vh; /* ← ALTURA en móviles (ajustable) */
            }
            
            .content h2 {
                font-size: 2.5rem;
            }
            
            .content p {
                font-size: 1.1rem;
            }
        }

        /* ========================================
           MÓVILES PEQUEÑOS
        ======================================== */
        @media (max-width: 480px) {
            .video-section {
                padding: 30px 15px;
                min-height: 70vh; /* ← ALTURA en móviles pequeños */
            }

            .content h2 {
                font-size: 2rem;
            }

            .content p {
                font-size: 1rem;
                margin-bottom: 20px;
            }

            .video-container {
                padding: 15px;
            }
        }