/* Reboot Cafe — variables, layout, componentes */

:root {
    /* Paleta base */
    --color-secondary-deep: #724330;
    --color-secondary-mid: #844026;
    --color-primary-dark: var(--color-secondary-deep);
    --color-primary: var(--color-secondary-mid);
    --color-primary-light: #d9b68b;
    --color-secondary: #c56d46;
    --color-secondary-dark: #a6401b;

    /*
     * Propuesta "Tostado & Crema"
     * - Secundarios (chocolate) → estructura: nav, bordes cálidos
     * - Primarios (crema/oliva) → superficies y texto
     * - Terracota reservado para detalles, no para todo
     */
    --bg-page: #f3ebe0;
    --bg-surface: #fffbf5;
    --bg-base: #f3ebe0;
    --bg-nav: #844026;
    --bg-hero: linear-gradient(165deg, #e8dcc8 0%, #f3ebe0 55%, #faf6ef 100%);
    --text-primary: var(--color-primary-dark);
    --text-muted: var(--color-secondary-mid);
    --text-on-nav: #d9b68b;
    --text-on-nav-muted: #d9b68b;
    --border-soft: #d9b68b66;
    --shadow-soft: 0 8px 28px #7243301a;

    --accent: var(--color-secondary-dark);
    --accent-hover: var(--color-secondary-mid);
    --accent-soft: var(--color-secondary-mid);
    --nav-hover-bg: #d9b68b1f;
    --nav-active-bg: var(--color-primary-light);
    --nav-active-text: var(--color-primary-dark);
    --btn-text: var(--color-primary-light);

    --header-height: 3.5rem;
    --mobile-nav-bar-height: 4.25rem;

    --nav-width: 23%;

    --scrollbar-track: #e8dcc8;
    --scrollbar-thumb: #844026;
    --scrollbar-thumb-hover: #a6401b;

    --font-body: "Outfit", system-ui, sans-serif;
    --font-heading: "Branley", "Outfit", system-ui, sans-serif;

    color-scheme: light;
}

@font-face {
    font-family: "Branley";
    src: url("../fonts/Branley.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

[data-theme="dark"] {
    --bg-page: #000000;
    --bg-surface: #121212;
    --bg-base: #0a0a0a;
    --bg-nav: #844026;
    --bg-hero: linear-gradient(165deg, #141210 0%, #080808 55%, #000000 100%);
    --text-primary: #d9b68b;
    --text-muted: #d9b68b8c;
    --text-on-nav: #d9b68b;
    --text-on-nav-muted: #d9b68bb3;
    --border-soft: #ffffff14;
    --shadow-soft: 0 8px 32px #00000080;

    --accent: #a6401b;
    --accent-hover: #844026;
    --accent-soft: #d9b68b99;
    --nav-hover-bg: #ffffff0d;
    --nav-active-bg: #ffffff12;
    --nav-active-text: #d9b68b;
    --btn-text: #fff;

    --scrollbar-track: #0a0a0a;
    --scrollbar-thumb: #2e2e2e;
    --scrollbar-thumb-hover: #4a4038;

    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-page);
}

/* Titulos — Branley */

.content-header__title,
.hero__title,
.home-intro__title,
.section__title,
.about-card__title,
.menu-section__title,
.book-calendar__title,
.content-footer__heading,
.whatsapp-redirect__title {
    font-family: var(--font-heading);
    font-weight: 400;
}

/* Scrollbars — paleta Tostado & Crema */

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
    width: 0.65rem;
    height: 0.65rem;
}

*::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border: 2px solid var(--scrollbar-track);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

*::-webkit-scrollbar-corner {
    background: var(--scrollbar-track);
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Layout 27 / 73 */

.app {
    display: grid;
    grid-template-columns: var(--nav-width) 1fr;
    height: 100dvh;
    overflow: hidden;
}

.content {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow-y: auto;
    scroll-behavior: auto;
    background: var(--bg-page);
}

.main {
    padding: 2rem;
}

/* Nav */

.nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    height: 100dvh;
    min-height: 0;
    padding: 1.15rem 1.15rem 1.25rem;
    background: var(--bg-nav);
    color: var(--text-on-nav);
    overflow-y: auto;
    scrollbar-color: var(--color-primary-light) #00000033;
}

.nav::-webkit-scrollbar-track {
    background: #00000022;
}

.nav::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--color-primary-light) 55%, transparent);
    border-color: #00000022;
}

.nav::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}

.nav__bar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    width: 100%;
    padding-top: 0;
    margin-bottom: 0;
}

.nav__bar-lang,
.nav__bar-theme {
    display: flex;
    align-items: center;
}

.nav__bar-lang {
    justify-content: flex-start;
}

.nav__bar-theme {
    justify-content: flex-end;
}

.nav__logo--bar {
    display: none !important;
}

.nav__logo--main {
    display: flex;
}

.nav__bar .content-controls--lang,
.nav__bar .content-controls--theme {
    width: auto;
}

.nav__middle {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    min-height: 0;
    padding: 1rem 0;
}

.nav__logo {
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav__logo img {
    width: min(100%, 8.75rem);
    height: auto;
}

.nav__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
}

.nav__menu li {
    width: 100%;
}

.nav__link {
    position: relative;
    display: block;
    padding: 0.55rem 1rem 0.55rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: var(--text-on-nav-muted);
    transition:
        color 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.nav__link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0.55rem;
    width: 3px;
    height: 0;
    border-radius: 999px;
    background: var(--color-primary-light);
    box-shadow: 0 0 0 transparent;
    transform: translateY(-50%);
    transition:
        height 0.3s ease,
        opacity 0.3s ease,
        box-shadow 0.3s ease;
    opacity: 0;
}

.nav__link:hover,
.nav__link:focus-visible {
    background: linear-gradient(
        90deg,
        rgb(217 182 139 / 0.16) 0%,
        rgb(217 182 139 / 0.04) 55%,
        transparent 100%
    );
    border-color: rgb(217 182 139 / 0.22);
    color: var(--text-on-nav);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
    transform: translateX(3px);
    outline: none;
}

.nav__link:hover::before,
.nav__link:focus-visible::before {
    height: 50%;
    opacity: 1;
    box-shadow: 0 0 10px rgb(217 182 139 / 0.45);
}

.nav__link--active {
    background: linear-gradient(
        135deg,
        rgb(217 182 139 / 0.28) 0%,
        rgb(217 182 139 / 0.1) 100%
    );
    border-color: rgb(217 182 139 / 0.38);
    color: var(--text-on-nav);
    font-weight: 600;
    letter-spacing: 0.06em;
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.12),
        0 6px 20px rgb(0 0 0 / 0.18);
    transform: translateX(4px);
}

.nav__link--active::before {
    height: 68%;
    opacity: 1;
    box-shadow: 0 0 12px rgb(217 182 139 / 0.55);
}

.nav__link--active:hover,
.nav__link--active:focus-visible {
    background: linear-gradient(
        135deg,
        rgb(217 182 139 / 0.34) 0%,
        rgb(217 182 139 / 0.14) 100%
    );
    border-color: rgb(217 182 139 / 0.45);
    transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
    .nav__link,
    .nav__social a {
        transition-duration: 0.01ms;
    }

    .lang-menu__list {
        animation: none;
    }

    .lang-menu__trigger::after {
        transition: none;
    }

    .nav__link:hover,
    .nav__link:focus-visible,
    .nav__link--active,
    .nav__link--active:hover,
    .nav__link--active:focus-visible {
        transform: none;
    }

    .nav__social a:hover,
    .nav__social a:focus-visible {
        transform: none;
    }
}

.nav__social {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    gap: 0.525rem;
    width: 100%;
    margin-top: auto;
    padding-top: 0.75rem;
}

.nav__social a {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    border: solid 1px;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__social a:hover,
.nav__social a:focus-visible {
    background: transparent;
    transform: translateY(-2px);
    opacity: 0.85;
    outline: none;
}

.nav__social img {
    width: 100%;
    height: auto;
}

.nav .content-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    width: 100%;
}

.nav .lang-menu__trigger {
    border-color: rgb(217 182 139 / 0.32);
    background: rgb(0 0 0 / 0.12);
    color: var(--color-primary-light);
}

.nav .lang-menu__trigger:hover,
.nav .lang-menu__trigger:focus-visible {
    background: rgb(217 182 139 / 0.14);
    border-color: rgb(217 182 139 / 0.55);
    outline: none;
}

.nav .lang-menu__trigger[aria-expanded="true"] {
    background: rgb(217 182 139 / 0.18);
    border-color: rgb(217 182 139 / 0.6);
}

.nav .lang-menu__option:hover,
.nav .lang-menu__option:focus-visible {
    background: rgb(217 182 139 / 0.14);
    outline: none;
}

.nav .lang-menu__option--active {
    background: rgb(217 182 139 / 0.1);
    box-shadow: inset 0 0 0 1px rgb(217 182 139 / 0.38);
}

.nav .theme-toggle {
    border-color: rgb(217 182 139 / 0.28);
    color: var(--text-on-nav);
    background: rgb(0 0 0 / 0.08);
}

.nav .theme-toggle:hover,
.nav .theme-toggle:focus-visible {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    outline: none;
}

/* Content header / footer */

.content-header {
    display: flex;
    align-items: center;
    min-height: var(--header-height);
    padding: 0.85rem 1.75rem;
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-surface);
}

.content-header__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    letter-spacing: 0.01em;
    color: var(--color-primary-dark);
}

[data-theme="dark"] .content-header__title {
    color: var(--color-primary-light);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.content-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-menu {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.nav .lang-menu {
    align-items: flex-start;
}

.lang-menu__trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: auto;
    min-width: 2.5rem;
    height: 2rem;
    padding: 0.12rem 0.55rem 0.28rem 0.35rem;
    border: 1px solid var(--border-soft);
    border-radius: 0.25rem;
    background: transparent;
    cursor: pointer;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.lang-menu__trigger::after {
    content: "";
    position: absolute;
    bottom: 0.18rem;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 0.22rem solid transparent;
    border-right: 0.22rem solid transparent;
    border-bottom: 0.28rem solid currentColor;
    opacity: 0.55;
    transform: translateX(-50%);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.lang-menu.is-open .lang-menu__trigger::after {
    transform: translateX(-50%) rotate(180deg);
    opacity: 0.85;
}

.lang-menu__trigger:hover,
.lang-menu__trigger:focus-visible {
    background: color-mix(in srgb, var(--color-primary-light) 18%, transparent);
    border-color: color-mix(in srgb, var(--color-primary) 45%, var(--border-soft));
    outline: none;
}

.lang-menu__trigger img {
    display: block;
    flex: 0 0 auto;
    width: 1.35rem;
    height: 0.95rem;
    object-fit: cover;
    border-radius: 0.12rem;
}

.lang-menu__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
}

.nav .lang-menu__label {
    color: var(--text-on-nav);
}

.lang-menu__list {
    position: absolute;
    top: calc(100% + 0.45rem);
    bottom: auto;
    left: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 7.5rem;
    margin: 0;
    padding: 0.2rem;
    list-style: none;
    border: 1px solid var(--border-soft);
    border-radius: 0.35rem;
    background: var(--bg-surface);
    box-shadow:
        0 8px 24px rgb(0 0 0 / 0.12),
        0 2px 8px rgb(0 0 0 / 0.06);
    transform: none;
    transform-origin: top left;
    animation: lang-menu-drop 0.22s ease;
}

@keyframes lang-menu-drop {
    from {
        opacity: 0;
        transform: translateY(-0.35rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav .lang-menu__list {
    border-color: rgb(217 182 139 / 0.28);
    background: rgb(44 24 16 / 0.96);
    backdrop-filter: blur(10px);
    box-shadow:
        0 12px 32px rgb(0 0 0 / 0.32),
        inset 0 1px 0 rgb(255 255 255 / 0.06);
}

.lang-menu__list[hidden] {
    display: none;
}

.lang-menu__item {
    margin: 0;
    padding: 0;
}

.lang-menu__item + .lang-menu__item {
    border-top: 1px solid rgb(217 182 139 / 0.16);
}

.lang-menu__option {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    min-width: 7rem;
    height: auto;
    min-height: 2rem;
    padding: 0.35rem 0.55rem;
    border: none;
    border-radius: 0.2rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.nav .lang-menu__option {
    color: var(--text-on-nav);
}

.nav .lang-menu__option .lang-menu__label {
    color: inherit;
}

a.lang-menu__option:hover,
a.lang-menu__option:focus-visible {
    background: color-mix(in srgb, var(--color-primary-light) 16%, transparent);
    outline: none;
}

.lang-menu__option--active {
    background: color-mix(in srgb, var(--color-primary-light) 10%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 28%, transparent);
    cursor: default;
}

.lang-menu__option img {
    display: block;
    flex: 0 0 auto;
    width: 1.35rem;
    height: 0.95rem;
    object-fit: cover;
    border-radius: 0.12rem;
}

.content-footer {
    display: flex;
    flex-shrink: 0;
    align-items: stretch;
    justify-content: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-soft);
    background: var(--bg-surface);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.content-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    width: 100%;
    max-width: 72rem;
}

.content-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 2.5rem;
    width: 100%;
    text-align: left;
}

.content-footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.content-footer__heading {
    margin: 0 0 0.15rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-secondary-dark);
}

[data-theme="dark"] .content-footer__heading {
    color: var(--color-secondary);
}

.content-footer__item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.content-footer__hours,
.content-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.content-footer__hours-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.content-footer__hours-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
}

.content-footer__hours-time {
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.content-footer__nav-link {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-footer__nav-link:hover,
.content-footer__nav-link:focus-visible {
    color: var(--color-secondary-dark);
    outline: none;
}

.content-footer__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-secondary-dark);
}

[data-theme="dark"] .content-footer__label {
    color: var(--color-secondary);
}

.content-footer__link {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-footer__link:hover,
.content-footer__link:focus-visible {
    color: var(--color-secondary-dark);
    outline: none;
}

.content-footer__address {
    margin: 0;
    font-style: normal;
    line-height: 1.55;
    color: var(--text-primary);
}

.content-footer__copy {
    margin: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-soft);
    font-size: 0.78rem;
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .content-footer {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .content-footer__grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        text-align: center;
    }

    .content-footer__col {
        align-items: center;
    }

    .content-footer__item,
    .content-footer__hours-item {
        align-items: center;
    }

    .content-footer__hours,
    .content-footer__links {
        align-items: center;
        width: 100%;
    }

    .content-footer__address {
        max-width: 22rem;
    }

    .home-featured--coffee .home-featured__grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        gap: 0;
    }

    .home-featured--coffee .home-featured__card:nth-child(2) {
        padding-top: 1.1rem;
    }

    .home-featured--coffee .home-featured__card:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--border-soft);
        padding-bottom: 1.1rem;
    }

    .home-featured--coffee .home-featured__card:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }
}

/* Theme toggle */

.theme-toggle {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    outline: none;
}

.theme-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
}

[data-theme="light"] .theme-toggle__icon--moon,
[data-theme="dark"] .theme-toggle__icon--sun {
    display: none;
}

/* Hero (home) */

.page-home .hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100dvh;
    padding: 3rem 2rem;
    overflow: hidden;
    isolation: isolate;
    --hero-fade: 1.4s;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #000;
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    transition: opacity var(--hero-fade) ease-in-out;
    will-change: opacity;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 6.5s ease-out;
}

.hero__slide.is-active {
    opacity: 1;
    z-index: 2;
}

.hero__slide.is-active img {
    transform: scale(1.07);
}

.hero__slide.is-leaving {
    opacity: 0;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        105deg,
        rgb(0 0 0 / 0.72) 0%,
        rgb(0 0 0 / 0.45) 42%,
        rgb(0 0 0 / 0.2) 100%
    );
    pointer-events: none;
}

.hero__panels {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 18rem;
}

.hero__panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero__panel.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@keyframes hero-reveal {
    from {
        opacity: 0;
        transform: translateY(1.75rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__reveal {
    opacity: 0;
    transform: translateY(1.75rem);
}

.hero__panel.is-active .hero__eyebrow {
    animation: hero-reveal 0.55s ease forwards 0.05s;
}

.hero__panel.is-active .hero__title {
    animation: hero-reveal 0.6s ease forwards 0.15s;
}

.hero__panel.is-active .hero__text {
    animation: hero-reveal 0.6s ease forwards 0.28s;
}

.hero__panel.is-active .hero__cta {
    animation: hero-reveal 0.6s ease forwards 0.42s;
}

@media (prefers-reduced-motion: reduce) {
    .hero__slide {
        transition: none;
    }

    .hero__slide img {
        transition: none;
        transform: none;
    }

    .hero__reveal,
    .hero__panel.is-active .hero__eyebrow,
    .hero__panel.is-active .hero__title,
    .hero__panel.is-active .hero__text,
    .hero__panel.is-active .hero__cta {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.hero__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary-light);
}

.hero__title {
    margin: 0 0 1rem;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: #fff9f0;
}

.hero__text {
    margin: 0 0 2rem;
    font-size: 1.1rem;
    color: #fff9f0d9;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--btn-text);
    font-weight: 600;
    transition: background 0.2s;
}

.hero__cta:hover,
.hero__cta:focus-visible {
    background: var(--accent-hover);
    outline: none;
}

/* Secciones genéricas */

.page-home .section {
    padding:5rem;
}

.page-home .home-intro__title {
    margin-bottom: 1.75rem;
}

.page-home .section__subtitle {
    margin-bottom: 2.75rem;
}

.home-intro__title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--color-primary-dark);
}

[data-theme="dark"] .home-intro__title {
    color: var(--color-primary-light);
}

.home-intro__text {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.section {
    padding: 4rem 2rem;
}

.section--alt {
    background: var(--bg-surface);
}

.section__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--color-primary-dark);
}

[data-theme="dark"] .section__title {
    color: var(--color-primary-light);
}

.section__subtitle {
    margin: 0 0 2rem;
    color: var(--text-muted);
}

/* Home — platos destacados */

.page-home .home-featured__header {
    margin-bottom: 2.75rem;
}

.page-home .home-featured__grid {
    gap: 1.55rem;
    margin-bottom: 2.75rem;
}

.page-home .home-featured__card {
    padding: 0;
}

.home-featured__header {
    margin-bottom: 2rem;
}

.home-featured__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.home-featured__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    gap: 1.15rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.home-featured__card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
    border: 1px solid var(--border-soft);
    border-radius: 0.75rem;
    background: var(--bg-page);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.home-featured__media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-surface);
}

.home-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-featured__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.1rem 1.1rem;
}

.home-featured__category {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-secondary-dark);
    transition: color 0.28s ease;
}

[data-theme="dark"] .home-featured__category {
    color: var(--text-muted);
}

.home-featured__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.home-featured__name {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-primary-dark);
    transition: color 0.28s ease;
}

[data-theme="dark"] .home-featured__name {
    color: var(--color-primary-light);
}

[data-theme="dark"] .home-featured__card:hover .home-featured__name {
    color: #fff;
}

.home-featured__price {
    flex-shrink: 0;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    line-height: 1.2;
    color: #fffbf5;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    box-shadow: 0 2px 10px rgb(166 64 27 / 0.28);
}

[data-theme="dark"] .home-featured__price {
    color: #fff;
    background: linear-gradient(135deg, #a6401b 0%, #844026 100%);
    box-shadow: 0 2px 12px rgb(0 0 0 / 0.4);
}

.home-featured__desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    transition: color 0.28s ease;
}

/* Home — hover desayunos */

.home-featured:not(.home-featured--coffee) .home-featured__card {
    transition:
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.home-featured:not(.home-featured--coffee) .home-featured__card:hover {
    border-color: color-mix(in srgb, var(--color-secondary) 58%, var(--border-soft));
    box-shadow: 0 10px 28px rgb(114 67 48 / 0.14);
}

.home-featured:not(.home-featured--coffee) .home-featured__card:hover .home-featured__name {
    color: var(--color-secondary-dark);
}

.home-featured:not(.home-featured--coffee) .home-featured__card:hover .home-featured__category {
    color: var(--color-primary);
}

.home-featured:not(.home-featured--coffee) .home-featured__card:hover .home-featured__desc {
    color: var(--color-secondary-mid);
}

[data-theme="dark"] .home-featured:not(.home-featured--coffee) .home-featured__card:hover {
    border-color: rgb(217 182 139 / 0.45);
    box-shadow: 0 10px 28px rgb(0 0 0 / 0.28);
}

[data-theme="dark"] .home-featured:not(.home-featured--coffee) .home-featured__card:hover .home-featured__category {
    color: var(--color-primary-light);
}

[data-theme="dark"] .home-featured:not(.home-featured--coffee) .home-featured__card:hover .home-featured__desc {
    color: #d9b68bcc;
}

.home-featured__cta {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    background: var(--color-secondary-dark);
    color: var(--btn-text);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background 0.25s ease;
}

.home-featured__cta:hover,
.home-featured__cta:focus-visible {
    background: var(--color-secondary-mid);
    outline: none;
}

[data-theme="dark"] .home-featured__cta {
    background: #a6401b;
    color: #fff;
}

[data-theme="dark"] .home-featured__cta:hover,
[data-theme="dark"] .home-featured__cta:focus-visible {
    background: #844026;
}

/* Home — sección café (2 columnas desktop, 1 móvil) */

.page-home .home-featured--coffee {
    padding-top: 7.5rem;
    padding-bottom: 7.5rem;
}

.page-home .home-featured--coffee .home-featured__header {
    margin-bottom: 3rem;
}

.home-featured--coffee .home-featured__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    gap: 0 2.5rem;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.home-featured--coffee .home-featured__card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1.1rem 0;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border-soft);
    background: transparent;
    box-shadow: none;
    overflow: visible;
    transition:
        border-color 0.28s ease,
        background 0.28s ease;
}

.home-featured--coffee .home-featured__card:first-child,
.home-featured--coffee .home-featured__card:nth-child(2) {
    padding-top: 0;
}

.home-featured--coffee .home-featured__card:nth-last-child(-n+2) {
    padding-bottom: 0;
    border-bottom: none;
}

.home-featured--coffee .home-featured__col--media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-featured--coffee .home-featured__col--info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.home-featured--coffee .home-featured__col--price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: center;
}

.home-featured--coffee .home-featured__card:hover {
    border-color: var(--border-soft);
    background: color-mix(in srgb, var(--color-primary-light) 10%, transparent);
}

.home-featured--coffee .home-featured__card:hover .home-featured__name {
    color: var(--color-secondary-dark);
}

.home-featured--coffee .home-featured__card:hover .home-featured__desc {
    color: var(--color-primary-dark);
}

[data-theme="dark"] .home-featured--coffee .home-featured__card:hover {
    border-color: var(--border-soft);
    background: rgb(255 255 255 / 0.04);
}

[data-theme="dark"] .home-featured--coffee .home-featured__card:hover .home-featured__desc {
    color: #d9b68bcc;
}

.home-featured--coffee .home-featured__media {
    flex: none;
    width: 4.75rem;
    height: 4.75rem;
    aspect-ratio: 1 / 1;
    background: var(--bg-surface);
    overflow: hidden;
    border-radius: 50%;
}

.home-featured--coffee .home-featured__name {
    margin: 0;
    font-size: 0.98rem;
}

.home-featured--coffee .home-featured__desc {
    margin: 0;
    width: 100%;
    font-size: 0.86rem;
    line-height: 1.55;
    color: #000;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

[data-theme="dark"] .home-featured--coffee .home-featured__desc {
    color: var(--text-muted);
}

.home-featured--coffee .home-featured__col--price.home-featured__price {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Home — mapa de ubicación */

.page-home .home-map {
    padding-top: 7.5rem;
    padding-bottom: 7.5rem;
}

.home-map__header {
    margin-bottom: 2rem;
}

.page-home .home-map .home-featured__cta {
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .home-featured__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }
}

@media (max-width: 520px) {
    .home-featured__grid {
        grid-template-columns: 1fr;
    }

    .page-home .home-featured--coffee {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    .page-home .home-map {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    .home-featured--coffee .home-featured__grid {
        max-width: none;
    }

    .home-featured--coffee .home-featured__card {
        gap: 0.9rem;
        padding: 1rem 0;
    }

    .home-featured--coffee .home-featured__media {
        width: 3.75rem;
        height: 3.75rem;
    }

    .home-featured--coffee .home-featured__name {
        font-size: 0.92rem;
    }

    .home-featured--coffee .home-featured__desc {
        font-size: 0.82rem;
        -webkit-line-clamp: 3;
    }

    .home-featured--coffee .home-featured__col--price.home-featured__price {
        padding: 0.28rem 0.6rem;
        font-size: 0.84rem;
    }

    .whatsapp-float__text {
        display: none;
    }

    .whatsapp-float {
        width: 3.35rem;
        height: 3.35rem;
        padding: 0;
        justify-content: center;
    }
}

/* Página interior */

.page-intro {
    padding: 0.85rem 1.75rem 0;
}

.page-intro p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.page-body {
    padding: 1.5rem 1.75rem 2rem;
}

.legal-page {
    max-width: 42rem;
}

.legal-page p {
    margin: 0 0 1rem;
    line-height: 1.7;
    color: #000;
}

.legal-page p:last-child {
    margin-bottom: 0;
}

[data-theme="dark"] .legal-page p {
    color: var(--text-muted);
}

/* Contacto */

.contact-page {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    gap: 2.5rem 3rem;
    align-items: start;
}

.contact-page__intro {
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #000;
}

[data-theme="dark"] .contact-page__intro {
    color: var(--text-muted);
}

.contact-page__details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-page__item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-page__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-secondary-dark);
}

[data-theme="dark"] .contact-page__label {
    color: var(--color-secondary);
}

.contact-page__link {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-page__link:hover,
.contact-page__link:focus-visible {
    color: var(--color-secondary-dark);
    outline: none;
}

.contact-page__address {
    margin: 0;
    font-style: normal;
    line-height: 1.6;
    color: var(--text-primary);
}

.contact-page__form {
    min-width: 0;
}

@media (max-width: 768px) {
    .contact-page {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.25rem;
}

.card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.card h3 {
    margin: 0 0 0.5rem;
    color: var(--color-primary);
}

[data-theme="dark"] .card h3 {
    color: var(--color-primary-light);
}

.card p {
    margin: 0;
    color: var(--text-muted);
}

/* Nosotros / About */

.page-body:has(.about-page) {
    padding: 2rem 2.5rem 3rem;
}

.page-about .page-intro p,
.about-card__text,
.about-values__item p,
.about-team__item p {
    color: #000;
}

[data-theme="dark"] .page-about .page-intro p,
[data-theme="dark"] .about-card__text,
[data-theme="dark"] .about-values__item p,
[data-theme="dark"] .about-team__item p {
    color: var(--text-muted);
}

.about-page {
    display: grid;
    gap: 3rem;
    width: 100%;
}

.about-page > * + * {
    border-top: 1px solid var(--border-soft);
    padding-top: 3rem;
}

.about-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

.about-split--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.about-split--reverse .about-split__media {
    order: 2;
}

.about-split--reverse .about-card {
    order: 1;
}

.about-split__media {
    margin: 0;
    overflow: hidden;
    border: none;
    border-radius: 0.35rem;
    background: transparent;
    box-shadow: none;
}

.about-split__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}

.about-card {
    padding: 0 0.25rem;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.about-pillars .about-card {
    padding: 0 1.75rem;
    border-left: 1px solid var(--border-soft);
}

.about-pillars .about-card:first-child {
    padding-left: 0.25rem;
    border-left: none;
}

.about-card--wide {
    width: 100%;
}

.about-card__title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.1rem;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    letter-spacing: 0.02em;
    color: var(--color-primary-dark);
}

[data-theme="dark"] .about-card__title {
    color: var(--color-primary-light);
}

.about-card__icon {
    flex: 0 0 auto;
    font-size: 1.2rem;
    line-height: 1;
}

.about-card__text {
    margin: 0;
    line-height: 1.75;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0;
}

.about-gallery__item {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 1;
    border: none;
    border-radius: 0.35rem;
    background: transparent;
    box-shadow: none;
}

.about-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-values__item {
    padding: 0 0 2rem;
    border: none;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
    background: transparent;
}

.about-values__item h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-secondary-dark);
}

[data-theme="dark"] .about-values__item h3 {
    color: var(--color-secondary);
}

.about-values__item p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
}

.about-team {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.about-team__item {
    padding: 0 1.75rem;
    border: none;
    border-left: 1px solid var(--border-soft);
    border-radius: 0;
    background: transparent;
}

.about-team__item:first-child {
    padding-left: 0.25rem;
    border-left: none;
}

.about-team__item h3 {
    margin: 0 0 0.45rem;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-secondary-dark);
}

[data-theme="dark"] .about-team__item h3 {
    color: var(--color-secondary);
}

.about-team__item p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.6;
}

@media (max-width: 960px) {
    .page-body:has(.about-page) {
        padding: 1.75rem 1.5rem 2.5rem;
    }

    .about-page {
        gap: 2.5rem;
    }

    .about-page > * + * {
        padding-top: 2.5rem;
    }

    .about-split,
    .about-split--reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-split--reverse .about-split__media,
    .about-split--reverse .about-card {
        order: unset;
    }

    .about-pillars {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .about-pillars .about-card {
        padding: 2rem 0.25rem 0;
        border-left: none;
        border-top: 1px solid var(--border-soft);
    }

    .about-pillars .about-card:first-child {
        padding-top: 0;
        border-top: none;
    }

    .about-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-values,
    .about-team {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .about-values__item {
        padding-bottom: 1.75rem;
    }

    .about-values__item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .about-team__item {
        padding: 1.75rem 0.25rem 0;
        border-left: none;
        border-top: 1px solid var(--border-soft);
    }

    .about-team__item:first-child {
        padding-top: 0;
        border-top: none;
    }
}

@media (max-width: 520px) {
    .about-gallery {
        grid-template-columns: 1fr 1fr;
    }
}

/* Carta — tabs y listado */

.menu-tabs {
    --menu-tab-bg: #fffbf5;
    --menu-tab-border: color-mix(in srgb, var(--color-primary-light) 55%, transparent);
    --menu-tab-text: color-mix(in srgb, var(--color-secondary-mid) 78%, var(--color-secondary-deep));
    --menu-tab-hover-bg: #f3ebe0;
    --menu-tab-hover-border: color-mix(in srgb, var(--color-secondary) 45%, var(--color-primary-light));
    --menu-tab-active-bg: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    --menu-tab-active-text: #fffbf5;
    --menu-tab-active-shadow: 0 3px 14px rgb(166 64 27 / 0.28);
}

[data-theme="dark"] .menu-tabs {
    --menu-tab-bg: #ffffff0a;
    --menu-tab-border: #ffffff18;
    --menu-tab-text: #d9b68bb3;
    --menu-tab-hover-bg: #ffffff12;
    --menu-tab-hover-border: #d9b68b55;
    --menu-tab-active-bg: linear-gradient(135deg, #a6401b 0%, #844026 100%);
    --menu-tab-active-text: #fff;
    --menu-tab-active-shadow: 0 3px 16px rgb(0 0 0 / 0.42);
}

.menu-tabs__nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.65rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    background: color-mix(in srgb, var(--bg-surface) 88%, var(--color-primary-light));
    box-shadow: inset 0 1px 0 rgb(255 251 245 / 0.65);
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.menu-tabs__nav::-webkit-scrollbar {
    height: 0.45rem;
}

.menu-tabs__nav::-webkit-scrollbar-track {
    margin: 0 0.35rem;
    background: transparent;
    border-radius: 999px;
}

.menu-tabs__nav::-webkit-scrollbar-thumb {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 999px;
}

@media (hover: hover) {
    .menu-tabs__nav:hover {
        scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    }

    .menu-tabs__nav:hover::-webkit-scrollbar-track {
        background: var(--scrollbar-track);
    }

    .menu-tabs__nav:hover::-webkit-scrollbar-thumb {
        background: var(--scrollbar-thumb);
        border-color: var(--scrollbar-track);
    }

    .menu-tabs__nav:hover::-webkit-scrollbar-thumb:hover {
        background: var(--scrollbar-thumb-hover);
    }
}

[data-theme="dark"] .menu-tabs__nav {
    background: #ffffff06;
    box-shadow: inset 0 1px 0 #ffffff08;
}

.menu-tabs__btn {
    flex: 0 0 auto;
    padding: 0.58rem 1.05rem;
    border: 1px solid var(--menu-tab-border);
    border-radius: 999px;
    background: var(--menu-tab-bg);
    color: var(--menu-tab-text);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition:
        color 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.18s ease;
}

.menu-tabs__btn:hover {
    color: var(--color-secondary-deep);
    background: var(--menu-tab-hover-bg);
    border-color: var(--menu-tab-hover-border);
}

[data-theme="dark"] .menu-tabs__btn:hover {
    color: var(--color-primary-light);
}

.menu-tabs__btn:focus-visible {
    outline: 2px solid var(--color-secondary-dark);
    outline-offset: 2px;
}

.menu-tabs__btn.is-active {
    color: var(--menu-tab-active-text);
    background: var(--menu-tab-active-bg);
    border-color: transparent;
    box-shadow: var(--menu-tab-active-shadow);
}

.menu-tabs__btn.is-active:hover {
    color: var(--menu-tab-active-text);
    background: var(--menu-tab-active-bg);
    border-color: transparent;
    filter: brightness(1.06);
}

.menu-tabs__panel {
    display: none;
}

.menu-tabs__panel.is-active {
    display: block;
}

.menu-tabs__hours {
    margin: 0 0 1.15rem;
    padding: 0.48rem 0.9rem;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-secondary-deep);
    background: color-mix(in srgb, var(--color-primary-light) 38%, var(--bg-surface));
    border: 1px solid color-mix(in srgb, var(--color-secondary) 22%, transparent);
    border-radius: 999px;
}

[data-theme="dark"] .menu-tabs__hours {
    color: var(--color-primary-light);
    background: #ffffff0c;
    border-color: #ffffff14;
}

.menu-section__title {
    margin: 1.5rem 0 0.85rem;
    padding-bottom: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-secondary-dark);
    border-bottom: 1px solid var(--border-soft);
}

[data-theme="dark"] .menu-section__title {
    color: var(--text-muted);
}

.menu-section__title:first-child {
    margin-top: 0;
}

.menu-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-list__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1.02rem;
    padding: 1.02rem 0;
    border: none;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.menu-list__item:first-child {
    padding-top: 0;
}

.menu-list__col--media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-list__col--info {
    min-width: 0;
}

.menu-list__col--price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: center;
}

.menu-list__thumb {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-surface);
}

.menu-list__name {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    color: #724330;
}

[data-theme="dark"] .menu-list__name {
    color: var(--color-primary-light);
}

.menu-list__price {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #fffbf5;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    box-shadow: 0 2px 10px rgb(166 64 27 / 0.24);
}

[data-theme="dark"] .menu-list__price {
    color: #fff;
    background: linear-gradient(135deg, #a6401b 0%, #844026 100%);
    box-shadow: 0 2px 12px rgb(0 0 0 / 0.38);
}

.menu-list__desc {
    margin: 0.42rem 0 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #000;
}

[data-theme="dark"] .menu-list__desc {
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .menu-list {
        grid-template-columns: 1fr;
    }
}

/* Formulario reserva / contacto */

.form {
    display: grid;
    gap: 1rem;
}

.form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 500;
}

.form input,
.form textarea,
.form select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 0.5rem;
    background: var(--bg-page);
    color: var(--text-primary);
    font: inherit;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

/* Reserva — formulario por etapas */

.book-form {
    max-width: 32rem;
}

.book-form__steps {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.book-form__step-label {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
}

.book-form__step-label--active {
    color: var(--btn-text);
    background: var(--accent);
    border-color: var(--accent);
}

.book-form__step[hidden] {
    display: none !important;
}

.book-calendar {
    padding: 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 0.75rem;
    background: var(--bg-surface);
}

.book-calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.book-calendar__title {
    margin: 0;
    font-size: 1rem;
    text-transform: capitalize;
    color: var(--text-primary);
}

.book-calendar__nav {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--border-soft);
    border-radius: 0.45rem;
    background: var(--bg-page);
    color: var(--text-primary);
    font: inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.book-calendar__nav:hover:not(:disabled),
.book-calendar__nav:focus-visible {
    border-color: var(--accent);
    outline: none;
}

.book-calendar__nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.book-calendar__weekdays,
.book-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
}

.book-calendar__weekdays {
    margin-bottom: 0.35rem;
}

.book-calendar__weekdays span {
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.book-calendar__day {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.book-calendar__day:hover:not(:disabled),
.book-calendar__day:focus-visible {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    outline: none;
}

.book-calendar__day.is-selected {
    color: var(--btn-text);
    background: var(--accent);
    border-color: var(--accent);
}

.book-calendar__day--disabled,
.book-calendar__day--empty {
    cursor: default;
}

.book-calendar__day--disabled {
    color: var(--text-muted);
    opacity: 0.45;
}

.book-calendar__day--empty {
    visibility: hidden;
}

.book-form__time {
    margin-top: 1rem;
}

.book-form__time-label {
    display: grid;
    gap: 0.35rem;
    font-weight: 500;
}

.book-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.book-form__actions--split {
    justify-content: space-between;
    gap: 0.75rem;
}

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    background: var(--bg-surface);
    outline: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: var(--btn-text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover,
.btn:focus-visible {
    background: var(--accent-hover);
    outline: none;
}

.map-embed {
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--border-soft);
    background: var(--bg-surface);
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: clamp(18rem, 52vh, 28rem);
    border: 0;
}

.map-placeholder {
    display: grid;
    place-items: center;
    min-height: 18rem;
    border-radius: 1rem;
    border: 1px dashed var(--border-soft);
    background: var(--bg-surface);
    color: var(--text-muted);
}

/* WhatsApp — boton flotante y redireccion */

.whatsapp-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 125;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    max-width: calc(100vw - 2rem);
    padding: 0.7rem 1rem 0.7rem 0.8rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 10px 28px rgb(37 211 102 / 0.38);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgb(37 211 102 / 0.45);
    outline: none;
}

.whatsapp-float__icon {
    display: grid;
    flex: 0 0 auto;
    width: 1.45rem;
    height: 1.45rem;
}

.whatsapp-float__icon svg {
    width: 100%;
    height: 100%;
}

.whatsapp-float__text {
    font-variant-numeric: tabular-nums;
}

.whatsapp-redirect {
    display: grid;
    place-items: center;
    min-height: 18rem;
    padding: 2rem 0;
}

.whatsapp-redirect__card {
    width: min(100%, 28rem);
    padding: 2rem 1.75rem;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    background: var(--bg-surface);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.whatsapp-redirect__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #25d366;
}

.whatsapp-redirect__title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    color: var(--color-primary-dark);
}

[data-theme="dark"] .whatsapp-redirect__title {
    color: var(--color-primary-light);
}

.whatsapp-redirect__text {
    margin: 0 0 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.whatsapp-redirect__phone {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}

.whatsapp-redirect__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.2s ease;
}

.whatsapp-redirect__link:hover,
.whatsapp-redirect__link:focus-visible {
    filter: brightness(1.06);
    outline: none;
}

/* Nav drawer — movil */

.nav-drawer-toggle,
.nav-drawer {
    display: none;
}

.nav-drawer-toggle {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 120;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border: 1px solid rgb(217 182 139 / 0.35);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: #fffbf5;
    cursor: pointer;
    box-shadow: 0 8px 24px rgb(166 64 27 / 0.35);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.nav-drawer-toggle:hover,
.nav-drawer-toggle:focus-visible {
    filter: brightness(1.06);
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgb(166 64 27 / 0.42);
}

.nav-drawer-toggle__icon {
    display: grid;
    width: 1.35rem;
    height: 1.35rem;
}

.nav-drawer-toggle__icon svg {
    width: 100%;
    height: 100%;
}

.nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 110;
    pointer-events: none;
}

.nav-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 0.52);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.nav-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: min(88vw, 21rem);
    height: 100dvh;
    padding: 1.35rem 1.15rem 1.5rem;
    background: var(--bg-nav);
    color: var(--text-on-nav);
    box-shadow: -12px 0 40px rgb(0 0 0 / 0.28);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
}

.nav-drawer.is-open {
    pointer-events: auto;
}

.nav-drawer.is-open .nav-drawer__backdrop {
    opacity: 1;
}

.nav-drawer.is-open .nav-drawer__panel {
    transform: translateX(0);
}

.nav-drawer__close {
    align-self: flex-end;
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 1px solid rgb(217 182 139 / 0.32);
    border-radius: 0.5rem;
    background: rgb(0 0 0 / 0.12);
    color: var(--text-on-nav);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-drawer__close svg {
    width: 1.1rem;
    height: 1.1rem;
}

.nav-drawer__close:hover,
.nav-drawer__close:focus-visible {
    background: rgb(217 182 139 / 0.14);
    border-color: rgb(217 182 139 / 0.55);
    outline: none;
}

.nav-drawer__logo {
    display: flex;
    justify-content: center;
}

.nav-drawer__logo img {
    width: min(100%, 8.25rem);
    height: auto;
}

.nav-drawer__menu {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    margin: 0;
    padding: 0;
}

.nav-drawer__menu li {
    width: 100%;
}

body.nav-drawer-open {
    overflow: hidden;
}

body.nav-drawer-open .content {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .nav-drawer__backdrop,
    .nav-drawer__panel,
    .nav-drawer-toggle {
        transition-duration: 0.01ms;
    }
}

/* Responsive */

@media (max-width: 900px) {
    .app {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: auto;
        min-height: 100dvh;
    }

    .nav-drawer-toggle,
    .nav-drawer {
        display: block;
    }

    .nav-drawer-toggle {
        display: inline-flex;
        bottom: 5.5rem;
    }

    .nav {
        position: relative;
        z-index: 90;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        height: var(--mobile-nav-bar-height);
        min-height: var(--mobile-nav-bar-height);
        padding: 0;
        overflow: visible;
        background: transparent;
    }

    .nav__bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 90;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 0.65rem;
        width: 100%;
        min-height: var(--mobile-nav-bar-height);
        padding: 0.65rem 1rem;
        background: var(--bg-nav);
        box-shadow: 0 4px 18px rgb(0 0 0 / 0.18);
    }

    .nav__bar-lang {
        grid-column: 1;
    }

    .nav__logo--bar {
        display: flex !important;
        grid-column: 2;
        justify-content: center;
        justify-self: center;
        width: auto;
    }

    .nav__logo--bar img {
        width: 5.2rem;
        height: auto;
    }

    .nav__bar-theme {
        grid-column: 3;
        justify-self: end;
    }

    .nav__bar .lang-menu__label {
        display: none;
    }

    .nav__bar .lang-menu__trigger {
        min-width: 2.35rem;
        padding: 0.12rem 0.35rem 0.28rem;
    }

    .nav__middle,
    .nav__social {
        display: none;
    }

    .nav .content-controls--lang,
    .nav .content-controls--theme {
        width: auto;
    }

    .content {
        height: auto;
        min-height: calc(100dvh - var(--mobile-nav-bar-height));
    }

    .page-home .hero {
        min-height: 100dvh;
    }

    .page-home .section {
        padding: 4rem 2rem;
    }
}
