
/* ==================================================
   SINASSC728 - PAGE BANNER ESTÁNDAR
   Componente reutilizable para páginas internas

   Parámetros desde Laravel:
   height
   image-size
   image-position
   content-y
   breadcrumb-y
================================================== */

/* ==============================================
   1. BANNER PRINCIPAL
============================================== */

.page-title.sinassc-afiliacion-banner,
.page-title.sinassc-news-banner,
.page-title.page-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    height: 500px;
    min-height: 200px;
    box-sizing: border-box;

    padding: 0 !important;

    display: flex;
    align-items: center;

    background-color: #718eff;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Configuración parametrizable del componente */
.page-title.page-banner {
    --page-banner-content-y: 0px;
    --page-banner-breadcrumb-y: 0px;
}

/* Velo institucional translúcido */
.page-title.sinassc-afiliacion-banner::before,
.page-title.sinassc-news-banner::before,
.page-title.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background: linear-gradient(
        105deg,
        rgba(3, 20, 52, 0.48) 0%,
        rgba(5, 32, 78, 0.28) 40%,
        rgba(0, 68, 140, 0.12) 75%,
        rgba(0, 25, 65, 0.08) 100%
    );
}

/* Iluminación cálida y celeste */
.page-title.sinassc-afiliacion-banner::after,
.page-title.sinassc-news-banner::after,
.page-title.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse at 88% 20%,
            rgba(239, 184, 16, 0.18),
            transparent 45%
        ),
        linear-gradient(
            145deg,
            transparent 62%,
            rgba(0, 140, 255, 0.10) 100%
        );
}

/* ==============================================
   2. CONTENEDORES Y ALINEACIÓN
============================================== */

.page-banner .auto-container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.page-banner .content-box,
.page-banner .content-wrapper,
.page-banner .title,
.page-banner .page-banner__content {
    text-align: left !important;
}

.page-banner .content-box {
    width: 100%;
}

/* ==================================================
   DESPLAZAMIENTO HORIZONTAL DEL BLOQUE INSTITUCIONAL
   Controlado desde content-x del componente Laravel
================================================== */

.page-banner .content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;

    width: 100%;

    /* Mueve conjuntamente contenido y breadcrumb */
    transform: translateX(
        var(--page-banner-content-x, 0px)
    ) !important;
}

/* ==============================================
   3. CONTROL INDEPENDIENTE DEL CONTENIDO
============================================== */

.page-banner .page-banner__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 100%;
    margin: 0 !important;
    padding: 0 !important;

    position: relative;

    /* Parámetro content-y */
    transform: translateY(
        var(--page-banner-content-y, 0px)
    );
}

/* ==============================================
   4. ETIQUETA SUPERIOR
============================================== */

.page-banner .page-banner__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 6px 18px 6px 8px;
    margin: 0 0 14px 0 !important;

    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .8px;
    line-height: 1.4;

    color: #fff;
    background: rgba(0, 42, 90, 0.55);
    border: 1px solid rgba(85, 202, 255, 0.75);
    border-radius: 40px;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.page-banner .page-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
    flex-shrink: 0;

    color: #fff;
    background: linear-gradient(
        135deg,
        #0284c7,
        #0057dc
    );

    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 87, 220, 0.4);
}

/* ==============================================
   5. TÍTULO Y DESCRIPCIÓN
============================================== */

.page-banner .page-banner__heading {
    width: 100%;
    padding-left: 20px;
    margin: 0 !important;

    border-left: 4px solid #efb810;
    text-align: left !important;
}

.page-banner h1.page-banner__title {
    margin: 0 0 8px !important;
    padding: 0 !important;

    font-family: 'Poppins', sans-serif;
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1.00 !important;
    letter-spacing: -.6px;

    color: #fff !important;
    text-align: left !important;

    text-shadow:
        0 3px 14px rgba(0, 16, 45, 0.90),
        0 1px 4px rgba(0, 0, 0, 0.85);
}

.page-banner .page-banner__title-accent {
    color: #55caff !important;

    text-shadow:
        0 3px 14px rgba(0, 16, 45, 0.90);
}

.page-banner p.page-banner__subtitle {
    margin: 0 !important;
    padding: 0 !important;

    font-family: 'Poppins', sans-serif;
    font-size: 16.5px !important;
    font-weight: 500;
    line-height: 1.45 !important;

    color: #f1f8ff !important;
    text-align: left !important;

    text-shadow:
        0 2px 10px rgba(0, 16, 45, 0.90),
        0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Línea decorativa */
.page-banner .page-banner__line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.page-banner .page-banner__line::before {
    content: "";
    width: 55px;
    height: 2px;

    background: #0284c7;
    border-radius: 4px;

    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
}

.page-banner .page-banner__line::after {
    content: "";
    width: 125px;
    height: 1px;

    background: rgba(255, 255, 255, 0.85);
}

/* ==============================================
   6. BREADCRUMB INDEPENDIENTE
============================================== */

.page-banner .page-banner__breadcrumb-nav {
    display: block !important;
    align-self: flex-start !important;

    margin: 20px 0 0 0 !important;
    padding: 0 !important;
    text-align: left !important;

    position: relative;

    /* Parámetro breadcrumb-y */
    transform: translateY(
        var(--page-banner-breadcrumb-y, 0px)
    );
}

.page-banner .page-banner__breadcrumb {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    margin: 0 !important;
    padding: 8px 18px !important;

    list-style: none;

    background: rgba(0, 28, 65, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 40px;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.page-banner .page-banner__breadcrumb li {
    display: inline-flex;
    align-items: center;

    margin: 0 !important;
    padding: 0 !important;

    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;

    color: #fff;
}

.page-banner .page-banner__breadcrumb li::before,
.page-banner .page-banner__breadcrumb li::after {
    display: none !important;
    content: none !important;
}

.page-banner .page-banner__breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #fff;
    text-decoration: none;

    transition: color 0.25s ease;
}

.page-banner .page-banner__breadcrumb a:hover {
    color: #55caff;
}

.page-banner .page-banner__breadcrumb .separator {
    color: #70bdfc;
}

.page-banner .page-banner__breadcrumb .current {
    color: #ffffff;
    font-weight: 700;
}

/* ==============================================
   7. RESPONSIVE TABLET
============================================== */

@media (max-width: 991px) {

    .page-banner h1.page-banner__title {
        font-size: 34px !important;
        margin-bottom: 8px !important;
    }

    .page-banner .page-banner__label {
        margin-bottom: 12px !important;
    }

    .page-banner .page-banner__breadcrumb-nav {
        margin-top: 18px !important;
    }
}

/* ==============================================
   8. RESPONSIVE MÓVIL
============================================== */

@media (max-width: 767px) {

    .page-title.page-banner {
        min-height: 315px;
        height: auto !important;
        padding: 40px 0 !important;
    }

    .page-banner .content-wrapper {
        transform: none !important;
    }

    .page-banner .page-banner__content {
        transform: translateY(
            var(--page-banner-content-y, 0px)
        );
    }

    .page-banner .page-banner__label {
        font-size: 11px;
        margin-bottom: 12px !important;
    }

    .page-banner .page-banner__heading {
        padding-left: 16px;
    }

    .page-banner h1.page-banner__title {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-bottom: 8px !important;
    }

    .page-banner p.page-banner__subtitle {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    .page-banner .page-banner__line {
        margin-top: 10px;
    }

    .page-banner .page-banner__breadcrumb-nav {
        margin-top: 16px !important;

        transform: translateY(
            var(--page-banner-breadcrumb-y, 0px)
        );
    }

    .page-banner .page-banner__breadcrumb {
        padding: 8px 14px !important;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .page-banner .background-text .text-1 {
        font-size: 42px !important;
    }

    .page-banner .background-text .text-2 {
        font-size: 38px !important;
    }
}
