/* ===== Demo 3 · Mediterráneo cálido ===== */
:root {
  --bg: #f7f1e8;
  --panel: #fffdf8;
  --ink: #3d3427;
  --muted: #7a6c58;
  --terracotta: #c46a3a;
  --olive: #6b705c;
  --sand: #e8ddca;
  --line: #e4d9c4;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --shadow: 0 18px 46px rgba(90, 72, 46, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-weight: 300;
  font-size: 1.02rem;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 92%); margin-inline: auto; }
.container.narrow { max-width: 760px; }

.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }

h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1.4rem; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.lede { font-size: 1.18rem; color: var(--muted); }

/* ===== Nav ===== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 20px 0; transition: background 0.3s, padding 0.3s, box-shadow 0.3s; }
.nav.scrolled { background: rgba(247, 241, 232, 0.94); backdrop-filter: blur(8px); padding: 12px 0; box-shadow: 0 2px 20px rgba(90, 72, 46, 0.08); }

.nav-inner { width: min(1120px, 92%); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }

.logo { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.02em; line-height: 1.12; display: inline-block; text-align: center; }
.logo span { color: var(--terracotta); display: block; letter-spacing: 0.16em; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; font-size: 0.9rem; letter-spacing: 0.06em; }
.nav-links a:not(.btn) { color: var(--ink); opacity: 0.85; transition: color 0.2s, opacity 0.2s; }
.nav-links a:not(.btn):hover { color: var(--terracotta); opacity: 1; }
.nav-links .nav-lang { color: var(--muted); font-size: 0.8rem; display: flex; align-items: center; gap: 6px; }
.nav-links .nav-lang .lang-btn {
  background: none; border: 0; cursor: pointer;
  color: var(--muted);
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.06em;
  padding: 0.15em 0.2em;
  transition: color 0.2s;
}
.nav-links .nav-lang .lang-btn:hover { color: var(--terracotta); }
.nav-links .nav-lang .lang-btn.active { color: var(--terracotta); font-weight: 500; }

.btn {
  display: inline-block;
  padding: 0.85em 1.9em;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}
.btn-primary { background: var(--terracotta); color: #fff7ec; }
.btn-primary:hover { background: #b0592c; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--olive); color: var(--olive); }
.btn-ghost:hover { background: var(--olive); color: #f7f1e8; }
.btn-reserve { background: var(--terracotta); color: #fff7ec; padding: 0.65em 1.3em; }
.btn-reserve:hover { background: #b0592c; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247, 241, 232, 0.9) 0%, rgba(247, 241, 232, 0.5) 55%, var(--bg) 100%); }
.hero-content { position: relative; z-index: 2; padding: 120px 20px 60px; max-width: 880px; }
.hero-eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.35em; font-size: 0.75rem; color: var(--terracotta); margin-bottom: 1.6rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 1.4rem; font-style: italic; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); max-width: 620px; margin: 0 auto 2.4rem; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--terracotta); font-size: 1.3rem; animation: bob 2s infinite; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ===== Nosotros ===== */
.nosotros { text-align: center; }

/* ===== Galería ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-item { overflow: hidden; position: relative; border-radius: 2px; background: var(--panel); border: 1px solid var(--line); }
.g-item img { width: 100%; height: 380px; object-fit: cover; transition: transform 0.6s ease; }
.g-item:hover img { transform: scale(1.04); }

/* ===== Split ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media { overflow: hidden; border-radius: 2px; border: 8px solid var(--panel); box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 520px; object-fit: cover; }
.split-text h2 { margin-top: 1.2rem; }
.split-text p:last-of-type { color: var(--muted); }
.split-reverse .split-media { order: 2; }

/* ===== Intro cinemática ===== */
.hero-intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #1a130c;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.65s ease, visibility 0s linear 0.65s;
}
.hero-intro.active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.65s ease; }
.hero-intro.done { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.65s ease, visibility 0s linear 0.65s; }
.hero-intro video { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (orientation: portrait) and (max-width: 900px) {
  .hero-intro video { object-fit: contain; background: #1a130c; }
}
.intro-skip {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 201;
  background: rgba(26, 19, 12, 0.55);
  color: #fff7ec;
  border: 1px solid rgba(255, 247, 236, 0.45);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6em 1.4em;
  cursor: pointer;
  transition: background 0.2s;
}
.intro-skip:hover { background: rgba(26, 19, 12, 0.85); }

/* ===== Carta integrada ===== */
.carta { text-align: center; background: var(--panel); }
.menu-wrap { margin-top: 3rem; text-align: left; }

.m-title {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.8rem;
}

.m-list { list-style: none; }
.m-item { padding: 0.55rem 0; }
.m-line { display: flex; align-items: baseline; gap: 0.75rem; }
.m-name { font-family: var(--serif); font-size: 1.28rem; font-weight: 500; color: var(--ink); line-height: 1.3; }
.m-dots { flex: 1; min-width: 24px; border-bottom: 1px dotted #c9bc9f; transform: translateY(-5px); }
.m-price { font-family: var(--sans); font-weight: 400; font-size: 1rem; letter-spacing: 0.05em; color: var(--terracotta); white-space: nowrap; }
.m-desc { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.02rem; line-height: 1.5; max-width: 48ch; margin-top: 0.1rem; }
.m-note { font-family: var(--serif); font-style: italic; color: var(--olive); font-size: 1.02rem; margin: -0.2rem 0 0.8rem; }

.menu-tabs { display: flex; flex-wrap: wrap; gap: 0 0.3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.menu-tab {
  background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 0.76rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
  padding: 0.75em 1em;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.menu-tab:hover { color: var(--terracotta); }
.menu-tab.active { color: var(--terracotta); border-bottom-color: var(--terracotta); }

.menu-panel { display: none; }
.menu-panel.active { display: block; animation: menuFade 0.35s ease; }
.menu-panel .m-title { display: none; }
@keyframes menuFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.allergy-note {
  margin-top: 3.2rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== Contacto ===== */
.contacto { text-align: center; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: stretch; text-align: left; margin-top: 2rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.6rem; justify-content: center; }
.c-block h3 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--terracotta); margin-bottom: 0.5rem; }
.c-block p { color: var(--muted); }
.c-block a { color: var(--ink); transition: color 0.2s; }
.c-block a:hover { color: var(--terracotta); }
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: sepia(0.25) saturate(0.9); }

/* ===== Footer ===== */
.footer { background: #f0e7d5; border-top: 1px solid var(--line); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.f-brand .logo { font-size: 1.7rem; margin-bottom: 0.8rem; }
.f-brand p:not(.logo) { color: var(--muted); font-size: 0.95rem; max-width: 300px; }
.f-social { display: flex; gap: 20px; margin-top: 1.2rem; }
.f-social a { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em; }
.f-social a:hover { color: var(--terracotta); }
.f-col { display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.92rem; }
.f-col h4 { font-family: var(--serif); font-weight: 500; color: var(--olive); font-size: 1.05rem; margin-bottom: 0.4rem; }
.f-col a { color: var(--muted); transition: color 0.2s; }
.f-col a:hover { color: var(--terracotta); }
.f-col span { color: var(--muted); }
.f-legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; font-size: 0.78rem; color: var(--muted); }
.f-legal-links { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.f-legal-links a { color: var(--muted); transition: color 0.2s; }
.f-legal-links a:hover { color: var(--terracotta); }
.legal-sep { color: var(--muted); opacity: 0.6; }

/* ===== Páginas legales ===== */
.legal-page { min-height: 100vh; background: #faf6ee; }
.legal-hero { padding: 130px 0 40px; text-align: center; }
.legal-hero h1 { font-family: var(--serif); font-weight: 500; font-size: 2.4rem; color: var(--olive); margin-bottom: 0.5rem; }
.legal-hero p { color: var(--muted); }
.legal-content { max-width: 760px; margin: 0 auto; padding: 20px 24px 90px; }
.legal-content .legal-block { animation: none; }
.legal-content section { margin-bottom: 2.4rem; }
.legal-content h2 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; color: var(--olive); margin-bottom: 0.7rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.legal-content h3 { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; color: var(--terracotta); margin: 1rem 0 0.4rem; }
.legal-content p { color: var(--muted); line-height: 1.7; margin-bottom: 0.8rem; }
.legal-content ul { margin: 0.4rem 0 1rem 1.2rem; color: var(--muted); line-height: 1.7; }
.legal-content li { margin-bottom: 0.35rem; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split-reverse .split-media { order: 0; }
  .split-media img { height: 380px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .g-item img { height: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map iframe { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #fffdf8;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 90px 28px 30px;
    max-height: 100vh;
    max-height: 100svh;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(90, 72, 46, 0.1);
  }
  .nav-links.open { transform: translateY(0); }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 520px) {
  .section { padding: 70px 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g-item img { height: 340px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { width: 100%; }
  .menu-tabs { gap: 0; }
  .menu-tab { padding: 0.65em 0.7em; letter-spacing: 0.1em; }
}
