/* ============ Plato al Mar ============
   Base heredada de Plato al Centro: blanco/negro, Playfair Display + Raleway,
   botones de borde. Toque propio: azul mar y tono arena.
*/

/* ---------- Fuentes (alojadas en la web, no en Google; licencia OFL en assets/fonts) ----------
   Son fuentes variables: un archivo cubre todos los grosores. Solo el juego latino
   (español, inglés, €, ·, –…). */
@font-face {
  font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("assets/fonts/playfair-display.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url("assets/fonts/playfair-display-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Raleway"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/raleway.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0e1116;        /* negro azulado (fondo logo) */
  --ink-2: #1a1f27;
  --paper: #f6f2ea;      /* arena */
  --white: #ffffff;
  --text: #2b2f36;
  --muted: #5e646d;
  --sea: #1f4a5c;        /* azul mar profundo */
  --sea-2: #2b6178;
  --line: rgba(14, 17, 22, .14);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Raleway", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(255,255,255,.75); margin: 0 0 18px;
}
.eyebrow--dark { color: var(--sea); }
.title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15; margin: 0 0 24px; color: var(--ink);
}
.title em { font-style: italic; color: var(--sea); }
.title--light { color: var(--white); }
.title--light em { color: #cfe3ea; }
.lead { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); line-height: 1.5; }

/* ---------- Botones (borde, como Plato al Centro) ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border: 1px solid currentColor; background: transparent; cursor: pointer;
  font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius); transition: background .25s, color .25s, border-color .25s;
}
.btn--sm { padding: 10px 18px; }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn--ghost-light { color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }
.btn--ghost { color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  transition: background .3s, box-shadow .3s;
}
.nav.is-solid { background: rgba(14,17,22,.94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav__logo img { height: 44px; width: auto; opacity: 0; transition: opacity .3s; }
.nav.is-solid .nav__logo img { opacity: 1; }
.nav__menu { display: flex; align-items: center; gap: 32px; }
.nav__menu a:not(.btn) {
  color: var(--white); text-decoration: none; font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; opacity: .85;
}
.nav__menu a:not(.btn):hover { opacity: 1; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--white); transition: transform .3s; }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 24px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 24px;
    padding: 32px 24px 40px; background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 48px rgba(0,0,0,.5);
    /* visibility: cerrado no se ve ni se alcanza con el tabulador */
    transform: translateY(-120%); visibility: hidden; transition: transform .35s ease, visibility 0s .35s; z-index: -1;
  }
  .nav__menu.is-open { transform: none; visibility: visible; transition: transform .35s ease; }
  .nav { background: rgba(14,17,22,.94); }
  .nav__logo img { opacity: 1; height: 38px; }
}

/* ---------- Portada ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #161b23, transparent 70%),
    var(--ink);
  color: var(--white); text-align: center; overflow: hidden;
}
.hero__inner { position: relative; z-index: 1; flex: 1; display: grid; place-content: center; max-width: 808px; padding: 96px 24px 28px; }

/* Plato al mar: un plato (visto desde arriba) medio hundido en el horizonte, con las líneas del mar del logo.
   Va debajo de los botones, en su propio espacio: nunca queda detrás del texto */
.hero__ocaso { --sol: min(clamp(150px, 26svh, 240px), 52vw); width: 100%; }
.hero__sol {
  position: relative; width: var(--sol); height: calc(var(--sol) / 2); margin: 0 auto; overflow: hidden;
  background: radial-gradient(ellipse 50% 100% at 50% 100%, rgba(43,97,120,.5), transparent);
}
/* El borde del plato y, dentro, el fondo. Su centro está en el horizonte: la mitad de abajo no se ve */
.hero__sol::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.32);
  background:
    radial-gradient(circle closest-side, transparent 70.6%, rgba(255,255,255,.22) 71%, rgba(255,255,255,.22) 71.8%, transparent 72.2%),
    radial-gradient(circle, rgba(255,255,255,.06), transparent 70%);
  animation: salir 5s cubic-bezier(.2,.6,.3,1) .5s both;
}
.hero__mar {
  position: relative; height: clamp(90px, 13svh, 130px); padding-top: 14px;
  display: grid; align-content: start; justify-items: center; gap: 12px;
  background: radial-gradient(ellipse min(480px, 70%) 100% at 50% 0%, rgba(43,97,120,.25), transparent);
}
.hero__mar::before { /* el horizonte */
  content: ""; position: absolute; top: 0; left: 50%; width: min(600px, 100%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35) 30%, rgba(255,255,255,.35) 70%, transparent);
}
.hero__mar span { display: block; height: 1.5px; background: #fff; animation: brillo 7s ease-in-out infinite; }
.hero__mar span:nth-child(1) { width: calc(var(--sol) * .78); opacity: .26; }
.hero__mar span:nth-child(2) { width: calc(var(--sol) * .48); opacity: .18; animation-delay: -2.3s; }
.hero__mar span:nth-child(3) { width: calc(var(--sol) * .2);  opacity: .11; animation-delay: -4.6s; }
@keyframes salir { from { transform: translateY(50%); } }
@keyframes brillo { 50% { transform: scaleX(.8); } }
@media (max-width: 520px) {
  .hero__ctas { gap: 10px; }
  .hero__ctas .btn { padding-inline: 16px; letter-spacing: .16em; }
}
.hero__logo { width: min(480px, 80vw, 62svh); height: auto; margin: 0 auto 28px; animation: rise 1.2s ease both; }
.hero__tagline { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.4vw, 24px); color: rgba(255,255,255,.82); margin: 0 0 40px; animation: rise 1.2s .2s ease both; }
.hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: rise 1.2s .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 130px) 0; }
.section--paper { background: var(--paper); }
.section--sea { background: var(--sea); color: rgba(255,255,255,.88); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; text-align: center; }
.pillar { padding-top: 24px; border-top: 1px solid var(--line); }
.pillar__n { font-family: var(--serif); font-style: italic; color: var(--sea); font-size: 15px; }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 6px 0 6px; color: var(--ink); }
.pillar p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Carta ---------- */
.carta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 72px; margin-top: 56px; }
@media (max-width: 820px) { .carta { grid-template-columns: 1fr; } }
.carta__cat h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 28px; color: var(--ink);
  margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--ink);
}
.plato { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.plato__nombre { font-weight: 600; color: var(--ink); }
.plato__precio { font-family: var(--serif); color: var(--sea); white-space: nowrap; }
.plato__desc { grid-column: 1 / -1; font-size: 15px; color: var(--muted); margin: 0; }

/* Franja de "la carta se está cocinando" (main.js la activa si no hay platos) */
.section--ink { background: var(--ink); color: rgba(255,255,255,.72); }
.section--franja { padding: clamp(72px, 9vw, 112px) 0; }
.carta-vacia { text-align: center; }
.carta-vacia .title { margin-bottom: 28px; }
.carta-vacia p:last-child { margin: 26px auto 0; max-width: 520px; font-family: var(--serif); font-style: italic; font-size: 19px; }

/* Las líneas del mar del logo, como adorno */
.lineas {
  display: block; width: 120px; height: 21px; margin: 0 auto; opacity: .5;
  background:
    linear-gradient(currentColor, currentColor) center 0      / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center 6.5px  / 70% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center 13px   / 44% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center 19.5px / 20% 1.5px no-repeat;
}

/* ---------- Galería ---------- */
.galeria { columns: 3 260px; column-gap: 16px; margin-top: 48px; }
.galeria img { width: 100%; margin-bottom: 16px; break-inside: avoid; }

/* ---------- Dónde estamos ---------- */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.address { font-size: 18px; margin: 0 0 24px; }
.horario { margin: 0 0 32px; }
.horario__row { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 15px; }
.horario__row span:first-child { font-weight: 600; color: var(--white); }
.map { aspect-ratio: 4 / 3; background: var(--ink-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(1.05); }
.map__aviso {
  height: 100%; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center;
  border: 1px solid rgba(255,255,255,.1);
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(43,97,120,.35), transparent 70%);
}
.map__aviso p { margin: 0; max-width: 280px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.5); }

/* ---------- Pie / contacto ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 96px 0 40px; }
.footer__title { font-family: var(--sans); font-weight: 600; font-size: 26px; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin: 0; }
.rule { display: block; width: 44px; height: 1px; background: var(--white); margin: 18px auto 20px; }
.footer__sub { font-family: var(--serif); font-style: italic; font-size: 19px; margin: 0 0 32px; }
.contact-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 72px; }
.footer__logo { width: 220px; margin: 0 auto 24px; opacity: .9; }
.footer__legal { font-size: 13px; color: rgba(255,255,255,.45); margin: 0; }
.footer__legal a { color: rgba(255,255,255,.65); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
