/* =========================================================
   MDX PUBLICATION
   Página pública individual de Publicaciones LocaliaPlus
   ========================================================= */


/* ---------------------------------------------------------
   BASE
   --------------------------------------------------------- */

.mdx-publication-single,
.mdx-publication-single * {
    box-sizing: border-box;
}

.mdx-publication-single {
    width: 100%;
    background: #f7f8fa;
    color: #172033;
    padding: 56px 0 72px;
}

.mdx-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* ---------------------------------------------------------
   PUBLICACIÓN
   --------------------------------------------------------- */

.mdx-publication-single-content {
    width: min(760px, 100%);
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e6e9ee;
    border-radius: 16px;
    padding: 42px;
}

.mdx-publication-single-content > p:first-child {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #52647a;
}

.mdx-publication-single-content h1 {
    margin: 0 0 28px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #102a43;
}


/* ---------------------------------------------------------
   IMAGEN
   --------------------------------------------------------- */

.mdx-publication-single-image {
    width: 100%;
    margin: 0 0 30px;
    overflow: hidden;
    border-radius: 12px;
    background: #eef1f4;
}

.mdx-publication-single-image img {
    display: block;
    width: 100%;
    height: auto;
}


/* ---------------------------------------------------------
   CONTENIDO
   --------------------------------------------------------- */

.mdx-publication-single-body {
    font-size: 18px;
    line-height: 1.7;
    color: #34495e;
}

.mdx-publication-single-body p {
    margin: 0 0 18px;
}

.mdx-publication-single-content hr {
    border: 0;
    border-top: 1px solid #e6e9ee;
    margin: 36px 0;
}


/* ---------------------------------------------------------
   NEGOCIO RELACIONADO
   --------------------------------------------------------- */

.mdx-publication-business > p:first-child {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7788;
}

.mdx-publication-business h2 {
    margin: 0 0 16px;
    font-size: 26px;
    line-height: 1.2;
    color: #102a43;
}

.mdx-publication-business a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    background: #173f6b;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.mdx-publication-business a:hover,
.mdx-publication-business a:focus-visible {
    text-decoration: none;
    filter: brightness(1.08);
}


/* ---------------------------------------------------------
   MÓVIL
   --------------------------------------------------------- */

@media (max-width: 640px) {

    .mdx-publication-single {
        padding: 28px 0 44px;
    }

    .mdx-container {
        width: calc(100% - 32px);
    }

    .mdx-publication-single-content {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .mdx-publication-single-content h1 {
        margin-bottom: 22px;
        font-size: clamp(30px, 9vw, 38px);
    }

    .mdx-publication-single-image {
        margin-bottom: 24px;
        border-radius: 9px;
    }

    .mdx-publication-single-body {
        font-size: 17px;
        line-height: 1.65;
    }

    .mdx-publication-business h2 {
        font-size: 23px;
    }

}

/* =========================================================
   IDENTIDAD LOCALIAPLUS
   Header y footer compartidos con las fichas MDX
   ========================================================= */


/* =========================================================
   HEADER LOCALIAPLUS
   ========================================================= */

.mdx-site-header {
    position: relative;
    z-index: 100;

    width: 100%;

    background: #05274e;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.mdx-site-header-inner {
    display: flex;
    align-items: center;

    width: min(1180px, calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;
}

.mdx-site-brand {
    flex: 0 0 auto;

    color: #fff !important;
    text-decoration: none !important;
}

.mdx-site-logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.mdx-site-logo span {
    color: #3488d1;
}

.mdx-site-menu {
    display: flex;
    align-items: center;
    gap: 30px;

    margin-left: 55px;
}

.mdx-site-menu a,
.mdx-site-actions a {
    color: rgba(255, 255, 255, .88) !important;
    text-decoration: none !important;

    font-size: 14px;
    font-weight: 600;
}

.mdx-site-menu a:hover,
.mdx-site-actions a:hover {
    color: #64b5ff !important;
}

.mdx-site-actions {
    display: flex;
    align-items: center;
    gap: 22px;

    margin-left: auto;
}

.mdx-site-account {
    padding: 10px 16px;

    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 6px;

    color: #fff !important;
}


/* =========================================================
   MENÚ MÓVIL
   ========================================================= */

.mdx-mobile-menu-toggle,
.mdx-mobile-menu {
    display: none;
}

.mdx-mobile-menu-toggle {
    appearance: none;

    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;

    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 7px;

    background: rgba(255, 255, 255, .06);

    cursor: pointer;
}

.mdx-mobile-menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    width: 20px;
    height: 20px;
    margin: auto;
}

.mdx-mobile-menu-icon span {
    display: block;

    width: 100%;
    height: 2px;

    border-radius: 999px;

    background: #fff;

    transition:
        transform .2s ease,
        opacity .2s ease;
}


/* =========================================================
   HEADER RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .mdx-site-header-inner {
        position: relative;
        flex-wrap: wrap;
    }

    .mdx-site-menu,
    .mdx-site-actions {
        display: none;
    }

    .mdx-mobile-menu-toggle {
        display: block;
    }

    .mdx-mobile-menu {
        width: 100%;
    }

    .mdx-mobile-menu.is-open {
        display: block;
    }

    .mdx-mobile-menu nav {
        display: flex;
        flex-direction: column;

        padding: 12px 0 18px;

        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .mdx-mobile-menu a {
        display: block;

        padding: 13px 4px;

        color: rgba(255, 255, 255, .90) !important;
        text-decoration: none !important;

        font-size: 14px;
        font-weight: 600;
    }

    .mdx-mobile-menu a:hover,
    .mdx-mobile-menu a:focus-visible {
        color: #64b5ff !important;
    }

    .mdx-mobile-menu-toggle[aria-expanded="true"]
    .mdx-mobile-menu-icon span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mdx-mobile-menu-toggle[aria-expanded="true"]
    .mdx-mobile-menu-icon span:nth-child(2) {
        opacity: 0;
    }

    .mdx-mobile-menu-toggle[aria-expanded="true"]
    .mdx-mobile-menu-icon span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

}


/* =========================================================
   FOOTER LOCALIAPLUS
   ========================================================= */

.mdx-site-footer {
    background: #05274e;
    color: rgba(255, 255, 255, .72);
}

.mdx-site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.mdx-site-footer > .mdx-site-footer-inner {
    padding-top: 48px;
    padding-bottom: 48px;
}

.mdx-footer-brand p {
    max-width: 420px;
    margin: 10px 0 0;

    color: rgba(255, 255, 255, .68);

    font-size: 14px;
}

.mdx-footer-logo {
    color: #fff !important;
    text-decoration: none !important;

    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.mdx-footer-logo span {
    color: #64b5ff;
}

.mdx-footer-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.mdx-footer-nav a {
    color: rgba(255, 255, 255, .82) !important;
    text-decoration: none !important;

    font-size: 14px;
    font-weight: 600;
}

.mdx-footer-nav a:hover {
    color: #64b5ff !important;
}

.mdx-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.mdx-footer-bottom .mdx-site-footer-inner {
    min-height: 62px;
}

.mdx-footer-bottom span {
    font-size: 12px;
}


/* =========================================================
   FOOTER MÓVIL
   ========================================================= */

@media (max-width: 640px) {

    .mdx-site-footer {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .mdx-site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;

        width: calc(100% - 40px);
        max-width: calc(100% - 40px);

        gap: 24px;
    }

    .mdx-footer-brand {
        width: 100%;
        min-width: 0;
    }

    .mdx-footer-brand p {
        width: 100%;
        max-width: 100%;
    }

    .mdx-footer-nav {
        display: flex;
        flex-wrap: wrap;

        width: 100%;
        max-width: 100%;

        gap: 12px 20px;
    }

    .mdx-footer-bottom .mdx-site-footer-inner {
        align-items: flex-start;
        gap: 8px;
    }

}