/**
 * Estilos adaptativos: exf- Hero del Curso
 * Recreación fiel de la estética Immersive Banner / Pill Hero
 */

.exf-curso-cabecera-block {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: #ffffff;
    box-sizing: border-box;
    text-align: center;
    font-family: inherit;
    transition: all 0.3s ease;

    /* CENTRADO VERTICAL Y HORIZONTAL COMPLETO DEL CONTENEDOR */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Modificador Ancho Pantalla Completa (Full Width Screen) */
.exf-curso-cabecera-block.is-full-width-screen {
    width: 100vw !important;
    position: relative;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw !important;
}

/* Modificador Alto Pantalla Completa (Full Screen Height) */
.exf-curso-cabecera-block.is-full-screen-height {
    min-height: 100vh;
}

/* Overlay azul noche inmersivo para máxima legibilidad */
.exf-curso-cabecera-block.has-bg-image .exf-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
}

.exf-cabecera-content-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    width: 100%;
    height: 100%;
    margin: auto;
    box-sizing: border-box;
    padding: 0 20px;
}

/* 1. BANNER SUPERIOR RECTANGULAR CON BORDE TRANSLÚCIDO */
.exf-cabecera-top-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.82em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    max-width: 95%;
    box-sizing: border-box;
    line-height: 1.4;
}

/* 2. TÍTULO PRINCIPAL GRANDE Y POTENTE EN MAYÚSCULAS */
.exf-cabecera-main-title {
    margin: 4px auto;
    font-size: 2.5em;
    font-weight: 900;
    line-height: 1.15;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
    max-width: 100%; /* Ajuste a 100% para evitar desbordes */
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}
.exf-curso-title {
    margin: 4px auto;
    font-size: 2.5em;
    font-weight: 900;
    line-height: 1.15;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
    max-width: 100%;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* 3. MARCO INTERMEDIO DE ACREDITACIÓN / CERTIFICADO */
.exf-cabecera-acred-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.88em;
    font-weight: 600;
    margin: 2px auto;
}

.exf-cabecera-acred-box .dashicons {
    font-size: 1.15em;
    width: 1.15em;
    height: 1.15em;
    line-height: 1.15em;
    color: #ffffff;
}

/* 4. FILA DE PÍLDORAS OSCURAS INFERIORES */
.exf-cabecera-pills-row {
    display: block;
    text-align: center;
    margin-top: 8px;
    line-height: 2.4;
    max-width: 1050px;
    /* Anular override del tema (breadcrumb-area) */
    width: auto !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
    flex: unset !important;
    align-items: unset !important;
}

.exf-cabecera-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.84em;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
    margin: 3px;
    /* Anular override del tema (breadcrumb-area) */
    width: auto !important;
    max-width: none !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.exf-cabecera-pill:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.exf-cabecera-pill .dashicons {
    font-size: 1.1em;
    width: 1.1em;
    height: 1.1em;
    line-height: 1.1em;
    color: #ffffff;
}

/* Píldora de precio/gratuito: solo borde verde destacado */
.exf-pill-precio {
    border: 2px solid #7ed957 !important;
}

/* 📱 RESPONSIVE Y PANTALLAS PEQUEÑAS */
@media (max-width: 768px) {
    .exf-curso-cabecera-block {
        min-height: 320px;
    }

    .exf-hero-content-inner {
        padding: 30px 16px;
        gap: 14px;
    }

    .exf-hero-main-title {
        font-size: 1.75em;
    }

    .exf-hero-top-banner {
        font-size: 0.75em;
        padding: 6px 14px;
    }

    .exf-hero-acred-box {
        font-size: 0.8em;
    }

    .exf-hero-pill {
        font-size: 0.78em;
        padding: 6px 12px;
    }

    /* Píldoras móvil: inline-flow natural, centradas */
    .exf-cabecera-pills-row {
        line-height: 2.2;
    }

    .exf-cabecera-pill {
        padding: 6px 11px !important;
        font-size: 0.90em !important;
        margin: 2px !important;
    }
}


