/*
 * MDX Listing
 * Presentaci贸n p煤blica de fichas LocaliaPlus.
 */

/* =========================================================
   BASE
   ========================================================= */

.mdx-listing {
    background: #f6f7f9;
    color: #2f3340;
    font-family: inherit;
    line-height: 1.6;
}

.mdx-listing *,
.mdx-listing *::before,
.mdx-listing *::after {
    box-sizing: border-box;
}

.mdx-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* =========================================================
   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;
}
/* =========================================================
   HERO
   ========================================================= */

.mdx-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 520px;
    padding: 80px 0 55px;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(24, 31, 43, 0.97),
            rgba(45, 58, 77, 0.88)
        );
    color: #fff;
}

.mdx-hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(255,255,255,0.13),
            transparent 35%
        );

    pointer-events: none;
}

.mdx-hero .mdx-container {
    position: relative;
    z-index: 1;
}

.mdx-category-label {
    display: inline-flex;
    align-items: center;

    margin-bottom: 18px;
    padding: 7px 14px;

    border-radius: 999px;

    background: #fff;
    color: #252a34;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

.mdx-listing-title {
    max-width: 850px;
    margin: 0;

    color: #fff;

    font-size: clamp(36px, 5vw, 62px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.mdx-hero-location {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;

    margin-top: 20px;

    color: rgba(255,255,255,.86);
    font-size: 15px;
}

.mdx-hero-location strong {
    color: #fff;
}

.mdx-hero-has-image {
    min-height: 520px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
/* =========================================================
   NAVEGACIÓN DE FICHA
   ========================================================= */

.mdx-listing-nav {
    position: sticky;
    top: 0;
    z-index: 20;

    background: #fff;
    border-bottom: 1px solid #e6e8ec;

    box-shadow: 0 4px 16px rgba(20, 30, 45, .04);
}

.admin-bar .mdx-listing-nav {
    top: 32px;
}

.mdx-listing-nav .mdx-container {
    display: flex;
    gap: 32px;
    overflow-x: auto;
}

.mdx-listing-nav a {
    display: block;
    flex: 0 0 auto;

    padding: 19px 0 17px;

    border-bottom: 2px solid transparent;

    color: #4b5160;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}

.mdx-listing-nav a:hover {
    color: #171b24;
    border-bottom-color: #171b24;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.mdx-listing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 30px;

    padding-top: 42px;
    padding-bottom: 70px;
}

.mdx-listing-main,
.mdx-listing-sidebar {
    min-width: 0;
}

.mdx-listing-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


/* =========================================================
   CARDS
   ========================================================= */

.mdx-card {
    margin-bottom: 26px;
    padding: 30px;

    background: #fff;

    border: 1px solid #e7e9ed;
    border-radius: 10px;

    box-shadow:
        0 8px 30px rgba(30, 40, 55, .045);
}

.mdx-card h2 {
    margin: 0 0 22px;

    color: #222733;

    font-size: 22px;
    font-weight: 700;
}

.mdx-card h3 {
    margin: 0 0 8px;

    color: #252a34;

    font-size: 18px;
}

.mdx-description {
    color: #626875;
    font-size: 16px;
}

.mdx-description > :first-child {
    margin-top: 0;
}

.mdx-description > :last-child {
    margin-bottom: 0;
}


/* =========================================================
   SERVICIOS
   ========================================================= */

.mdx-service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mdx-service-item {
    display: inline-flex;
    align-items: center;

    padding: 10px 15px;

    background: #f5f6f8;

    border: 1px solid #e5e7eb;
    border-radius: 7px;

    color: #454b58;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   CONTACTO
   ========================================================= */

.mdx-contact-card {
    margin-bottom: 0;
}

.mdx-contact-action {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    margin-bottom: 12px;
    padding: 13px 18px;

    border-radius: 6px;

    background: #262c37;
    color: #fff !important;

    text-decoration: none !important;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform .18s ease,
        background .18s ease;
}

.mdx-contact-action:hover {
    background: #151a22;
    transform: translateY(-1px);
}

.mdx-contact-link {
    display: block;

    padding: 13px 0;

    border-bottom: 1px solid #eceef1;

    color: #4d5563 !important;
    text-decoration: none !important;

    overflow-wrap: anywhere;
}

.mdx-contact-link:last-child {
    border-bottom: 0;
}

.mdx-contact-link:hover {
    color: #151a22 !important;
}


/* =========================================================
   CLAIM
   ========================================================= */

.mdx-claim-card {
    margin-bottom: 0;

    background: #272d38;
    border-color: #272d38;

    color: rgba(255,255,255,.78);
}

.mdx-claim-card h2 {
    color: #fff;
}

.mdx-claim-card p {
    margin-bottom: 20px;
}

.mdx-claim-button {
    width: 100%;
    padding: 13px 18px;

    border: 0;
    border-radius: 6px;

    background: #fff;
    color: #272d38;

    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

.mdx-claim-button:disabled {
    opacity: .65;
    cursor: not-allowed;
}


/* =========================================================
   UBICACION / MAPA
   ========================================================= */

.mdx-location p {
    color: #626875;
}

.mdx-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 280px;
    margin-top: 24px;

    background:
        linear-gradient(
            135deg,
            #eef1f4,
            #e4e8ed
        );

    border-radius: 8px;

    color: #4e5562;
}

.mdx-map-placeholder span {
    font-weight: 700;
}

.mdx-map-placeholder small {
    margin-top: 5px;
    opacity: .7;
}

/* =========================================================
   DATOS RAPIDOS DEL HERO
   ========================================================= */

.mdx-hero-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;

    margin-top: 20px;

    color: rgba(255, 255, 255, .94);

    font-size: 14px;
    font-weight: 600;
}

.mdx-hero-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: inherit !important;
    text-decoration: none !important;
}

a.mdx-hero-contact-item:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.mdx-hero-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 16px;

    color: #64b5ff;

    font-size: 15px;
    font-weight: 700;
}
/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .mdx-listing-layout {
        grid-template-columns: 1fr;
    }

    .mdx-listing-sidebar {
        order: -1;
    }

    .mdx-hero {
        min-height: 300px;
    }

}

@media (max-width: 600px) {

    .mdx-container {
        width: min(100% - 28px, 1180px);
    }

    .mdx-hero {
        min-height: 270px;
        padding: 60px 0 40px;
    }

    .mdx-listing-title {
        font-size: 36px;
    }

    .mdx-listing-nav .mdx-container {
        gap: 22px;
    }

    .mdx-card {
        padding: 22px;
    }

    .admin-bar .mdx-listing-nav {
        top: 46px;
    }

    .mdx-hero-contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
    }

}