/* =========================================================
   Oh! Mar — base: tokens, reset, tipografía, componentes
   Paleta sacada del local: azul marino del rótulo, azul cobalto
   de platos y vasos, blanco cal, mantel de cuadros, amarillo de
   la tablilla del menú, madera de la pérgola y tonos de paella.
   ========================================================= */

:root {
  --navy-950: #0A1A31;
  --navy-900: #0F2444;
  --navy: #16325C;
  --navy-700: #1D4078;
  --blue: #1F4FB0;
  --blue-500: #2E63C9;
  --sea: #4A86D6;
  --sky: #DCEAF8;
  --foam: #EEF5FC;
  --cal: #FBF8F1;
  --paper: #F5EEE1;
  --sand: #ECDFC8;
  --wood: #8A5A36;
  --wood-900: #5E3B22;
  --sun: #F2B632;
  --sun-600: #DE9E14;
  --saffron: #D9822B;
  --coral: #E4664A;
  --turq: #1FB5B0;
  --ink: #10223D;
  --muted: #55667D;
  --line: rgba(22, 50, 92, .14);

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px -24px rgba(15, 36, 68, .38);
  --shadow-sm: 0 10px 26px -12px rgba(15, 36, 68, .3);

  --ff-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --container: 1200px;
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }
::selection { background: var(--sun); color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hand { font-family: var(--ff-hand); }

.ico {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 300;
  background: var(--sun); color: var(--navy-900); padding: .6rem 1rem;
  border-radius: 999px; font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 1rem; }

/* ---------- Motivos ---------- */
.dots { display: inline-flex; gap: 4px; align-items: center; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dots i:nth-child(2) { transform: translateY(3px); }

.gingham {
  --g: rgba(31, 79, 176, .5);
  --gs: 24px;
  background-color: #fff;
  background-image:
    linear-gradient(90deg, var(--g) 50%, transparent 50%),
    linear-gradient(var(--g) 50%, transparent 50%);
  background-size: var(--gs) var(--gs);
}
.gingham-strip { height: 22px; --gs: 22px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 8px; flex: none;
  background: radial-gradient(circle, currentColor 2.6px, transparent 3.1px) 0 50% / 8.66px 8px repeat-x;
}
.eyebrow--light { color: var(--sun); }

.title {
  font-size: clamp(2.1rem, 1.2rem + 3.1vw, 3.6rem);
  color: var(--navy);
  font-variation-settings: "opsz" 144;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}
.title em {
  font-style: italic; font-weight: 500; color: var(--blue);
  padding-bottom: .08em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8 C 40 2, 80 11, 120 6 S 176 3, 197 7' fill='none' stroke='%23F2B632' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% .32em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.title--light { color: #fff; }
.title--light em { color: var(--sun); }

.lead { font-size: 1.15rem; color: var(--muted); }

.section { position: relative; padding: clamp(4.5rem, 3rem + 6vw, 8.5rem) 0; }
.section-head { max-width: 760px; margin: 0 auto clamp(2.5rem, 4vw, 4rem); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head .lead { max-width: 60ch; margin-inline: auto; }
.section-head--light .title { color: #fff; }
.section-head--light .title em { color: var(--sun); }
.section-head--light .eyebrow { color: var(--sun); }

/* Separadores ondulados: el contenedor lleva el color de arriba y el trazo el de abajo */
.divider { line-height: 0; margin: -1px 0; position: relative; z-index: 1; }
.divider svg { width: 100%; height: clamp(40px, 6vw, 90px); display: block; }
.divider--cal-paper { background: var(--cal); }
.divider--cal-paper path { fill: var(--paper); }
.divider--paper-navy { background: var(--paper); }
.divider--paper-navy path { fill: var(--navy-900); }
.divider--cal-wall { background: var(--cal); }
.divider--cal-wall path { fill: #2254B5; }
.divider--wall-cal { background: #1B418F; }
.divider--wall-cal path { fill: var(--cal); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .9rem 1.5rem; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(15, 36, 68, .55); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 1.1em; height: 1.1em; }
.btn--sun { --bg: var(--sun); --fg: var(--navy-900); }
.btn--sun:hover { --bg: #F7C552; }
.btn--navy { --bg: var(--navy); }
.btn--navy:hover { --bg: var(--navy-700); }
.btn--ghost { --bg: rgba(255, 255, 255, .08); --fg: #fff; border-color: rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
.btn--ghost:hover { --bg: #fff; --fg: var(--navy); }
.btn--ghost b { background: var(--sun); color: var(--navy-900); padding: .15rem .55rem; border-radius: 999px; font-size: .85rem; }
.btn--outline { --bg: transparent; --fg: var(--navy); border-color: var(--navy); }
.btn--outline:hover { --bg: var(--navy); --fg: #fff; }
.btn--wa { --bg: #25D366; --fg: #053B1B; }
.btn--wa:hover { --bg: #3BE07A; }
.btn--sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn--lg { padding: 1.05rem 1.7rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

.tag {
  display: inline-block; font-family: var(--ff-body);
  font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: .22rem .55rem; border-radius: 999px; white-space: nowrap;
  background: var(--foam); color: var(--blue);
}
.tag--rice { background: #FCE9CF; color: #92500F; }
.tag--grill { background: #FADFD7; color: #9F3620; }
.tag--fish { background: #D5F0EF; color: #0B6966; }
.tag--sea { background: var(--foam); color: var(--blue); }

.stepper {
  display: inline-flex; align-items: center;
  background: #fff; border-radius: 999px; border: 1.5px solid var(--line);
}
.stepper button {
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: transparent; color: var(--navy); font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: background .2s;
}
.stepper button:hover { background: var(--foam); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; background: transparent; }
.stepper output { min-width: 2.2ch; text-align: center; font-weight: 800; font-size: 1.1rem; color: var(--navy); }
.stepper--lg { justify-content: space-between; width: 100%; border-radius: 12px; background: var(--cal); padding: 3px; }
.stepper--lg button { width: 44px; height: 42px; border-radius: 9px; }

/* ---------- Imágenes y huecos de foto ---------- */
.media { position: relative; overflow: hidden; margin: 0; background: var(--sky); }
.media img { width: 100%; height: auto; object-fit: cover; transition: transform .9s var(--ease), opacity .4s; }
.media--fill img { position: absolute; inset: 0; height: 100%; }
.media.is-missing img { visibility: hidden; }
.media.is-missing {
  background-color: #fff;
  background-image:
    linear-gradient(90deg, rgba(31, 79, 176, .14) 50%, transparent 50%),
    linear-gradient(rgba(31, 79, 176, .14) 50%, transparent 50%);
  background-size: 32px 32px;
}
.media.is-missing::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center;
  font-family: var(--ff-hand); font-size: clamp(1.5rem, 2.4vw, 2.3rem); line-height: 1.1; color: var(--navy);
  text-shadow: 0 0 14px #fff, 0 0 6px #fff, 0 0 2px #fff;
}

/* ---------- Animaciones de entrada ---------- */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Nada decorativo debe interceptar clics
   ========================================================= */
.hero__media, .hero__shade, .hero__sea, .hero__waves,
.signature__curl, .booking__curl, .booking__bg,
.menu__cloth, .marquee, .gingham-strip, .divider,
.footer__wave, .footer__big, .casa__note, .chalk__chalk,
.map__art, .loader, .sprite { pointer-events: none; }
.loader:not(.is-done) { pointer-events: auto; }
