/* La Morena v1.5.0 — hero editorial y galería 5 × 3 */
.hero-v15 {
    position: relative;
    isolation: isolate;
    min-height: clamp(620px, 78vh, 840px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: #1b1210;
}

.hero-v15__background,
.hero-v15__background img,
.hero-v15__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-v15__background {
    z-index: -3;
    display: block;
}

.hero-v15__background img {
    display: block;
    object-fit: cover;
    object-position: 58% 54%;
    transform: scale(1.015);
}

.hero-v15__shade {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(28, 16, 12, .60) 0%, rgba(28, 16, 12, .24) 54%, rgba(28, 16, 12, .07) 100%),
        linear-gradient(0deg, rgba(18, 10, 8, .24), rgba(18, 10, 8, .04) 50%);
}

.hero-v15__layout {
    width: 100%;
    padding-block: clamp(72px, 8vw, 112px);
}

.hero-v15__card {
    width: min(680px, 100%);
    padding: clamp(30px, 4.4vw, 58px);
    border-top: 4px solid #a77527;
    border-radius: 18px;
    background: rgba(247, 239, 227, .94);
    color: #241713;
    box-shadow: 0 28px 90px rgba(13, 8, 6, .34);
    backdrop-filter: blur(7px);
}

.hero-v15__card .eyebrow {
    color: #791925;
    letter-spacing: .13em;
}

.hero-v15__card h1 {
    max-width: 14ch;
    margin: .65rem 0 1.1rem;
    color: #6f1720;
    font-size: clamp(2.45rem, 4.15vw, 4.45rem);
    line-height: 1.015;
    text-wrap: balance;
}

.hero-v15__lead {
    max-width: 57ch;
    margin: 0;
    color: #2d211d;
    font-size: clamp(1.05rem, 1.22vw, 1.2rem);
    line-height: 1.68;
}

.hero-v15__detail {
    max-width: 58ch;
    margin: .75rem 0 0;
    color: #5b4941;
    font-size: .99rem;
    line-height: 1.62;
}

.hero-v15__card .button-row {
    margin-top: 1.65rem;
}

.button--outline-light {
    color: #6f1720;
    background: transparent;
    border-color: #8d2b34;
}

.button--outline-light:hover,
.button--outline-light:focus-visible {
    color: #fff;
    background: #6f1720;
    border-color: #6f1720;
}

.hero-v15__location {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-top: 1.6rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(111, 23, 32, .17);
    color: #654f46;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.hero-v15__location .icon {
    flex: 0 0 auto;
    width: 1.08rem;
    height: 1.08rem;
    color: #8d2b34;
}

.home-gallery-grid {
    width: 100%;
    max-width: none;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-flow: row;
    gap: clamp(10px, 1.05vw, 16px);
    margin: 0;
    padding: 0;
}

.home-gallery-card {
    position: relative;
    display: block !important;
    min-width: 0;
    width: 100%;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden;
    border: 1px solid rgba(111, 23, 32, .12);
    border-radius: 14px;
    background: #241713;
    box-shadow: 0 10px 30px rgba(47, 28, 20, .10);
    text-decoration: none;
    cursor: zoom-in;
}

.home-gallery-card picture,
.home-gallery-card img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.home-gallery-card img {
    object-fit: cover !important;
    object-position: center;
    transition: transform .45s ease, filter .35s ease;
}

.home-gallery-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .16rem;
    padding: clamp(10px, 1.15vw, 16px);
    color: #fff;
    background: linear-gradient(0deg, rgba(21, 11, 8, .86) 0%, rgba(21, 11, 8, .18) 53%, transparent 75%);
    transition: background .3s ease;
}

.home-gallery-card__overlay strong {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(.92rem, 1vw, 1.08rem);
    line-height: 1.08;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .48);
}

.home-gallery-card__overlay span {
    color: rgba(255, 255, 255, .86);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .25s ease, transform .25s ease;
}

.home-gallery-card:hover img,
.home-gallery-card:focus-visible img {
    transform: scale(1.07);
    filter: saturate(1.08) contrast(1.02);
}

.home-gallery-card:hover .home-gallery-card__overlay,
.home-gallery-card:focus-visible .home-gallery-card__overlay {
    background: linear-gradient(0deg, rgba(111, 23, 32, .91) 0%, rgba(50, 19, 17, .24) 60%, transparent 80%);
}

.home-gallery-card:hover .home-gallery-card__overlay span,
.home-gallery-card:focus-visible .home-gallery-card__overlay span {
    opacity: 1;
    transform: none;
}

.home-gallery-card:focus-visible {
    outline: 4px solid #bd8a36;
    outline-offset: 3px;
}

@media (max-width: 1080px) {
    .hero-v15__background img { object-position: 62% 50%; }
    .hero-v15__card { width: min(620px, 72%); }
    .home-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 760px) {
    .hero-v15 {
        min-height: 720px;
        align-items: flex-end;
    }
    .hero-v15__background img {
        object-position: 63% center;
    }
    .hero-v15__shade {
        background: linear-gradient(0deg, rgba(17, 9, 7, .68), rgba(17, 9, 7, .06) 72%);
    }
    .hero-v15__layout {
        padding: 170px 16px 32px;
    }
    .hero-v15__card {
        width: 100%;
        padding: 27px 23px;
        border-radius: 16px;
        background: rgba(247, 239, 227, .96);
    }
    .hero-v15__card h1 {
        max-width: 16ch;
        font-size: clamp(2.15rem, 10.3vw, 3.2rem);
    }
    .home-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px;
    }
}

@media (max-width: 390px) {
    .home-gallery-grid { gap: 7px; }
    .home-gallery-card { border-radius: 10px; }
    .home-gallery-card__overlay { padding: 9px; }
    .home-gallery-card__overlay strong { font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
    .home-gallery-card img,
    .home-gallery-card__overlay,
    .home-gallery-card__overlay span { transition: none; }
}


/* Horario v1.6.0 */
.hours-list {
    display: grid;
    gap: .5rem;
    margin: .7rem 0 1rem;
}
.hours-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: start;
}
.hours-list dt,
.hours-list dd {
    margin: 0;
}
.hours-list dt {
    font-weight: 650;
}
.hours-list dd {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.hours-list--footer > div {
    padding-bottom: .45rem;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.hours-list--footer dd {
    color: rgba(255, 255, 255, .82);
}
.contact-hours {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .8rem;
    align-items: start;
}
.contact-hours__icon {
    color: var(--color-primary, #6f1720);
    line-height: 1;
}
.hours-list--contact {
    margin-top: .8rem;
}
.hours-list--contact > div {
    padding-bottom: .55rem;
    border-bottom: 1px solid rgba(111, 23, 32, .12);
}
@media (max-width: 520px) {
    .hours-list > div {
        grid-template-columns: 1fr;
        gap: .15rem;
    }
    .hours-list dd {
        text-align: left;
    }
}


/* Kit Digital / NextGenerationEU */
.footer-funding {
    margin-top: 1.35rem;
    max-width: 360px;
}
.footer-brand .footer-funding img {
    display: block;
    width: min(100%, 360px);
    height: auto;
    margin: 0 0 .65rem;
    object-fit: contain;
    border-radius: 0;
}
.footer-brand .footer-funding p {
    margin: 0;
    max-width: 34ch;
    color: #efe8df;
    font-size: .86rem;
    line-height: 1.45;
}
@media (max-width: 760px) {
    .footer-funding { max-width: 320px; }
}

/* =========================================================
   Navegación móvil lateral — v1.10.1
   ========================================================= */
.main-nav__mobile-header,
.main-nav__mobile-intro,
.main-nav__mobile-footer,
.nav-backdrop {
    display: none;
}

@media (max-width: 1020px) {
    body.nav-open {
        overflow: hidden;
        touch-action: none;
    }

    .nav-toggle {
        position: relative;
        z-index: 1202;
        display: inline-flex;
        flex: 0 0 48px;
        border-color: rgba(111, 23, 32, .22);
        color: #6f1720;
        background: #fffaf2;
        box-shadow: 0 8px 24px rgba(43, 23, 17, .08);
    }

    .nav-toggle:hover,
    .nav-toggle:focus-visible {
        color: #fff;
        border-color: #6f1720;
        background: #6f1720;
    }

    .main-nav {
        position: fixed;
        z-index: 1201;
        inset: 0 auto 0 0;
        display: flex !important;
        width: min(88vw, 390px);
        height: 100dvh;
        max-height: none;
        padding: 0;
        overflow: hidden auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        color: #211b18;
        background:
            radial-gradient(circle at 15% 12%, rgba(181, 135, 59, .12), transparent 34%),
            linear-gradient(180deg, #fffaf2 0%, #f4eadb 100%);
        border-right: 1px solid rgba(111, 23, 32, .18);
        box-shadow: 24px 0 60px rgba(24, 15, 12, .28);
        transform: translate3d(-105%, 0, 0);
        visibility: hidden;
        opacity: 0;
        transition: transform .36s cubic-bezier(.22, 1, .36, 1), visibility .36s, opacity .22s ease;
        overscroll-behavior: contain;
    }

    .main-nav[data-open='true'] {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        opacity: 1;
    }

    .main-nav__mobile-header {
        display: flex;
        min-height: 104px;
        padding: 1rem 1rem 1rem 1.2rem;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        border-bottom: 1px solid rgba(111, 23, 32, .14);
        background: #fffaf2;
    }

    .main-nav__mobile-brand {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: .75rem;
        color: #211b18;
        text-decoration: none;
    }

    .main-nav__mobile-brand img {
        width: 64px;
        height: 64px;
        flex: 0 0 64px;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 5px 18px rgba(43, 23, 17, .12);
    }

    .main-nav__mobile-brand span {
        display: grid;
        min-width: 0;
        gap: .16rem;
    }

    .main-nav__mobile-brand strong {
        font-family: var(--font-serif);
        font-size: 1.2rem;
        line-height: 1;
        letter-spacing: .055em;
    }

    .main-nav__mobile-brand small {
        color: #6f1720;
        font-size: .55rem;
        font-weight: 800;
        letter-spacing: .19em;
    }

    .main-nav__close {
        display: inline-flex;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        align-items: center;
        justify-content: center;
        color: #6f1720;
        border: 1px solid rgba(111, 23, 32, .2);
        border-radius: 50%;
        background: #fff;
        cursor: pointer;
        transition: color .2s ease, background .2s ease, transform .2s ease;
    }

    .main-nav__close:hover,
    .main-nav__close:focus-visible {
        color: #fff;
        background: #6f1720;
        transform: rotate(4deg);
    }

    .main-nav__close .icon {
        width: 1.35rem;
        height: 1.35rem;
    }

    .main-nav__mobile-intro {
        display: block;
        margin: 0;
        padding: 1.25rem 1.35rem .7rem;
        color: #6c5c52;
        font-family: var(--font-serif);
        font-size: 1.04rem;
        line-height: 1.5;
    }

    .main-nav ul {
        display: grid;
        margin: 0;
        padding: .4rem 1rem 1rem;
        gap: .22rem;
    }

    .main-nav ul li {
        border-bottom: 1px solid rgba(111, 23, 32, .105);
    }

    .main-nav ul a {
        position: relative;
        display: flex;
        min-height: 58px;
        padding: .8rem 2.3rem .8rem .35rem;
        align-items: center;
        color: #211b18;
        border-radius: 0;
        background: transparent;
        font-family: var(--font-serif);
        font-size: 1.22rem;
        font-weight: 700;
        letter-spacing: .01em;
    }

    .main-nav ul a::after {
        position: absolute;
        right: .4rem;
        width: .55rem;
        height: .55rem;
        content: '';
        border-top: 1.5px solid currentColor;
        border-right: 1.5px solid currentColor;
        transform: rotate(45deg);
        opacity: .5;
        transition: transform .2s ease, opacity .2s ease;
    }

    .main-nav ul a:hover,
    .main-nav ul a:focus-visible,
    .main-nav ul a[aria-current='page'] {
        color: #6f1720;
        background: transparent;
    }

    .main-nav ul a[aria-current='page']::before {
        position: absolute;
        left: -.98rem;
        width: 4px;
        height: 60%;
        content: '';
        border-radius: 0 4px 4px 0;
        background: #6f1720;
    }

    .main-nav ul a:hover::after,
    .main-nav ul a:focus-visible::after {
        opacity: 1;
        transform: translateX(3px) rotate(45deg);
    }

    .main-nav__booking {
        width: auto;
        min-height: 52px;
        margin: .2rem 1.35rem 1rem;
        border-radius: .55rem;
        box-shadow: 0 10px 24px rgba(111, 23, 32, .2);
    }

    .main-nav__mobile-footer {
        display: grid;
        margin-top: auto;
        padding: 1.15rem 1.35rem 1.5rem;
        gap: .65rem;
        color: #fff;
        background: #211b18;
    }

    .main-nav__mobile-footer a {
        display: inline-flex;
        min-height: 42px;
        align-items: center;
        gap: .65rem;
        color: #fff;
        font-weight: 700;
        text-decoration: none;
    }

    .main-nav__mobile-footer .icon {
        width: 1.15rem;
        height: 1.15rem;
        color: #d4aa63;
    }

    .nav-backdrop {
        position: fixed;
        z-index: 1200;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(20, 13, 10, .48);
        opacity: 0;
        cursor: pointer;
        transition: opacity .28s ease;
    }

    .nav-backdrop.is-visible {
        opacity: 1;
    }

    .nav-backdrop[hidden] {
        display: none !important;
    }
}

@media (max-width: 430px) {
    .site-header__inner {
        gap: .65rem;
    }

    .brand__text strong {
        font-size: .98rem;
    }

    .brand__text small {
        font-size: .5rem;
    }

    .main-nav {
        width: min(92vw, 370px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-nav,
    .nav-backdrop {
        transition-duration: .001ms !important;
    }
}


/* =========================================================
   Corrección menú móvil — v1.10.2
   Sin capa exterior y con interacción fiable
   ========================================================= */
@media (max-width: 1020px) {
    .site-header {
        z-index: 1300;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .main-nav {
        z-index: 1302;
        pointer-events: none;
    }

    .main-nav[data-open='true'] {
        pointer-events: auto;
    }

    .nav-toggle {
        z-index: 1303;
    }

    .nav-backdrop {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
        background: transparent !important;
    }

    body.nav-open {
        overflow: hidden;
        touch-action: auto;
    }
}
