:root {
    --qhc-blue: #075ba8;
    --qhc-fuchsia: #e90064;
    --qhc-plum: #3f0d36;
    --qhc-teal: #009a92;
    --qhc-yellow: #ffca22;
    --qhc-cream: #fffaf6;
    --qhc-soft: #f7f5f8;
    --qhc-text: #181c2d;
    --qhc-muted: #667085;
    --qhc-border: #e7e7ec;
    --qhc-radius: 22px;
    --qhc-shadow: 0 14px 40px rgba(24, 28, 45, .08);
}

body.qhc-single-place {
    background: #fff;
    color: var(--qhc-text);
}

.qhc-place,
.qhc-place * {
    box-sizing: border-box;
}

.qhc-place {
    font-family: inherit;
    line-height: 1.55;
    padding-bottom: 36px;
}

.qhc-place__container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* -----------------------------
 * Galería adaptativa
 * ----------------------------- */
.qhc-place__gallery-wrap {
    width: min(1320px, calc(100% - 32px));
    margin: 24px auto 0;
}

.qhc-place__gallery {
    position: relative;
    min-height: 420px;
    border-radius: 26px;
    overflow: hidden;
    display: grid;
    gap: 6px;
    background: var(--qhc-soft);
}

.qhc-place__gallery-item {
    position: relative;
    margin: 0;
    min-height: 200px;
    overflow: hidden;
    background: var(--qhc-soft);
}

.qhc-place__gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 1 foto: imagen protagonista a todo el ancho. */
.qhc-place__gallery--count-1 {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(420px, 1fr);
}

/* 2 fotos: 65 / 35, sin reservar celdas fantasma. */
.qhc-place__gallery--count-2 {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, .85fr);
    grid-template-rows: minmax(420px, 1fr);
}

/* 3 fotos: protagonista izquierda + dos apiladas. */
.qhc-place__gallery--count-3 {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(207px, 1fr));
}

.qhc-place__gallery--count-3 .qhc-place__gallery-item--0 {
    grid-row: 1 / 3;
}

/* 4 fotos: protagonista + mosaico 1 grande / 2 pequeñas. */
.qhc-place__gallery--count-4 {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr) minmax(0, .85fr);
    grid-template-rows: repeat(2, minmax(207px, 1fr));
}

.qhc-place__gallery--count-4 .qhc-place__gallery-item--0 {
    grid-row: 1 / 3;
}

.qhc-place__gallery--count-4 .qhc-place__gallery-item--1 {
    grid-column: 2 / 4;
}

/* 5+ fotos: composición editorial principal + cuatro apoyos. */
.qhc-place__gallery--count-5plus {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, .8fr) minmax(0, .8fr);
    grid-template-rows: repeat(2, minmax(207px, 1fr));
}

.qhc-place__gallery--count-5plus .qhc-place__gallery-item--0 {
    grid-row: 1 / 3;
}

.qhc-place__gallery-more {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(24, 28, 45, .55);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-shadow: 0 1px 8px rgba(0,0,0,.25);
}

.qhc-place__gallery-count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(24, 28, 45, .72);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

/* -----------------------------
 * Cabecera de la ficha
 * ----------------------------- */
.qhc-place__intro {
    padding: 34px 0 26px;
    border-bottom: 1px solid var(--qhc-border);
}

.qhc-place__identity {
    display: flex;
    gap: 20px;
    align-items: center;
}

.qhc-place__logo {
    width: 94px;
    height: 94px;
    flex: 0 0 94px;
    border-radius: 50%;
    border: 1px solid var(--qhc-border);
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(24, 28, 45, .05);
}

.qhc-place__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qhc-place__eyebrow,
.qhc-place__section-kicker {
    margin: 0 0 6px;
    color: var(--qhc-fuchsia);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
}

.qhc-place__title {
    margin: 0;
    color: var(--qhc-plum);
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.qhc-place__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 10px;
    color: var(--qhc-muted);
}

.qhc-place__price {
    color: var(--qhc-fuchsia);
    font-weight: 800;
}

.qhc-place__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.qhc-chip {
    padding: 9px 14px;
    border-radius: 999px;
    background: #f8edf3;
    color: #872350;
    font-size: 14px;
    font-weight: 700;
}

.qhc-chip:nth-child(3n+2) {
    background: #eaf7f6;
    color: #00786f;
}

.qhc-chip:nth-child(3n+3) {
    background: #edf4ff;
    color: #14559a;
}

.qhc-place__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.qhc-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 11px 20px;
    border-radius: 999px;
    text-decoration: none !important;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.qhc-button:hover {
    transform: translateY(-1px);
}

.qhc-button--primary {
    color: #fff !important;
    background: var(--qhc-fuchsia);
    box-shadow: 0 8px 22px rgba(233, 0, 100, .20);
}

.qhc-button--whatsapp {
    color: #fff !important;
    background: #10a85a;
}

.qhc-button--outline {
    color: var(--qhc-text) !important;
    background: #fff;
    border: 1px solid var(--qhc-border);
}

.qhc-button--secondary {
    color: var(--qhc-plum) !important;
    background: var(--qhc-yellow);
}

/* -----------------------------
 * Contenido dinámico
 * ----------------------------- */
.qhc-place__highlight,
.qhc-place__two-col,
.qhc-place__map-card {
    margin-top: 34px;
}

.qhc-place__highlight {
    background: linear-gradient(135deg, #fff4f8, #fffaf3);
    border-radius: var(--qhc-radius);
    padding: clamp(24px, 4vw, 42px);
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 30px;
}

.qhc-place__highlight--text-only {
    grid-template-columns: 1fr;
}

.qhc-place h2 {
    color: var(--qhc-plum);
    margin: 0 0 10px;
    font-size: clamp(26px, 2.5vw, 36px);
    line-height: 1.12;
}

.qhc-place__lead {
    margin: 0;
    color: var(--qhc-muted);
    font-size: 17px;
}

.qhc-place__activity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.qhc-place__mini-card {
    background: #fff;
    min-height: 92px;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 26px rgba(24, 28, 45, .06);
    display: flex;
    align-items: center;
    gap: 12px;
}

.qhc-place__mini-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--qhc-fuchsia);
    color: #fff;
    flex: 0 0 36px;
}

.qhc-place__two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.qhc-place__two-col--single {
    grid-template-columns: 1fr;
}

.qhc-panel {
    border: 1px solid var(--qhc-border);
    border-radius: var(--qhc-radius);
    padding: clamp(22px, 3vw, 34px);
    background: #fff;
    box-shadow: 0 8px 28px rgba(24, 28, 45, .035);
}

.qhc-panel--soft {
    background: linear-gradient(135deg, #f8eefc, #fdf6fb);
    border-color: transparent;
}

.qhc-check-list,
.qhc-info-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.qhc-check-list li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
}

.qhc-check-list li span {
    color: #fff;
    background: var(--qhc-fuchsia);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    font-size: 12px;
    flex: 0 0 22px;
}

.qhc-info-list li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--qhc-border);
}

.qhc-info-list li:last-child {
    border-bottom: 0;
}

.qhc-info-list a {
    color: var(--qhc-blue);
}

.qhc-place__content > *:first-child {
    margin-top: 0;
}

.qhc-place__content > *:last-child {
    margin-bottom: 0;
}

.qhc-hours {
    margin-top: 14px;
}

.qhc-hours__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--qhc-border);
}

.qhc-hours__row:last-child {
    border-bottom: 0;
}

.qhc-place__map-card {
    background: var(--qhc-teal);
    color: #fff;
    border-radius: var(--qhc-radius);
    padding: clamp(24px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.qhc-place__map-card h2,
.qhc-place__map-card .qhc-place__section-kicker {
    color: #fff;
}

.qhc-place__map-card p {
    margin-bottom: 0;
}

.qhc-place__mobile-actions {
    display: none;
}

/* -----------------------------
 * Tablet
 * ----------------------------- */
@media (max-width: 900px) {
    .qhc-place__gallery {
        min-height: 360px;
    }

    .qhc-place__gallery--count-2 {
        grid-template-columns: 1.45fr 1fr;
        grid-template-rows: minmax(360px, 1fr);
    }

    .qhc-place__gallery--count-3,
    .qhc-place__gallery--count-4,
    .qhc-place__gallery--count-5plus {
        grid-template-columns: 1.5fr 1fr;
        grid-template-rows: repeat(2, minmax(177px, 1fr));
    }

    .qhc-place__gallery--count-3 .qhc-place__gallery-item--0,
    .qhc-place__gallery--count-4 .qhc-place__gallery-item--0,
    .qhc-place__gallery--count-5plus .qhc-place__gallery-item--0 {
        grid-row: 1 / 3;
    }

    .qhc-place__gallery--count-4 .qhc-place__gallery-item--1 {
        grid-column: auto;
    }

    .qhc-place__gallery--count-4 .qhc-place__gallery-item--3,
    .qhc-place__gallery--count-5plus .qhc-place__gallery-item:nth-child(n+4) {
        display: none;
    }

    .qhc-place__highlight,
    .qhc-place__two-col {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------
 * Móvil: galería deslizable, sin huecos
 * ----------------------------- */
@media (max-width: 680px) {
    .qhc-place--has-mobile-actions {
        padding-bottom: 86px;
    }

    .qhc-place__container,
    .qhc-place__gallery-wrap {
        width: 100%;
    }

    .qhc-place__gallery-wrap {
        margin-top: 0;
        overflow: hidden;
    }

    .qhc-place__gallery,
    .qhc-place__gallery--count-1,
    .qhc-place__gallery--count-2,
    .qhc-place__gallery--count-3,
    .qhc-place__gallery--count-4,
    .qhc-place__gallery--count-5plus {
        min-height: 0;
        border-radius: 0;
        display: flex;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
        background: #fff;
    }

    .qhc-place__gallery::-webkit-scrollbar {
        display: none;
    }

    .qhc-place__gallery-item,
    .qhc-place__gallery--count-3 .qhc-place__gallery-item--0,
    .qhc-place__gallery--count-4 .qhc-place__gallery-item--0,
    .qhc-place__gallery--count-4 .qhc-place__gallery-item--1,
    .qhc-place__gallery--count-5plus .qhc-place__gallery-item--0 {
        display: block !important;
        grid-column: auto;
        grid-row: auto;
        flex: 0 0 88%;
        height: 300px;
        min-height: 300px;
        scroll-snap-align: start;
    }

    .qhc-place__gallery--count-1 .qhc-place__gallery-item {
        flex-basis: 100%;
    }

    .qhc-place__gallery-count {
        right: 12px;
        bottom: 12px;
    }

    .qhc-place__container {
        padding: 0 18px;
    }

    .qhc-place__intro {
        padding-top: 22px;
    }

    .qhc-place__identity {
        align-items: flex-start;
        gap: 14px;
    }

    .qhc-place__logo {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }

    .qhc-place__title {
        font-size: 34px;
    }

    .qhc-place__actions .qhc-button {
        flex: 1 1 calc(50% - 8px);
    }

    .qhc-place__highlight,
    .qhc-panel,
    .qhc-place__map-card {
        border-radius: 18px;
    }

    .qhc-place__highlight {
        padding: 22px;
    }

    .qhc-place__activity-grid {
        grid-template-columns: 1fr;
    }

    .qhc-place__map-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .qhc-place__map-card .qhc-button {
        width: 100%;
    }

    .qhc-info-list li {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .qhc-place__mobile-actions {
        position: fixed;
        z-index: 9999;
        left: 12px;
        right: 12px;
        bottom: 12px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
        border-radius: 18px;
        background: rgba(255,255,255,.96);
        box-shadow: 0 10px 34px rgba(24,28,45,.18);
        backdrop-filter: blur(12px);
    }

    .qhc-place__mobile-actions--single {
        grid-template-columns: 1fr;
    }

    .qhc-place__mobile-actions a {
        min-height: 46px;
        display: grid;
        place-items: center;
        text-decoration: none;
        border-radius: 12px;
        background: var(--qhc-fuchsia);
        color: #fff;
        font-weight: 800;
    }

    .qhc-place__mobile-actions a + a {
        background: #10a85a;
    }
}

/* ============================================================
 * QHC Core 0.2.2 — shell visual, header, footer, mapa y lightbox
 * ============================================================ */
html {
    scroll-behavior: smooth;
}

body.qhc-custom-shell {
    margin: 0;
    background: #fff;
}

body.qhc-custom-shell.qhc-lightbox-open,
body.qhc-custom-shell.qhc-menu-open {
    overflow: hidden;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header del producto */
.qhc-site-header {
    position: sticky;
    top: 0;
    z-index: 10000;
    width: 100%;
    background: linear-gradient(100deg, #075ba8 0%, #06539b 68%, #073f82 100%);
    color: #fff;
    box-shadow: 0 5px 24px rgba(10, 45, 91, .13);
}

.admin-bar .qhc-site-header {
    top: 32px;
}

.qhc-site-header__inner {
    width: min(1240px, calc(100% - 36px));
    min-height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.qhc-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: inherit !important;
    flex: 0 0 auto;
}

.qhc-brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--qhc-yellow), #ffb800 52%, var(--qhc-fuchsia) 53%, #c60058);
    color: var(--qhc-plum);
    font-weight: 950;
    font-size: 13px;
    letter-spacing: -.05em;
    box-shadow: 0 7px 18px rgba(0,0,0,.14);
}

.qhc-brand__text {
    display: flex;
    flex-direction: column;
    line-height: .95;
}

.qhc-brand__text small {
    font-size: 11px;
    opacity: .84;
    margin-bottom: 3px;
    font-weight: 700;
}

.qhc-brand__text strong {
    font-size: 24px;
    letter-spacing: -.045em;
}

.qhc-site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.qhc-site-nav a,
.qhc-mobile-menu a {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 750;
    font-size: 14px;
}

.qhc-site-nav a {
    position: relative;
    padding: 26px 0;
}

.qhc-site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 17px;
    height: 2px;
    border-radius: 99px;
    background: var(--qhc-yellow);
    transition: right .18s ease;
}

.qhc-site-nav a:hover::after {
    right: 0;
}

.qhc-site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qhc-header-search {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none !important;
    color: #fff !important;
    font-size: 27px;
    line-height: 1;
}

.qhc-header-search:hover {
    background: rgba(255,255,255,.10);
}

.qhc-header-claim,
.qhc-mobile-menu__claim {
    min-height: 42px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 9px 17px;
    border-radius: 999px;
    background: var(--qhc-fuchsia);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 850;
    box-shadow: 0 8px 20px rgba(233,0,100,.21);
}

.qhc-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.10);
    padding: 10px;
    cursor: pointer;
}

.qhc-menu-toggle span:not(.screen-reader-text) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    border-radius: 99px;
}

.qhc-mobile-menu {
    width: 100%;
    padding: 8px 18px 20px;
    background: #064d91;
    border-top: 1px solid rgba(255,255,255,.12);
}

.qhc-mobile-menu[hidden] {
    display: none !important;
}

.qhc-mobile-menu a {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.qhc-mobile-menu .qhc-mobile-menu__claim {
    margin-top: 13px;
    border-bottom: 0;
}

/* Separa la ficha del header sticky */
.qhc-place__gallery-wrap {
    margin-top: 24px;
}

/* Galería clicable */
.qhc-place__gallery-button {
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: transparent;
    cursor: zoom-in;
    color: inherit;
}

.qhc-place__gallery-button img {
    transition: transform .35s ease, filter .35s ease;
}

.qhc-place__gallery-button:hover img {
    transform: scale(1.018);
    filter: saturate(1.04);
}

.qhc-place__gallery-count {
    border: 0;
    cursor: pointer;
}

/* Estado abierto/cerrado */
.qhc-open-status,
.qhc-hours__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
    font-size: 13px;
}

.qhc-open-status::before,
.qhc-hours__status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 8px;
}

.qhc-open-status.is-open,
.qhc-hours__status.is-open {
    color: #079a58;
}

.qhc-open-status.is-closed,
.qhc-hours__status.is-closed {
    color: #c13c58;
}

.qhc-hours__status {
    margin: 4px 0 9px;
}

/* Ubicación + mapa */
.qhc-place__location {
    margin-top: 34px;
    border-radius: var(--qhc-radius);
    overflow: hidden;
    background: var(--qhc-teal);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 210px;
}

.qhc-place__location--with-map {
    grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
}

.qhc-place__location-copy {
    padding: clamp(26px, 4vw, 42px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.qhc-place__location h2,
.qhc-place__location .qhc-place__section-kicker {
    color: #fff;
}

.qhc-place__location-copy p:not(.qhc-place__section-kicker) {
    margin: 0 0 20px;
    color: rgba(255,255,255,.88);
}

.qhc-place__map {
    min-height: 310px;
    width: 100%;
    background: #dfe9e7;
    z-index: 1;
}

.qhc-place__map .leaflet-popup-content-wrapper,
.qhc-place__map .leaflet-popup-tip {
    color: var(--qhc-text);
}

/* Lightbox de fotos */
.qhc-lightbox[hidden] {
    display: none !important;
}

.qhc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(8, 11, 24, .94);
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 70px;
    align-items: center;
    padding: 26px 18px;
}

.qhc-lightbox__stage {
    width: min(1120px, 100%);
    max-height: calc(100vh - 52px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qhc-lightbox__stage img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 118px);
    object-fit: contain;
    border-radius: 12px;
}

.qhc-lightbox__meta {
    width: 100%;
    min-height: 46px;
    padding: 10px 4px 0;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    color: #fff;
    font-size: 13px;
}

.qhc-lightbox__close,
.qhc-lightbox__nav {
    appearance: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(10px);
}

.qhc-lightbox__close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 30px;
    z-index: 2;
}

.qhc-lightbox__nav {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 40px;
    line-height: 1;
    justify-self: center;
}

/* Footer del producto */
.qhc-site-footer {
    margin-top: 60px;
    background: #32102f;
    color: rgba(255,255,255,.84);
}

.qhc-site-footer__accent {
    height: 8px;
    background: linear-gradient(90deg, var(--qhc-fuchsia) 0 35%, var(--qhc-yellow) 35% 53%, var(--qhc-teal) 53% 75%, #075ba8 75%);
}

.qhc-site-footer__inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 44px 0 34px;
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(140px, .7fr));
    gap: 38px;
}

.qhc-site-footer__brand p {
    max-width: 340px;
    margin: 17px 0 0;
    line-height: 1.6;
}

.qhc-brand--footer {
    color: #fff !important;
}

.qhc-site-footer h3 {
    margin: 3px 0 14px;
    color: #fff;
    font-size: 15px;
}

.qhc-site-footer__inner > div:not(.qhc-site-footer__brand) a {
    display: block;
    margin: 9px 0;
    color: rgba(255,255,255,.75) !important;
    text-decoration: none !important;
    font-size: 14px;
}

.qhc-site-footer__inner a:hover {
    color: #fff !important;
}

.qhc-site-footer__bottom {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 20px 0 24px;
    border-top: 1px solid rgba(255,255,255,.10);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
    color: rgba(255,255,255,.58);
}

@media (max-width: 1050px) {
    .qhc-site-nav {
        gap: 17px;
    }

    .qhc-site-nav a {
        font-size: 13px;
    }

    .qhc-header-claim {
        padding-inline: 13px;
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    .qhc-site-nav,
    .qhc-header-claim {
        display: none;
    }

    .qhc-site-header__actions {
        margin-left: auto;
    }

    .qhc-menu-toggle {
        display: block;
    }

    .qhc-place__location--with-map {
        grid-template-columns: 1fr;
    }

    .qhc-place__map {
        min-height: 300px;
    }

    .qhc-site-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qhc-site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 782px) {
    .admin-bar .qhc-site-header {
        top: 46px;
    }
}

@media (max-width: 680px) {
    .qhc-site-header {
        position: sticky;
    }

    .qhc-site-header__inner {
        width: calc(100% - 28px);
        min-height: 62px;
    }

    .qhc-brand__mark {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 11px;
    }

    .qhc-brand__text small {
        display: none;
    }

    .qhc-brand__text strong {
        font-size: 20px;
    }

    .qhc-header-search {
        width: 38px;
        height: 38px;
    }

    .qhc-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .qhc-place__gallery-wrap {
        margin-top: 0;
    }

    .qhc-place__location {
        margin-left: -18px;
        margin-right: -18px;
        border-radius: 0;
    }

    .qhc-place__map {
        min-height: 260px;
    }

    .qhc-lightbox {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        padding: 14px 6px;
    }

    .qhc-lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .qhc-lightbox__close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
    }

    .qhc-lightbox__stage img {
        max-height: calc(100vh - 130px);
    }

    .qhc-site-footer {
        margin-top: 36px;
    }

    .qhc-site-footer__inner {
        width: calc(100% - 36px);
        grid-template-columns: 1fr 1fr;
        gap: 26px 18px;
        padding: 34px 0 28px;
    }

    .qhc-site-footer__brand {
        grid-column: 1 / -1;
    }

    .qhc-site-footer__inner > div:nth-child(4) {
        grid-column: 1 / -1;
    }

    .qhc-site-footer__bottom {
        width: calc(100% - 36px);
        flex-direction: column;
        gap: 5px;
    }
}

/* ============================================================
 * QHC Core 0.2.3 — correcciones de galería, responsive y header
 * ============================================================ */

/* Evita estilos globales de Elementor/tema sobre botones de galería. */
.qhc-place .qhc-place__gallery-item {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.qhc-place .qhc-place__gallery-button {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    line-height: 0 !important;
}

.qhc-place .qhc-place__gallery-button:focus,
.qhc-place .qhc-place__gallery-button:active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.qhc-place .qhc-place__gallery-button:focus-visible {
    outline: 3px solid rgba(255, 202, 34, .95) !important;
    outline-offset: -3px !important;
}

/* 2 fotos: layout flex explícito para impedir columnas fantasma. */
@media (min-width: 901px) {
    .qhc-place__gallery.qhc-place__gallery--count-2 {
        display: flex !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        gap: 6px;
        min-height: 420px;
    }

    .qhc-place__gallery--count-2 .qhc-place__gallery-item {
        min-width: 0;
        min-height: 420px;
        height: 420px;
        flex: 0 0 calc(38% - 3px);
    }

    .qhc-place__gallery--count-2 .qhc-place__gallery-item:first-child {
        flex-basis: calc(62% - 3px);
    }
}

/* El botón hamburguesa nunca aparece en escritorio. */
.qhc-site-header .qhc-menu-toggle {
    display: none !important;
}

/* Logo configurable desde el logo del sitio de WordPress. */
.qhc-brand__custom-logo {
    display: block;
    width: auto;
    max-width: 210px;
    height: 42px;
    object-fit: contain;
}

.qhc-brand--footer .qhc-brand__custom-logo {
    height: 44px;
    max-width: 220px;
}

/* Tablet/móvil: navegación compacta y galería sin espacios blancos. */
@media (max-width: 900px) {
    .qhc-site-header .qhc-site-nav,
    .qhc-site-header .qhc-header-claim {
        display: none !important;
    }

    .qhc-site-header .qhc-menu-toggle {
        display: block !important;
    }

    .qhc-place__gallery-wrap {
        width: 100% !important;
        margin-top: 0 !important;
        overflow: hidden !important;
    }

    .qhc-place__gallery,
    .qhc-place__gallery--count-1,
    .qhc-place__gallery--count-2,
    .qhc-place__gallery--count-3,
    .qhc-place__gallery--count-4,
    .qhc-place__gallery--count-5plus {
        display: flex !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        min-height: 0 !important;
        height: auto !important;
        gap: 0 !important;
        border-radius: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        background: #fff !important;
    }

    .qhc-place__gallery::-webkit-scrollbar {
        display: none;
    }

    .qhc-place__gallery .qhc-place__gallery-item,
    .qhc-place__gallery--count-2 .qhc-place__gallery-item,
    .qhc-place__gallery--count-3 .qhc-place__gallery-item,
    .qhc-place__gallery--count-4 .qhc-place__gallery-item,
    .qhc-place__gallery--count-5plus .qhc-place__gallery-item,
    .qhc-place__gallery--count-3 .qhc-place__gallery-item--0,
    .qhc-place__gallery--count-4 .qhc-place__gallery-item--0,
    .qhc-place__gallery--count-4 .qhc-place__gallery-item--1,
    .qhc-place__gallery--count-5plus .qhc-place__gallery-item--0 {
        display: block !important;
        grid-column: auto !important;
        grid-row: auto !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        height: clamp(280px, 72vw, 520px) !important;
        min-height: 0 !important;
        scroll-snap-align: start;
        background: #fff !important;
    }

    .qhc-place__gallery .qhc-place__gallery-button,
    .qhc-place__gallery .qhc-place__gallery-button img {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
    }

    .qhc-place__gallery .qhc-place__gallery-button img {
        object-fit: cover !important;
    }

    .qhc-place__gallery-count {
        right: 12px !important;
        bottom: 12px !important;
    }

    .qhc-brand__custom-logo {
        height: 36px;
        max-width: 165px;
    }
}

@media (max-width: 480px) {
    .qhc-site-header__inner {
        gap: 10px !important;
    }

    .qhc-site-header__actions {
        gap: 6px !important;
    }

    .qhc-header-search {
        width: 36px !important;
        height: 36px !important;
    }

    .qhc-place__gallery .qhc-place__gallery-item {
        height: min(78vw, 390px) !important;
    }
}

.qhc-place__map--google,
.qhc-place__map--google iframe {
    width: 100%;
    min-height: 310px;
    height: 100%;
    border: 0;
}

.qhc-place__map--google iframe {
    display: block;
}

/* ============================================================
 * QHC Core 0.2.4 — refinamiento del menú móvil y paneles desktop
 * ============================================================ */

/*
 * El icono hamburguesa se dibuja con CSS para evitar que estilos
 * de Elementor/tema oculten las tres líneas internas del botón.
 */
.qhc-site-header .qhc-menu-toggle {
    position: relative;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: rgba(255,255,255,.10) !important;
    color: #fff !important;
    place-items: center;
}

.qhc-site-header .qhc-menu-toggle > span:not(.screen-reader-text) {
    display: none !important;
}

.qhc-site-header .qhc-menu-toggle::before {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 7px 0 #fff, 0 14px 0 #fff;
    transform: translateY(-7px);
}

.qhc-site-header .qhc-menu-toggle:hover {
    background: rgba(255,255,255,.16) !important;
}

.qhc-site-header .qhc-menu-toggle:focus-visible {
    outline: 2px solid var(--qhc-yellow) !important;
    outline-offset: 2px !important;
}

/* En móvil dejamos solamente marca, búsqueda y menú para no saturar el header. */
@media (max-width: 900px) {
    .qhc-site-header__actions .qhc-header-claim {
        display: none !important;
    }

    .qhc-site-header .qhc-menu-toggle {
        display: grid !important;
    }
}

/*
 * Los paneles de dos columnas conservan su altura natural.
 * Así una descripción corta no se estira artificialmente hasta
 * igualar la altura de un horario largo.
 */
.qhc-place__two-col {
    align-items: start;
}

.qhc-place__two-col > .qhc-panel {
    align-self: start;
    height: auto;
    min-height: 0;
}
