/* Ocultar video en móvil por performance */
@media (max-width: 767.98px) {
    .hero-video-bg {
        display: none;
    }
}

/* ============================================
   TIPOGRAFÍA DEL HERO
============================================ */

.hero-title h1,
.hero-title h2 {
    font-family: var(--heading-font-family, var(--bs-font-sans-serif));
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
}

.hero-title h1 {
    font-size: clamp(1.8rem, 5vw, 4rem);
}

.hero-title h2 {
    font-size: clamp(1.5rem, 4vw, 3rem);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    opacity: 0.9;
}

.hero-additional-content {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.5;
    opacity: 0.85;
}

/* ============================================
   CONTENEDORES ESPECÍFICOS
============================================ */

/* Contenido Top - Para breadcrumbs, badges, anuncios */
.hero-top-content {
    font-size: 0.9rem;
}

.hero-top-content .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--bs-border-radius);
    padding: 0.5rem 1rem;
    margin-bottom: 0;
}

.hero-top-content .breadcrumb-item a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
}

.hero-top-content .breadcrumb-item a:hover {
    opacity: 1;
    text-decoration: underline;
}

.hero-top-content .breadcrumb-item.active {
    opacity: 0.7;
}

.hero-bottom-main {
    /* Estilos específicos para logos de clientes, stats, etc. */
}

/* ============================================
   SCROLL INDICATOR - Animación específica
============================================ */

.hero-scroll-indicator {
    /* Ya no necesita position absolute, está en bottom content */
}

.scroll-arrow {
    color: inherit;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: inline-block;
}

.scroll-arrow:hover {
    transform: translateY(-2px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* ============================================
   BOTONES HERO - Mejoras específicas
============================================ */

.hero-buttons .btn {
    transition: all 0.3s ease;
    border-width: 2px;
    font-family: var(--bs-font-custom-2);
     font-size:1.45rem;
    text-decoration:none;
    color:#FFF!important;
    text-transform:uppercase;
    border-color:var(--bs-primary)!important;
    background:var(--bs-secondary)!important;
      padding: 5px 20px;
}

@media (max-width:768px){
.hero-buttons .btn {
font-size:1.25rem;
}
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
  text-decoration:none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   PARALLAX - Solo desktop
============================================ */

@media (min-width: 768px) {
    .hero-module[data-parallax="true"] {
        background-attachment: fixed;
    }
}

/* Deshabilitar parallax en móvil y tablets */
@media (max-width: 1024px) {
    .hero-module[data-parallax="true"] {
        background-attachment: scroll !important;
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
============================================ */

@media (max-width: 767.98px) {
    .hero-module {
        min-height: 60vh !important;
        text-align: center !important;
    }

    .hero-module.vh-100 {
        min-height: 80vh !important; /* Más práctico en móvil */
    }

    /* Ajustar distribución en móvil */
    .hero-module > .container,
    .hero-module > .container-fluid {
        justify-content: center !important;
    }

    .hero-top-content {
        padding-bottom: 0.5rem;
    }

    .hero-bottom-content {
        padding-top: 0.5rem;
    }

    .hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-scroll-indicator {
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-subtitle {
        font-size: 1rem !important;
    }

    .hero-additional-content {
        font-size: 0.9rem !important;
    }

    .hero-buttons .btn {
        padding: 0.75rem 1.5rem;
    }
}

/* ============================================
   UTILIDADES ESPECÍFICAS PARA CONTENEDORES
============================================ */

/* Para logos de clientes en bottom */
.hero-bottom-content .client-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.hero-bottom-content .client-logos img {
    max-height: 75px;
    width: auto;

    transition: opacity 0.3s ease;
}
@media(max-width: 1024px){
    .hero-bottom-content .client-logos {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .hero-bottom-content .client-logos img {
        max-height: 60px;
    }
}


.hero-bottom-content .client-logos img:hover {
    opacity: 1;
}

/* Para estadísticas en bottom */
.hero-bottom-content .stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-bottom-content .stat-item {
    text-align: center;
    min-width: 100px;
}

.hero-bottom-content .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.hero-bottom-content .stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Para badges en top */
.hero-top-content .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   ACCESSIBILITY
============================================ */

.hero-module .btn:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.scroll-arrow:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   PRINT STYLES
============================================ */

@media print {
    .hero-module {
        min-height: auto !important;
        background: none !important;
        color: #000 !important;
    }

    .hero-video-bg,
    .hero-scroll-indicator {
        display: none !important;
    }

    .hero-buttons .btn {
        display: none !important;
    }

    /* Simplificar layout para impresión */
    .hero-module > .container,
    .hero-module > .container-fluid {
        justify-content: flex-start !important;
    }

    .hero-top-content,
    .hero-bottom-content {
        padding: 0 !important;
    }
}
============================================
HERO MODULE CSS - Bootstrap-first approach
3 contenedores: Top, Middle, Bottom
============================================
*/

/* ============================================
   HERO BASE - Hereda colores del tema
============================================ */

.hero-module {
    position: relative;
    overflow: hidden;
    /* min-height viene de clases Bootstrap vh-* o custom */
}

/* Altura personalizada viewport */
.vh-50 {
    min-height: 50vh !important;
}

.vh-75 {
    min-height: 75vh !important;
}

.vh-110 {
    min-height: 110vh !important;
}

.vh-100 {
    min-height: 100vh !important;
}

/* ============================================
   DISTRIBUCIÓN DE CONTENEDORES
============================================ */

/* Contenedor principal del hero - Flexbox vertical */
.hero-module > .container,
.hero-module > .container-fluid {
    min-height: inherit; /* Hereda la altura del hero */
}

/* Contenedor top - Solo el espacio necesario */
.hero-top-content {
    flex-shrink: 0;
    padding-bottom: 1rem;
}

/* Contenedor middle - Ocupa el espacio central disponible */
.hero-middle-content {
    /* flex-fill ya aplicado en HTML */
}

/* Contenedor bottom - Solo el espacio necesario */
.hero-bottom-content {
    flex-shrink: 0;
    padding-top: 1rem;
}

/* ============================================
   OVERLAYS - Específicos del módulo
============================================ */

.overlay-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.overlay-medium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.overlay-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.overlay-heavy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

/* Contenido sobre overlay */
.hero-module .container,
.hero-module .container-fluid {
    position: relative;
    z-index: 2;
}

/* ============================================
   VIDEO BACKGROUND - Específico del módulo
============================================ */

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none; /* Evitar interacción con video de fondo */
}

/*/*
============================================
HERO MODULE CSS - Bootstrap-first approach
Solo estilos específicos que Bootstrap NO puede hacer
============================================
*/

/* ============================================
   HERO BASE - Hereda colores del tema
============================================ */

.hero-module {
    position: relative;
    overflow: hidden;
    /* min-height viene de clases Bootstrap vh-* o custom */
}

/* Altura personalizada viewport */
.vh-50 {
    min-height: 50vh !important;
}

.vh-75 {
    min-height: 75vh !important;
}

.vh-110 {
    min-height: 110vh !important;
}

.vh-100 {
    min-height: 100vh !important;
}

/* ============================================
   OVERLAYS - Específicos del módulo
============================================ */

.overlay-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.overlay-medium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.overlay-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.overlay-heavy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

/* Contenido sobre overlay */
.hero-module .container {
    position: relative;
    z-index: 2;
}

/* ============================================
   VIDEO BACKGROUND - Específico del módulo
============================================ */

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none; /* Evitar interacción con video de fondo */
}

/* Ocultar video en móvil por performance */
@media (max-width: 767.98px) {
    .hero-video-bg {
        display: none;
    }
}

/* ============================================
   TIPOGRAFÍA DEL HERO
============================================ */

.hero-title h1,
.hero-title h2 {
    font-family: var(--heading-font-family, var(--bs-font-sans-serif));
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
}

.hero-title h1 {
    font-size: clamp(1.8rem, 5vw, 4rem);
}

.hero-title h2 {
    font-size: clamp(1.5rem, 4vw, 3rem);
}


@media(max-width: 1600px){
    .hero-title h1 {
      font-size: clamp(1.75rem, 5vw, 3.2rem);
    }
    .hero-title h2 {
      font-size: clamp(1.4rem, 4vw, 2.5rem);
    }
  }

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.25rem);
    line-height: 1.6;
    opacity: 0.9;
}

/* ============================================
   SCROLL INDICATOR - Animación específica
============================================ */

.hero-scroll-indicator {
    z-index: 3;
}

.scroll-arrow {
    color: inherit;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.scroll-arrow:hover {
    transform: translateY(-2px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* ============================================
   BREADCRUMBS HERO - Override Bootstrap
============================================ */

.hero-breadcrumb .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--bs-border-radius);
    padding: 0.75rem 1rem;
}

.hero-breadcrumb .breadcrumb-item a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
}

.hero-breadcrumb .breadcrumb-item a:hover {
    opacity: 1;
    text-decoration: underline;
}

.hero-breadcrumb .breadcrumb-item.active {
    opacity: 0.7;
}

/* ============================================
   BOTONES HERO - Mejoras específicas
============================================ */

.hero-buttons .btn {
    transition: all 0.3s ease;
    border-width: 2px;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   PARALLAX - Solo desktop
============================================ */

@media (min-width: 768px) {
    .hero-module[data-parallax="true"] {
        background-attachment: fixed;
    }
}

/* Deshabilitar parallax en móvil y tablets */
@media (max-width: 1024px) {
    .hero-module[data-parallax="true"] {
        background-attachment: scroll !important;
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
============================================ */

@media (max-width: 767.98px) {
    .hero-module {
        /* min-height: 60vh !important; */
        /* text-align: center !important; */
    }

    .hero-module.vh-100 {
        min-height: 80vh !important; /* Más práctico en móvil */
    }

    .hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 200px;
    }

    .hero-scroll-indicator {
        display: none; /* Ocultar en móvil */
    }

    .hero-bottom-content .client-logos {
        gap: 0.2rem;
        justify-content: space-around;
    }

    .hero-bottom-content .client-logos img {
        max-height: 55px;
        max-width: 128px;
    }
}

@media (max-width: 575.98px) {
    .hero-subtitle {
        font-size: 1rem !important;
    }

    .hero-buttons .btn {
        padding: 0.75rem 1.5rem;
    }
}

/* ============================================
   ACCESSIBILITY
============================================ */

.hero-module .btn:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.scroll-arrow:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   PRINT STYLES
============================================ */

@media print {
    .hero-module {
        min-height: auto !important;
        background: none !important;
        color: #000 !important;
    }

    .hero-video-bg,
    .hero-scroll-indicator {
        display: none !important;
    }

    .hero-buttons .btn {
        display: none !important;
    }
}