/* ==========================================================================
   HERO UNIVERSAL - LUMINOSO (Optimizado)
   ========================================================================== */

.hi-hero {
    position: relative !important;
    background-color: #f4f4f5 !important; /* Base clara si la foto tarda en cargar */
    height: 75vh !important;
    min-height: 480px !important;
    margin: 30px auto 60px auto !important;
    max-width: 1200px !important;
    border-radius: 8px !important;
    border: 1px solid #e4e4e7 !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

/* Imagen de fondo: 
   - Si quieres que llene todo el espacio sin espacios en blanco: usa 'cover'
   - Si quieres que SE VEA TODA la foto completa sin recortes: cambia a 'contain' y ajusta el background-color */
.hi-hero img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Cambiar a 'contain' si necesitas ver la imagen íntegra */
    object-position: center !important;
    display: block !important;
    filter: none !important;
    opacity: 1 !important;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.hi-hero:hover img {
    transform: scale(1.02) !important;
}

/* OVERLAY MÍNIMO FOCALIZADO (Degradado lateral ultra sutil) */
.hi-hero-overlay,
.hi-hero .hi-hero-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.50) 0%,     /* Contraste suave solo tras el texto */
        rgba(0, 0, 0, 0.20) 30%,     /* Transición rápida */
        rgba(0, 0, 0, 0.02) 55%,     /* Velo prácticamente imperceptible */
        rgba(0, 0, 0, 0.0) 75%       /* Imagen 100% limpia, brillante y libre */
    ) !important;
    z-index: 1 !important;
    pointer-events: none !important; /* Evita que bloquee clics */
}

/* Contenido tipográfico nítido */
.hi-hero-content {
    position: absolute !important;
    top: 50% !important;
    left: 60px !important;
    transform: translateY(-50%) !important;
    max-width: 540px !important;
    color: #ffffff !important;
    z-index: 2 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Etiqueta / Marca superior */
.hi-hero-brand {
    display: inline-block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #d4af37 !important; /* Dorado corporativo unificado */
    margin-bottom: 12px !important;
}

/* Título principal con sombra sutil para legibilidad */
.hi-hero-content h1 {
    font-size: 44px !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    margin-bottom: 16px !important;
    letter-spacing: -0.5px !important;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

/* Descripción */
.hi-hero-desc {
    font-size: 17px !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4) !important;
}

/* Metadatos */
.hi-hero-meta {
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 28px !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Botón estructurado */
.hi-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #d4af37 !important; /* Dorado corporativo unificado */
    color: #ffffff !important;
    padding: 14px 30px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

.hi-btn::after {
    content: "→" !important;
    transition: transform 0.2s ease !important;
}

.hi-btn:hover {
    background: #b89230 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3) !important;
}

.hi-btn:hover::after {
    transform: translateX(4px) !important;
}

/* Nota CTA inferior */
.hi-cta-note {
    font-size: 12px !important;
    margin-top: 12px !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

/* RESPONSIVE (MÓVILES) */
@media (max-width: 768px) {
    .hi-hero {
        height: auto !important;
        min-height: 500px !important;
        margin: 20px 15px 40px 15px !important;
        border-radius: 6px !important;
    }

    .hi-hero-overlay,
    .hi-hero .hi-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.10) 0%,
            rgba(0, 0, 0, 0.55) 45%,
            rgba(0, 0, 0, 0.85) 100%
        ) !important;
    }

    .hi-hero-content {
        position: absolute !important;
        top: auto !important;
        bottom: 0 !important;
        transform: none !important;
        left: 20px !important;
        right: 20px !important;
        padding-bottom: 30px !important;
        max-width: 100% !important;
    }

    .hi-hero-content h1 {
        font-size: 28px !important;
        line-height: 1.18 !important;
    }

    .hi-hero-desc {
        font-size: 15px !important;
    }

    .hi-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}