/* ============================================================
   EL PUNTO MARINO — Mar Profundo
   styles.css · v.2 (fusión diseño nuevo + componentes app)
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Manrope:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --navy-deep: #061a29;
  --navy: #0a2335;
  --navy-2: #1a3b54;
  --sea: #2c6480;
  --celeste: #5fb8d8;
  --celeste-light: #7fd0e8;
  --celeste-dark: #3d9bbe;
  --celeste-soft: rgba(95, 184, 216, 0.15);
  --paper: #f4eedd;
  --paper-2: #e6dec4;
  --line: rgba(10, 35, 53, 0.10);
  --line-strong: rgba(10, 35, 53, 0.22);
  --ink: #0a2335;
  --ink-2: rgba(10, 35, 53, 0.7);
  --ink-soft: rgba(10, 35, 53, 0.55);

  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Compatibilidad con componentes app */
  --shadow-sm: 0 2px 8px rgba(6, 26, 41, 0.08);
  --shadow-md: 0 8px 24px rgba(6, 26, 41, 0.12);
  --shadow-lg: 0 16px 40px rgba(6, 26, 41, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --gold: #e8b84b;
  --gold-dark: #c9973a;
  --rojo: #b94431;
  --verde: #2E8B57;
}

/* ===== Reset / base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='60' viewBox='0 0 120 60'><path d='M0 30 Q30 15 60 30 T120 30' fill='none' stroke='%230a2335' stroke-width='0.5' opacity='0.06'/><path d='M0 45 Q30 30 60 45 T120 45' fill='none' stroke='%230a2335' stroke-width='0.5' opacity='0.06'/></svg>");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
}
.top-banner, .section, .footer { position: relative; z-index: 2; }
.navbar { position: sticky; top: 0; z-index: 40; }
.cart-fab { position: fixed; z-index: 30; }
.modal { z-index: 100; }
#editorBar { position: fixed; z-index: 90; }

a { color: inherit; text-decoration: none; cursor: pointer; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.hidden { display: none !important; }

html[data-content-loading="true"] [data-editable] {
  visibility: hidden;
}

html[data-initial-route="menu"] #home,
html[data-initial-route="rewards"] #home,
html[data-initial-route="about"] #home,
html[data-initial-route="reservations"] #home,
html[data-initial-route="checkout"] #home,
html[data-initial-route="account"] #home {
  display: none !important;
}

html[data-initial-route="menu"] #menu,
html[data-initial-route="rewards"] #rewards,
html[data-initial-route="about"] #about,
html[data-initial-route="reservations"] #reservations,
html[data-initial-route="checkout"] #checkout,
html[data-initial-route="account"] #account {
  display: block !important;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; color: var(--navy); margin: 0 0 12px; }
p { margin: 0 0 12px; }

/* ============ TOP BANNER ============ */
.top-banner {
  background: var(--celeste);
  color: var(--navy);
  padding: 12px 24px;
}
.top-banner-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.top-banner-text { display: flex; flex-direction: column; gap: 2px; }
.top-banner-text strong { font-weight: 700; }
.top-banner-sub { color: rgba(10, 35, 53, 0.7); font-size: 13px; }
.top-banner-actions { display: flex; gap: 8px; align-items: center; }
.top-banner-close {
  font-size: 22px;
  padding: 4px 10px;
  color: var(--navy);
  opacity: 0.65;
  transition: opacity 0.15s;
}
.top-banner-close:hover { opacity: 1; }

/* ============ NAVBAR ============ */
.navbar {
  background: rgba(244, 238, 221, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navbar-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; color: inherit; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 8px;
  object-fit: cover;
}
img.brand-mark {
  background: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.65;
  padding: 6px 2px;
  transition: opacity 0.15s, color 0.15s;
  cursor: pointer;
}
.nav-links a:hover { opacity: 1; color: var(--sea); }
.nav-account { display: flex; gap: 10px; align-items: center; }

/* Hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 9px;
}
.nav-toggle span {
  display: block; height: 2.5px; width: 100%;
  background: var(--navy); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.navbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Badge de usuario */
.user-badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
}
.user-badge:hover { background: var(--sea); }
.user-badge .badge-level {
  font-family: var(--mono);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  color: var(--celeste-light);
}

/* ============ BUTTONS ============ */
.btn {
  padding: 10px 18px;
  font-size: 14px; font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap;
  font-family: var(--sans);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:disabled, .btn[disabled] {
  opacity: 0.55; cursor: not-allowed;
  transform: none !important; box-shadow: none !important;
}
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-sm { font-size: 13px; padding: 8px 16px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--sea); border-color: var(--sea); }
.btn-gold {
  background: var(--celeste);
  color: var(--navy);
  border-color: var(--celeste);
  font-weight: 600;
}
.btn-gold:hover { background: var(--celeste-dark); border-color: var(--celeste-dark); color: var(--paper); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn-outline:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.btn-ghost-light {
  background: transparent;
  color: var(--navy);
  border-color: rgba(10, 35, 53, 0.35);
}
.btn-ghost-light:hover { background: rgba(10, 35, 53, 0.08); }

/* ============ SECTIONS ============ */
.section { padding: 80px 24px; }
.section-header { max-width: 1400px; margin: 0 auto 40px; }
.section-header h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--navy);
}
.section-header h2 em { font-style: italic; color: var(--sea); }
.section-header p { font-size: 18px; max-width: 60ch; color: var(--ink-2); }

/* ============ HERO ============ */
.section-hero {
  padding: 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(44, 100, 128, 0.4) 0%, transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--paper);
}
.hero-overlay {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='120' viewBox='0 0 240 120'><path d='M0 60 Q60 30 120 60 T240 60' fill='none' stroke='%23f4eedd' stroke-width='1' opacity='0.06'/><path d='M0 90 Q60 60 120 90 T240 90' fill='none' stroke='%23f4eedd' stroke-width='1' opacity='0.04'/><path d='M0 30 Q60 0 120 30 T240 30' fill='none' stroke='%23f4eedd' stroke-width='1' opacity='0.04'/></svg>");
  background-repeat: repeat;
  pointer-events: none;
}
.section-hero::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(circle at 100% 50%, rgba(127, 208, 232, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 1400px; margin: 0 auto;
  padding: 120px 24px;
  z-index: 2;
  text-align: center;
}
.hero-content h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--paper);
}
.hero-content p {
  font-size: clamp(17px, 1.4vw, 20px);
  max-width: 52ch;
  margin: 0 auto 36px;
  color: rgba(244, 238, 221, 0.85);
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.section-hero .btn-outline {
  color: var(--paper);
  border-color: rgba(244, 238, 221, 0.4);
}
.section-hero .btn-outline:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }

/* ============ MENÚ ============ */
.section-menu { background: var(--paper); }
.menu-categories {
  max-width: 1400px; margin: 0 auto 32px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.cat-btn {
  padding: 9px 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.cat-btn:hover { color: var(--navy); border-color: var(--line-strong); }
.cat-btn.active { background: var(--navy); color: var(--paper); border-color: var(--navy); }

.menu-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.menu-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
  position: relative;
  cursor: pointer;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.menu-card-image {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--sea) 100%);
  color: white;
  position: relative;
}
.menu-card-image::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), transparent 60%);
  pointer-events: none;
}
.menu-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.menu-card-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; color: var(--navy); margin-bottom: 4px; }
.menu-card-short { color: var(--ink-2); font-size: 13px; margin-bottom: 14px; flex: 1; }
.menu-card-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto;
}
.menu-card-price { font-family: var(--mono); font-size: 1rem; font-weight: 500; color: var(--navy); }
.menu-card-actions { display: flex; gap: 8px; padding: 0 20px 16px; flex-wrap: wrap; }
.menu-card-actions .btn { flex: 1; }
.menu-edit-overlay {
  position: absolute; top: 8px; right: 8px;
  background: var(--gold); color: var(--navy);
  border-radius: 999px; padding: 6px 12px;
  font-size: 0.8rem; font-weight: 700;
  display: none; cursor: pointer;
  box-shadow: var(--shadow-sm);
}

/* ============ DISH MODAL ============ */
.dish-modal-image {
  height: 220px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--sea) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; color: white;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.dish-modal-meta {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 14px;
}
.dish-modal-price { font-family: var(--mono); font-size: 1.4rem; font-weight: 500; color: var(--navy); }
.dish-modal-section { margin: 14px 0; }
.dish-modal-section h4 { color: var(--sea); margin-bottom: 6px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--mono); }
.dish-modal-ingredients { display: flex; flex-wrap: wrap; gap: 6px; }
.ingredient-tag {
  background: var(--paper-2);
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* ============ REWARDS ============ */
.section-rewards {
  background: var(--navy-deep);
  color: var(--paper);
  background-image:
    radial-gradient(circle at 80% 10%, rgba(127, 208, 232, 0.15) 0%, transparent 50%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='120' viewBox='0 0 240 120'><path d='M0 60 Q60 30 120 60 T240 60' fill='none' stroke='%23f4eedd' stroke-width='1' opacity='0.05'/></svg>");
}
.section-rewards .section-header h2 { color: var(--paper); }
.section-rewards .section-header h2 em { color: var(--celeste-light); }
.section-rewards .section-header p { color: rgba(244, 238, 221, 0.7); }

.rewards-user-card {
  max-width: 1400px; margin: 0 auto 40px;
  padding: 28px;
  background: rgba(244, 238, 221, 0.06);
  border: 1px solid rgba(244, 238, 221, 0.15);
  border-radius: 20px;
  color: var(--paper);
}
.rewards-user-card h3 { color: var(--paper); margin-bottom: 14px; }
.rewards-user-progress {
  height: 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px; overflow: hidden;
  margin: 12px 0 8px;
}
.rewards-user-progress-bar {
  height: 100%;
  background: var(--celeste-light);
  border-radius: 999px;
  transition: width .4s ease;
}
.levels-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.level-card {
  background: rgba(244, 238, 221, 0.04);
  border: 1px solid rgba(244, 238, 221, 0.12);
  border-radius: 20px;
  padding: 28px 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all 0.3s ease;
}
.level-card:hover { transform: translateY(-4px); border-color: var(--celeste-light); }
.level-icon { font-size: 36px; line-height: 1; }
.level-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 26px; color: var(--paper); letter-spacing: -0.01em;
  margin: 0;
}
.level-points {
  color: var(--celeste-light);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(244, 238, 221, 0.12);
}
.level-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0; }
.level-card li {
  font-size: 13px; line-height: 1.4;
  color: rgba(244, 238, 221, 0.85);
  padding-left: 14px; position: relative;
}
.level-card li::before {
  content: "◆"; position: absolute; left: 0; top: 3px;
  font-size: 9px; color: var(--celeste-light);
}

/* ============ ABOUT ============ */
.section-about { background: var(--paper); }
.about-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 60px; align-items: start;
}
.about-text h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 28px; color: var(--navy);
}
.about-text p { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin-bottom: 18px; }
.about-card {
  padding: 32px; background: var(--navy); color: var(--paper);
  border-radius: 24px; display: flex; flex-direction: column; gap: 20px;
}
.about-stat { display: flex; flex-direction: column; gap: 4px; }
.about-stat strong {
  font-family: var(--serif); font-weight: 400;
  font-size: 40px; line-height: 1; color: var(--celeste-light);
}
.about-stat span { font-size: 13px; color: rgba(244, 238, 221, 0.75); }

/* ============ CHECKOUT ============ */
.section-checkout { background: var(--paper); }
.checkout-content { max-width: 720px; margin: 0 auto; }
.checkout-empty {
  background: white; padding: 50px; text-align: center;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  color: var(--ink-2); border: 1px solid var(--line);
}
.checkout-list {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  overflow: hidden; margin-bottom: 20px;
}
.checkout-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.checkout-item:last-child { border-bottom: none; }
.checkout-item-img {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--sea) 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: white; flex-shrink: 0;
}
.checkout-item-info { flex: 1; }
.checkout-item-info strong { display: block; color: var(--navy); font-weight: 600; }
.checkout-item-info span { color: var(--ink-2); font-size: 13px; }
.checkout-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  background: white; border-radius: 50%;
  cursor: pointer; font-size: 1rem; font-weight: 700;
  color: var(--navy); display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.qty-btn:hover { background: var(--celeste-soft); }
.checkout-item-total { font-family: var(--mono); font-weight: 500; color: var(--navy); min-width: 80px; text-align: right; }
.checkout-summary {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  padding: 24px;
}
.checkout-summary-row {
  display: flex; justify-content: space-between;
  padding: 6px 0; color: var(--ink-2);
}
.checkout-summary-row.total {
  border-top: 1px solid var(--line);
  margin-top: 12px; padding-top: 16px;
  font-size: 1.2rem; font-weight: 700; color: var(--navy);
}
.checkout-points-preview {
  background: var(--celeste-soft);
  color: var(--navy); padding: 12px 16px;
  border-radius: 12px; margin: 14px 0;
  font-weight: 600; text-align: center;
  border: 1px solid rgba(95, 184, 216, 0.3);
}
.checkout-guest-note {
  background: rgba(232, 184, 75, 0.1);
  border-left: 4px solid var(--gold);
  padding: 12px 16px; border-radius: 8px;
  margin: 14px 0; font-size: 0.95rem; color: var(--ink);
}

/* Tipo de orden (pickup/delivery) */
.order-type-toggle { display: flex; gap: 10px; margin: 4px 0 18px; }
.order-type-btn {
  flex: 1; padding: 14px;
  border: 1.5px solid var(--line-strong);
  background: white; border-radius: 12px;
  cursor: pointer; font-family: var(--sans); font-weight: 600;
  color: var(--ink-2); font-size: 0.95rem;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: all .15s;
}
.order-type-btn.active {
  border-color: var(--celeste); color: var(--navy);
  background: var(--celeste-soft);
}
.order-type-btn .ot-sub { font-weight: 400; font-size: 12px; }
.delivery-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.delivery-fields .df-col-2 { grid-column: 1 / -1; }
.delivery-fields label {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-soft);
  display: block; margin-bottom: 4px;
}
.delivery-fields input {
  padding: 10px 12px; border: 1px solid var(--line-strong);
  border-radius: 9px; font-family: var(--sans); font-size: 14px;
  width: 100%; outline: none; transition: border-color .15s;
  background: white; color: var(--ink);
}
.delivery-fields input:focus { border-color: var(--sea); }

/* ============ ACCOUNT ============ */
.section-account { background: var(--paper); }
.account-content { max-width: 800px; margin: 0 auto; }
.account-card {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  padding: 30px; margin-bottom: 20px;
}
.account-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--sea) 100%);
  color: white; padding: 30px; border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 20px; margin-bottom: 24px;
}
.account-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; color: white; flex-shrink: 0;
}
.account-info h2 { color: white; margin-bottom: 4px; font-size: 1.5rem; }
.account-info p { opacity: 0.9; margin: 0; }

/* ============ FOOTER ============ */
.footer {
  background: var(--navy-deep);
  color: var(--paper);
  padding: 60px 24px 28px;
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(244, 238, 221, 0.12);
}
.footer .brand-name { color: var(--paper); }
.footer h4 {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--celeste-light); margin-bottom: 12px;
}
.footer p {
  font-size: 14px; line-height: 1.7;
  color: rgba(244, 238, 221, 0.75); margin-bottom: 4px;
}
.footer p[data-editable="footer_hours"] { white-space: pre-line; line-height: 1.7; }
.footer-bottom {
  max-width: 1400px; margin: 0 auto;
  padding-top: 24px;
  font-family: var(--mono); font-size: 12px;
  color: rgba(244, 238, 221, 0.5);
  text-align: center; letter-spacing: 0.04em;
}

/* ============ CART FAB ============ */
.cart-fab {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--paper);
  padding: 14px 28px;
  border-radius: 999px;
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 14px; font-family: var(--sans);
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow-lg);
}
.cart-fab:hover { background: var(--sea); transform: translateX(-50%) translateY(-2px); }
.cart-fab-icon { font-size: 1.3rem; }
.cart-fab-count {
  background: var(--celeste);
  color: var(--navy);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  min-width: 26px;
  text-align: center;
}

/* ============ MODAL ============ */
.modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 26, 41, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  background: var(--paper);
  border-radius: 20px;
  padding: 36px 32px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgba(6, 26, 41, 0.5);
}
.modal-card-wide { max-width: 660px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  font-size: 22px; color: var(--ink-2);
  border-radius: 50%; transition: background 0.15s;
}
.modal-close:hover { background: rgba(10, 35, 53, 0.08); color: var(--navy); }
.modal-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 28px; letter-spacing: -0.01em;
  color: var(--navy); margin-bottom: 4px;
}
.modal-sub { font-size: 14px; color: var(--ink-2); margin-bottom: 22px; }

/* ============ AUTH ============ */
.auth-tabs {
  display: flex; gap: 4px; margin-bottom: 22px;
  padding: 4px;
  background: rgba(10, 35, 53, 0.06);
  border-radius: 999px;
}
.auth-tab {
  flex: 1; padding: 8px 12px; font-size: 13px; font-weight: 500;
  color: var(--ink-2); border-radius: 999px; transition: all 0.15s;
  cursor: pointer; background: transparent; border: none;
  font-family: var(--sans);
}
.auth-tab.active {
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 2px 6px -2px rgba(10, 35, 53, 0.15);
}
.btn-google {
  width: 100%;
  min-height: 44px;
  margin: -6px 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: white;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.btn-google:hover {
  border-color: var(--sea);
  box-shadow: 0 4px 12px rgba(10, 35, 53, 0.08);
}
.google-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #4285f4;
  background: #fff;
  font-weight: 800;
  font-family: Arial, sans-serif;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-fields { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.auth-fields label {
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft); display: block;
}
.auth-fields input,
.phone-input input,
.code-input,
.editor-input {
  width: 100%; padding: 12px 14px;
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font: inherit; font-size: 15px; color: var(--navy);
  outline: none; transition: border-color 0.15s;
}
.auth-fields input:focus, .phone-input input:focus,
.code-input:focus, .editor-input:focus { border-color: var(--sea); }
.phone-input { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
.code-input {
  text-align: center; letter-spacing: 0.3em;
  font-size: 20px; font-family: var(--mono);
  margin-bottom: 14px;
}
.demo-code-banner {
  background: rgba(95, 184, 216, 0.15);
  border: 1px dashed var(--celeste);
  color: var(--navy); padding: 10px 14px;
  border-radius: 10px; margin-bottom: 14px;
  font-size: 13px; text-align: center;
}
.demo-code-banner strong {
  font-family: var(--mono); letter-spacing: 0.15em;
  font-size: 1.1rem; margin-left: 4px;
}
.auth-error {
  font-size: 13px; color: var(--rojo);
  background: rgba(185, 68, 49, 0.08);
  padding: 10px 14px; border-radius: 10px;
  margin-bottom: 14px;
}
.auth-switch {
  margin-top: 16px; font-size: 13px;
  color: var(--ink-2); text-align: center;
}
.auth-switch a { color: var(--sea); cursor: pointer; font-weight: 500; }
.auth-switch a:hover { color: var(--celeste-dark); }

/* ============ PAYMENT (Stripe) ============ */
.payment-points {
  color: var(--sea); font-weight: 600; font-size: 0.95rem;
  margin: -8px 0 16px;
}
#paymentElement { margin-bottom: 16px; min-height: 40px; }
#paymentSubmitBtn { margin-top: 4px; }
.payment-secure-note {
  text-align: center; color: var(--ink-soft);
  font-size: 13px; margin-top: 14px; line-height: 1.4;
}

/* ============ RESERVACIONES ============ */
.reservation-content { max-width: 720px; margin: 0 auto; }
.reservation-card {
  background: white; border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.reservation-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 18px;
}
.rsv-field { display: flex; flex-direction: column; gap: 6px; }
.rsv-col-2 { grid-column: 1 / -1; }
.rsv-field label {
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--ink-soft);
}
.rsv-field input, .rsv-field textarea {
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px; font-family: var(--sans);
  font-size: 14px; width: 100%; color: var(--ink);
  background: white; outline: none;
  transition: border-color .15s;
}
.rsv-field input:focus, .rsv-field textarea:focus { border-color: var(--sea); }
.reservation-note {
  text-align: center; color: var(--ink-soft);
  font-size: 13px; margin-top: 12px;
}

/* ============ EDITOR MODE ============ */
.editor-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--navy-deep); color: var(--paper);
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  border-top: 1px solid rgba(244, 238, 221, 0.12);
}
.editor-bar-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.editor-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--celeste);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.editor-help { flex: 1; font-size: 13px; color: rgba(244, 238, 221, 0.7); }
.editor-bar-actions { display: flex; gap: 8px; }
.editor-bar-actions .btn-ghost-light { color: var(--paper); border-color: rgba(244, 238, 221, 0.3); }
.editor-bar-actions .btn-ghost-light:hover { background: rgba(244, 238, 221, 0.1); }
.editor-bar-actions .btn-outline { color: var(--paper); border-color: rgba(244, 238, 221, 0.3); }
.editor-bar-actions .btn-outline:hover { background: var(--paper); color: var(--navy); }

body.editor-mode [data-editable] {
  outline: 2px dashed rgba(95, 184, 216, 0.6);
  outline-offset: 3px; cursor: text;
  transition: background .15s; border-radius: 4px;
}
body.editor-mode [data-editable]:hover { background: rgba(95, 184, 216, 0.08); }
body.editor-mode [data-editable]:focus { outline-style: solid; background: white; }
body.editor-mode .menu-card { cursor: pointer; }
body.editor-mode .menu-edit-overlay { display: inline-block; }
body.editor-mode .cart-fab { display: none; }
body.editor-mode { padding-bottom: 80px; }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 100px; left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--navy);
  color: var(--paper);
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn .25s ease;
}
@keyframes toastIn {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}
.toast.success { background: var(--verde); }
.toast.error   { background: var(--rojo); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 80px 24px; }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(244, 238, 221, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(6, 26, 41, 0.15);
    padding: 8px 0;
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .28s ease, opacity .2s ease;
    z-index: 39;
  }
  .navbar.nav-open .nav-links {
    max-height: 380px; opacity: 1; pointer-events: auto;
  }
  .nav-links a {
    padding: 14px 24px; font-size: 12px;
    border-bottom: 1px solid var(--line);
    opacity: 1;
  }

  .top-banner-inner { flex-direction: column; text-align: center; }
  .top-banner-actions { width: 100%; justify-content: center; }

  .section { padding: 48px 18px; }
  .hero-content { padding: 64px 18px; }
  .hero-content h1 { font-size: clamp(42px, 12vw, 72px); }

  .modal-card {
    max-width: 100%;
    width: calc(100% - 24px);
    padding: 28px 22px;
  }

  .cart-fab { width: calc(100% - 32px); justify-content: center; }
  .menu-grid { grid-template-columns: 1fr; }
  .levels-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }

  .checkout-item { gap: 10px; padding: 14px; flex-wrap: wrap; }
  .checkout-item-img { width: 48px; height: 48px; font-size: 1.4rem; }
  .checkout-item-info { flex: 1 1 50%; min-width: 0; }
  .checkout-item-total { min-width: 60px; }
  .order-type-btn { padding: 12px 8px; font-size: 0.9rem; }
  .delivery-fields { grid-template-columns: 1fr; }
  .reservation-grid { grid-template-columns: 1fr; }

  .menu-categories {
    flex-wrap: nowrap; overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .cat-btn { flex: 0 0 auto; }
}

@media (max-width: 560px) {
  .levels-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
