/*
  Comoloco — sistema visual
  Concept: gastrobar de pueblo bien hecho. Fondo crema como el papel
  de la carta, tipografía editorial Playfair + acentos manuscritos Caveat,
  naranja de la casa como acento principal y colores de la sala (azul
  ventana, verde pared vegetal, amarillo neón) como apoyo.
*/

:root {
  /* Colors — light first. Palette del local:
     blanco cálido, naranja del logo, verde pared vegetal, madera cálida. */
  --bg:        #FEFBF2;
  --bg-soft:   #F7F0DC;
  --surface:   #F0E7CB;
  --surface-2: #E8DDB8;
  --fg:        #1A1510;
  --fg-dim:    #5A4F3E;
  --muted:     #8B8070;
  --line:      #E2D7B9;
  --line-soft: #EEE4CA;

  --accent:    #EC6A1A;   /* naranja Comoloco */
  --accent-2:  #5C8B3A;   /* verde pared vegetal */
  --accent-3:  #B07A3D;   /* madera cálida */
  --accent-4:  #E6AE2E;   /* amarillo neón */
  --accent-red:#C53728;

  --radius: 14px;
  --radius-sm: 8px;

  --font-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --font-script:  'Caveat', 'Brush Script MT', cursive;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #141008;
    --bg-soft:   #1E180F;
    --surface:   #241D14;
    --surface-2: #2D241A;
    --fg:        #F6ECD3;
    --fg-dim:    #BAAE94;
    --muted:     #7B7059;
    --line:      #3A2F20;
    --line-soft: #2A2217;
    --accent:    #F58643;
    --accent-2:  #87AF5A;
    --accent-3:  #C89862;
    --accent-4:  #F0C050;
    --accent-red:#E05644;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg:        #141008;
  --bg-soft:   #1E180F;
  --surface:   #241D14;
  --surface-2: #2D241A;
  --fg:        #F6ECD3;
  --fg-dim:    #BAAE94;
  --muted:     #7B7059;
  --line:      #3A2F20;
  --line-soft: #2A2217;
  --accent:    #F58643;
  --accent-2:  #87AF5A;
  --accent-3:  #C89862;
  --accent-4:  #F0C050;
  --accent-red:#E05644;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}

.wrap {
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  max-width: 1280px;
  margin: 0 auto;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ─── Script accent ─── */
.script {
  font-family: var(--font-script);
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* Brush underline SVG decoration (inline-friendly) */
.brush-under {
  position: relative;
  display: inline-block;
}
.brush-under::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -0.18em;
  height: 0.3em;
  background: var(--accent);
  border-radius: 50%;
  transform: scaleY(0.35) rotate(-1deg);
  opacity: 0.9;
  z-index: -1;
}

/* ─── NAV ─── */
nav.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
}

nav.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
}
.brand img { height: 46px; width: auto; }
.brand .brand-txt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
}
.brand .brand-txt em { font-style: italic; color: var(--accent); font-weight: 500; }
@media (max-width: 480px) { .brand .brand-txt { display: none; } }

nav.top ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
nav.top ul a {
  text-decoration: none;
  font-size: 15.5px;
  color: var(--fg);
  opacity: 0.88;
  transition: opacity .2s, color .2s;
  font-weight: 600;
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.005em;
}
nav.top ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.2,.9,.3,1);
  border-radius: 2px;
}
nav.top ul a:hover {
  opacity: 1;
  color: var(--accent);
}
nav.top ul a:hover::after { transform: scaleX(1); }

/* Separadores sutiles (punto naranja pequeño) entre items */
nav.top ul li {
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
}
nav.top ul li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  opacity: 0.5;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s, transform .4s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: rotate(45deg); }

@media (max-width: 820px) {
  nav.top ul { display: none; }
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .25s, border-color .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-1px); }

.btn.primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 20px color-mix(in oklab, var(--accent) 30%, transparent);
}
.btn.primary:hover {
  background: color-mix(in oklab, var(--accent) 88%, white);
  box-shadow: 0 8px 28px color-mix(in oklab, var(--accent) 40%, transparent);
}

.btn.ghost {
  color: var(--fg);
  border-color: var(--line);
  background: transparent;
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ─── Section label ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.section-label::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--accent);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  padding-block: clamp(50px, 8vh, 100px) clamp(60px, 10vh, 120px);
  overflow: hidden;
}

/* Soft paper atmosphere */
.hero-bg {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 18% 25%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 70%),
    radial-gradient(ellipse 55% 45% at 85% 75%, color-mix(in oklab, var(--accent-2) 14%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 35% at 50% 95%, color-mix(in oklab, var(--accent-3) 10%, transparent), transparent 70%);
  animation: breathe 24s ease-in-out infinite alternate;
}
@keyframes breathe {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-20px, 10px); }
}

.sparkles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.sparkles .s {
  position: absolute;
  will-change: transform, opacity;
  animation: sparkle 7s ease-in-out infinite;
}
.s1  { top: 10%; left:  8%; width: 14px; height: 14px; animation-duration: 6s; }
.s2  { top: 22%; left: 90%; width: 26px; height: 5px;  animation-duration: 8s; animation-delay: 0.4s; transform: rotate(-25deg); }
.s3  { top: 70%; left:  6%; width: 10px; height: 10px; animation-duration: 7s; animation-delay: 1s; }
.s4  { top: 80%; left: 92%; width: 22px; height: 5px;  animation-duration: 9s; animation-delay: 0.6s; transform: rotate(35deg); }
.s5  { top: 50%; left: 94%; width:  8px; height: 8px;  animation-duration: 6s; animation-delay: 1.4s; }
.s6  { top: 42%; left:  3%; width: 18px; height: 5px;  animation-duration: 8s; animation-delay: 0.2s; transform: rotate(-45deg); }
@keyframes sparkle {
  0%, 100% { transform: translate3d(0,0,0) rotate(var(--r, 0deg)); opacity: 0.75; }
  50%      { transform: translate3d(0,-14px,0) rotate(var(--r, 0deg)); opacity: 0.35; }
}
@media (max-width: 640px) {
  .s5, .s6 { display: none; }
}

.hero .wrap { position: relative; z-index: 3; text-align: center; }

.hero-logo {
  width: clamp(240px, 42vw, 420px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto 32px;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.14));
  opacity: 0;
  animation:
    hero-logo-in 0.9s cubic-bezier(.2,.9,.3,1) 0.1s both,
    logo-float 7s ease-in-out 1s infinite;
  cursor: pointer;
  transition: transform .4s cubic-bezier(.2,.9,.3,1);
}
:root[data-theme="dark"] .hero-logo,
:root:not([data-theme="light"]) .hero-logo {
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)) drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-logo {
    filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)) drop-shadow(0 2px 6px rgba(0,0,0,.3));
  }
}
.hero-logo:hover { transform: scale(1.04) rotate(2deg); }
@keyframes hero-logo-in {
  from { opacity: 0; transform: scale(0.78) rotate(-6deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(1deg); }
}

.hero-copy { max-width: 760px; margin: 0 auto; }
.hero-copy > * { opacity: 0; animation: hero-text-in 0.6s cubic-bezier(.2,.9,.3,1) both; }
.hero-copy .eyebrow { animation-delay: 0.35s; }
.hero-copy h1       { animation-delay: 0.5s;  }
.hero-copy .kinetic { animation-delay: 0.75s; }
.hero-copy .hero-ctas { animation-delay: 0.95s; }
@keyframes hero-text-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 700;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, currentColor 60%, transparent); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

h1.title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  text-wrap: balance;
  color: var(--fg);
}
h1.title em { font-style: italic; font-weight: 500; color: var(--accent); }
h1.title .scribble {
  font-family: var(--font-script);
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  font-size: 1.15em;
  display: inline-block;
  line-height: 0.9;
  letter-spacing: -0.01em;
  transform: rotate(-3deg);
  padding: 0 0.1em;
}

.kinetic {
  margin: 0 0 36px;
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.45;
  color: var(--fg-dim);
  min-height: 1.4em;
}
.kinetic .word {
  color: var(--accent-2);
  font-family: var(--font-script);
  font-size: 1.5em;
  font-weight: 500;
  display: inline-block;
  transform: translateY(0.08em);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.9,.3,1);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── MARQUEE ─── */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding-block: 20px;
  position: relative;
  z-index: 3;
}
.marquee-track {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: marquee 40s linear infinite;
  align-items: center;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee span {
  font-family: var(--font-script);
  font-size: 28px;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.marquee span.c1 { color: var(--accent); }
.marquee span.c2 { color: var(--accent-2); }
.marquee span.c3 { color: var(--accent-3); }
.marquee span.dot {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10px;
}

/* ─── ESSENCE ─── */
.essence { padding-block: clamp(80px, 12vh, 140px); }
.essence .wrap {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 820px) {
  .essence .wrap { grid-template-columns: 1fr; gap: 24px; }
}
.essence-text {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.25;
  font-weight: 400;
  color: var(--fg);
  text-wrap: balance;
  margin: 20px 0 0;
}
.essence-text em { color: var(--accent); font-style: italic; font-weight: 500; }

/* ─── DOS CARTAS (menu-split) ─── */
.cartas {
  padding-block: clamp(80px, 12vh, 140px);
  background: var(--bg-soft);
  position: relative;
}
.cartas-head {
  text-align: center;
  margin-bottom: 56px;
}
.cartas-head h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  margin: 16px 0 12px;
  letter-spacing: -0.025em;
}
.cartas-head h2 em { font-style: italic; font-weight: 500; color: var(--accent); }
.cartas-head p {
  color: var(--fg-dim);
  margin: 0 auto;
  max-width: 48ch;
  font-size: 17px;
  line-height: 1.55;
}

.cartas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 820px) {
  .cartas-grid { grid-template-columns: 1fr; }
}

.carta-choice {
  position: relative;
  display: block;
  text-decoration: none;
  color: #F7F0DD;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s cubic-bezier(.2,.9,.3,1), box-shadow .4s;
  min-width: 0;
}
@media (max-width: 540px) {
  .carta-choice { aspect-ratio: 4/5; }
}
.carta-choice:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0,0,0,.22);
}
.carta-choice img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .8s cubic-bezier(.2,.9,.3,1);
}
.carta-choice:hover img { transform: scale(1.07); }
.carta-choice::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,8,6,.1) 0%, rgba(10,8,6,.3) 40%, rgba(10,8,6,.88) 100%);
  z-index: 1;
}
/* Tintes de identidad: cafetería naranja, salón verde */
.carta-choice.cafe::after {
  background:
    linear-gradient(180deg, rgba(236,106,26,.1) 0%, rgba(70,30,10,.3) 40%, rgba(30,15,5,.9) 100%);
}
.carta-choice.salon::after {
  background:
    linear-gradient(180deg, rgba(92,139,58,.1) 0%, rgba(30,45,15,.3) 40%, rgba(10,20,5,.9) 100%);
}
.carta-choice .ch-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 40px 44px;
  z-index: 2;
  transition: transform .4s cubic-bezier(.2,.9,.3,1);
}
.carta-choice:hover .ch-body { transform: translateY(-4px); }
.carta-choice .ch-eyebrow {
  font-family: var(--font-script);
  font-size: 34px;
  font-weight: 500;
  color: var(--accent-4);
  margin: 0 0 6px;
  line-height: 1;
}
.carta-choice h3 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
  color: #FBF4E2;
}
.carta-choice p {
  font-size: 17.5px;
  line-height: 1.55;
  margin: 0 0 26px;
  color: #E8DEC4;
  max-width: 40ch;
  font-weight: 400;
}
.carta-choice .ch-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  color: #FBF4E2;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--accent);
  letter-spacing: 0.015em;
}
.carta-choice .ch-cta .arrow { transition: transform .25s; }
.carta-choice:hover .ch-cta .arrow { transform: translateX(4px); }

/* ─── AMBIENTE ─── */
.ambiente {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 70vh, 640px);
  display: flex;
  align-items: center;
}
.ambiente-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: slow-zoom 26s ease-in-out infinite alternate;
}
@keyframes slow-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
.ambiente::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,12,8,.85) 0%, rgba(15,12,8,.6) 55%, rgba(15,12,8,.35) 100%);
  z-index: 1;
}
.ambiente .wrap { position: relative; z-index: 2; padding-block: 90px; }
.ambiente .inner { max-width: 620px; }
.ambiente h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 66px);
  font-weight: 700;
  line-height: 1.05;
  margin: 20px 0 20px;
  letter-spacing: -0.025em;
  color: #F7F0DD;
  text-wrap: balance;
}
.ambiente h2 .scribble {
  font-family: var(--font-script);
  color: var(--accent-4);
  font-weight: 500;
  font-size: 1.1em;
  display: inline-block;
  transform: rotate(-2deg);
  margin-left: 0.1em;
}
.ambiente p {
  font-size: 17px;
  line-height: 1.6;
  color: #D4C8AC;
  max-width: 46ch;
  margin: 0;
}
.ambiente .section-label { color: var(--accent-4); }
.ambiente .section-label::before { background: var(--accent-4); }

/* ─── MEMBERSHIP ─── */
.members {
  padding-block: clamp(100px, 14vh, 170px);
  position: relative;
  overflow: hidden;
}
.members .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 820px) {
  .members .wrap { grid-template-columns: 1fr; gap: 50px; }
}

.members h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  margin: 20px 0 24px;
  letter-spacing: -0.025em;
}
.members h2 em { font-style: italic; font-weight: 500; color: var(--accent); }

.members p.lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  opacity: 0.85;
  margin: 0 0 36px;
  max-width: 48ch;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  gap: 16px;
}
.benefits li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 15.5px;
  line-height: 1.55;
}
.benefits svg {
  width: 22px; height: 22px;
  margin-top: 1px;
  color: var(--accent);
  flex-shrink: 0;
}

.card-wrap {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.card {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1.586 / 1;
  border-radius: 18px;
  background:
    radial-gradient(circle at 25% 15%, color-mix(in oklab, var(--accent) 55%, transparent), transparent 55%),
    radial-gradient(circle at 85% 90%, color-mix(in oklab, var(--accent-2) 40%, transparent), transparent 50%),
    linear-gradient(145deg, #1A1310 0%, #080604 100%);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0,0,0,.3),
    0 2px 10px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.08);
  transform: rotate(-3.5deg);
  transition: transform .6s cubic-bezier(.2,.9,.3,1);
  color: #F6ECD3;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card:hover { transform: rotate(0deg) scale(1.02); }

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.12) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .9s cubic-bezier(.2,.9,.3,1);
  pointer-events: none;
}
.card:hover::before { transform: translateX(100%); }

.card .ring {
  position: absolute;
  width: 220px; height: 220px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  top: -60px; right: -60px;
  pointer-events: none;
}
.card .ring.r2 {
  width: 170px; height: 170px;
  top: -35px; right: -35px;
  border-color: rgba(236,106,26,.5);
}
.card .ring.r3 {
  width: 120px; height: 120px;
  top: -10px; right: -10px;
  border-color: rgba(230,174,46,.35);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  position: relative;
  z-index: 1;
}
.card-brand {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card-brand em { font-style: italic; color: var(--accent); font-weight: 500; }

.card-chip {
  width: 40px;
  height: 28px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent-4), #C68A1A 60%, #8A6615);
  opacity: 0.95;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(0,0,0,.2);
  position: relative;
}
.card-chip::before {
  content: "";
  position: absolute;
  inset: 4px 6px;
  border: 1px solid rgba(0,0,0,.25);
  border-radius: 2px;
}

.card-bottom { position: relative; z-index: 1; }
.card-label {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-weight: 600;
}
.card-name {
  font-family: var(--font-script);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent-4);
  line-height: 1;
}

/* ─── VISIT ─── */
.visit {
  padding-block: clamp(90px, 13vh, 150px);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.visit h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  margin: 20px 0 0;
  letter-spacing: -0.025em;
}
.visit h2 em { font-style: italic; font-weight: 500; color: var(--accent); }

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}
@media (max-width: 820px) {
  .visit-grid { grid-template-columns: 1fr; gap: 32px; }
}

.visit-block h3 {
  font-family: var(--font-script);
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 20px;
  color: var(--accent);
  line-height: 1;
}
.visit-block p {
  margin: 0 0 8px;
  font-size: 15.5px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.visit-block p strong { font-weight: 600; color: var(--fg); }
.visit-block p.dim { opacity: 0.6; margin-top: 14px; }
.visit-block a.link {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 1px;
  transition: color .2s;
  font-weight: 500;
}
.visit-block a.link:hover { color: var(--accent); }

/* ─── FOOTER ─── */
footer {
  padding-block: 48px calc(60px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
footer .brand-small {
  display: flex;
  align-items: center;
  gap: 14px;
}
footer .brand-small img { height: 52px; width: auto; }
footer .brand-small .txt { color: var(--fg); }
footer .brand-small .txt strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: block;
}
footer .brand-small .txt strong em { font-style: italic; color: var(--accent); font-weight: 500; }
footer .brand-small .txt .tagline {
  font-family: var(--font-script);
  font-size: 20px;
  color: var(--accent);
  line-height: 1;
}
footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
footer a:hover { color: var(--accent); }
footer .links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ─── WHATSAPP ─── */
.wa-float {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: calc(20px + env(safe-area-inset-right, 0px));
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .35), 0 2px 6px rgba(0,0,0,.2);
  transition: transform .25s;
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  80%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ─── MOTION PREFS ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-logo { opacity: 1 !important; }
  .hero-copy > * { opacity: 1 !important; transform: none !important; }
  .sparkles { display: none; }
}

/* ─── PAGE HEADER (menus, grupos) ─── */
.page-head {
  position: relative;
  padding-block: clamp(80px, 12vh, 140px) clamp(40px, 6vh, 70px);
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 50% 40% at 15% 30%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 35% at 85% 70%, color-mix(in oklab, var(--accent-2) 10%, transparent), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 112px);
  font-weight: 700;
  line-height: 1;
  margin: 20px 0 20px;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.page-head h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.page-head h1 .scribble {
  font-family: var(--font-script);
  color: var(--accent);
  font-weight: 500;
  font-size: 1.05em;
  font-style: italic;
  display: inline-block;
  transform: rotate(-3deg);
  line-height: 0.9;
}
.page-head .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 56ch;
  margin: 0;
}

/* ─── TABS ─── */
.tabs {
  background: var(--bg);
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 68px);
  z-index: 40;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tabs .wrap {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 0;
}
.tabs .wrap::-webkit-scrollbar { display: none; }
.tab {
  background: transparent;
  border: 0;
  color: var(--fg-dim);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 18px 20px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color .2s;
  letter-spacing: 0.01em;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--accent); }
.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 20px; right: 20px; bottom: 0;
  height: 2px;
  background: var(--accent);
}
.tab .num {
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.5;
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}

/* ─── MENU LISTS ─── */
.menu-section {
  padding-block: clamp(60px, 10vh, 100px);
  scroll-margin-top: 140px;
}
.menu-section + .menu-section { border-top: 1px solid var(--line-soft); }

.menu-section h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  margin: 20px 0 10px;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.menu-section h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
.menu-section .sub {
  font-size: 15px;
  color: var(--fg-dim);
  margin: 0 0 48px;
  max-width: 52ch;
}

.menu-group { margin-bottom: 56px; }
.menu-group:last-child { margin-bottom: 0; }
.menu-group > h3 {
  font-family: var(--font-script);
  font-size: 36px;
  font-weight: 500;
  color: var(--accent-2);
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  line-height: 1;
}
/* Alternar verde pared vegetal / madera cálida entre grupos */
.menu-section .menu-group:nth-child(even) > h3 { color: var(--accent-3); }
.menu-group > h3 small {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--fg-dim);
  margin-left: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 56px;
}
@media (max-width: 820px) {
  .menu-list { grid-template-columns: 1fr; }
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed color-mix(in oklab, var(--line) 70%, transparent);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item .name {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
}
.menu-item .name small {
  display: block;
  font-weight: 400;
  color: var(--fg-dim);
  font-size: 13.5px;
  line-height: 1.45;
  margin-top: 4px;
  font-style: italic;
}
.menu-item .price {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Modifiers list for toast add-ons */
.mods {
  list-style: none;
  padding: 0 0 0 20px;
  margin: 8px 0 0;
  border-left: 2px solid color-mix(in oklab, var(--line) 70%, transparent);
}
.mods li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 3px 0;
  font-size: 13.5px;
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}
.mods li .plus { color: var(--accent); margin-right: 4px; }

/* Menú del día banner */
.menu-dia {
  position: relative;
  margin: 48px 0 24px;
  padding: 36px 32px;
  background: linear-gradient(135deg, #1A1310 0%, #342618 100%);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  color: #F6ECD3;
}
.menu-dia::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, color-mix(in oklab, var(--accent-4) 25%, transparent), transparent 50%),
    radial-gradient(circle at 85% 80%, color-mix(in oklab, var(--accent) 25%, transparent), transparent 50%);
  pointer-events: none;
}
.menu-dia > * { position: relative; z-index: 1; }
.menu-dia .precio {
  font-family: var(--font-display);
  font-size: clamp(60px, 11vw, 108px);
  color: var(--accent-4);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}
.menu-dia h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  margin: 0 0 10px;
  color: #F6ECD3;
  letter-spacing: -0.02em;
}
.menu-dia h3 em { font-style: italic; color: var(--accent); font-weight: 500; }
.menu-dia .script-note {
  font-family: var(--font-script);
  color: var(--accent-4);
  font-size: 24px;
  font-weight: 500;
  display: block;
  margin-top: 10px;
  line-height: 1;
  transform: rotate(-1deg);
}
.menu-dia p {
  margin: 0;
  color: #D4C8AC;
  font-size: 15.5px;
  line-height: 1.55;
}
@media (max-width: 640px) {
  .menu-dia { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
}

/* Allergens legend */
.allergens-legend {
  margin-top: 48px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
}
.allergens-legend h4 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.allergens-legend ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 20px;
  font-size: 13.5px;
  color: var(--fg-dim);
}

/* Tags */
.tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 700;
  border: 1px solid currentColor;
}
.tag.tag-encargo { color: var(--accent-2); }
.tag.tag-destacado { color: var(--accent-4); background: color-mix(in oklab, var(--accent-4) 15%, transparent); border-color: transparent; }
.tag.tag-compartir { color: var(--accent); }

/* Horario note */
.menu-group .horario-nota {
  display: block;
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
  margin-top: -16px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

/* ─── GRUPOS cards ─── */
.menu-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 820px) { .menu-cards { grid-template-columns: 1fr; } }

.menu-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.menu-card .mc-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.menu-card h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.menu-card h3 em { font-style: italic; color: var(--accent); font-weight: 500; }
.menu-card .mc-sub {
  font-size: 13px;
  color: var(--fg-dim);
  margin: 0;
  letter-spacing: 0.02em;
}
.menu-card .mc-price {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.025em;
  white-space: nowrap;
  text-align: right;
}
.menu-card .mc-price small { font-size: 13px; color: var(--fg-dim); letter-spacing: 0; font-weight: 400; display: block; }

.menu-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-grow: 1;
  display: grid;
  gap: 10px;
}
.menu-card li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 15px;
  line-height: 1.5;
}
.menu-card li::before {
  content: "·";
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
  text-align: center;
}
.menu-card .mc-note {
  font-size: 12.5px;
  color: var(--fg-dim);
  font-style: italic;
  margin: 0 0 24px;
}

.grupos-cta {
  margin-top: 60px;
  padding: 48px 32px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  text-align: center;
}
.grupos-cta h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.grupos-cta h3 em { font-style: italic; color: var(--accent); font-weight: 500; }
.grupos-cta p { color: var(--fg-dim); margin: 0 0 24px; }
.grupos-cta .btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
