/* Hero Sindicato Banmédica — estilos encapsulados bajo .hsbm-hero
 * Especificidad reforzada para vencer estilos de Divi.
 * El color corporativo se inyecta inline como --hsbm-brand en el propio <section>.
 */
.hsbm-hero {
    position: relative;
    width: 100%;
    min-height: 540px;
    height: 70vh;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

.hsbm-hero .hsbm-bg,
.hsbm-hero .hsbm-overlay,
.hsbm-hero .hsbm-slide {
    position: absolute;
    inset: 0;
}

.hsbm-hero .hsbm-bg { z-index: 0; }

.hsbm-hero .hsbm-slide {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1500ms ease-in-out;
    will-change: opacity;
}

.hsbm-hero .hsbm-slide.is-active { opacity: 1; }

.hsbm-hero .hsbm-overlay {
    z-index: 1;
    background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.15) 100%);
}

/* Contenedor de contenido alineado a la IZQUIERDA */
.hsbm-hero .hsbm-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0;
    padding: 80px 24px 80px 10%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 540px;
    box-sizing: border-box;
}

.hsbm-hero .hsbm-title {
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    line-height: 1.1;
    margin: 0 0 18px;
    font-weight: 800;
    color: #fff;
    text-align: left;
    text-shadow: 0 2px 18px rgba(0,0,0,0.55);
    max-width: 720px;
}

.hsbm-hero .hsbm-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    max-width: 620px;
    margin: 0 0 32px;
    color: #f3f4f6;
    line-height: 1.55;
    text-align: left;
}

/* Botones en fila, partiendo desde la izquierda */
.hsbm-hero .hsbm-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    margin: 0;
}

.hsbm-hero .hsbm-btn,
.hsbm-hero a.hsbm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    line-height: 1.2;
}

/* --- Botón primario (Intranet): rojo corporativo ---
 * Doble selector + !important para ganar a Divi y a otros temas.
 */
.hsbm-hero a.hsbm-btn.hsbm-btn--primary,
.hsbm-hero a.hsbm-btn.hsbm-btn--primary:link,
.hsbm-hero a.hsbm-btn.hsbm-btn--primary:visited {
    background-color: var(--hsbm-brand, #E30613) !important;
    background-image: none !important;
    color: #fff !important;
    border-color: var(--hsbm-brand, #E30613) !important;
}

.hsbm-hero a.hsbm-btn.hsbm-btn--primary:hover,
.hsbm-hero a.hsbm-btn.hsbm-btn--primary:focus {
    transform: translateY(-2px);
    background-color: color-mix(in srgb, var(--hsbm-brand, #E30613) 85%, #000) !important;
    color: #fff !important;
}

/* --- Botón secundario (Noticias): ghost transparente --- */
.hsbm-hero a.hsbm-btn.hsbm-btn--ghost,
.hsbm-hero a.hsbm-btn.hsbm-btn--ghost:link,
.hsbm-hero a.hsbm-btn.hsbm-btn--ghost:visited {
    background-color: rgba(255,255,255,0.08) !important;
    background-image: none !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(6px);
}

.hsbm-hero a.hsbm-btn.hsbm-btn--ghost:hover,
.hsbm-hero a.hsbm-btn.hsbm-btn--ghost:focus {
    background-color: #fff !important;
    color: #111 !important;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
    .hsbm-hero .hsbm-content { padding-left: 6%; padding-right: 6%; }
}
@media (max-width: 640px) {
    .hsbm-hero { min-height: 480px; height: auto; }
    .hsbm-hero .hsbm-content { padding: 56px 18px; min-height: 480px; }
    .hsbm-hero .hsbm-actions { flex-direction: column; align-items: stretch; }
    .hsbm-hero a.hsbm-btn { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hsbm-hero .hsbm-slide { transition: none; }
}
