/* Gusto Italiano · Carrer Major 23, Orba
   Web clásica: azul marino y dorado del rótulo, blanco cal de la casa. */

:root {
  --paper: #FAF9F6;
  --cal: #F1EEE8;
  --azul: #15233D;
  --azul-2: #22345A;
  --oro: #C9A55A;
  --oro-hover: #D8B86E;
  --ink: #1A2233;
  --muted: #4A5366;
  --line: #E2DDD3;
  --on-dark: #F7F5F0;
  --on-dark-soft: #C9CDD6;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1160px;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --bar-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--azul); color: var(--on-dark); padding: 0.75rem 1rem; }
.skip:focus { top: 1rem; }

.container { width: 100%; max-width: calc(var(--container) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }

.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem); line-height: 1.08; letter-spacing: -0.01em; color: var(--azul); text-wrap: balance; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--azul); }
.lead { font-size: 1.25rem; line-height: 1.55; }
.link { text-decoration: underline; text-decoration-color: var(--oro); text-decoration-thickness: 2px; text-underline-offset: 0.25em; font-weight: 500; transition: color 0.2s ease; }
.link:hover { color: var(--azul-2); }

/* section heading block with the small gold mark from the sign */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head .h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--oro); margin: 1.1rem auto 0; }
.section-head p { margin-top: 1.1rem; color: var(--muted); }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem;
  min-height: 3.25rem; padding: 0 1.6rem; border-radius: 2px;
  background: var(--oro); color: var(--azul); font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s var(--ease), color 0.2s ease;
}
.button:hover { background: var(--oro-hover); }
.button:active { transform: scale(0.98); }
.button-light { background: var(--on-dark); color: var(--azul); }
.button-light:hover { background: #FFFFFF; }
.button-navy { background: var(--azul); color: var(--on-dark); }
.button-navy:hover { background: var(--azul-2); }
.button-sm { min-height: 2.75rem; padding: 0 1.2rem; font-size: 0.95rem; }

/* ---------- header ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 40; color: var(--on-dark); transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; }
.bar.is-solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--bar-h); max-width: calc(var(--container) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.65rem; letter-spacing: 0.01em; }
.brand-sub { font-size: 0.8125rem; margin-top: 0.3rem; opacity: 0.85; }
.nav { display: flex; gap: 2rem; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.98rem; position: relative; padding-block: 0.4rem; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--oro); transform: scaleX(0); transition: transform 0.25s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.bar-end { display: flex; align-items: center; gap: 0.75rem; }
.lang { display: flex; }
.lang button { min-width: 40px; min-height: 40px; font-size: 0.9rem; font-weight: 600; opacity: 0.6; transition: opacity 0.2s ease; }
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--oro); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.lang button:hover { opacity: 1; }
.menu-btn { display: none; min-height: 44px; padding: 0 0.25rem; font-weight: 600; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .bar-book { display: none; }
  .nav {
    position: fixed; top: var(--bar-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); color: var(--ink); padding: 0.5rem var(--pad) 1.5rem; box-shadow: 0 12px 24px rgb(21 35 61 / 0.12);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0.2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav a::after { display: none; }
  .bar.menu-open { background: var(--paper); color: var(--ink); }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 92svh; display: grid; place-items: center; text-align: center; color: var(--on-dark); background: var(--azul); overflow: hidden; }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgb(14 22 40 / 0.66); }
.hero-text { position: relative; z-index: 1; max-width: 760px; padding: calc(var(--bar-h) + 2rem) var(--pad) 3rem; }
.hero-kind { font-size: 1.05rem; font-weight: 500; letter-spacing: 0.02em; color: #E6CF98; }
.hero-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(3.5rem, 2rem + 7vw, 7.5rem); line-height: 1; letter-spacing: -0.01em; margin-top: 0.6rem; }
.hero-title::after { content: ""; display: block; width: 72px; height: 3px; background: var(--oro); margin: 1.4rem auto 0; }
.hero-say { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); line-height: 1.55; margin: 1.4rem auto 0; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.status { display: inline-flex; align-items: flex-start; gap: 0.55rem; margin-top: 1.5rem; font-size: 0.95rem; text-align: left; }
.status-dot { flex: none; width: 0.55rem; height: 0.55rem; margin-top: 0.5em; border-radius: 50%; background: currentColor; opacity: 0.5; }
.status.is-open .status-dot { background: #5FBF7A; opacity: 1; box-shadow: 0 0 0 4px rgb(95 191 122 / 0.22); }
.status-dark { color: var(--muted); margin-top: 1rem; }
.status-dark.is-open { color: var(--ink); }
.status-dark.is-open .status-dot { background: #2E9A52; box-shadow: 0 0 0 4px rgb(46 154 82 / 0.15); }
@media (max-width: 600px) {
  .hero { min-height: 88svh; }
  .hero-actions .button { width: 100%; }
}

/* ---------- la casa ---------- */
.casa { padding-block: var(--section); }
.casa-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.casa-text .lead { margin-top: 1.5rem; color: var(--azul); }
.casa-text p + p { margin-top: 1rem; }
.casa-text .h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--oro); margin-top: 1.1rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.95rem; line-height: 1.45; color: var(--muted); }
.facts strong { color: var(--azul); font-weight: 600; font-size: 1rem; }
.casa-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
@media (max-width: 860px) {
  .casa-grid { grid-template-columns: 1fr; }
  .casa-photo { order: -1; }
  .casa-photo img { aspect-ratio: 4 / 3; object-position: 40% 40%; }
  .facts { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- carta ---------- */
.carta { background: var(--cal); padding-block: var(--section); }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.tabs[hidden] { display: none; }
.tabs button { min-height: 2.9rem; padding: 0 1.3rem; border-radius: 2px; background: transparent; color: var(--azul); font-weight: 600; box-shadow: inset 0 0 0 1px #CFC8BA; transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.tabs button:hover { box-shadow: inset 0 0 0 1px var(--azul); }
.tabs button[aria-selected="true"] { background: var(--azul); color: var(--on-dark); box-shadow: none; }
.menu-panels { max-width: 960px; margin-inline: auto; background: var(--paper); padding: clamp(1.75rem, 4vw, 3.25rem); border-radius: 2px; }
.panel + .panel { margin-top: 3rem; }
.js .tabs-ready .panel + .panel { margin-top: 0; }
.panel[hidden] { display: none; }
.panel-h { font-family: var(--font-display); font-weight: 600; font-size: 1.85rem; color: var(--azul); margin-bottom: 1.5rem; text-align: center; }
.tabs-ready .panel-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 3.5rem; }
.items li { display: flex; flex-direction: column; padding-bottom: 1.1rem; border-bottom: 1px dashed #D9D2C4; }
.dish { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1.2; color: var(--azul); }
.desc { margin-top: 0.25rem; color: var(--muted); font-size: 0.98rem; line-height: 1.5; }
.carta-foot { text-align: center; margin: 2rem auto 0; max-width: 40em; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 700px) {
  .items { grid-template-columns: 1fr; gap: 1.1rem; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; }
}

/* ---------- galería ---------- */
.galeria { padding-block: var(--section); }
.grid-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-photos figure { position: relative; overflow: hidden; border-radius: 2px; background: var(--cal); }
.grid-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.6s var(--ease); }
.grid-photos figure:hover img { transform: scale(1.04); }
.grid-photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 0.9rem; color: #fff; font-weight: 500; font-size: 0.98rem; background: linear-gradient(to top, rgb(10 16 30 / 0.72), rgb(10 16 30 / 0)); }
@media (max-width: 760px) { .grid-photos { grid-template-columns: 1fr 1fr; gap: 0.6rem; } .grid-photos figcaption { font-size: 0.9rem; padding: 2rem 0.75rem 0.65rem; } }

/* ---------- opiniones ---------- */
.opiniones { background: var(--azul); color: var(--on-dark); padding-block: var(--section); }
.opiniones .h2 { color: var(--on-dark); }
.opiniones .section-head p, .score { color: var(--on-dark-soft); }
.score-num { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--oro); vertical-align: -0.1em; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote { background: var(--azul-2); padding: 2rem 1.75rem; border-radius: 2px; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.quote blockquote p { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.35; font-weight: 500; }
.quote figcaption { color: var(--oro); font-weight: 500; font-size: 0.95rem; }
.op-more { text-align: center; margin-top: 2.5rem; }
.opiniones .link:hover { color: #fff; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- eventos ---------- */
.eventos { background: var(--cal); padding-block: var(--section); }
.eventos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.eventos-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.eventos-text .h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--oro); margin-top: 1.1rem; }
.eventos-text p { margin: 1.5rem 0 2rem; }
@media (max-width: 860px) { .eventos-grid { grid-template-columns: 1fr; } }

/* ---------- contacto ---------- */
.contacto { padding-block: var(--section); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: stretch; }
.contacto-info .h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--oro); margin-top: 1.1rem; }
.hours { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 0.8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { text-align: left; font-weight: 600; color: var(--azul); }
.hours td { text-align: right; }
.contacto-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.contacto-cols p { margin-top: 0.5rem; }
.contacto-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.map { min-height: 420px; border-radius: 2px; overflow: hidden; background: var(--cal); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
@media (max-width: 860px) {
  .contacto-grid { grid-template-columns: 1fr; }
  .hours td { white-space: normal; }
}
@media (max-width: 480px) {
  .contacto-cols { grid-template-columns: 1fr; }
  .contacto-actions .button { flex: 1; }
}

/* ---------- pie ---------- */
.pie { background: var(--azul); color: var(--on-dark-soft); padding-top: 3.5rem; font-size: 0.95rem; }
.pie-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; align-items: start; padding-bottom: 2.5rem; }
.pie-name { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; color: var(--on-dark); line-height: 1; }
.pie-sub { margin-top: 0.4rem; color: var(--oro); }
.pie a { color: var(--on-dark); text-decoration-color: var(--oro); text-underline-offset: 0.2em; }
.pie-legal { border-top: 1px solid rgb(255 255 255 / 0.12); padding-block: 1.25rem 1.5rem; font-size: 0.875rem; }
@media (max-width: 760px) { .pie-grid { grid-template-columns: 1fr; gap: 1.25rem; } .pie { padding-bottom: 4.5rem; } }

/* ---------- reservar fijo en el móvil ---------- */
.dock { display: none; }
@media (max-width: 960px) {
  .dock { display: flex; position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 30; box-shadow: 0 8px 24px rgb(14 22 40 / 0.3); transform: translateY(150%); transition: transform 0.35s var(--ease); }
  .dock.is-on { transform: none; }
}

/* ---------- entradas suaves (contenido visible sin JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
