/*
==========================================================
 MEBE - Hoja de estilos principal
 Proyecto: Web Pública MEBE
 Tecnología: ASP.NET Core Razor Pages (.NET 10)

 Organización del archivo:
  1. Variables globales
  2. Estilos base
  3. Estructura general
  4. Cabecera y navegación
  5. Hero genérico
  6. Contenido corporativo
  7. Bloques imagen + texto
  8. Mapa y datos de contacto
  9. Formulario de contacto
 10. Documentación e informes
 11. Páginas legales y agradecimiento
 12. Pie de página
 13. Responsive
 14. Personalizaciones por página
==========================================================
*/

/* ==========================================================
   VARIABLES GLOBALES
   Colores y valores reutilizables en toda la web
   ========================================================== */
:root {
    --blue: #39a0d8;
    --blue-dark: #2f8fc4;
    --orange: #f08c00;
    --green: #12c5a0;
    --bg: #f1f1f1;
    --card: #ffffff;
    --text: #222;
    --muted: #6f6f6f;
    --line: #d9d9d9;
    --shadow: 0 10px 30px rgba(0,0,0,.06);
}
/* ==========================================================
   ESTILOS BASE
   Reset básico y configuración global de la aplicación
   ========================================================== */
* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text)
}

body {
    font-family: "Montserrat",Arial,sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
}

    body.nav-open {
        overflow: hidden
    }

a {
    color: var(--blue-dark);
    text-decoration: none
}

    a:hover {
        text-decoration: underline
    }

img {
    max-width: 100%;
    display: block
}
/* ==========================================================
   ESTRUCTURA GENERAL
   Contenedores reutilizables y estructura común
   ========================================================== */
.container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto
}
/* ==========================================================
   CABECERA Y NAVEGACIÓN
   Barra superior, área privada, logo y menú principal
   ========================================================== */
.top-note {
    background: #fff;
    color: #3548b8;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 9px 16px
}

    .top-note i {
        margin-left: 6px
    }

.top-bar {
    background: var(--blue);
    color: #fff;
    font-size: 15px
}

    .top-bar .container, .header-inner, .footer-main, .footer-bottom .container {
        display: flex;
        align-items: center;
        justify-content: space-between
    }

    .top-bar .container {
        padding: 8px 0
    }

.private-area {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px
}

    .private-area i {
        font-size: 13px
    }

header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 1px 0 rgba(0,0,0,.05)
}

.header-inner {
    padding: 16px 0 14px;
    gap: 20px
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
}

    .logo span {
        display: block
    }

    .logo .be {
        background: var(--blue);
        color: #fff;
        padding: 3px 4px;
        margin-top: 2px
    }

.site-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0
}

.site-nav a {
    color: #666;
    font-weight: 500;
    font-size: 15px
}

.hamburger {
    display: none;
    border: 1px solid #d4d4d4;
    background: #fff;
    color: #4e4e4e;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px
}
/* ==========================================================
   HERO GENÉRICO
   Cabecera visual reutilizada en las distintas páginas
   ========================================================== */
.hero {
    position: relative; /* Referencia para pseudo-elementos posicionados */
    height: 250px;
    border-bottom: none;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: visible;
}

    .hero::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 100vw;
        height: 8px;
        background: var(--blue);
        z-index: 2;
    }

    .hero.orange::after {
        background: var(--orange);
    }

    .hero.green::after {
        background: var(--green);
    }

.hero-overlay {
    height: 250px;
    background: linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.08) 38%, rgba(255,255,255,.18) 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    height: 250px;
    padding: 0 24px;
}

.hero-copy {
    margin-left: 42%;
    max-width: 430px;
    color: #fff
}

    .hero-copy.blue-title h1 {
        color: var(--card)
    }

    .hero-copy h1 {
        margin: 10px 0 0;
        font-size: 32px;
        line-height: 1.2;
        font-weight: 300;
        text-transform: uppercase
    }

.mini-logo {
    display: inline-block;
    font-weight: 700;
    letter-spacing: .06em
}

.logo-hero {
    height: 35px;
    width: auto;
}

/* ==========================================================
   CONTENIDO CORPORATIVO
   Secciones, títulos, textos introductorios y separadores
   ========================================================== */
.section {
    padding: 54px 0
}

    .section.gray-section {
        background: #ececec;
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd
    }

.intro {
    max-width: 760px;
    text-align: center
}

    .intro h2, .section-title {
        font-family: "Playfair Display",Georgia,serif;
        font-size: 34px;
        line-height: 1.2;
        margin: 0 0 14px
    }

    .intro p, .history-copy {
        font-size: 15px;
        color: #333
    }

.title-rule {
    height: 2px;
    background: var(--blue);
    width: 380px;
    max-width: 100%;
    margin: 0 auto 10px
}

    .title-rule.orange {
        background: var(--orange)
    }

    .title-rule.green {
        background: var(--green)
    }

.chev {
    font-size: 28px;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 18px
}

.history-copy {
    max-width: 860px;
    margin: 0 auto 22px
}
/* ==========================================================
   BLOQUES IMAGEN + TEXTO
   Secciones corporativas de dos columnas
   ========================================================== */
.split-band {
    background: linear-gradient(to bottom, transparent 0, transparent 18%, var(--blue) 18%, var(--blue) 100%);
    padding: 0 0 42px
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0
}

    .split.reverse .image-col {
        order: 1
    }

    .split.reverse .text-col {
        order: 2
    }

.image-col img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover
}

.text-col {
    background: var(--blue);
    color: #fff;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

    .text-col h3, .info-list h3 {
        margin: 0 0 16px;
        font-size: 28px;
        font-weight: 300;
        line-height: 1.2;
        text-transform: uppercase
    }

    .text-col p {
        margin: 0;
        color: #eef8fd
    }
/* ==========================================================
   MAPA Y DATOS DE CONTACTO
   Bloque reutilizable "Dónde estamos"
   ========================================================== */
.map-info {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 36px;
    align-items: center;
    margin-top: 28px
}

.map-box iframe, .map-box img {
    width: 100%;
    height: 320px;
    border: 0;
    box-shadow: var(--shadow)
}

.info-list {
    padding: 8px 0
}

    .info-list p {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin: 0 0 12px;
        font-size: 15px
    }

    .info-list i {
        color: var(--blue);
        margin-top: 4px;
        width: 16px;
        text-align: center
    }
/* ==========================================================
   FORMULARIO DE CONTACTO
   Estructura, campos, adjuntos, botones y consentimiento
   ========================================================== */
.two-col {
    display: grid;
    grid-template-columns: minmax(300px, 430px) 1fr;
    gap: 42px;
    align-items: start
}

.contact-card {
    background: var(--card);
    padding: 18px;
    border-radius: 8px;
    box-shadow: var(--shadow)
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

    .form-grid .full, .form-grid .dropzone-wrap, .form-grid textarea {
        grid-column: 1/-1
    }

.field, select, textarea {
    width: 100%;
    border: 1px solid #e0e0e0;
    background: #f7f7f7;
    padding: 12px 14px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    color: #333
}

textarea {
    min-height: 150px;
    resize: vertical
}

.dropzone-wrap {
    position: relative
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.dropzone {
    border: 1px dashed #cfcfcf;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 18px 16px;
    text-align: center;
    color: #6a6a6a;
    transition: .2s ease;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px
}

    .dropzone i {
        font-size: 18px;
        color: var(--blue)
    }

    .dropzone.dragover {
        border-color: var(--blue);
        background: #edf7fd
    }

.file-list {
    margin-top: 8px;
    font-size: 13px;
    color: #4f4f4f
}

.legal {
    font-size: 11px;
    color: #747474;
    margin: 14px 0
}

.checkline {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 16px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: #fff;
    border: 0;
    min-width: 120px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease
}

    .btn:hover {
        text-decoration: none;
        background: var(--blue-dark)
    }

    .btn i {
        margin-left: 8px
    }

.btn-outline {
    background: #fff;
    color: var(--blue);
    border: 1px solid var(--blue)
}
/* ==========================================================
   DOCUMENTACIÓN E INFORMES
   Tabs y listado de documentos PDF
   ========================================================== */
.docs-wrap {
    max-width: 760px;
    margin: 0 auto
}

.tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid #dfdfdf;
    background: #fff
}

.tab-button {
    appearance: none;
    border: 0;
    border-right: 1px solid #dfdfdf;
    padding: 24px 18px;
    cursor: pointer;
    background: #fff;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    color: #222;
    min-height: 118px
}

    .tab-button:last-child {
        border-right: 0
    }

    .tab-button.active {
        background: var(--blue);
        color: #fff
    }

.tab-panel {
    display: none;
    background: #fff;
    border: 1px solid #dfdfdf;
    border-top: 0;
    padding: 16px 16px 8px
}

    .tab-panel.active {
        display: block
    }

    .tab-panel h4 {
        margin: 0 0 14px;
        font-size: 13px;
        text-transform: uppercase;
        color: #7d7d7d;
        letter-spacing: .04em
    }

.year-list {
    width: 100%;
    border-collapse: collapse
}

    .year-list th, .year-list td {
        padding: 14px 16px;
        text-align: left;
        font-size: 14px;
        border-top: 1px solid #ececec
    }

    .year-list thead th {
        color: #7d7d7d;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .04em
    }

    .year-list tbody tr:nth-child(even) {
        background: #f6f6f6
    }

.doc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #222;
    font-weight: 500
}

    .doc-link:hover {
        color: var(--blue-dark);
        text-decoration: none
    }

    .doc-link i {
        color: #555
    }
/* ==========================================================
   PÁGINAS LEGALES Y AGRADECIMIENTO
   Tarjetas de textos legales y página de confirmación
   ========================================================== */
.thankyou-card, .legal-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 46px 40px;
    max-width: 820px;
    margin: 0 auto
}

.thankyou-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #e8f6fd;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin: 0 auto 18px
}

.thankyou-card h2, .legal-card h2 {
    font-family: "Playfair Display",Georgia,serif;
    font-size: 38px;
    text-align: center;
    margin: 0 0 14px
}

.thankyou-card p {
    max-width: 620px;
    margin: 0 auto 14px;
    text-align: center
}

.legal-card h3 {
    margin-top: 28px;
    font-size: 22px;
    font-weight: 600
}

.legal-card p, .legal-card li {
    font-size: 15px;
    color: #333
}
/* ==========================================================
   PIE DE PÁGINA
   Footer principal, contacto y enlaces legales
   ========================================================== */
footer {
    background: #fff;
    border-top: 1px solid #ddd
}

.footer-main {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 28px;
    gap: 30px
}

.footer-links, .footer-legal-links {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.footer-contact {
    font-size: 14px;
    color: #3f8fc3
}

.footer-bottom {
    background: var(--blue);
    color: #fff;
    font-size: 13px
}

    .footer-bottom .container {
        padding: 12px 0;
        gap: 20px
    }

    .footer-bottom a {
        color: #fff
    }

.legal-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center
}

.page-banner-link {
    font-weight: 600
}
/* ==========================================================
   RESPONSIVE - TABLET
   Ajustes para pantallas menores o iguales a 900px
   ========================================================== */
@media (max-width: 900px) {
    .hero-content {
        padding: 0 12px
    }

    .hero-copy {
        margin-left: 0;
        max-width: 420px
    }

    .two-col, .map-info, .split {
        grid-template-columns: 1fr
    }

    .split-band {
        background: linear-gradient(to bottom, transparent 0, transparent 12%, var(--blue) 12%, var(--blue) 100%)
    }

    .split.reverse .image-col, .split.reverse .text-col {
        order: initial
    }

    .tabs {
        grid-template-columns: 1fr
    }

    .tab-button {
        border-right: 0;
        border-bottom: 1px solid #dfdfdf;
        min-height: initial
    }

    .site-nav {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #ececec;
        border-bottom: 1px solid #ececec;
        box-shadow: 0 10px 30px rgba(0,0,0,.08);
        display: none;
        padding: 14px 20px
    }

        .site-nav.open {
            display: block
        }

        .site-nav ul {
            flex-direction: column;
            gap: 0
        }

        .site-nav li {
            border-bottom: 1px solid #f0f0f0
        }

            .site-nav li:last-child {
                border-bottom: 0
            }

        .site-nav a {
            display: block;
            padding: 12px 0
        }

    .hamburger {
        display: inline-flex
    }
}
/* ==========================================================
   RESPONSIVE - MÓVIL
   Ajustes para pantallas menores o iguales a 680px
   ========================================================== */
@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, 1100px)
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .hero, .hero-overlay, .hero-content {
        min-height: 300px;
        height: 300px
    }

    .hero-copy h1 {
        font-size: 28px
    }

    .intro h2, .section-title {
        font-size: 28px
    }

    .text-col {
        padding: 32px 24px
    }

    .footer-main, .footer-bottom .container {
        flex-direction: column;
        align-items: flex-start
    }

    .footer-bottom .container {
        padding: 14px 0
    }
}

/* ==========================================================
   VALIDACIONES DEL FORMULARIO
   Mensajes de error y validaciones cliente/servidor
   ========================================================== */
.form-field {
    display: flex;
    flex-direction: column;
}

    .form-field.full {
        grid-column: 1 / -1;
    }

.field-error,
.field-validation-error {
    display: block;
    width: 100%;
    margin-top: 6px;
    color: #c0392b;
    font-size: .85rem;
}

.field-validation-valid {
    display: none;
}

.privacy-error {
    display: none;
    width: 100%;
    margin-top: 6px;
    color: #c0392b;
    font-size: .85rem;
}

    .privacy-error.is-visible {
        display: block;
    }

/* ==========================================================
   PERSONALIZACIONES POR PÁGINA
   Ajustes específicos que no afectan al hero genérico
   ========================================================== */

/* ==========================================================
   HERO - NUESTRA HISTORIA
   Ajustes específicos de la página Quiénes Somos
   ========================================================== */
.hero-historia {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    height: 340px;
    overflow: visible;
}

    .hero-historia .hero-overlay,
    .hero-historia .hero-content {
        height: 340px;
    }

    .hero-historia::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 100vw;
        height: 8px;
        background: var(--orange);
        z-index: 2;
    }

/* ==========================================================
   HERO - CONTACTO
   Ajustes específicos de la página Contacta con Nosotros
   ========================================================== */
.hero-contacto {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    height: 320px;
    overflow: visible;
}

    .hero-contacto .hero-overlay,
    .hero-contacto .hero-content {
        height: 320px;
    }

    .hero-contacto::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 100vw;
        height: 8px;
        background: var(--green);
        z-index: 2;
    }

    .hero-contacto .hero-copy.blue-title {
        margin-left: 48%;
        max-width: 360px;
    }

        .hero-contacto .hero-copy.blue-title h1 {
            color: var(--blue) !important;
        }

/* ==========================================================
   INFORMACIÓN LATERAL DE CONTACTO
   Texto descriptivo junto al formulario de contacto
   ========================================================== */
.contact-info-side {
    padding-top: 100px;
}

/* ==========================================================
   HERO - INFORMES
   Ajustes específicos de la página Previsión Social de Seguros
   ========================================================== */
.hero-informes {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    height: 260px;
    overflow: visible;
    background-position: center center;
}

    .hero-informes .hero-overlay,
    .hero-informes .hero-content {
        height: 260px;
    }

    .hero-informes .hero-copy {
        margin-left: 12%;
        max-width: 360px;
    }

        .hero-informes .hero-copy h1 {
            color: var(--blue) !important;
        }

    .hero-informes::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 100vw;
        height: 8px;
        background: #777;
        z-index: 2;
    }


/******************************************************************************************/
/**********************************COLORES MENSAJE TOAST***********************************/
/******************************************************************************************/
.toast-error {
    background-color: #bd2918 !important;
}

.toast-success {
    background-color: #8bb31d !important;
}

.toast-warning {
    background-color: lightslategrey !important;
}

#toast-container.toast-bottom-center > div, #toast-container.toast-top-center > div {
    width: 400px !important;
    font-size: 22px !important;
}


/******************************************************************************************/
/**********************************TABLA POLITICA DE PRIVACIDAD****************************/
/******************************************************************************************/

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0 42px;
    font-size: 15px;
}

.legal-table th,
.legal-table td {
    border: 1px solid #dcdcdc;
    padding: 16px 18px;
    vertical-align: top;
}

.legal-table th {
    width: 260px;
    background: #f7f7f7;
    font-weight: 700;
    text-align: left;
}

.legal-table ul {
    margin-bottom: 0;
}


/******************************************************************************************/
/**********************************ENLACE CABECERA CONTACTA********************************/
/******************************************************************************************/
#contacto {
    scroll-margin-top: 110px;
}

.uwy.userway_p1 .userway_buttons_wrapper {
    top: 180px !important;
    left: calc(100vw - 13px) !important;
}

/* Padding general */
.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: .25rem !important;
}

.p-2 {
    padding: .5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}

/* Padding Top */
.pt-0 {
    padding-top: 0 !important;
}

.pt-1 {
    padding-top: .25rem !important;
}

.pt-2 {
    padding-top: .5rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

.pt-4 {
    padding-top: 1.5rem !important;
}

.pt-5 {
    padding-top: 3rem !important;
}

/* Padding Bottom */
.pb-0 {
    padding-bottom: 0 !important;
}

.pb-1 {
    padding-bottom: .25rem !important;
}

.pb-2 {
    padding-bottom: .5rem !important;
}

.pb-3 {
    padding-bottom: 1rem !important;
}

.pb-4 {
    padding-bottom: 1.5rem !important;
}

.pb-5 {
    padding-bottom: 3rem !important;
}

/* Padding Left */
.pl-0 {
    padding-left: 0 !important;
}

.pl-1 {
    padding-left: .25rem !important;
}

.pl-2 {
    padding-left: .5rem !important;
}

.pl-3 {
    padding-left: 1rem !important;
}

.pl-4 {
    padding-left: 1.5rem !important;
}

.pl-5 {
    padding-left: 3rem !important;
}

/* Padding Right */
.pr-0 {
    padding-right: 0 !important;
}

.pr-1 {
    padding-right: .25rem !important;
}

.pr-2 {
    padding-right: .5rem !important;
}

.pr-3 {
    padding-right: 1rem !important;
}

.pr-4 {
    padding-right: 1.5rem !important;
}

.pr-5 {
    padding-right: 3rem !important;
}

/* Display */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-inline {
    display: inline !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-flex {
    display: flex !important;
}

/* Responsive Bootstrap-like */

/* >= 768px (md) */
@media (min-width: 768px) {

    .d-md-none {
        display: none !important;
    }

    .d-md-block {
        display: block !important;
    }

    .d-md-inline {
        display: inline !important;
    }

    .d-md-inline-block {
        display: inline-block !important;
    }

    .d-md-flex {
        display: flex !important;
    }
}

/* < 768px */
@media (max-width: 767.98px) {

    .d-mobile-none {
        display: none !important;
    }

    .d-mobile-block {
        display: block !important;
    }
}