/* =============================================================
   La Barra de Jackili · Cevichería en Miraflores
   Arquetipo: Liquid Wave (marea fresca) — una sola firma: olas vivas
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #F3FAF7;   /* espuma */
  --bg-2:      #E3F4EF;   /* agua clara */
  --paper:     #FFFFFF;
  --ink:       #08303A;
  --ink-soft:  #2E5560;
  --ink-mute:  #5E7C84;
  --sea:       #0B4F5C;   /* mar profundo */
  --sea-2:     #0F7A86;
  --sea-3:     #3FB8B0;
  --deep:      #062A33;
  --lime:      #8DCB4C;   /* limón */
  --lime-deep: #3E7E17;
  --aji:       #FFC53D;   /* ají amarillo */
  --wa:        #25D366;
  --wa-ink:    #11804A;
  --cream:     #EAF7F3;
  --line:      rgba(8, 48, 58, .12);

  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --sans:    "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand:    "Caveat", "Segoe Print", cursive;

  --nav-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec-pad: clamp(76px, 10vw, 136px);
  --radius: 28px;
  --shadow-soft: 0 18px 40px -22px rgba(6, 42, 51, .35);
  --shadow-card: 0 24px 50px -30px rgba(6, 42, 51, .45);

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.02; letter-spacing: -0.025em; }
::selection { background: var(--aji); color: var(--deep); }
:focus-visible { outline: 3px solid var(--sea-3); outline-offset: 3px; border-radius: 8px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; border-radius: 10px;
  background: var(--sea); color: #fff; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Typography helpers
   ============================================================= */
.kicker {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sea-2);
  margin-bottom: 1rem;
}
.kicker svg { width: 1.3em; height: 1.3em; }
.kicker-light { color: var(--lime); }

.section-title {
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  font-weight: 800;
  color: var(--sea);
}
.section-title em, .hero-title em {
  font-style: normal;
  color: var(--sea-2);
  text-decoration: underline wavy var(--aji);
  text-decoration-thickness: .09em;
  text-underline-offset: .14em;
  text-decoration-skip-ink: none;
}
.section-lead {
  margin-top: 1.1rem;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 60ch;
}
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* =============================================================
   5. Components
   ============================================================= */
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.35em;
  border-radius: 999px;
  font-weight: 700; font-size: .98rem; line-height: 1.1;
  transition: transform .35s var(--ease-out), background-color .25s, color .25s, box-shadow .35s var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-lg { padding: 1em 1.6em; font-size: 1.02rem; }
.btn-wa { background: var(--wa-ink); color: #fff; box-shadow: 0 12px 26px -14px rgba(17, 128, 74, .8); }
.btn-wa:hover { background: #0D6F3F; box-shadow: 0 18px 30px -14px rgba(17, 128, 74, .9); }
.btn-ghost { color: var(--sea); box-shadow: inset 0 0 0 2px var(--sea); }
.btn-ghost:hover { background: var(--sea); color: #fff; }
.btn-sea { background: var(--sea); color: #fff; box-shadow: 0 12px 26px -14px rgba(11, 79, 92, .8); }
.btn-sea:hover { background: var(--sea-2); }
.btn-lime { background: var(--lime); color: var(--deep); }
.btn-lime:hover { background: #A2DA63; }
.btn-ink { background: var(--deep); color: #fff; }
.btn-ink:hover { background: var(--sea); }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark { width: 42px; height: 42px; flex: none; transition: transform .8s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(45deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-weight: 800; font-size: 1.08rem; color: var(--sea); letter-spacing: -0.02em; }
.brand-text small { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: rgba(234, 247, 243, .65); }

/* Stars */
.stars { display: inline-flex; gap: 2px; color: var(--aji); }
.stars svg { width: 16px; height: 16px; }
.stars-lg svg { width: 26px; height: 26px; }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav.is-scrolled {
  background: rgba(243, 250, 247, .94);
  box-shadow: 0 10px 30px -24px rgba(6, 42, 51, .5);
}
@supports (backdrop-filter: blur(12px)) {
  .nav.is-scrolled { background: rgba(243, 250, 247, .8); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a:not(.btn) {
  position: relative;
  padding: .55rem .85rem;
  font-weight: 600; font-size: .96rem; color: var(--ink-soft);
  border-radius: 999px;
  transition: color .25s, background-color .25s;
}
.nav-links a:not(.btn):hover { color: var(--sea); background: rgba(63, 184, 176, .14); }
.nav-cta { margin-left: .5rem; padding: .7em 1.15em; }
.nav-toggle { display: none; }

/* Sin JS: los enlaces quedan visibles y desplazables */
html:not(.js) .nav { position: absolute; }
html:not(.js) .nav-links { overflow-x: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(28px, 6vw, 72px));
  padding-bottom: clamp(110px, 14vw, 190px);
  background: linear-gradient(180deg, #D8F1EB 0%, #EAF7F2 55%, var(--bg) 100%);
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; filter: blur(50px); opacity: .55; }
.blob-a { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; right: -8vw; top: 6%; background: radial-gradient(circle at 40% 40%, var(--sea-3), transparent 70%); animation: blobMorph 22s ease-in-out infinite; }
.blob-b { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; left: -10vw; bottom: 0; background: radial-gradient(circle at 50% 50%, rgba(141, 203, 76, .8), transparent 70%); animation: blobMorph 28s ease-in-out infinite reverse; }

.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .95rem .45rem .75rem;
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: var(--sea);
}
.eyebrow-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(141, 203, 76, .25); }
.hero-title {
  margin-top: 1.4rem;
  font-size: clamp(2.7rem, 5.6vw, 4.7rem);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -0.035em;
  color: var(--sea);
}
.hero-sub { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-call { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.3rem; font-size: .95rem; color: var(--ink-soft); }
.hero-call svg { width: 18px; height: 18px; color: var(--sea-2); }
.hero-call strong { color: var(--sea); border-bottom: 2px solid var(--aji); }
.hero-call:hover strong { color: var(--sea-2); }

.hero-visual { position: relative; width: min(100%, 540px); margin-inline: auto; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% -4% -6% 10%; z-index: -1;
  background: var(--aji);
  border-radius: 58% 42% 38% 62% / 52% 61% 39% 48%;
  animation: blobMorph 18s ease-in-out infinite reverse;
}
.hero-frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  box-shadow: 0 40px 70px -40px rgba(6, 42, 51, .6);
  animation: blobMorph 16s ease-in-out infinite, bob 7s ease-in-out infinite;
  background: var(--bg-2);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero-badge {
  position: absolute; left: -2%; bottom: 6%;
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1.1rem .8rem .9rem;
  background: var(--paper);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  animation: bob 7s ease-in-out -2.5s infinite;
}
.hero-badge-score { font-family: var(--display); font-weight: 800; font-size: 2.3rem; line-height: 1; color: var(--sea); }
.hero-badge-meta { display: flex; flex-direction: column; gap: 2px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.hero-note {
  position: absolute; right: -2%; top: -4%;
  display: flex; align-items: flex-end; gap: .2rem;
  font-family: var(--hand); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; line-height: 1;
  color: var(--sea-2);
  transform: rotate(-8deg);
}
.hero-note svg { width: 54px; height: 36px; transform: translate(-8px, 26px) scaleX(-1); }

/* Waves (firma) */
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(70px, 10vw, 140px); overflow: hidden; pointer-events: none; }
.wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.wave-1 { fill: rgba(63, 184, 176, .28); animation: waveDrift 22s linear infinite; }
.wave-2 { fill: rgba(15, 122, 134, .22); animation: waveDriftRev 30s linear infinite; }
.wave-3 { fill: var(--bg-2); animation: waveDrift 40s linear infinite; }

/* ---------- Section base + dividers ---------- */
.section { position: relative; padding-block: var(--sec-pad); }
.divider { position: absolute; left: 0; right: 0; height: clamp(36px, 6vw, 84px); pointer-events: none; }
.divider svg { width: 100%; height: 100%; }
.divider-to-bg { bottom: -1px; fill: var(--bg); }
.divider-from-bg { top: -1px; fill: var(--bg); }
.divider-to-bg2 { bottom: -1px; fill: var(--bg-2); }

/* ---------- Carta ---------- */
.carta { background: var(--bg-2); padding-top: clamp(40px, 6vw, 80px); }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
html:not(.js) .filters { display: none; }
.filter {
  padding: .6rem 1.1rem;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 600; font-size: .92rem; color: var(--ink-soft);
  transition: background-color .25s, color .25s, box-shadow .25s, transform .3s var(--ease-out);
}
.filter:hover { transform: translateY(-1px); color: var(--sea); }
.filter.is-active { background: var(--sea); color: #fff; box-shadow: none; }

.dish-grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.dish {
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.dish:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -34px rgba(6, 42, 51, .55); }
.dish.is-hidden { display: none; }
.dish-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), filter .6s; }
.dish:hover .dish-media img { transform: scale(1.07); filter: saturate(1.12); }
.dish-media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px;
  background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 26' preserveAspectRatio='none'%3E%3Cpath d='M0 14C50 2 100 2 150 12s100 14 150 4 75-10 100-6V26H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 26' preserveAspectRatio='none'%3E%3Cpath d='M0 14C50 2 100 2 150 12s100 14 150 4 75-10 100-6V26H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.dish-tag {
  position: absolute; top: 14px; left: 14px;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: var(--aji); color: var(--deep);
  font-size: .78rem; font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5);
}
.dish-body { display: flex; flex-direction: column; flex: 1; padding: .6rem 1.4rem 1.5rem; }
.dish-body h3 { font-size: 1.4rem; font-weight: 800; color: var(--sea); }
.dish-body p { margin-top: .5rem; color: var(--ink-soft); font-size: .97rem; flex: 1; }
.dish-link {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  margin-top: 1rem;
  font-weight: 700; font-size: .95rem; color: var(--wa-ink);
}
.dish-link svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.dish-link:hover svg { transform: translateX(4px); }

.menu-more { display: grid; gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
.menu-col {
  padding: 1.5rem 1.6rem;
  background: rgba(255, 255, 255, .7);
  border: 1.5px dashed rgba(15, 122, 134, .35);
  border-radius: var(--radius);
}
.menu-col h3 { font-size: 1.2rem; font-weight: 800; color: var(--sea); margin-bottom: .7rem; }
.menu-col li { position: relative; padding: .28rem 0 .28rem 1.2rem; color: var(--ink-soft); }
.menu-col li::before {
  content: ""; position: absolute; left: 0; top: .82em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
}
.menu-drinks { display: flex; gap: 1.2rem; align-items: center; }
.menu-drinks img { width: 104px; height: 104px; object-fit: cover; flex: none; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
.menu-cta { margin-top: 2rem; text-align: center; }
.menu-cta .btn { white-space: normal; }

/* ---------- La barra ---------- */
.nosotros { background: var(--bg); }
.nosotros-grid { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
.collage { position: relative; width: min(100%, 560px); margin-inline: auto; padding-bottom: 18%; }
.collage figure { overflow: hidden; box-shadow: var(--shadow-card); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage-a { aspect-ratio: 4 / 4.4; width: 82%; border-radius: 38% 62% 46% 54% / 44% 38% 62% 56%; }
.collage-b {
  position: absolute; right: 0; bottom: 0;
  width: 52%; aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid var(--bg);
  animation: bob 8s ease-in-out -3s infinite;
}
.collage-note {
  position: absolute; left: 4%; bottom: 3%;
  font-family: var(--hand); font-weight: 700; font-size: 1.9rem; color: var(--sea-2);
  transform: rotate(-6deg);
}

.pillars { display: grid; gap: 1rem; margin-top: 2rem; }
.pillars li { display: flex; gap: 1rem; align-items: flex-start; }
.pillar-icon {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px;
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  background: rgba(141, 203, 76, .22); color: var(--lime-deep);
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillars h3 { font-size: 1.15rem; font-weight: 800; color: var(--sea); }
.pillars p { color: var(--ink-soft); }

.sedes { display: grid; gap: 1rem; margin-top: 2.2rem; }
.sede {
  position: relative;
  padding: 1.3rem 1.4rem;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.sede.is-here { background: var(--sea); color: var(--cream); box-shadow: var(--shadow-soft); }
.sede-tag { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sea-2); }
.sede.is-here .sede-tag { color: var(--aji); }
.sede h3 { font-size: 1.5rem; font-weight: 800; margin-top: .25rem; color: var(--sea); }
.sede.is-here h3 { color: #fff; }
.sede p { margin-top: .2rem; font-size: .95rem; color: var(--ink-soft); }
.sede.is-here p { color: rgba(234, 247, 243, .8); }
.sede a { display: inline-flex; align-items: center; gap: .35rem; margin-top: .7rem; font-weight: 700; font-size: .92rem; color: var(--sea-2); }
.sede.is-here a { color: var(--lime); }
.sede a svg { width: 17px; height: 17px; }
.sede a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reseñas ---------- */
.resenas { background: var(--sea); color: var(--cream); overflow: hidden; }
.resenas::before {
  content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  right: -20vw; top: 10%;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: radial-gradient(circle, rgba(63, 184, 176, .35), transparent 70%);
  filter: blur(40px);
  animation: blobMorph 24s ease-in-out infinite;
  pointer-events: none;
}
.resenas-grid { position: relative; display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; padding-block: clamp(20px, 4vw, 40px); }
.score-num { font-family: var(--display); font-weight: 800; line-height: .85; letter-spacing: -0.05em; color: var(--lime); font-size: clamp(5.5rem, 15vw, 9.5rem); }
.score-num small { font-size: .3em; letter-spacing: 0; color: rgba(234, 247, 243, .6); margin-left: .1em; }
.score .stars { margin-top: 1rem; }
.score-meta { margin-top: 1.2rem; font-size: 1.1rem; max-width: 34ch; color: rgba(234, 247, 243, .85); }
.score-meta strong { color: #fff; }
.score-meta em { font-style: normal; color: var(--aji); font-weight: 700; }
.score .btn { margin-top: 1.8rem; }

.themes-title { font-family: var(--hand); font-size: 2rem; font-weight: 700; color: var(--aji); margin-bottom: 1rem; transform: rotate(-2deg); transform-origin: left; }
.theme-list { display: grid; gap: 1rem; }
.theme {
  padding: 1.4rem 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(234, 247, 243, .14);
  transition: background-color .35s, transform .5s var(--ease-out);
}
.theme:hover { background: rgba(255, 255, 255, .1); transform: translateY(-4px); }
.theme-num { font-family: var(--display); font-weight: 800; font-size: .9rem; color: var(--lime); }
.theme h3 { margin-top: .3rem; font-size: 1.3rem; font-weight: 800; color: #fff; }
.theme p { margin-top: .35rem; color: rgba(234, 247, 243, .78); font-size: .97rem; }

/* ---------- Ubicación ---------- */
.ubicacion { background: var(--bg-2); }
.ubicacion-grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.map-card {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #cfe7e1;
  box-shadow: var(--shadow-card);
}
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.info-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.info-list { display: grid; gap: 1.2rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 14px;
  background: rgba(63, 184, 176, .16); color: var(--sea-2);
}
.info-icon svg { width: 22px; height: 22px; }
.info-list h3 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.info-list p { margin-top: .15rem; color: var(--ink); }
.info-list a { color: var(--sea); font-weight: 700; border-bottom: 2px solid var(--aji); }
.info-list a:hover { color: var(--sea-2); }
.info-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.info-actions .btn { flex: 1 1 auto; }

/* ---------- CTA final ---------- */
.cta-final {
  position: relative;
  padding-block: calc(var(--sec-pad) + 40px);
  background: var(--aji);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-final::before, .cta-final::after {
  content: ""; position: absolute; left: 0; right: 0; height: clamp(36px, 6vw, 84px);
  background-size: 100% 100%; background-repeat: no-repeat; z-index: 1;
}
.cta-final::before { top: -1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23E3F4EF' d='M0 40C200 80 420 80 660 46S1100 0 1300 30 1420 60 1440 56V0H0Z'/%3E%3C/svg%3E"); }
.cta-final::after { bottom: -1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23062A33' d='M0 50C220 10 460 10 700 44S1160 90 1360 56 1430 40 1440 40V90H0Z'/%3E%3C/svg%3E"); }
.cta-inner { position: relative; z-index: 2; max-width: 760px; }
.cta-hand { font-family: var(--hand); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 700; color: var(--sea-2); transform: rotate(-3deg); }
.cta-title { margin-top: .4rem; font-size: clamp(2.2rem, 5.4vw, 3.8rem); font-weight: 800; color: var(--deep); }
.cta-sub { margin: 1.1rem auto 0; max-width: 52ch; font-size: 1.1rem; color: rgba(6, 42, 51, .8); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2rem; }

/* ---------- Footer ---------- */
.footer { background: var(--deep); color: rgba(234, 247, 243, .78); padding-top: clamp(48px, 7vw, 80px); }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand p { margin-top: 1rem; max-width: 34ch; font-size: .95rem; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: .55rem; }
.footer-nav a, .footer-contact a { display: inline-flex; align-items: center; gap: .55rem; width: fit-content; transition: color .25s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--lime); }
.footer-contact svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem;
  padding-block: 1.4rem calc(1.4rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(234, 247, 243, .12);
  font-size: .85rem; color: rgba(234, 247, 243, .55);
}
.footer-credits a { color: rgba(234, 247, 243, .8); text-decoration: underline; text-underline-offset: 3px; }
.footer-credits a:hover { color: var(--lime); }

/* ---------- Botones flotantes + chat ---------- */
.fab-dock {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.fab {
  position: relative;
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(6, 42, 51, .55);
  transition: transform .4s var(--ease-bounce), background-color .25s;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; }
.fab-wa { background: var(--wa); }
.fab-wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
  animation: ring 5s ease-out infinite;
}
.fab-chat { background: var(--sea); }
.fab-chat .ico-close { display: none; width: 22px; height: 22px; }
.chat.is-open .fab-chat .ico-open { display: none; }
.chat.is-open .fab-chat .ico-close { display: block; }
html:not(.js) .chat { display: none; }

.chat { position: relative; }
.chat-hint {
  position: absolute; right: calc(100% + 14px); bottom: 10px;
  width: max-content; max-width: 220px;
  padding: .7rem .95rem;
  border-radius: 18px 18px 4px 18px;
  background: var(--paper); color: var(--ink);
  font-size: .9rem; font-weight: 600; text-align: left; line-height: 1.35;
  box-shadow: var(--shadow-card);
  animation: hintIn .6s var(--ease-bounce) both;
}
.chat-hint[hidden] { display: none; }

.chat-panel {
  position: fixed; z-index: 70;
  left: 10px; right: 10px; bottom: 10px;
  height: min(82svh, 640px);
  display: flex; flex-direction: column;
  background: var(--bg);
  border-radius: 26px;
  box-shadow: 0 40px 80px -30px rgba(6, 42, 51, .6), 0 0 0 1px var(--line);
  overflow: hidden;
  animation: panelIn .45s var(--ease-out) both;
}
.chat-panel[hidden] { display: none; }
.chat-head {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1rem .9rem 1.1rem;
  background: var(--sea); color: #fff;
}
.chat-avatar { width: 40px; height: 40px; flex: none; }
.chat-head div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.chat-head strong { font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.chat-head small { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: rgba(234, 247, 243, .8); }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); }
.chat-close { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; transition: background-color .25s; }
.chat-close:hover { background: rgba(255, 255, 255, .14); }
.chat-close svg { width: 20px; height: 20px; }

.chat-log {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: .6rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 100% 0, rgba(63, 184, 176, .12), transparent 40%),
    var(--bg);
}
.msg {
  max-width: 86%;
  padding: .7rem .95rem;
  border-radius: 18px;
  font-size: .94rem; line-height: 1.45;
  animation: msgIn .35s var(--ease-out) both;
}
.msg p + p, .msg p + ul, .msg ul + p { margin-top: .45rem; }
.msg ul { margin-top: .35rem; display: grid; gap: .15rem; }
.msg li { position: relative; padding-left: 1rem; }
.msg li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.msg-bot { align-self: flex-start; background: var(--paper); color: var(--ink); border-bottom-left-radius: 6px; box-shadow: 0 6px 16px -12px rgba(6, 42, 51, .5); }
.msg-user { align-self: flex-end; background: var(--sea); color: #fff; border-bottom-right-radius: 6px; }
.msg strong { color: var(--sea); }
.msg-user strong { color: #fff; }
.msg-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.msg-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .8rem; border-radius: 999px;
  background: var(--sea); color: #fff !important;
  font-size: .84rem; font-weight: 700;
  transition: transform .3s var(--ease-out), background-color .25s;
}
.msg-btn:hover { transform: translateY(-1px); background: var(--sea-2); }
.msg-btn svg { width: 16px; height: 16px; }
.msg-btn.is-wa { background: var(--wa-ink); }
.msg-btn.is-wa:hover { background: #0D6F3F; }
.msg-btn.is-ghost { background: transparent; color: var(--sea) !important; box-shadow: inset 0 0 0 1.5px var(--sea); }
.msg-btn.is-ghost:hover { background: rgba(11, 79, 92, .08); }

.typing { display: inline-flex; gap: 4px; padding: .85rem 1rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--sea-3); animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }

.chat-chips {
  display: flex; gap: .45rem;
  padding: .2rem 1rem .7rem;
  overflow-x: auto; scrollbar-width: none;
  background: var(--bg);
}
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips:empty { display: none; }
.chip {
  flex: none;
  padding: .5rem .85rem;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(15, 122, 134, .35);
  color: var(--sea); font-size: .86rem; font-weight: 600;
  transition: background-color .25s, color .25s;
}
.chip:hover { background: var(--sea); color: #fff; }
.chat-form { display: flex; gap: .5rem; padding: .7rem .8rem; background: var(--paper); border-top: 1px solid var(--line); }
.chat-form input {
  flex: 1; min-width: 0;
  padding: .75rem 1rem;
  border: 0; border-radius: 999px;
  background: var(--bg-2);
  font-size: 16px;
}
.chat-form input:focus { outline: 2px solid var(--sea-3); outline-offset: 0; }
.chat-form button { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--sea); color: #fff; transition: background-color .25s, transform .3s var(--ease-out); }
.chat-form button:hover { background: var(--sea-2); transform: scale(1.05); }
.chat-form button svg { width: 20px; height: 20px; }
.chat-foot { padding: .1rem 1rem .8rem; background: var(--paper); font-size: .78rem; color: var(--ink-mute); text-align: center; }
.chat-foot a { color: var(--wa-ink); font-weight: 700; }

/* ---------- Créditos ---------- */
.page-credits { background: var(--bg-2); }
.credits { padding-block: clamp(40px, 8vw, 96px); max-width: 860px; }
.credits-back { display: inline-flex; margin-bottom: 2rem; font-weight: 700; color: var(--sea-2); }
.credits .section-lead { margin-bottom: 2rem; }
.credits-list { display: grid; gap: .7rem; }
.credits-list li { padding: 1rem 1.2rem; border-radius: 18px; background: var(--paper); color: var(--ink-soft); font-size: .95rem; }
.credits-list strong { color: var(--sea); }
.credits-list a { color: var(--sea-2); text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   7. Effects
   ============================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

@keyframes blobMorph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  33%      { border-radius: 58% 42% 41% 59% / 56% 38% 62% 44%; }
  66%      { border-radius: 38% 62% 54% 46% / 47% 60% 40% 53%; }
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}
@keyframes waveDrift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes waveDriftRev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes ring {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  40%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
}
@keyframes hintIn { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 959px) {
  .js .nav-toggle {
    display: grid; place-items: center; gap: 6px;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--paper);
    box-shadow: 0 8px 20px -12px rgba(6, 42, 51, .5);
    align-content: center;
  }
  .js .nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--sea); transition: transform .35s var(--ease-out); }
  .js .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .js .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .js .nav-links {
    position: fixed; left: 12px; right: 12px; top: calc(var(--nav-h) + 4px);
    flex-direction: column; align-items: stretch; gap: .2rem;
    padding: .8rem;
    background: var(--paper);
    border-radius: 24px;
    box-shadow: 0 30px 60px -30px rgba(6, 42, 51, .55), 0 0 0 1px var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s, transform .4s var(--ease-out), visibility 0s .4s;
  }
  .js .nav-links.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease-out); }
  .js .nav-links a:not(.btn) { padding: .85rem 1rem; font-size: 1.05rem; }
  .js .nav-cta { margin: .4rem 0 0; padding: .95em 1.2em; }
  html:not(.js) .nav-inner { flex-wrap: wrap; height: auto; padding-block: .8rem; }
  html:not(.js) .nav { height: auto; }
  .hero-note { right: 0; top: -6%; }
}

@media (min-width: 540px) {
  .sedes { grid-template-columns: 1fr 1fr; }
  .hero-badge { left: -6%; }
}

@media (min-width: 720px) {
  .dish-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .map-card { min-height: 420px; }
}

@media (min-width: 960px) {
  :root { --nav-h: 80px; }
  .hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
  .hero > .container { width: min(100% - 2 * var(--gutter), 1200px); }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .dish-grid { grid-template-columns: repeat(3, 1fr); }
  .menu-more { grid-template-columns: 1fr 1fr 1.3fr; }
  .nosotros-grid { grid-template-columns: 1fr 1.05fr; }
  .resenas-grid { grid-template-columns: .85fr 1.15fr; }
  .ubicacion-grid { grid-template-columns: 1.25fr .9fr; }
  .map-card { min-height: 100%; }

  .chat-panel {
    position: absolute; left: auto; right: 0; bottom: calc(100% + 14px);
    width: 380px; height: min(600px, calc(100vh - 200px));
  }
}

/* =============================================================
   9. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fab-wa::after { animation: none; }
}
