/* ==========================================================================
   Módulo: Hero - Variante Clásica
   ========================================================================== */

.module-hero-wrapper {
    width: 100%;
}

.hero-layout-clasico {
    position: relative;
    width: 100%;
    /* El padding top generoso permite que el contenido baje y no choque con tu header transparente */
    padding: 320px 0 60px 0; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Flexbox para empujar el contenedor hacia la parte inferior */
    display: flex;
    align-items: flex-end; 
}

/* El degradado oscuro de abajo hacia arriba (Efecto Viñeta Inferior) */
.hero-layout-clasico .hero-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Solo cubre el 60% inferior de la foto */
    /* background: linear-gradient(0deg, rgba(15, 18, 30, 0.85) 0%, rgba(15, 18, 30, 0) 100%); */
    background-image: linear-gradient(
    to bottom, 
    rgba(0, 0, 0, 0.8) 0%,   /* Empieza oscuro arriba */
    rgba(0, 0, 0, 0) 35%,    /* Se vuelve transparente al 25% de la altura */
    rgba(0, 0, 0, 0) 50%,    /* Se mantiene transparente hasta el 75% */
    rgba(0, 0, 0, 0.8) 100%  /* Vuelve a oscurecerse hacia abajo */
    );

    z-index: 1;
}

/* El contenedor principal respetando tus 1200px */
.hero-clasico-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left; /* Textos alineados a la izquierda según captura */
}

.hero-clasico-subtitle {
    display: block;
    font-size: var(--text-lg); /* Tamaño sutil */
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.hero-clasico-title {
    font-size: var(--text-3xl); /* Tamaño gigante para impacto */
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.1;
    margin: 0;
}

/* =====================================================
   RESPONSIVE (Móviles y Tablets)
   ===================================================== */
@media (max-width: 1024px) {
    .hero-clasico-inner {
        padding: 0 20px;
    }
    .hero-layout-clasico {
        padding: 200px 0 60px 0;
    }
    .hero-clasico-title {
        font-size: calc(var(--text-3xl) - 3px);
    }
}

@media (max-width: 768px) {
    .hero-layout-clasico {
        padding: 160px 0 50px 0;
    }
    .hero-clasico-title {
        font-size: calc(var(--text-3xl) - 8px);
    }
    .hero-clasico-subtitle {
        font-size: var(--text-lg);
    }
}

/* =====================================================
   VARIANTE 2: DISEÑO SLIDER
   ===================================================== */
.hero-layout-slider {
    position: relative;
    width: 100%;
    height: 100vh; /* Altura de pantalla completa */
    min-height: 600px;
    overflow: hidden;
}

.hero-slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    
    /* Configuración para el Cross-Fade (Transición suave) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center; 
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* El degradado de arriba hacia abajo que pediste */
.hero-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%; /* Solo cubre el 40% superior para no apagar el resto de la foto */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

/* Oscurecimiento base súper sutil por si la foto es muy clara */
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-slider-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-slider-content {
    max-width: 700px;
    text-align: left;
    padding-top: 80px;
}

/* Tipografías calcadas de la imagen */
.hero-slider-subtitle {
    display: block;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: var(--text-2xl);
    font-style: italic;
    color: var(--color-white);
    margin-bottom: 5px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-slider-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 40px 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-slider-description {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-slider-btn {
    display: inline-block;
    background-color: var(--color-secondary); /* El rojo corporativo de la captura */
    color: var(--color-primary);
    padding: 18px 40px;
    font-size: var(--text-base);
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.hero-slider-btn:hover {
    background-color: color-mix(in srgb, var(--color-secondary), 5% transparent);
}

/* Controles de Flechas */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
    padding: 10px;
}

.hero-slider-nav:hover { color: var(--color-white); }
.hero-slider-nav.prev { left: 10px; }
.hero-slider-nav.next { right: 10px; }

/* Controles de Puntitos (Dots) */
.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

 .hero-slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5); /* Punto inactivo sólido */
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
} 

.hero-slider-dot.is-active {
    background-color: transparent; /* Punto activo hueco... */
    border-color: var(--color-white);         /* ...con borde blanco */
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-slide, .hero-slide.is-active {align-items: end; padding-bottom: 120px;}
    .hero-slider-inner { padding: 0 20px;}
    .hero-slider-subtitle { font-size: 40px; }
    .hero-slider-title { font-size: 60px; }
    .hero-slider-nav { display: none; } /* Ocultar flechas en móvil, mantener dots */
}
@media (max-width: 768px) {
    .hero-slider-subtitle { font-size: 30px; }
    .hero-slider-title { font-size: 45px; }
    .hero-slider-btn { padding: 15px 30px; }
    .hero-slider-dots { bottom: 50px; }
}


/* =====================================================
   VARIANTE 3: VIDEO BACKGROUND
   ===================================================== */
.hero-layout-video {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-color: #1a1c29; /* Color de respaldo oscuro */
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* El elemento Video */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover; /* Mágia para que no se deforme */
    z-index: 0;
}

/* Overlay igual al del Slider */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%; 
    background: linear-gradient(180deg, rgba(15, 18, 30, 0.8) 0%, rgba(15, 18, 30, 0) 100%);
    z-index: 1;
}

/* Oscurecimiento general sutil */
.hero-layout-video::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.hero-video-inner {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    transform: translateY(20px); 
}

.hero-video-content {
    max-width: 700px;
    text-align: left;
}

/* Replicamos la elegancia del slider */
.hero-video-subtitle {
    display: block;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 52px;
    font-style: italic;
    color: var(--color-white);
    margin-bottom: 5px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-video-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 85px;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 40px 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-video-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-video-btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.hero-video-btn:hover {
    background-color: var(--color-text-main);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-video-subtitle { font-size: 40px; }
    .hero-video-title { font-size: 60px; }
}
@media (max-width: 768px) {
    .hero-video-subtitle { font-size: 30px; }
    .hero-video-title { font-size: 45px; }
    .hero-video-btn { padding: 15px 30px; }
}

/* =====================================================
   VARIANTE 4: HERO INTERNO (Páginas secundarias)
   ===================================================== */
.hero-layout-interno {
    position: relative;
    width: 100%;
    /* Padding generoso arriba para el header transparente, menos abajo porque es más angosto */
    padding: 220px 0 120px 0; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Degradado Rojo: Oscuro arriba (para el menú), Rojo primario abajo */
.hero-interno-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Ajusta los códigos HEX si tu rojo corporativo es distinto */
    background: linear-gradient(180deg, color-mix(in srgb, var(--color-text-main), 30% transparent) 0%, color-mix(in srgb, var(--color-primary), 15% transparent) 50%);
    z-index: 1;
}

.hero-interno-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px; /* Contenedor más estrecho para mantener los textos centrados y legibles */
    margin: 0 auto;
}

.hero-interno-title {
    font-size: var(--text-title); /* Tamaño gigante para impacto */
    font-weight: 800;
    color: var(--color-white);
    margin: 0 0 15px 0;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-interno-subtitle {
    display: block;
    font-size: var(--text-2xl); /* Subtítulo grande pero ligero */
    font-weight: 400;
    color: var(--color-white);
    margin: 0;
}

/* =====================================================
   RESPONSIVE (Hero Interno)
   ===================================================== */
@media (max-width: 1024px) {
    .hero-interno-inner {
        padding: 0 20px;
    }
    .hero-layout-interno {
        padding: 180px 0 100px 0;
    }
    .hero-interno-title {
        font-size: 56px;
    }
    .hero-interno-subtitle {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .hero-layout-interno {
        height: 100vh;
        padding: 140px 0 80px 0;
    }
    .hero-interno-title {
        font-size: 42px;
    }
    .hero-interno-subtitle {
        font-size: 18px;
    }
}