/* ========================================
   Las 3 Estaciones — Inspired by Tatte Bakery
   Clean, editorial, sophisticated
   ======================================== */

:root {
    color-scheme: light;

    /* Fixed brand colours — identical in both themes.
       Used where a surface is dark on purpose (top bar, footer, score card). */
    --black: #1a1a1a;
    --white: #ffffff;
    --brown: #5C3D2E;
    --brown-dark: #3E2723;
    --green: #043927;
    --gold: #C8A96E;
    --gold-light: #D4BC8B;

    /* Theme tokens — these are what dark mode swaps */
    --page-bg: #ffffff;      /* page background */
    --surface: #ffffff;      /* cards, navbar, panels */
    --light-bg: #f8f6f3;     /* alternating sections */
    --cream: #faf8f5;
    --pink: #F2DCDB;
    --heading: #1a1a1a;      /* titles */
    --dark: #2c2c2c;
    --text: #4a4a4a;         /* body copy */
    --text-light: #6f6a64;   /* secondary copy — 5.4:1 on white, passes WCAG AA */
    --border: #e0e0e0;
    --btn-bg: #1a1a1a;       /* solid buttons */
    --btn-fg: #ffffff;
    --accent: #5C3D2E;       /* brown used as text/links */
    --accent-soft: #043927;  /* green used as text/outline */

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Nunito', -apple-system, sans-serif;

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   DARK THEME
   Applied when the visitor picks it, or when their device
   asks for it and they haven't chosen manually (data-theme="auto").
   ======================================== */
:root[data-theme="dark"] {
    color-scheme: dark;

    --page-bg: #14110f;
    --surface: #1e1a17;
    --light-bg: #1a1613;
    --cream: #14110f;
    --pink: #241d1c;
    --heading: #f2ede7;
    --dark: #e4ded7;
    --text: #c6bfb6;
    --text-light: #9a9188;
    --border: #363029;
    --btn-bg: #f2ede7;
    --btn-fg: #1a1512;
    --accent: #d9ae86;
    --accent-soft: #86bb9b;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Text size levels chosen in the accessibility panel.
   Everything is sized in rem, so this scales the whole page. */
:root[data-font="1"] { font-size: 112.5%; }
:root[data-font="2"] { font-size: 125%; }

/* Give the hero room to breathe when the text is enlarged */
:root[data-font="1"] .hero { min-height: 620px; }
:root[data-font="2"] .hero { min-height: 700px; }

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--page-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.wide { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    background: var(--green);
    color: var(--white);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 400;
}

/* ========================================
   NAVBAR — Centered logo like Tatte
   ======================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s var(--ease);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    position: relative;
}

.nav-left, .nav-right {
    display: flex;
    gap: 32px;
    flex: 1;
    align-items: center;
}

.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }

.nav-link {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--dark);
    transition: color 0.2s;
    padding: 4px 0;
}

.nav-link:hover { color: var(--accent); }

.nav-link--icon { font-size: 1.3rem; }

.nav-link--icon .fa-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s;
}

.nav-link--icon:hover .fa-instagram {
    transform: scale(1.15);
}

.nav-brand {
    flex-shrink: 0;
    margin: 0 40px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-brand-img {
    height: 68px;
    width: auto;
}

.nav-brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--heading);
    text-align: left;
}

.nav-brand-name small {
    font-family: var(--font-sans);
    font-size: 0.55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
    margin-top: 4px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    position: absolute;
    right: 40px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--btn-bg);
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.mobile-menu.active { display: flex; }

.mobile-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--dark);
    transition: color 0.2s;
}

.mobile-link:hover { color: var(--accent); }

/* ========================================
   HERO — Video Background
   ======================================== */
.hero {
    position: relative;
    height: 90vh;
    min-height: 500px;
    max-height: 900px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(0.3px) brightness(0.95) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 20, 15, 0.35) 0%,
        rgba(30, 20, 15, 0.25) 40%,
        rgba(30, 20, 15, 0.50) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 700px;
    padding: 0 80px;
    color: var(--white);
}

/* Translucent panel so the text stays readable over any frame of the video */
.hero-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 38px 32px;
    border-radius: 8px;
    background: rgba(24, 15, 11, 0.52);
    -webkit-backdrop-filter: blur(12px) saturate(115%);
    backdrop-filter: blur(12px) saturate(115%);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.8;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 32px;
}

.hero-content h1 em {
    font-style: italic;
    font-weight: 400;
}

.hero-cta {
    display: inline-block;
    padding: 14px 32px;
    border: 1.5px solid var(--white);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s;
    align-self: flex-start;
}

.hero-cta:hover {
    /* sits over the video, so it stays white in both themes */
    background: var(--white);
    color: var(--brown-dark);
}

/* ========================================
   CARDS (3 columns — Tatte style)
   ======================================== */
.section-cards {
    padding: 80px 0;
}

.section-cards--alt {
    background: var(--pink);
}

.cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.card:hover .card-img img { transform: scale(1.05); }

.card h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--heading);
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.card-action {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-soft);
    border: 1.5px solid var(--accent-soft);
    padding: 10px 24px;
    border-radius: 30px;
    transition: background 0.3s, color 0.3s;
    margin-top: 4px;
}

.card-action:hover {
    background: var(--green);
    color: #fff;
}

/* ========================================
   SPLIT SECTION (like Tatte "Our Cafés")
   ======================================== */
.split {
    padding: 100px 0;
    background: var(--light-bg);
}

.split-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.split-text h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.15;
    color: var(--heading);
    margin-bottom: 24px;
}

.split-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 16px;
}

.btn-dark {
    display: inline-block;
    margin-top: 16px;
    padding: 14px 36px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: background 0.3s;
}

.btn-dark:hover { background: var(--accent); color: var(--white); }

.split-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   MENU
   ======================================== */
.section-menu {
    padding: 100px 0;
    background: var(--surface);
    text-align: center;
}

.menu-cta-block {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.menu-cta-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
}

.menu-cta-block h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 500;
    color: var(--heading);
    line-height: 1.15;
}

.menu-cta-desc {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 520px;
}

.menu-cta-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 18px 48px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.menu-cta-btn:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========================================
   GALLERY
   ======================================== */
.section-gallery {
    padding: 100px 0;
    background: var(--light-bg);
}

.gallery-head {
    text-align: center;
    margin-bottom: 48px;
}

.gallery-head h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 500;
    color: var(--heading);
    margin-bottom: 12px;
}

.gallery-head p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 6px;
}

.gal-item {
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px;
    transition: box-shadow 0.4s var(--ease);
}

.gal-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.gal-item:hover img { transform: scale(1.05); }

.gal-wide { grid-column: span 2; }

.gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

/* ========================================
   CONTACT
   ======================================== */
.section-contact {
    padding: 100px 0;
    background: var(--surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-text h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.15;
    color: var(--heading);
    margin-bottom: 40px;
}

.contact-items { display: flex; flex-direction: column; gap: 24px; }

.ci-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.ci p { font-size: 0.95rem; color: var(--dark); }

.ci a {
    color: var(--accent);
    font-weight: 500;
    transition: opacity 0.2s;
}

.ci a:hover { opacity: 0.7; }

.contact-map {
    width: 100%;
    min-height: 400px;
}

.map-ph {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: var(--light-bg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-light);
}

.map-ph i { font-size: 2rem; opacity: 0.3; }
.map-ph p { font-size: 0.9rem; opacity: 0.4; }
.map-ph small { font-size: 0.75rem; opacity: 0.3; }

/* ========================================
   FOOTER — Dark like Tatte
   ======================================== */
.footer {
    background: var(--green);
    color: rgba(255,255,255,0.6);
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    height: 56px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}

.footer-email {
    font-size: 0.85rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
}

.footer-col a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}

.footer-col a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
    padding: 24px 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

/* ========================================
   BACK TO TOP
   ======================================== */
.btt {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 90;
}

.btt.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.btt:hover { background: var(--accent); color: var(--white); }

/* ========================================
   SPLASH SCREEN
   ======================================== */
.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.splash.hide {
    opacity: 0;
    visibility: hidden;
}

.splash-logo {
    width: 140px;
    height: auto;
    animation: splashPulse 1.4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes splashPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 1; }
}

/* Splash Birds (black seagull silhouettes) */
.splash-bird {
    position: absolute;
    opacity: 0;
}
.splash-bird-1 {
    width: 36px;
    top: 18%;
    left: 15%;
    animation: birdFly1 2.8s ease-in-out 0.2s forwards;
}
.splash-bird-2 {
    width: 28px;
    top: 14%;
    left: 28%;
    animation: birdFly2 3s ease-in-out 0.5s forwards;
}
.splash-bird-3 {
    width: 22px;
    top: 24%;
    left: 22%;
    animation: birdFly1 2.6s ease-in-out 0.8s forwards;
}
.splash-bird-4 {
    width: 18px;
    top: 20%;
    right: 28%;
    animation: birdFly2 3.2s ease-in-out 0.4s forwards;
}
.splash-bird-5 {
    width: 24px;
    top: 12%;
    right: 18%;
    animation: birdFly1 2.9s ease-in-out 0.7s forwards;
}
@keyframes birdFly1 {
    0%   { opacity: 0; transform: translate(0, 30px) scale(0.6); }
    15%  { opacity: 0.7; }
    40%  { opacity: 0.55; transform: translate(50px, -30px) scale(0.85); }
    70%  { opacity: 0.35; transform: translate(110px, -60px) scale(0.7); }
    100% { opacity: 0; transform: translate(180px, -100px) scale(0.5); }
}
@keyframes birdFly2 {
    0%   { opacity: 0; transform: translate(0, 20px) scale(0.6); }
    15%  { opacity: 0.65; }
    40%  { opacity: 0.5; transform: translate(-40px, -35px) scale(0.9); }
    70%  { opacity: 0.3; transform: translate(-90px, -65px) scale(0.75); }
    100% { opacity: 0; transform: translate(-160px, -100px) scale(0.5); }
}

/* Splash Book Pages */
.splash-page {
    position: absolute;
    opacity: 0;
}
.splash-page-1 {
    width: 32px;
    top: 55%;
    right: 16%;
    animation: pageFloat1 2.8s ease-in-out 0.3s forwards;
}
.splash-page-2 {
    width: 26px;
    top: 60%;
    right: 30%;
    animation: pageFloat2 3s ease-in-out 0.6s forwards;
}
.splash-page-3 {
    width: 22px;
    top: 50%;
    left: 18%;
    animation: pageFloat3 2.6s ease-in-out 0.5s forwards;
}
@keyframes pageFloat1 {
    0%   { opacity: 0; transform: translate(0, -10px) rotate(-5deg); }
    20%  { opacity: 0.7; }
    50%  { opacity: 0.5; transform: translate(-30px, 40px) rotate(25deg); }
    80%  { opacity: 0.25; transform: translate(-50px, 70px) rotate(50deg); }
    100% { opacity: 0; transform: translate(-60px, 100px) rotate(70deg); }
}
@keyframes pageFloat2 {
    0%   { opacity: 0; transform: translate(0, -10px) rotate(8deg); }
    25%  { opacity: 0.65; }
    55%  { opacity: 0.45; transform: translate(20px, 45px) rotate(-20deg); }
    80%  { opacity: 0.2; transform: translate(35px, 75px) rotate(-45deg); }
    100% { opacity: 0; transform: translate(45px, 100px) rotate(-60deg); }
}
@keyframes pageFloat3 {
    0%   { opacity: 0; transform: translate(0, -5px) rotate(0deg) scale(0.9); }
    20%  { opacity: 0.6; }
    50%  { opacity: 0.4; transform: translate(15px, 35px) rotate(30deg) scale(1); }
    80%  { opacity: 0.2; transform: translate(25px, 65px) rotate(55deg) scale(0.85); }
    100% { opacity: 0; transform: translate(30px, 90px) rotate(70deg) scale(0.7); }
}

/* Splash Coffee Beans */
.splash-bean {
    position: absolute;
    opacity: 0;
}
.splash-bean-1 {
    width: 14px;
    top: 40%;
    left: 25%;
    animation: beanFall1 2.5s ease-in-out 0.3s forwards;
}
.splash-bean-2 {
    width: 11px;
    top: 35%;
    right: 22%;
    animation: beanFall2 2.8s ease-in-out 0.5s forwards;
}
.splash-bean-3 {
    width: 13px;
    top: 65%;
    left: 32%;
    animation: beanFall1 2.6s ease-in-out 0.7s forwards;
}
.splash-bean-4 {
    width: 10px;
    top: 45%;
    right: 35%;
    animation: beanFall2 2.4s ease-in-out 0.4s forwards;
}
.splash-bean-5 {
    width: 12px;
    bottom: 28%;
    left: 40%;
    animation: beanFall1 3s ease-in-out 0.6s forwards;
}
@keyframes beanFall1 {
    0%   { opacity: 0; transform: translate(0, -20px) rotate(0deg); }
    20%  { opacity: 0.7; }
    50%  { opacity: 0.55; transform: translate(10px, 30px) rotate(60deg); }
    80%  { opacity: 0.3; transform: translate(15px, 60px) rotate(120deg); }
    100% { opacity: 0; transform: translate(20px, 90px) rotate(180deg); }
}
@keyframes beanFall2 {
    0%   { opacity: 0; transform: translate(0, -15px) rotate(0deg); }
    20%  { opacity: 0.65; }
    50%  { opacity: 0.5; transform: translate(-12px, 25px) rotate(-50deg); }
    80%  { opacity: 0.25; transform: translate(-18px, 55px) rotate(-110deg); }
    100% { opacity: 0; transform: translate(-22px, 85px) rotate(-170deg); }
}

/* ========================================
   MENU EXTRAS
   ======================================== */
.menu-extras {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    font-size: 0.82rem;
    color: var(--text-light);
    font-style: italic;
}

/* ========================================
   MOBILE BOTTOM NAV
   ======================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
}

.mbn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.65rem;
    color: var(--text-light);
    text-decoration: none;
    background: none;
    border: none;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px 8px;
}

.mbn-item i { font-size: 1.15rem; }

.mbn-item:hover,
.mbn-item:active { color: var(--accent-soft); }

.mbn-item--ig i {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   LIGHTBOX MODAL
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
    cursor: zoom-out;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.92);
    transition: transform 0.4s var(--ease);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 2.2rem;
    color: rgba(255,255,255,0.7);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    z-index: 2;
    line-height: 1;
    padding: 8px;
}

.lightbox-close:hover {
    color: #fff;
    transform: scale(1.15);
}

/* Gallery navigation arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    z-index: 2;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-nav:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
    z-index: 2;
}

/* Arrows + counter only shown for the gallery set */
.lightbox:not(.has-nav) .lightbox-nav,
.lightbox:not(.has-nav) .lightbox-counter {
    display: none;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }
}

/* ========================================
   LANGUAGE SWITCH (ES / EN / PT)
   ======================================== */
.lang-switch {
    display: flex;
    flex-shrink: 0;
    margin-left: 8px;
}

.lang-btn {
    padding: 6px 10px;
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    background: var(--surface);
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:first-child { border-radius: 20px 0 0 20px; }
.lang-btn:last-child { border-radius: 0 20px 20px 0; }
.lang-btn:not(:first-child) { border-left: none; }

.lang-btn:hover { color: var(--accent); border-color: var(--accent); }
.lang-btn:hover + .lang-btn { border-left-color: var(--accent); }

.lang-btn.active {
    background: var(--brown);
    color: var(--white);
    border-color: var(--brown);
}

.lang-btn.active + .lang-btn { border-left-color: var(--brown); }

/* ========================================
   HERO — location line + Google rating
   ======================================== */
.hero-location {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-location i {
    font-size: 0.95rem;
    color: var(--gold-light);
}

.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    margin-top: 22px;
    padding: 9px 16px;
    border-radius: 30px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.28);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background 0.3s, transform 0.3s;
}

.hero-rating:hover {
    background: rgba(255,255,255,0.24);
    transform: translateY(-2px);
}

.hero-rating-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--gold-light);
    font-size: 0.72rem;
}

.hero-rating-text {
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    color: var(--white);
}

.hero-rating-text strong {
    font-weight: 700;
    font-size: 0.92rem;
}

/* ========================================
   UBICACIÓN / BELLAVISTA
   ======================================== */
.section-place {
    padding: 90px 0;
    background: var(--cream);
}

.place-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 72px;
    align-items: center;
}

.place-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.place-text h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--heading);
    margin-bottom: 24px;
}

.place-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 16px;
}

.place-highlight {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem !important;
    color: var(--accent) !important;
    line-height: 1.6 !important;
}

.place-landmarks {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 36px 34px;
}

.place-landmarks-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 22px;
}

/* --- Carrusel de lugares cercanos --- */
/* Slides are stacked in one grid cell, so the box is only as tall as its
   content — no photos, no fixed aspect ratio. */
.pc-viewport {
    display: grid;
    border-radius: 6px;
    overflow: hidden;
}

.pc-slide {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 18px;
    background: var(--pc-bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.pc-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.pc-icon {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pc-fg);
    color: var(--pc-bg);
    font-size: 1.65rem;
}

.pc-caption {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    text-align: left;
}

.pc-caption strong {
    font-family: var(--font-serif);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--pc-fg);
}

.pc-caption small {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text);
}

.pc-go {
    margin-left: auto;
    flex-shrink: 0;
    align-self: flex-start;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--pc-fg);
    opacity: 0.55;
    font-size: 0.7rem;
    transition: opacity 0.25s, transform 0.25s;
}

.pc-slide:hover .pc-go {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* One soft, characteristic colour per place */
.pc-slide            { --pc-bg: var(--light-bg); --pc-fg: var(--accent); }
.pc-slide.pc-cerro   { --pc-bg: #F4E4DA; --pc-fg: #9C5B3C; }
.pc-slide.pc-parque  { --pc-bg: #E5EDE4; --pc-fg: #4C6B4F; }
.pc-slide.pc-funicular { --pc-bg: #E3E9EF; --pc-fg: #4A6379; }
.pc-slide.pc-chascona  { --pc-bg: #F5EBDB; --pc-fg: #93702F; }
.pc-slide.pc-patio   { --pc-bg: #F2DCDB; --pc-fg: #9C5560; }
.pc-slide.pc-metro   { --pc-bg: #E8E5EE; --pc-fg: #5F5878; }

/* Deeper, low-glare versions of the same hues for dark mode */
:root[data-theme="dark"] .pc-slide.pc-cerro     { --pc-bg: #33241D; --pc-fg: #E0A57F; }
:root[data-theme="dark"] .pc-slide.pc-parque    { --pc-bg: #212E24; --pc-fg: #8FC79C; }
:root[data-theme="dark"] .pc-slide.pc-funicular { --pc-bg: #1F2831; --pc-fg: #93B7D4; }
:root[data-theme="dark"] .pc-slide.pc-chascona  { --pc-bg: #322818; --pc-fg: #D9B770; }
:root[data-theme="dark"] .pc-slide.pc-patio     { --pc-bg: #33232A; --pc-fg: #DDA0AC; }
:root[data-theme="dark"] .pc-slide.pc-metro     { --pc-bg: #262234; --pc-fg: #ADA3D1; }

.pc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.pc-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.pc-dot:hover { background: var(--gold); }

.pc-dot.is-active {
    background: var(--accent);
    transform: scale(1.35);
}

.pc-hint {
    margin-top: 14px;
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-light);
    letter-spacing: 0.3px;
}

/* Users who prefer less motion get no auto-rotation and no zoom */
@media (prefers-reduced-motion: reduce) {
    .pc-slide img,
    .pc-slide.is-active img { transition: none; transform: none; }
}

/* ========================================
   OPINIONES / GOOGLE REVIEWS
   ======================================== */
.section-reviews {
    padding: 90px 0;
    background: var(--light-bg);
}

.reviews-head {
    text-align: center;
    margin-bottom: 48px;
}

.reviews-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.reviews-head h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 500;
    color: var(--heading);
}

.reviews-inner {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

/* Score card */
.score-card {
    background: var(--brown-dark);
    color: var(--white);
    border-radius: 6px;
    padding: 40px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: sticky;
    top: 110px;
}

.score-number {
    font-family: var(--font-serif);
    font-size: 4.6rem;
    font-weight: 600;
    line-height: 1;
    color: var(--gold-light);
}

.score-stars {
    display: flex;
    gap: 4px;
    color: var(--gold-light);
    font-size: 0.95rem;
    margin: 14px 0 12px;
}

.score-label {
    font-size: 0.85rem;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

.score-link {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.2);
    width: 100%;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--gold-light);
    transition: color 0.2s;
}

.score-link:hover { color: var(--white); }

/* Review cards */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.review {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.review:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.07);
}

.review-stars {
    display: flex;
    gap: 3px;
    color: var(--gold);
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.review blockquote {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text);
    font-style: italic;
    flex: 1;
    margin-bottom: 20px;
}

.review figcaption {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.review-author {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--heading);
}

.review-source {
    font-size: 0.72rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* Invitación a dejar reseña */
.review-cta {
    margin-top: 44px;
    padding: 32px 28px;
    background: var(--surface);
    border: 1px dashed var(--gold);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px 32px;
    text-align: center;
}

.review-cta p {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 500;
}

.review-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 14px 30px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    border-radius: 30px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    transition: background 0.3s, transform 0.3s;
}

.review-cta-btn i { font-size: 1rem; }

.review-cta-btn:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========================================
   ACCESIBILIDAD — tema y tamaño de texto
   ======================================== */
.a11y {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 95;
}

.a11y-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: background 0.3s, transform 0.3s;
}

.a11y-toggle:hover {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.08);
}

.a11y-panel {
    position: absolute;
    left: 0;
    bottom: 56px;
    width: 232px;
    padding: 18px 18px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 16px 44px rgba(0,0,0,0.20);
}

.a11y-panel[hidden] { display: none; }

.a11y-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 14px;
}

.a11y-label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}

.a11y-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.a11y-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 4px;
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--text);
    background: var(--light-bg);
    border: 1.5px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s;
}

.a11y-btn i { font-size: 0.9rem; }

.a11y-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.a11y-btn.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.a11y-btn--font { padding: 10px 4px; }
.a11y-btn--font span { line-height: 1; font-weight: 700; }

.a11y-reset {
    width: 100%;
    padding: 8px;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-light);
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.a11y-reset:hover { color: var(--accent); border-color: var(--accent); }

/* Stays clear of the mobile bottom nav */
@media (max-width: 768px) {
    .a11y { left: 16px; bottom: 78px; }
    .a11y-panel { width: 216px; }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .cards-row { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .split-inner { gap: 48px; }
    .gallery-mosaic { grid-auto-rows: 200px; }

    /* Tighten the bar so links + brand + language switch still fit */
    .nav-inner { padding: 0 24px; }
    .nav-left, .nav-right { gap: 18px; }
    .nav-brand { margin: 0 20px; }
    .nav-brand-img { height: 54px; }
    .nav-brand-name { font-size: 1.1rem; }
    .nav-brand-name small { display: none; }
    .lang-switch { margin-left: 4px; }
    .nav-toggle { right: 24px; }
}

@media (max-width: 768px) {
    .wide { padding: 0 24px; }

    /* Nav */
    .nav-left { display: none; }
    .nav-toggle { display: flex; }
    .nav-brand { margin: 0 auto; gap: 8px; }
    .nav-inner { justify-content: center; padding: 0 16px; }
    .nav-brand-img { height: 44px; }
    .nav-brand-name { font-size: 0.95rem; }
    .nav-brand-name small { display: none; }

    /* Keep only the language switch on the left of the mobile navbar */
    .nav-right {
        display: flex;
        flex: none;
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
    }
    .nav-right .nav-link { display: none; }
    .nav-toggle { right: 16px; }
    .lang-switch { margin-left: 0; }
    .lang-btn { padding: 4px 6px; font-size: 0.55rem; letter-spacing: 0; }

    /* Ubicación */
    .section-place { padding: 64px 0; }
    .place-inner { grid-template-columns: 1fr; gap: 40px; }
    .place-text h2 { font-size: 2.4rem; }
    .place-landmarks { padding: 28px 24px; }

    /* Opiniones */
    .section-reviews { padding: 64px 0; }
    .reviews-head h2 { font-size: 2.4rem; }
    .reviews-inner { grid-template-columns: 1fr; gap: 28px; }
    .score-card { position: static; padding: 32px 24px; }
    .score-number { font-size: 3.8rem; }
    .reviews-grid { grid-template-columns: 1fr; }
    .review-cta { flex-direction: column; gap: 18px; margin-top: 32px; }

    /* Mobile bottom nav */
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 64px; }
    .btt { bottom: 80px; }

    /* Hero */
    .hero { height: 78vh; min-height: 520px; }
    .hero-content { padding: 0 28px; }
    .hero-panel { padding: 28px 24px 26px; }
    .hero-content h1 { font-size: 3rem; margin-bottom: 20px; }
    .hero-location { font-size: 0.82rem; margin-bottom: 24px; }

    /* Cards */
    .cards-row { grid-template-columns: 1fr; gap: 48px; }
    .card-img { aspect-ratio: 16 / 10; }

    /* Split */
    .split { padding: 64px 0; }
    .split-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .split-text h2 { font-size: 2.5rem; }

    /* Menu CTA */
    .section-menu { padding: 64px 0; }
    .menu-cta-block h2 { font-size: 2.5rem; }
    .menu-cta-btn { padding: 16px 36px; }

    /* Gallery */
    .section-gallery { padding: 64px 0; }
    .gallery-head h2 { font-size: 2.5rem; }
    .gallery-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 220px;
    }
    .gal-wide { grid-column: span 2; }

    /* Contact */
    .section-contact { padding: 64px 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-text h2 { font-size: 2.5rem; }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Very small phones: the logo alone carries the brand in the bar,
   so the language switch and the menu button never collide with it */
@media (max-width: 400px) {
    .nav-brand-name { display: none; }
}

@media (max-width: 480px) {
    .hero { height: 85vh; min-height: 560px; }
    .hero-content { padding: 0 20px; }
    .hero-panel { padding: 24px 20px 22px; border-radius: 6px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-cta { padding: 12px 24px; font-size: 0.72rem; }
    .hero-location { font-size: 0.76rem; gap: 7px; }
    .hero-rating { margin-top: 18px; padding: 8px 13px; }
    .hero-rating-text { font-size: 0.72rem; }

    .top-bar { font-size: 0.65rem; letter-spacing: 0.5px; }

    .split-text h2,
    .menu-head h2,
    .gallery-head h2,
    .contact-text h2,
    .place-text h2,
    .reviews-head h2 { font-size: 2rem; }

    .review-cta { padding: 26px 20px; }
    .review-cta p { font-size: 0.92rem; }

    .gallery-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }
    .gal-wide { grid-column: span 1; }
}
