/* ============================================================
   AMANECER MARINO — RIVIERA BLANCA (Blanco + azul de marca +
   dorado). El cliente pidió fondo blanco con el azul exacto de
   su logo (#0175A8, muestreado por píxeles) y that el sitio se
   sienta "profundo y moderno" sobre ese blanco — no es un sitio
   plano: el hero, el footer, el bloque de domicilio, el banner
   de categoría y la ilustración de "Quiénes somos" se quedan
   oscuros como acentos dramáticos (fotografía real + contraste),
   mientras el resto del sitio vive en blanco/gris muy claro con
   tarjetas puras en blanco. El dorado sigue siendo el único
   acento de lujo, sin cambios.
   ============================================================ */

:root{
  /* ---- Tokens oficiales "Riviera Blanca" ---- */
  --ocean:          #0175A8;   /* azul de marca EXACTO (muestreado del logo) — links, activos, iconos */
  --ocean-soft:     #045E85;   /* azul más profundo — hover de elementos en --ocean */
  --ink:            #0B2430;   /* texto principal — casi negro con un toque de marca */
  --muted:          #5C6B74;   /* texto secundario */
  --line:           #E4E9EC;   /* borde sutil sobre blanco */
  --surface:        #FFFFFF;   /* tarjetas, header, modales, mega menú */
  --surface-soft:   #F0F3F5;   /* superficie secundaria clara: chips, hover, tabs inactivos */
  --bg:             #FAFBFC;   /* fondo general de la página — blanco roto, no clínico */
  --gold:           #BFA15F;   /* dorado de marca — sin cambios, el único acento de lujo */
  --gold-soft:      #D9C48A;   /* dorado claro — texto dorado sobre las secciones oscuras */
  --gold-deep:      #8C6F2E;   /* dorado oscuro — texto pequeño con más contraste sobre blanco */
  --gold-ink:       var(--ink); /* texto oscuro cuando el fondo ES dorado (badges, contador) */
  --paper:          #EDE6D8;   /* texto claro reservado para las secciones oscuras / botones de color */

  /* ---- Tokens oscuros (sin cambios) ----
     Solo para las secciones "acento" que se quedan oscuras a
     propósito: hero, footer, domicilio, banner de categoría,
     ilustración de "Quiénes somos", botón secundario oscuro. */
  --abyss:          #0B161E;
  --deep-surface:   #11212C;
  --deep-surface-2: #16303F;   /* hover de botones oscuros (antes se llamaba --surface-soft) */
  --hairline:       rgba(255,255,255,.10); /* borde sutil dentro de las secciones oscuras */

  /* ---- Alias de compatibilidad (el resto de la hoja usa estos nombres) ---- */
  --navy:        var(--ink);
  --navy-2:      var(--deep-surface-2);
  --navy-light:  var(--deep-surface-2);
  --sand:        var(--bg);
  --sand-deep:   var(--surface-soft);
  --dawn:        var(--gold);
  --dawn-soft:   var(--gold-soft);
  --dawn-deep:   var(--gold-deep);
  --line-cool:   var(--line);
  --white:       var(--surface);

  --shadow-sm:   0 2px 8px rgba(11,36,48,.06), 0 1px 3px rgba(11,36,48,.05);
  --shadow-md:   0 8px 24px rgba(11,36,48,.10);
  --shadow-lg:   0 20px 50px rgba(11,36,48,.16);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Alias "Riviera Costera" (nombres usados en menu.html) ---- */
  --ocean-dark:      var(--abyss);
  --ocean-deep:      var(--deep-surface);
  --ocean-primary:   var(--ocean);
  --bg-card:         var(--surface);
  --bg-sand:         var(--abyss);
  --bg-subtle:       var(--deep-surface-2);
  --border-gold:     rgba(191,161,95,.35);
  --border-hairline: var(--line);
  --gold-light:      var(--gold-soft);
  --ink-muted:       var(--muted);
  --radius-pill:     999px;
  --radius-card:     var(--radius-md);
  --shadow-ambient:  var(--shadow-sm);
  --shadow-elevated: var(--shadow-lg);
}

*{ box-sizing:border-box }
html{ scroll-behavior:smooth }
body{ margin:0; font-family:var(--font-body); color:var(--ink); background:var(--sand); -webkit-font-smoothing:antialiased }
img{ max-width:100%; display:block }
button,input,textarea,select{ font:inherit; color:inherit }
button{ cursor:pointer }
a{ text-decoration:none; color:inherit }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; color:var(--navy); letter-spacing:-.02em }
::selection{ background:var(--gold-soft); color:var(--gold-ink) }
:focus-visible{ outline:2px solid var(--dawn); outline-offset:2px }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  text-transform:uppercase; letter-spacing:.18em; font-size:11.5px;
  font-weight:700; color:var(--dawn-deep);
}
.eyebrow::before{ content:""; width:20px; height:1.5px; background:var(--dawn); display:inline-block }
.eyebrow.on-dark{ color:var(--dawn-soft) }
.eyebrow.on-dark::before{ background:var(--dawn) }

.wrap{ max-width:1240px; margin:0 auto; padding:0 24px }
.section{ padding:96px 0 }
.section.tight{ padding:56px 0 }
.section-head{ text-align:center; max-width:640px; margin:0 auto 44px }
.section-head h2{ font-size:clamp(28px,4vw,42px); margin:10px 0 14px; line-height:1.1 }
.section-head p{ color:var(--muted); line-height:1.75; font-size:16px }

/* ============================= BUTTONS ============================= */
.btn{
  border:0; border-radius:8px; padding:14px 28px; font-weight:700;
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-size:15px; transition:all .2s ease; white-space:nowrap;
}
.btn:active{ transform:translateY(1px) }
.btn-dawn{ background:var(--gold); color:var(--gold-ink); box-shadow:0 4px 20px rgba(191,161,95,.28) }
.btn-dawn:hover{ background:var(--gold-soft); box-shadow:0 6px 26px rgba(191,161,95,.42); transform:translateY(-1px) }
.btn-navy{ background:var(--deep-surface); color:var(--paper); border:1px solid var(--hairline) }
.btn-navy:hover{ background:var(--deep-surface-2) }
.btn-outline{ background:transparent; border:1.5px solid rgba(255,255,255,.6); color:#fff }
.btn-outline:hover{ background:rgba(255,255,255,.1) }
.btn-ghost{ background:var(--surface-soft); color:var(--ink); border:1px solid var(--line) }
.btn-ghost:hover{ background:var(--line) }
.btn-block{ width:100% }
.btn[disabled]{ opacity:.5; cursor:not-allowed }

/* ============================= TOPLINE ============================= */
.topline{
  background:var(--surface-soft); color:var(--muted); font-size:12px;
  padding:7px 24px; display:flex; justify-content:center; gap:24px;
  letter-spacing:.02em; border-bottom:1px solid var(--line);
}
.topline span{ display:flex; align-items:center; gap:6px }

/* ============================= HEADER ============================= */
header{
  position:sticky; top:0; z-index:200;
  background:rgba(255,255,255,.92); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.nav{ max-width:1240px; margin:0 auto; padding:14px 24px; display:flex; align-items:center; justify-content:space-between; gap:18px }
.brand{ display:flex; align-items:center; gap:10px }
.brand img{ height:52px; width:auto }

.navlinks{ display:flex; align-items:center; gap:4px; margin:0; padding:0 }
.navlinks > li{ list-style:none; position:relative }
.navlinks > li > a, .navlinks > li > button{
  background:none; border:0; display:inline-flex; align-items:center; gap:5px;
  padding:10px 14px; font-weight:600; font-size:14.5px; color:var(--ink);
  border-radius:8px; transition:all .2s;
}
.navlinks > li > a:hover, .navlinks > li > button:hover{ color:var(--navy); background:var(--sand-deep) }
.caret{ font-size:10px; opacity:.5; transition:transform .2s }
.has-mega:hover .caret{ transform:rotate(180deg) }

.mega{
  position:absolute; top:calc(100% + 8px); left:0;
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md);
  box-shadow:var(--shadow-lg); padding:20px; display:none; grid-template-columns:repeat(4,165px);
  gap:18px; z-index:50; max-width:min(740px,86vw); overflow:auto;
}
.has-mega:hover .mega, .has-mega:focus-within .mega{ display:grid }
.mega-col b{ display:block; font-family:var(--font-display); color:var(--navy); font-size:14.5px; margin-bottom:8px }
.mega-col a{ display:block; font-size:13px; color:var(--muted); padding:4px 0; transition:color .15s }
.mega-col a:hover{ color:var(--navy) }
.mega-col ul{ list-style:none; margin:0; padding:0 }

.hover-zoom{ transition:transform .4s ease }
.hover-zoom:hover{ transform:scale(1.05) }

.header-actions{ display:flex; align-items:center; gap:10px }
.cart-btn{
  border:1px solid var(--hairline); background:var(--deep-surface); color:var(--paper); padding:10px 18px;
  border-radius:8px; font-weight:700; font-size:14px; display:flex; align-items:center; gap:8px;
  transition:background .2s;
}
.cart-btn:hover{ background:var(--deep-surface-2) }
.cart-count{
  background:var(--gold); color:var(--gold-ink); min-width:20px; height:20px; border-radius:99px;
  display:inline-flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; padding:0 5px;
}
.burger{ display:none; border:0; background:var(--sand-deep); color:var(--ink); width:42px; height:42px; border-radius:10px; font-size:18px; align-items:center; justify-content:center }

/* Mobile drawer */
.mobile-drawer{ position:fixed; inset:0; z-index:300; display:none }
.mobile-drawer.show{ display:block }
.mobile-drawer .backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.6) }
.mobile-drawer .panel{
  position:absolute; top:0; right:0; height:100%; width:min(340px,86vw); background:var(--white);
  box-shadow:var(--shadow-lg); padding:22px; overflow:auto; border-left:1px solid var(--line);
}
.mobile-drawer .panel-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px }
.mobile-drawer .panel-head img{ height:42px }
.mobile-acc{ border-bottom:1px solid var(--line); padding:6px 0 }
.mobile-acc > button{ width:100%; background:none; border:0; text-align:left; padding:12px 4px; font-weight:700; color:var(--navy); display:flex; justify-content:space-between; align-items:center; font-size:15px }
.mobile-acc .sub{ display:none; padding:0 4px 12px 10px }
.mobile-acc.open .sub{ display:block }
.mobile-acc .sub a{ display:block; padding:7px 0; color:var(--muted); font-size:14px; border-bottom:1px dashed var(--line) }
.mobile-acc .sub a:last-child{ border-bottom:0 }
.mobile-simple a{ display:block; padding:13px 4px; font-weight:600; color:var(--ink); border-bottom:1px solid var(--line) }

/* ============================= HERO ============================= */
.hero{
  position:relative; overflow:hidden; min-height:88vh; display:flex; align-items:center;
  background:var(--abyss);
}
.hero-video-wrap{ position:absolute; inset:0; z-index:0 }
.hero-video-wrap video{ width:100%; height:100%; object-fit:cover }
.hero-video-overlay{ position:absolute; inset:0; background:rgba(11,22,30,.55) }
.hero-rays{
  position:absolute; left:50%; bottom:8%; transform:translateX(-50%);
  width:min(1400px,180vw); opacity:.14; pointer-events:none;
}
.hero-horizon{
  position:absolute; left:0; right:0; bottom:0; height:34%;
  background:linear-gradient(180deg, transparent, rgba(11,22,30,.85));
  pointer-events:none;
}
.hero-waves{
  position:absolute; left:0; right:0; bottom:0; width:100%; height:auto; opacity:.7; z-index:1;
}
.hero-inner{
  position:relative; z-index:3; max-width:1240px; margin:0 auto; padding:120px 24px 90px;
  text-align:center; color:#fff; width:100%;
}
.hero-inner .eyebrow{ color:var(--dawn-soft); justify-content:center }
.hero-inner .eyebrow::before{ background:var(--dawn) }
.hero-inner h1{
  color:#fff; font-size:clamp(40px,7vw,78px); line-height:.98; margin:18px 0 20px; font-weight:600;
}
.hero-inner h1 em{ font-style:normal; color:var(--dawn-soft) }
.hero-inner p{ max-width:580px; margin:0 auto; color:rgba(255,255,255,.8); font-size:18px; line-height:1.75 }
.hero-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:32px }
.hero-badge{
  margin-top:40px; display:inline-flex; gap:10px; align-items:center; color:rgba(255,255,255,.7);
  font-size:13px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15);
  padding:9px 16px; border-radius:999px; backdrop-filter:blur(5px);
}

/* ============================= HIGHLIGHTS ============================= */
.highlights{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:-58px; position:relative; z-index:5 }
.highlight-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md);
  padding:28px; box-shadow:var(--shadow-md);
  transition:transform .3s ease, box-shadow .3s ease;
}
.highlight-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lg) }
.highlight-card .hi-icon{
  width:44px; height:44px; border-radius:10px; background:var(--sand-deep);
  display:flex; align-items:center; justify-content:center; margin-bottom:14px; font-size:20px;
}
.highlight-card strong{ display:block; color:var(--navy); font-family:var(--font-display); font-size:18px; margin-bottom:6px }
.highlight-card span{ color:var(--muted); font-size:14px; line-height:1.6 }

/* Highlight cards con imagen */
.highlight-card.hi-has-img{
  padding:0; overflow:hidden; display:flex; flex-direction:column; text-decoration:none; cursor:pointer;
}
.hi-img-wrap{ position:relative; height:180px; overflow:hidden }
.hi-img-wrap img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease }
.highlight-card.hi-has-img:hover .hi-img-wrap img{ transform:scale(1.08) }
.hi-img-shine{ position:absolute; inset:0; pointer-events:none }
.hi-body{ padding:20px 22px 24px; display:flex; flex-direction:column; gap:6px; flex:1 }
.hi-body strong{ color:var(--navy); font-family:var(--font-display); font-size:19px }
.hi-body span{ color:var(--muted); font-size:14px; line-height:1.6; flex:1 }
.hi-cta{
  margin-top:8px; font-weight:700; font-size:13px; color:var(--dawn-deep);
  letter-spacing:.04em; text-transform:uppercase; transition:transform .2s;
}
.highlight-card.hi-has-img:hover .hi-cta{ transform:translateX(4px) }

/* ============================= MENU ============================= */
.menu-toolbar{ position:sticky; top:81px; z-index:40; background:rgba(250,251,252,.94); backdrop-filter:blur(10px); padding:14px 0 6px; border-bottom:1px solid var(--line) }
.cat-tabs{ display:flex; gap:8px; overflow-x:auto; padding-bottom:10px; scrollbar-width:thin }
.cat-tabs::-webkit-scrollbar{ height:4px }
.cat-tabs::-webkit-scrollbar-thumb{ background:var(--line); border-radius:99px }
.cat-tab{
  border:1px solid var(--line); background:var(--white); color:var(--ink); border-radius:8px;
  padding:10px 18px; font-weight:600; font-size:14px; white-space:nowrap; display:flex; align-items:center; gap:8px;
}
.cat-tab.active{ background:var(--ocean); border-color:var(--ocean); color:var(--paper) }
.sub-tabs{ display:flex; gap:8px; overflow-x:auto; padding:10px 0 4px }
.sub-tab{ border:1px solid var(--line); background:var(--sand-deep); color:var(--muted); border-radius:8px; padding:7px 14px; font-weight:600; font-size:13px; white-space:nowrap }
.sub-tab.active{ background:var(--ocean); color:var(--paper); border-color:var(--ocean) }

.category-banner{
  position:relative; border-radius:var(--radius-lg); overflow:hidden; background:var(--deep-surface);
  padding:34px 30px; margin:24px 0 28px; display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:110px;
}
.category-banner .cb-art{
  position:absolute; right:-10px; bottom:-20px; width:200px; opacity:.10; filter:brightness(0) invert(1); pointer-events:none;
}
.category-banner h3{ color:#fff; font-size:clamp(22px,3vw,32px); position:relative; z-index:2 }
.category-banner p{ color:rgba(255,255,255,.6); font-size:14px; max-width:480px; margin-top:6px; position:relative; z-index:2 }

.menu-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px }
.dish{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md);
  padding:22px; display:flex; flex-direction:column; gap:10px; box-shadow:var(--shadow-sm);
  transition:transform .25s ease, box-shadow .25s ease;
}
.dish:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md) }
.dish-img{ width:100%; height:200px; object-fit:cover; border-radius:8px; margin-bottom:6px; border:1px solid var(--line) }
.dish-top{ display:flex; justify-content:space-between; gap:10px }
.dish h4{ font-size:18px; line-height:1.25; color:var(--navy) }
.dish p{ margin:0; color:var(--muted); font-size:13.5px; line-height:1.6; flex:1 }
.dish-bottom{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:10px; border-top:1px solid var(--line) }
.price{ font-family:var(--font-display); font-size:20px; color:var(--gold); font-weight:600 }
.price .p2{ font-size:12px; color:var(--muted); font-weight:400; font-family:var(--font-body) }
.price.tbd{ font-size:13px; color:var(--muted); font-weight:600; font-family:var(--font-body) }
.add-btn{
  border:0; background:var(--ocean); color:var(--paper); border-radius:8px; padding:10px 14px;
  font-weight:700; font-size:13px; display:flex; align-items:center; gap:6px;
  transition:background .2s ease, color .2s ease, transform .15s ease;
}
.add-btn:hover{ background:var(--gold); color:var(--gold-ink); transform:translateY(-1px) }

.menu-note{
  background:var(--sand-deep); border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:12px 16px; font-size:13px; color:var(--muted); margin-bottom:20px; display:flex; gap:9px;
}

/* ============================= DELIVERY ============================= */
.delivery{
  background:var(--deep-surface); color:#fff; border-radius:var(--radius-lg); padding:52px;
  display:grid; grid-template-columns:1.05fr .95fr; gap:40px; align-items:center;
  position:relative; overflow:hidden;
}
.delivery::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(600px 300px at 90% 10%, rgba(191,161,95,.08), transparent 60%);
}
.delivery h2{ color:#fff; font-size:clamp(28px,4vw,42px) }
.delivery > div:first-child p{ color:rgba(255,255,255,.65); line-height:1.75; margin-top:12px }
.steps{ display:grid; gap:10px; position:relative; z-index:2 }
.step{ background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); border-radius:12px; padding:14px 16px; display:flex; gap:12px; align-items:flex-start }
.step .num{ width:26px; height:26px; border-radius:50%; background:var(--gold); color:var(--gold-ink); font-weight:800; font-size:13px; display:flex; align-items:center; justify-content:center; flex:none }
.step b{ display:block; font-size:14.5px; color:#fff }
.step span{ font-size:13px; color:rgba(255,255,255,.55) }

/* ============================= STORY ============================= */
.story{ display:grid; grid-template-columns:1fr 1fr; gap:28px; align-items:stretch }
.story-art{
  border-radius:var(--radius-lg); min-height:400px; position:relative; overflow:hidden;
  background:var(--deep-surface); display:flex; align-items:flex-end; padding:30px;
}
.story-art img{
  position:absolute; right:-30px; top:-20px; width:70%; opacity:.10; filter:brightness(0) invert(1);
}
.story-art .tag{ position:relative; z-index:2; color:#fff }
.story-art .tag b{ display:block; font-family:var(--font-display); font-size:24px; margin-top:6px; color:#fff }
.story-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg); padding:36px;
  box-shadow:var(--shadow-sm); display:flex; flex-direction:column; justify-content:center; gap:14px;
}
.story-card h3{ font-size:clamp(22px,3vw,30px) }
.story-card p{ color:var(--muted); line-height:1.85; font-size:15px; margin:0 }

/* ============================= FOOTER ============================= */
footer{ background:var(--abyss); color:rgba(255,255,255,.65); padding:60px 0 0; border-top:1px solid var(--hairline) }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; padding-bottom:40px }
.footer-brand img{ height:48px; filter:brightness(0) invert(1); margin-bottom:14px }
.footer-brand p{ font-size:13.5px; line-height:1.7; max-width:260px }
footer h5{ color:#fff; font-family:var(--font-display); font-size:15px; margin:0 0 14px }
.footer-grid a{ display:block; margin:8px 0; font-size:13.5px; color:rgba(255,255,255,.55) }
.footer-grid a:hover{ color:#fff }
.copyline{ border-top:1px solid rgba(255,255,255,.1); padding:18px 24px; text-align:center; font-size:12px; color:rgba(255,255,255,.35) }

/* ============================= MODALS ============================= */
.modal-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.62); z-index:500; display:none;
  align-items:flex-start; justify-content:center; padding:26px 16px; overflow:auto;
  backdrop-filter:blur(4px);
}
.modal-backdrop.show{ display:flex }
.modal{
  width:min(760px,100%); background:var(--white); color:var(--ink); border:1px solid var(--line);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); margin:auto 0;
  display:flex; flex-direction:column; max-height:90vh; overflow:hidden;
}
.modal-head{
  padding:20px 24px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between;
  align-items:center; background:var(--white); z-index:2; flex-shrink:0;
}
.modal-head h3{ font-size:22px; color:var(--navy) }
.modal-close{ border:1px solid var(--line); background:var(--sand-deep); color:var(--ink); width:36px; height:36px; border-radius:50%; font-size:18px }
.modal-body{
  padding:24px; overflow-y:auto; -webkit-overflow-scrolling:touch;
  flex:1; min-height:0; overscroll-behavior:contain;
}

.cart-empty{ text-align:center; padding:40px 10px; color:var(--muted) }
.cart-empty .big{ font-size:46px; margin-bottom:10px }
.cart-item{ display:grid; grid-template-columns:1fr auto; gap:14px; padding:18px 0; border-bottom:1px solid var(--line) }
.cart-item h4{ margin:0 0 4px; font-size:16px; color:var(--navy); font-family:var(--font-display) }
.cart-item .tags{ display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 0 }
.cart-item .tag-pill{ background:var(--sand-deep); color:var(--navy); font-size:11px; padding:3px 9px; border-radius:99px; border:1px solid var(--line) }
.cart-item .note{ font-size:12.5px; color:var(--muted); margin-top:6px; font-style:italic }
.qty-row{ display:flex; align-items:center; gap:8px; margin-top:12px }
.qty-btn{ width:28px; height:28px; border:1px solid var(--line); background:var(--sand-deep); color:var(--ink); border-radius:8px; font-weight:700 }
.remove-btn{ border:0; background:none; color:#C4372F; font-size:12px; font-weight:700; margin-left:8px }
.line-total{ color:var(--navy); font-weight:700; white-space:nowrap }

.summary-row{ display:flex; justify-content:space-between; font-size:14px; color:var(--muted); padding:6px 0 }
.summary-row.total{ color:var(--navy); font-weight:800; font-size:20px; padding-top:14px; border-top:1px solid var(--line); margin-top:6px }
.summary-row.total .amt{ font-family:var(--font-display) }

.field{ display:flex; flex-direction:column; gap:6px; margin-bottom:14px }
.field label{ font-size:13px; font-weight:700; color:var(--navy) }
.field small{ color:var(--muted); font-weight:400 }
.field input, .field select, .field textarea{
  border:1px solid var(--line); color:var(--ink); border-radius:10px; padding:12px 14px;
  outline:none; background:var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--ocean) }
.field textarea{ min-height:80px; resize:vertical }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px 16px }
.form-grid .full{ grid-column:1 / -1 }

.pay-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:6px 0 18px }
.pay-card{
  border:1.5px solid var(--line); background:var(--white); border-radius:12px; padding:16px;
  display:flex; gap:12px; cursor:pointer; align-items:flex-start; transition:border-color .15s;
}
.pay-card:has(input:checked){ border-color:var(--ocean); background:rgba(1,117,168,.10) }
.pay-card input{ margin-top:3px }
.pay-card b{ display:block; color:var(--navy); font-size:14px }
.pay-card span{ font-size:12.5px; color:var(--muted); line-height:1.5 }

.notice{
  background:var(--sand-deep); border:1px solid var(--line); color:var(--muted);
  padding:12px 14px; border-radius:10px; font-size:13px; line-height:1.55; margin-bottom:16px; display:flex; gap:9px;
}
.notice.info{ background:rgba(1,117,168,.10); border-color:rgba(1,117,168,.35); color:var(--ocean-soft) }

.custom-row{ border-bottom:1px solid var(--line); padding:18px 0 }
.custom-row:first-child{ padding-top:0 }
.custom-row:last-child{ border-bottom:0 }
.custom-row h4{ margin:0 0 4px; font-size:15px; color:var(--navy) }
.custom-row p{ margin:0 0 10px; color:var(--muted); font-size:13px }
.opt-grid{ display:flex; flex-wrap:wrap; gap:8px }
.opt-grid label{
  border:1px solid var(--line); background:var(--white); padding:8px 12px; border-radius:8px;
  font-size:13px; display:flex; align-items:center; gap:7px; transition:all .15s;
}
.opt-grid label:has(input:checked){ border-color:var(--ocean); background:rgba(1,117,168,.10); color:var(--ocean-soft); font-weight:600 }
.qty-stepper{ display:flex; align-items:center; gap:14px }
.qty-stepper .qbtn{ width:38px; height:38px; border-radius:10px; border:1px solid var(--line); background:var(--sand-deep); color:var(--ink); font-size:18px; font-weight:700 }
.qty-stepper .qval{ font-size:20px; font-weight:800; min-width:26px; text-align:center; font-family:var(--font-display); color:var(--navy) }

.confirm-screen{ text-align:center; padding:8px 4px 4px }
.confirm-screen .ok{ width:64px; height:64px; border-radius:50%; background:rgba(16,150,105,.12); color:#0D9668; font-size:30px; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; border:1px solid rgba(16,150,105,.3) }
.confirm-screen h3{ font-size:24px }
.confirm-screen .order-no{ color:var(--dawn-deep); font-weight:800; margin:6px 0 20px }
.confirm-box{ text-align:left; background:var(--sand-deep); border-radius:12px; padding:16px 18px; margin-bottom:20px; max-height:280px; overflow:auto; border:1px solid var(--line) }
.confirm-box .line{ display:flex; justify-content:space-between; font-size:13.5px; padding:5px 0; color:var(--ink) }
.confirm-box .line small{ display:block; color:var(--muted); font-style:italic }

.toast{
  position:fixed; right:20px; bottom:20px; z-index:700; background:var(--deep-surface); color:var(--paper);
  padding:14px 18px; border-radius:10px; box-shadow:var(--shadow-lg); transform:translateY(20px); opacity:0;
  pointer-events:none; transition:.25s ease; font-size:14px; font-weight:600; max-width:320px;
  border:1px solid var(--hairline);
}
.toast.show{ transform:translateY(0); opacity:1 }

/* Floating cart */
.floating-cart{
  position:fixed; left:16px; right:16px; bottom:16px; z-index:150;
  background:var(--deep-surface); color:var(--paper); border-radius:14px; padding:14px 18px;
  display:none; align-items:center; justify-content:space-between; box-shadow:var(--shadow-lg);
  border:1px solid var(--hairline);
}
.floating-cart.show{ display:flex }
.floating-cart b{ font-family:var(--font-display); font-size:18px }
.floating-cart span{ font-size:12px; color:rgba(255,255,255,.6); display:block }

/* Placeholder de foto (cuando un producto aún no tiene fotografía real) */
.dish-img-placeholder{
  width:100%; height:200px; border-radius:8px; margin-bottom:6px; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  background:var(--sand-deep); font-size:48px; opacity:.35;
}

/* ============================= PWA INSTALL BANNER ============================= */
.install-banner{
  display:none; position:fixed; top:0; left:0; right:0; z-index:900;
  background:var(--surface); border-bottom:1px solid var(--line);
  animation:bannerSlide .4s cubic-bezier(.4,0,.2,1) forwards; box-shadow:var(--shadow-sm);
}
@keyframes bannerSlide{ from{transform:translateY(-100%)} to{transform:translateY(0)} }
.install-banner.show{ display:block }
.install-inner{ display:flex; align-items:center; gap:12px; padding:12px 20px; max-width:1240px; margin:auto }
.install-icon{ width:40px; height:40px; max-width:40px; border-radius:10px; flex-shrink:0 }
.install-text{ flex:1; min-width:0 }
.install-text strong{ display:block; color:var(--ink); font-size:14px }
.install-text span{ color:var(--muted); font-size:12px }
.install-btn{ padding:9px 18px !important; font-size:13px !important; background:var(--gold) !important; color:var(--gold-ink) !important }
.install-dismiss{ border:0; background:none; color:var(--muted); font-size:22px; padding:4px 8px; cursor:pointer }

/* ============================= BOTTOM NAV ============================= */
.bottom-nav{
  display:none; position:fixed; left:0; right:0; bottom:0; z-index:160;
  background:rgba(255,255,255,.94); backdrop-filter:blur(16px);
  border-top:1px solid var(--line);
  padding:6px 8px calc(6px + env(safe-area-inset-bottom,0));
  justify-content:space-around;
}
.bn-item{
  display:flex; flex-direction:column; align-items:center; gap:2px;
  font-size:10.5px; color:var(--muted); font-weight:600; text-decoration:none;
  padding:6px 10px; border-radius:10px; transition:color .2s;
  border:0; background:none; cursor:pointer; position:relative;
  -webkit-tap-highlight-color:transparent;
}
.bn-item.active{ color:var(--gold) }
.bn-item svg{ stroke:currentColor }
.bn-cart-badge{
  position:absolute; top:0; right:4px; min-width:16px; height:16px; border-radius:99px;
  background:var(--gold); color:var(--gold-ink); font-size:10px; font-weight:800;
  display:flex; align-items:center; justify-content:center; padding:0 4px;
  transform:scale(0); transition:transform .25s cubic-bezier(.175,.885,.32,1.275);
}
.bn-cart-badge.show{ transform:scale(1) }

/* ============================= RESPONSIVE ============================= */
@media(max-width:980px){
  .navlinks, .header-actions .cart-label{ display:none }
  .burger{ display:flex }
  .menu-grid{ grid-template-columns:repeat(2,1fr) }
  .delivery, .story, .footer-grid{ grid-template-columns:1fr }
  .story-art{ min-height:240px }
  .form-grid, .pay-grid{ grid-template-columns:1fr }
  .form-grid .full{ grid-column:auto }
  .bottom-nav{ display:flex }
  body{ padding-bottom:calc(68px + env(safe-area-inset-bottom,0)) }
  footer{ padding-bottom:calc(80px + env(safe-area-inset-bottom,0)) }
  .floating-cart{ display:none !important }
  .hero{ min-height:calc(100svh - 56px) }
  .highlights{ grid-template-columns:1fr; margin-top:-40px }
  .highlight-card.hi-has-img{ flex-direction:row; min-height:0 }
  .highlight-card.hi-has-img .hi-img-wrap{ width:140px; min-width:140px; height:auto }
  .highlight-card.hi-has-img .hi-body{ padding:16px }
}
@media(max-width:640px){
  .topline{ font-size:11px; gap:14px }
  .hero-inner{ padding:80px 20px 60px }
  .section{ padding:56px 0 }
  .menu-grid{ grid-template-columns:1fr }
  .delivery{ padding:28px }
  .category-banner{ padding:24px 20px }
  .footer-grid{ grid-template-columns:1fr 1fr; padding:0 4px 24px }
  .modal-backdrop{ align-items:flex-end; padding:0 }
  .modal{ border-radius:18px 18px 0 0; margin-top:auto; max-height:calc(100vh - 40px); max-height:calc(100dvh - 40px) }
  .modal-body{ padding:20px 20px calc(20px + env(safe-area-inset-bottom,0)) }
  .cat-tab{ padding:11px 18px; font-size:14px }
  .add-btn{ padding:11px 16px; font-size:14px }
  .btn{ padding:15px 26px; font-size:15px }
  .menu-toolbar{ top:76px }
  .highlight-card.hi-has-img .hi-img-wrap{ width:110px; min-width:110px }
}
@supports(padding:env(safe-area-inset-bottom)){
  .bottom-nav{ padding-bottom:calc(8px + env(safe-area-inset-bottom)) }
  .modal-body{ padding-bottom:calc(24px + env(safe-area-inset-bottom)) }
}
@media(prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto }
  .dish, .btn, .highlight-card{ transition:none !important }
  .hi-img-wrap img{ transition:none !important }
}
@media(display-mode:standalone){
  .topline{ display:none }
  .install-banner{ display:none !important }
  header{ padding-top:env(safe-area-inset-top,0) }
  .hero{ min-height:100svh }
}
