/* ===== La Perla del Pacífico — sistema visual marino ===== */
:root {
  /* Paleta (única fuente de color) */
  --abyss: #051227;
  --deep: #071a38;
  --navy: #0a2a52;
  --ocean: #0f4a7f;
  --ocean-2: #1b6aa3;
  --turq: #2fd0c4;
  --turq-soft: #8be9e1;
  --pearl: #f3f6fb;
  --pearl-2: #dfe8f4;
  --gold: #e6c26a;
  --text: #f4f8ff;
  --muted: #b6cae4;
  --line: rgba(255, 255, 255, .14);
  --surface: rgba(10, 42, 82, .78);
  --surface-2: rgba(15, 74, 127, .45);
  --ok: #7ee2a8;
  --danger: #ff9c9c;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px rgba(0, 8, 24, .45);
  --font: ui-rounded, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --font-display: "Cooper Black", "Bookman Old Style", "Palatino Linotype", Georgia, serif;

  /* Controlados por JS (fx-config) */
  --light: 1;          /* intensidad de la iluminación por zona */
  --glow: 0;           /* resplandor de la concha 0..1 */
  --fx-speed: 1;       /* multiplicador de duración (>1 = más lento) */
  --fx-ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--deep);
  background-image: linear-gradient(180deg, #0a2a52 0, #071a38 38%, #051227 100%);
  background-attachment: fixed; line-height: 1.55; overflow-x: hidden; min-height: 100svh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--turq-soft); }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--pearl); color: var(--abyss); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
main, .foot, .top { position: relative; z-index: 2; }

/* ===== Capas ambientales ===== */
.fx-light, .fx-bubbles { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.fx-light { opacity: calc(var(--light) * .9); transition: opacity 1.4s ease; contain: strict; }
.fx-light i { position: absolute; inset: -20% -30% -10%; display: block; will-change: transform, opacity; }
.fx-light__far {
  background: repeating-linear-gradient(102deg, transparent 0 7%, rgba(47, 208, 196, .10) 9% 13%, transparent 16% 26%);
  -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.55) 45%, transparent 85%);
          mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.55) 45%, transparent 85%);
  animation: ray-sway calc(61s * var(--fx-speed)) ease-in-out infinite alternate, ray-breath calc(13s * var(--fx-speed)) ease-in-out infinite;
}
.fx-light__mid {
  background: repeating-linear-gradient(108deg, transparent 0 11%, rgba(139, 233, 225, .13) 13% 15.5%, transparent 19% 31%);
  -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.4) 55%, transparent 80%);
          mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.4) 55%, transparent 80%);
  animation: ray-sway calc(43s * var(--fx-speed)) ease-in-out -9s infinite alternate-reverse, ray-breath calc(9.5s * var(--fx-speed)) ease-in-out -3s infinite;
}
.fx-light__near {
  background: repeating-linear-gradient(97deg, transparent 0 17%, rgba(243, 246, 251, .09) 19% 21%, transparent 24% 41%);
  -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 60%);
          mask-image: linear-gradient(180deg, #000 0, transparent 60%);
  animation: ray-sway calc(79s * var(--fx-speed)) ease-in-out -21s infinite alternate, ray-breath calc(17s * var(--fx-speed)) ease-in-out -6s infinite;
}
.fx-light__caustics {
  inset: 0 !important;
  background:
    radial-gradient(40% 28% at 22% 12%, rgba(47, 208, 196, .16), transparent 70%),
    radial-gradient(34% 24% at 78% 22%, rgba(139, 233, 225, .12), transparent 70%),
    radial-gradient(50% 20% at 50% 0%, rgba(243, 246, 251, .10), transparent 70%);
  animation: caustic calc(23s * var(--fx-speed)) ease-in-out infinite alternate;
}
@keyframes ray-sway { from { transform: translate3d(-4%, 0, 0) skewX(-3deg); } to { transform: translate3d(5%, 0, 0) skewX(4deg); } }
@keyframes ray-breath { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes caustic { from { transform: translate3d(-3%, -1%, 0) scale(1); } to { transform: translate3d(4%, 2%, 0) scale(1.08); } }

.bubble {
  position: absolute; left: 0; bottom: 0; border-radius: 50%; pointer-events: none; opacity: 0;
  background: var(--sprite) center / contain no-repeat; will-change: transform, opacity;
}
.bubble--far { filter: blur(1px); }

/* ===== Cabecera ===== */
.top {
  position: sticky; top: 0; z-index: 30; height: var(--header-h); display: flex; align-items: center; gap: 14px;
  padding: 0 max(16px, env(safe-area-inset-left)); background: linear-gradient(180deg, rgba(5, 18, 39, .92), rgba(5, 18, 39, .72));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pearl); margin-right: auto; min-width: 0; }
.brand img { border-radius: 50%; flex: none; }
.brand__name { font-family: var(--font-display); font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__nav { display: none; gap: 6px; }
.top__nav a { color: var(--pearl-2); text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 600; }
.top__nav a:hover { background: var(--surface-2); }
.fxbtn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-size: .85rem; font-weight: 600; white-space: nowrap;
}
.fxbtn__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 10px var(--turq); }
html[data-fx="off"] .fxbtn__dot { background: var(--muted); box-shadow: none; }
html[data-fx="lite"] .fxbtn__dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* ===== Botones ===== */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 0 24px; border-radius: 999px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .25s var(--fx-ease), box-shadow .25s, background .25s;
}
.btn--primary { background: linear-gradient(180deg, var(--turq-soft), var(--turq)); color: #03222b; box-shadow: 0 8px 24px rgba(47, 208, 196, .32); }
.btn--ghost { background: rgba(255, 255, 255, .06); color: var(--pearl); border-color: rgba(243, 246, 251, .55); }
.btn--wa { background: #1fa855; color: #fff; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; left: var(--x); top: var(--y); width: var(--d); height: var(--d);
  transform: translate(-50%, -50%) scale(0); opacity: .85; border: 2px solid rgba(139, 233, 225, .8);
  background: radial-gradient(circle, rgba(243, 246, 251, .28) 0 35%, rgba(47, 208, 196, .16) 36% 62%, transparent 72%);
  animation: ripple calc(.7s * var(--fx-speed)) ease-out forwards;
}
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.ring {
  position: fixed; z-index: 5; pointer-events: none; border-radius: 50%; width: var(--d); height: var(--d); left: var(--x); top: var(--y);
  border: 2px solid rgba(139, 233, 225, .75); box-shadow: 0 0 22px rgba(47, 208, 196, .35), inset 0 0 18px rgba(47, 208, 196, .18);
  transform: translate(-50%, -50%) scale(.05); opacity: .9; animation: ring calc(1.1s * var(--fx-speed)) cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes ring { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* ===== Portada ===== */
.hero { position: relative; padding: 28px 0 90px; min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; width: min(1120px, 100% - 32px); margin-inline: auto; display: grid; gap: 8px; align-items: center; }
.hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero__logo { border-radius: 50%; box-shadow: 0 10px 36px rgba(0, 8, 24, .5), 0 0 0 3px rgba(243, 246, 251, .25); }
.kicker { margin: 0; color: var(--turq-soft); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.5rem, 9.5vw, 4.6rem); color: var(--pearl); text-shadow: 0 4px 24px rgba(0, 8, 24, .55);
}
.hero h1 span { display: block; color: var(--turq-soft); font-size: .72em; }
.hero__tag { margin: 0; font-size: 1.1rem; color: var(--pearl-2); max-width: 30ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.hero__stage { position: relative; display: grid; place-items: center; min-height: 250px; }
.hero__mascot { position: absolute; right: -2%; bottom: -6%; width: clamp(96px, 26vw, 170px); filter: drop-shadow(0 8px 14px rgba(0, 8, 24, .5)); pointer-events: none; }
.hero__wave { position: absolute; left: 0; bottom: -1px; width: 200%; height: 70px; fill: var(--deep); z-index: 1; opacity: .96; pointer-events: none; }
.hero__currents { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.cur { position: absolute; opacity: .5; will-change: transform, opacity; width: clamp(180px, 36vw, 420px); }
.cur--a { left: -4%; top: 14%; animation: drift-a calc(26s * var(--fx-speed)) ease-in-out infinite alternate; }
.cur--b { right: -6%; top: 52%; animation: drift-b calc(32s * var(--fx-speed)) ease-in-out -8s infinite alternate; }
.cur--c { left: 22%; bottom: 14%; width: clamp(160px, 30vw, 340px); opacity: .4; animation: drift-a calc(38s * var(--fx-speed)) ease-in-out -15s infinite alternate-reverse; }
@keyframes drift-a { from { transform: translate3d(-3%, 0, 0) rotate(-2deg); opacity: .25; } to { transform: translate3d(7%, -6%, 0) rotate(2deg); opacity: .6; } }
@keyframes drift-b { from { transform: translate3d(4%, 3%, 0) scaleX(-1) rotate(2deg); opacity: .3; } to { transform: translate3d(-6%, -4%, 0) scaleX(-1) rotate(-2deg); opacity: .55; } }

/* Concha */
.shell { position: relative; width: clamp(200px, 56vw, 300px); aspect-ratio: 282 / 312; cursor: pointer; border-radius: 18px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.shell__img, .shell__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0, 8, 24, .55)); }
.shell__glow {
  position: absolute; left: 50%; top: 56%; width: 150%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 233, 190, .55) 0, rgba(139, 233, 225, .22) 32%, transparent 62%);
  opacity: calc(var(--shell-glow, 0) * .8); transition: opacity 1.1s ease; mix-blend-mode: screen;
}
.shell[data-state="disabled"] { cursor: default; filter: saturate(.8); }
.shell.is-appear { animation: shell-in calc(1.1s * var(--fx-speed)) var(--fx-ease) both; }
@keyframes shell-in { from { opacity: 0; transform: translateY(14px) scale(.86) rotate(-4deg); } to { opacity: 1; transform: none; } }
html[data-fx="full"] .shell:not([data-state="opening"]):not([data-state="closing"]) { animation: shell-float calc(7s * var(--fx-speed)) ease-in-out infinite; }
html[data-fx="full"] .shell.is-appear { animation: shell-in calc(1.1s * var(--fx-speed)) var(--fx-ease) both; }
@keyframes shell-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
html[data-fx="full"] .hero__mascot { animation: mascot-bob calc(5.5s * var(--fx-speed)) ease-in-out infinite; }
@keyframes mascot-bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-6px) rotate(1.5deg); } }
html[data-fx="full"] .hero__wave { animation: wave-slide calc(18s * var(--fx-speed)) linear infinite; }
@keyframes wave-slide { to { transform: translateX(-50%); } }

/* ===== Secciones ===== */
section { position: relative; }
.sec-head { text-align: center; margin-bottom: 20px; }
.eyebrow { margin: 0 0 6px; color: var(--turq-soft); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 6vw, 2.8rem); color: var(--pearl); }
.sec-head__sub { color: var(--muted); margin: 8px 0 0; }
.menu { padding: 48px 0 56px; background: linear-gradient(180deg, var(--deep), rgba(5, 18, 39, .6)); }
.loading { text-align: center; color: var(--muted); padding: 40px 0; }

/* Pestañas de categoría */
.cats {
  position: sticky; top: var(--header-h); z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px; margin: 0 -2px 22px;
  background: rgba(7, 26, 56, .97); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  position: relative; overflow: hidden; flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 999px;
  text-decoration: none; color: var(--pearl-2); background: var(--surface-2); border: 1px solid var(--line); font-weight: 700;
}
.cats a[aria-current="true"] { background: var(--pearl); color: var(--abyss); border-color: var(--pearl); }

.cat { margin-bottom: 44px; scroll-margin-top: calc(var(--header-h) + 70px); }
.cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cat__head h3 { font-family: var(--font-display); font-size: 1.7rem; color: var(--pearl); }
.cat__sizes { color: var(--muted); font-size: .9rem; }
.cat__note { margin: 14px 0 0; color: var(--gold); font-size: .95rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }

/* Tarjetas */
.card {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s var(--fx-ease), box-shadow .3s, border-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.card:hover { transform: translateY(-4px); border-color: rgba(139, 233, 225, .5); box-shadow: 0 18px 44px rgba(0, 8, 24, .55); }
.card:focus-within { border-color: var(--turq); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(160deg, var(--ocean), var(--navy)); }
.card__media img.photo { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--fx-ease); }
.card:hover .card__media img.photo { transform: scale(1.04); }
.card__ph { position: absolute; inset: 0; display: grid; place-items: center; }
.card__ph img { width: 58%; max-height: 82%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 8, 24, .45)); }
.badge {
  position: absolute; left: 10px; top: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: rgba(5, 18, 39, .78); color: var(--pearl-2); border: 1px solid var(--line);
}
.badge--off { left: auto; right: 10px; color: var(--danger); }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__name { font-size: 1.15rem; font-weight: 800; color: var(--pearl); }
.card__name button {
  all: unset; cursor: pointer; display: block;
}
.card__name button::after { content: ""; position: absolute; inset: 0; z-index: 2; }  /* toda la tarjeta es el botón */
.card__name button:focus-visible { outline: none; }
.card:has(.card__name button:focus-visible) { outline: 3px solid var(--turq); outline-offset: 2px; }
.card__desc { margin: 0; color: var(--muted); font-size: .94rem; }
.prices { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prices li {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(243, 246, 251, .1);
  border: 1px solid rgba(243, 246, 251, .22); color: var(--pearl); font-weight: 800; font-size: 1.05rem;
}
.prices li small { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.card--off { opacity: .72; }

/* Lista tipo carta (bebidas) */
.list { list-style: none; margin: 0; padding: 18px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px 44px; grid-template-columns: 1fr; }
.row { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; }
.row__name { flex: 0 1 auto; color: var(--pearl); }
.row__dots { flex: 1 1 20px; border-bottom: 2px dotted rgba(182, 202, 228, .45); transform: translateY(-4px); min-width: 16px; }
.row__price { font-weight: 800; color: var(--pearl); }
.row--off .row__name { opacity: .6; text-decoration: line-through; }

/* Entrada de contenido (sólo si el sistema de efectos está activo) */
html[data-fx="full"] .reveal:not(.is-in) { opacity: 0; transform: translateY(18px) scale(.98); }
html[data-fx="lite"] .reveal:not(.is-in) { opacity: 0; }
html[data-fx="full"] .reveal, html[data-fx="lite"] .reveal { transition: opacity .55s ease, transform .6s var(--fx-ease); transition-delay: calc(var(--i, 0) * 45ms); }

/* ===== Nosotros / Visítanos ===== */
.about { padding: 64px 0; }
.about__grid, .visit__grid { display: grid; gap: 24px; align-items: center; }
.about__mascot, .visit__mascot { width: min(260px, 60%); margin-inline: auto; filter: drop-shadow(0 12px 16px rgba(0, 8, 24, .5)); }
.about p, .visit p { color: var(--pearl-2); max-width: 56ch; }
.visit { padding: 56px 0 72px; background: linear-gradient(180deg, transparent, rgba(5, 18, 39, .85)); }
.info { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.info li { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.info b { display: block; color: var(--turq-soft); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.visit__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.foot { padding: 28px 0 40px; background: var(--abyss); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; text-align: center; }
.foot p { margin: 4px 0; }
.foot__small { font-size: .8rem; }

/* ===== Detalle ===== */
.detail {
  width: min(560px, calc(100% - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 24px; color: var(--text);
  background: linear-gradient(180deg, var(--navy), var(--deep)); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: auto;
}
.detail::backdrop { background: rgba(3, 10, 24, .72); backdrop-filter: blur(3px); }
.detail[open] { animation: detail-in .35s var(--fx-ease); }
@keyframes detail-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.detail__close {
  position: absolute; right: 12px; top: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); overflow: hidden;
  background: rgba(5, 18, 39, .75); cursor: pointer; font-size: 1.05rem;
}
.detail__media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--ocean), var(--navy)); overflow: hidden; }
.detail__media img.photo { width: 100%; height: 100%; object-fit: cover; }
.detail__media .card__ph img { width: 48%; }
.detail__body { padding: 18px 20px 22px; display: grid; gap: 10px; }
.detail__body h3 { font-family: var(--font-display); font-size: 1.8rem; color: var(--pearl); }
.detail__desc { margin: 0; color: var(--pearl-2); }
.detail .prices { margin: 4px 0; }
.detail__avail { margin: 0; font-size: .9rem; color: var(--ok); }
.detail__avail.is-off { color: var(--danger); }
.detail__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
::view-transition-group(pimg) { animation-duration: .45s; animation-timing-function: var(--fx-ease); }

/* ===== Escritorio ===== */
@media (min-width: 760px) {
  .top__nav { display: flex; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; gap: 24px; }
  .hero__copy { text-align: left; align-items: flex-start; }
  .hero__cta { justify-content: flex-start; }
  .hero__stage { min-height: 380px; }
  .shell { width: clamp(260px, 30vw, 340px); }
  .list { grid-template-columns: 1fr 1fr; }
  .about__grid { grid-template-columns: 260px 1fr; gap: 48px; }
  .visit__grid { grid-template-columns: 1fr 260px; gap: 48px; }
}
@media (max-width: 380px) { .brand__name { display: none; } }

/* ===== Modos de efectos ===== */
html[data-fx="off"] .fx-bubbles, html[data-fx="off"] .hero__currents { display: none; }
html[data-fx="off"] .fx-light i, html[data-fx="off"] .cur, html[data-fx="off"] .hero__mascot,
html[data-fx="off"] .hero__wave, html[data-fx="off"] .shell { animation: none !important; }
html[data-fx="off"] .card, html[data-fx="off"] .btn, html[data-fx="off"] .card__media img.photo { transition: none; }
html[data-fx="off"] .card:hover, html[data-fx="off"] .btn:hover { transform: none; }
html[data-fx="off"] { scroll-behavior: auto; }
html[data-fx="off"] .fx-light__caustics { opacity: .6; }
html[data-fx="lite"] .hero__currents { display: none; }
html[data-fx="lite"] .fx-light__near, html[data-fx="lite"] .fx-light__caustics { display: none; }
html[data-fx="lite"] .fx-light i { animation-duration: calc(90s * var(--fx-speed)), calc(20s * var(--fx-speed)); }
html[data-fx="lite"] .hero__wave { animation: none; }
html.fx-paused .fx-light i, html.fx-paused .cur, html.fx-paused .hero__mascot, html.fx-paused .shell, html.fx-paused .hero__wave { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
  .detail[open] { animation: none; }
}

/* ===== Recursos opcionales administrados (portada, banner, galería) ===== */
.hero__cover { position: absolute; inset: 0; z-index: 0; background: var(--cover) center / cover no-repeat; opacity: .35; }
.hero__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 26, 56, .35), var(--deep)); }
.menu__banner { margin: 0 0 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.menu__banner img { width: 100%; max-height: 240px; object-fit: cover; }
.gallery { padding: 48px 0; }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.gallery__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Móvil: tarjetas compactas (foto a la izquierda) para recorrer el menú sin scroll interminable */
@media (max-width: 559px) {
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card { flex-direction: row; min-height: 124px; }
  .card__media { flex: 0 0 36%; aspect-ratio: auto; min-height: 124px; }
  .card__ph img { width: 78%; }
  .card__body { padding: 12px 14px; gap: 6px; justify-content: center; }
  .card__name { font-size: 1.05rem; }
  .prices li { padding: 4px 10px; font-size: .98rem; }
  .badge { left: 6px; top: 6px; font-size: .64rem; padding: 3px 7px; }
  .badge--off { left: 6px; right: auto; top: auto; bottom: 6px; }
  .fxbtn__pre { display: none; }
}
/* =====================  v2: portada rica, menú desplegable, dock, mapa  ===================== */
.hero__stage { position: relative; display: grid; place-items: center; min-height: 280px; }
.hero__orb {
  position: absolute; width: min(88%, 420px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(139, 233, 225, .38), rgba(15, 74, 127, .55) 45%, rgba(7, 26, 56, .1) 72%);
  border: 1px solid rgba(243, 246, 251, .18); box-shadow: inset 0 0 60px rgba(47, 208, 196, .25), 0 0 80px rgba(47, 208, 196, .18);
}
.hero__mascot { position: relative; right: auto; bottom: auto; width: clamp(220px, 62vw, 400px); filter: drop-shadow(0 18px 20px rgba(0, 8, 24, .55)); }
.hero__bub { position: absolute; pointer-events: none; opacity: .9; }
.hero__bub--a { width: 22%; left: 2%; top: 4%; }
.hero__bub--b { width: 15%; right: 6%; bottom: 8%; }
html[data-fx="full"] .hero__bub--a { animation: mascot-bob calc(7s * var(--fx-speed)) ease-in-out infinite; }
html[data-fx="full"] .hero__bub--b { animation: mascot-bob calc(5s * var(--fx-speed)) ease-in-out -2s infinite; }
html[data-fx="off"] .hero__bub { animation: none; }
@media (min-width: 760px) { .hero__stage { min-height: 420px; } .hero__mascot { width: clamp(300px, 36vw, 460px); } }

.marquee { position: relative; z-index: 2; overflow: hidden; background: linear-gradient(90deg, var(--ocean), var(--navy) 50%, var(--ocean)); border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; gap: 22px; padding: 12px 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--pearl); white-space: nowrap; }
.marquee__track i { color: var(--gold); font-style: normal; }
html[data-fx="full"] .marquee__track { animation: marquee calc(32s * var(--fx-speed)) linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
html.fx-paused .marquee__track { animation-play-state: paused; }

/* Acordeón de categorías */
.acc { margin-bottom: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.acc[data-open="true"] { border-color: rgba(139, 233, 225, .55); }
.acc__h { margin: 0; font: inherit; }
.acc__btn {
  position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; min-height: 84px;
  background: linear-gradient(100deg, rgba(27, 106, 163, .35), transparent 70%); border: 0; cursor: pointer; text-align: left; color: var(--text);
}
.acc__pic { width: 76px; height: 64px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 8px rgba(0, 8, 24, .45)); transition: transform .4s var(--fx-ease); }
.acc__btn:hover .acc__pic { transform: scale(1.08) rotate(-3deg); }
.acc__txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.acc__name { font-family: var(--font-display); font-size: 1.5rem; color: var(--pearl); line-height: 1.1; }
.acc__meta { color: var(--muted); font-size: .9rem; }
.acc__chev { width: 14px; height: 14px; border-right: 3px solid var(--turq-soft); border-bottom: 3px solid var(--turq-soft); transform: rotate(45deg); transition: transform .35s var(--fx-ease); margin-right: 6px; flex: none; }
.acc[data-open="true"] .acc__chev { transform: rotate(-135deg); }
.acc:has(.acc__btn:focus-visible) { outline: 3px solid var(--turq); outline-offset: 2px; }
.acc__btn:focus-visible { outline: none; }
.acc__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .5s var(--fx-ease), visibility 0s .5s; }
.acc[data-open="true"] .acc__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .5s var(--fx-ease), visibility 0s; }
.acc__inner { min-height: 0; overflow: hidden; padding: 0 14px; }
.acc[data-open="true"] .acc__inner { padding: 6px 14px 18px; }
.acc .list { background: transparent; border: 0; box-shadow: none; padding: 6px 8px; }
.acc .cat__note { margin-top: 10px; }
html[data-fx="full"] .acc[data-open="true"] .card { animation: card-in .55s var(--fx-ease) both; animation-delay: calc(var(--i, 0) * 50ms + 120ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.cats { display: none; }

/* Dock: concha pequeña como botón */
.dock { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.dock > * { pointer-events: auto; }
.dock .shell {
  width: 68px; height: 68px; aspect-ratio: auto; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(47, 208, 196, .35), rgba(7, 26, 56, .92) 70%);
  border: 1.5px solid rgba(243, 246, 251, .45); box-shadow: 0 10px 28px rgba(0, 8, 24, .6), 0 0 0 0 rgba(47, 208, 196, .5);
  transition: transform .25s var(--fx-ease); animation: none;
}
.dock .shell:active { transform: scale(.94); }
.dock .shell__img, .dock .shell__canvas { inset: 7px 6px 3px; width: calc(100% - 12px); height: calc(100% - 10px); filter: drop-shadow(0 3px 4px rgba(0, 8, 24, .5)); }
.dock .shell__glow { width: 170%; opacity: calc(var(--shell-glow, 0) * .9); }
html[data-fx="full"] .dock[data-open="false"] .shell { animation: dock-pulse 3.2s ease-out infinite; }
@keyframes dock-pulse { 0% { box-shadow: 0 10px 28px rgba(0, 8, 24, .6), 0 0 0 0 rgba(47, 208, 196, .55); } 70%, 100% { box-shadow: 0 10px 28px rgba(0, 8, 24, .6), 0 0 0 16px rgba(47, 208, 196, 0); } }
.dock__hint { position: absolute; right: 78px; bottom: 22px; padding: 5px 12px; border-radius: 999px; background: var(--pearl); color: var(--abyss); font-weight: 800; font-size: .82rem; white-space: nowrap; box-shadow: var(--shadow); }
.dock__hint[hidden] { display: none; }
.dock__hint::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; background: var(--pearl); transform: translateY(-50%) rotate(45deg); }
.dock__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 10px; }
.dock__item {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; border: 1px solid rgba(243, 246, 251, .35);
  background: linear-gradient(180deg, rgba(27, 106, 163, .95), rgba(10, 42, 82, .97)); color: var(--pearl); font: 700 .95rem var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 8, 24, .5); opacity: 0; transform: translateY(18px) scale(.8); visibility: hidden;
  transition: opacity .3s, transform .4s var(--fx-ease), visibility 0s .4s;
}
.dock[data-open="true"] .dock__item { opacity: 1; transform: none; visibility: visible; transition-delay: calc(var(--i, 0) * 55ms + 180ms), calc(var(--i, 0) * 55ms + 180ms), 0s; }
.dock__item--whatsapp svg { color: #5ff08e; } .dock__item--instagram svg { color: #ff86b8; } .dock__item--facebook svg { color: #7db4ff; } .dock__item--tiktok svg { color: #7df4ee; } .dock__item--mail svg { color: var(--gold); }
html[data-fx="off"] .dock__item, html[data-fx="off"] .dock .shell { transition: none; animation: none; }

.iconbtn { position: relative; overflow: hidden; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; color: var(--pearl); }

/* Letrero de instalación */
.install {
  position: fixed; left: 12px; right: 96px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 39; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 74, 127, .97), rgba(7, 26, 56, .98)); border: 1px solid rgba(139, 233, 225, .45); box-shadow: 0 14px 40px rgba(0, 8, 24, .65); max-width: 520px;
  animation: install-in .6s var(--fx-ease) both;
}
@keyframes install-in { from { opacity: 0; transform: translateY(30px); } }
.install[hidden] { display: none; }
.install__ico { border-radius: 12px; flex: none; }
.install__txt { display: grid; line-height: 1.25; font-size: .85rem; color: var(--pearl-2); min-width: 0; }
.install__txt strong { color: var(--pearl); font-size: .95rem; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: .9rem; flex: none; }
.install__x { all: unset; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); flex: none; }
.install__x:focus-visible { outline: 3px solid var(--turq); }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60; padding: 12px 20px; border-radius: 999px; background: var(--pearl); color: var(--abyss); font-weight: 700; box-shadow: var(--shadow); }
.toast[hidden] { display: none; }
@media (max-width: 480px) { .install { right: 12px; bottom: 96px; } .install__txt span { display: none; } }

/* Visítanos: mapa + redes */
.visit { padding: 56px 0 100px; }
.visit .wrap { position: relative; }
.visit__grid { display: grid; gap: 22px; align-items: start; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--navy); min-height: 300px; position: relative; }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }
.map__fallback { position: absolute; inset: auto 0 0 0; margin: 0; padding: 10px 14px; background: rgba(5, 18, 39, .9); color: var(--muted); font-size: .85rem; }
.map__fallback[hidden] { display: none; }
.visit__mascot { display: none; }
.social { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.social__a { position: relative; overflow: hidden; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--pearl); background: var(--surface-2); border: 1px solid rgba(243, 246, 251, .3); transition: transform .25s var(--fx-ease), background .25s; }
.social__a:hover { transform: translateY(-3px); background: var(--ocean-2); }
@media (min-width: 900px) { .visit__grid { grid-template-columns: 1.2fr 1fr; } .map iframe { height: 420px; } }

.sec-head p { margin-inline: auto; }

/* la lista cerrada no debe interceptar toques */
.dock .dock__list { pointer-events: none; }
.dock[data-open="true"] .dock__item { pointer-events: auto; }

/* El dock mide siempre lo mismo (sin saltos de diseño al pintar las redes) */
.dock { width: 68px; height: 68px; display: block; }
.dock .dock__list { position: absolute; right: 0; bottom: 80px; }
.dock__hint { bottom: 22px; }
