:root {
  --navy: #063a62;
  --teal: #078ca5;
  --orange: #ff4b19;
  --lime: #8abd10;
  --sand: #fff9ef;
  --cream: #fffdf8;
  --ink: #102737;
  --muted: #5d6c76;
  --line: rgba(6, 58, 98, 0.13);
  --shadow: 0 18px 50px rgba(1, 35, 57, 0.14);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
body.cart-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 999; background: #fff; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; color: var(--navy); }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand span { line-height: 1.05; }
.brand small { display: block; color: var(--teal); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a { text-decoration: none; font-weight: 750; font-size: 0.94rem; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.7rem; color: var(--navy); }
.cart-button { border: 0; border-radius: 999px; background: var(--navy); color: white; padding: 11px 16px; font-weight: 850; display: inline-flex; align-items: center; gap: 8px; }
.cart-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--orange); display: grid; place-items: center; font-size: 0.78rem; }

.hero {
  min-height: 720px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #043859;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/hero-baja.png") center/cover no-repeat;
  transform: scale(1.02);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(2, 25, 43, 0.92) 0%, rgba(2, 28, 48, 0.72) 48%, rgba(2, 28, 48, 0.25) 100%), linear-gradient(0deg, rgba(3, 49, 74, .42), transparent 55%);
}
.hero-content { max-width: 680px; padding: 96px 0; color: white; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.77rem; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; color: #eaffb0; }
.hero h1 { font-size: clamp(3.1rem, 7vw, 6.6rem); line-height: 0.9; margin: 18px 0 20px; letter-spacing: -0.055em; }
.hero h1 span { color: #ffdf59; }
.hero p { max-width: 590px; font-size: clamp(1.02rem, 2vw, 1.3rem); color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 50px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-weight: 900; }
.btn-primary { background: var(--orange); color: white; box-shadow: 0 12px 30px rgba(255, 75, 25, .3); }
.btn-secondary { background: rgba(255,255,255,.12); color: white; border-color: rgba(255,255,255,.35); backdrop-filter: blur(12px); }
.btn-light { background: white; color: var(--navy); border-color: var(--line); }
.hero-notes { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); font-size: 0.84rem; }

.section { padding: 86px 0; }
.section-soft { background: var(--sand); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.section-head h2 { margin: 8px 0 0; font-size: clamp(2.1rem, 4.5vw, 3.8rem); line-height: 1; letter-spacing: -0.04em; color: var(--navy); }
.section-head p { max-width: 600px; color: var(--muted); margin: 0; }

.order-strip { margin-top: -42px; position: relative; z-index: 5; }
.order-strip-inner { background: white; border: 1px solid rgba(6, 58, 98, .12); border-radius: var(--radius); box-shadow: 0 20px 48px rgba(1, 35, 57, .16); display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; }
.order-info { min-height: 154px; padding: 25px 26px; border-right: 1px solid var(--line); background: linear-gradient(145deg, #ffffff, #f8fcff); box-shadow: inset 0 -10px 24px rgba(6,58,98,.025); }
.order-info:last-child { border-right: 0; }
.order-info strong { display: block; color: var(--navy); margin-bottom: 6px; }
.order-info span { color: var(--muted); font-size: 0.92rem; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-btn { border: 1px solid var(--line); background: white; color: var(--navy); border-radius: 999px; padding: 10px 15px; font-weight: 850; }
.filter-btn.active { background: var(--navy); color: white; }
.search-wrap { margin-left: auto; position: relative; flex: 1 1 260px; max-width: 340px; }
.search-wrap input { width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; background: white; }

.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.menu-card { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 20px; min-height: 230px; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(6,58,98,.06); transition: .2s ease; }
.menu-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(6,58,98,.12); }
.menu-card-top { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.menu-card h3 { margin: 0; color: var(--navy); font-size: 1.12rem; line-height: 1.25; }
.menu-card .english { margin-top: 4px; color: var(--teal); font-size: 0.84rem; font-weight: 750; }
.menu-card p { color: var(--muted); font-size: 0.92rem; margin: 14px 0 20px; }
.price { font-size: 1.18rem; font-weight: 950; color: var(--orange); white-space: nowrap; }
.badge { align-self: start; display: inline-block; border-radius: 999px; padding: 5px 9px; font-size: .72rem; font-weight: 900; background: #f1f9cd; color: #557000; margin-bottom: 12px; }
.spice-level { align-self: flex-start; margin: -5px 0 14px; border-radius: 999px; padding: 5px 9px; font-size: .74rem; font-weight: 900; }
.spice-medio { background: #fff3d5; color: #9a5700; }
.spice-picante { background: #ffe2dc; color: #ab2d19; }
.menu-card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.add-btn { border: 0; border-radius: 999px; padding: 10px 14px; background: var(--navy); color: white; font-weight: 900; }
.add-btn:disabled { background: #a8b2b9; cursor: not-allowed; }
.category-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; color: var(--teal); }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
.feature-visual { display: flex; flex-direction: column; gap: 14px; }
.feature-photo { min-height: 520px; border-radius: 30px; overflow: hidden; position: relative; background: url("assets/ensenada.webp") center/cover no-repeat; box-shadow: var(--shadow); }
.feature-photo::after { content: "Inspirado en Ensenada"; position: absolute; left: 20px; bottom: 20px; background: rgba(255,255,255,.94); color: var(--navy); border-radius: 999px; padding: 10px 14px; font-weight: 900; }
.feature-copy { background: var(--navy); color: white; border-radius: 30px; padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.feature-copy h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; margin: 12px 0 18px; }
.feature-copy p { color: rgba(255,255,255,.82); }
.check-list { padding: 0; margin: 22px 0 28px; list-style: none; display: grid; gap: 12px; }
.check-list li::before { content: "✓"; color: #d9ff64; font-weight: 1000; margin-right: 10px; }

.history-section { background: var(--cream); }
.history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.history-grid h2 { margin: 10px 0 0; color: var(--navy); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.045em; }
.history-grid p { margin: 0; color: var(--muted); font-size: 1.12rem; }
.history-photo { grid-column: 1 / -1; margin: 12px 0 0; overflow: hidden; border-radius: 30px; box-shadow: var(--shadow); background: white; }
.history-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.gallery { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-template-rows: 220px 220px; gap: 14px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 20px; position: relative; }
.gallery figure:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; filter: saturate(1.08) contrast(1.03); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; inset: auto 12px 12px 12px; background: rgba(4,44,71,.78); color: white; padding: 8px 10px; border-radius: 10px; font-size: .82rem; font-weight: 850; backdrop-filter: blur(8px); }

.hours-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: 0 12px 36px rgba(6,58,98,.07); }
.panel h3 { color: var(--navy); margin-top: 0; font-size: 1.6rem; }
.hours-list { display: grid; gap: 10px; }
.hours-row { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.hours-row.closed span:last-child { color: #9a3e31; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.notice { background: #f3f9de; color: #435c00; border-radius: 14px; padding: 14px; margin-top: 18px; font-size: .92rem; }

.site-footer { background: #052e4c; color: rgba(255,255,255,.82); padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 30px; }
.footer-brand { color: white; font-size: 1.3rem; font-weight: 950; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 34px; padding-top: 18px; font-size: .83rem; }

.cart-overlay { position: fixed; inset: 0; background: rgba(0,24,40,.55); z-index: 90; opacity: 0; visibility: hidden; transition: .2s; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; z-index: 100; width: min(440px, 100%); height: 100dvh; background: white; transform: translateX(105%); transition: .25s ease; display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(0,0,0,.18); }
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; color: var(--navy); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: white; }
.cart-items { flex: 1; overflow: auto; padding: 18px 22px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item strong { color: var(--navy); }
.cart-item-actions { display: grid; justify-items: end; align-content: start; gap: 8px; }
.remove-item { width: 32px; height: 32px; border: 1px solid #f1c7bf; border-radius: 50%; background: #fff5f2; color: #b1331e; font-size: .9rem; }
.remove-item:hover { background: #ffe5df; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: white; }
.qty button.qty-delete { border-color: #f1c7bf; background: #fff5f2; color: #b1331e; font-size: .78rem; }
.cart-foot { border-top: 1px solid var(--line); padding: 18px 22px 24px; background: var(--sand); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 950; color: var(--navy); margin-bottom: 14px; }
.order-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.order-options label { border: 1px solid var(--line); background: white; border-radius: 12px; padding: 10px; font-weight: 800; }
.order-options input { accent-color: var(--orange); }
.field { display: grid; gap: 5px; margin-bottom: 10px; }
.field label { font-size: .78rem; font-weight: 850; color: var(--navy); }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: white; }
.checkout-btn { width: 100%; border: 0; border-radius: 999px; min-height: 52px; background: #1aa74b; color: white; font-weight: 950; }
.checkout-btn:disabled { opacity: .5; cursor: not-allowed; }
.small-note { color: var(--muted); font-size: .78rem; margin: 8px 0 0; }
.review-step { overflow-y: auto; }
.review-step h3 { color: var(--navy); margin: 0 0 12px; }
.review-summary { display: grid; gap: 8px; margin-bottom: 16px; }
.review-summary > div { display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; }
.review-summary .review-total { border-top: 1px solid var(--line); padding-top: 10px; color: var(--navy); font-size: 1rem; }
.review-summary p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.review-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.clear-order { display: block; margin: 12px auto 0; border: 0; background: transparent; color: var(--muted); text-decoration: underline; font-weight: 750; }

.floating-whatsapp { position: fixed; right: 18px; bottom: 18px; z-index: 45; background: #1aa74b; color: white; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; font-size: 1.45rem; box-shadow: 0 15px 30px rgba(26,167,75,.28); }


.ensenada-showcase { display: block; }
.ensenada-card { margin: 0; overflow: hidden; border-radius: 28px; position: relative; box-shadow: var(--shadow); background: white; }
.ensenada-card img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.ensenada-card figcaption { position: absolute; left: 18px; bottom: 18px; background: rgba(4,44,71,.78); color: white; padding: 10px 14px; border-radius: 12px; font-size: .92rem; font-weight: 850; backdrop-filter: blur(8px); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav { position: absolute; left: 16px; right: 16px; top: 84px; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); display: none; flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }
  .site-nav .cart-button { justify-content: center; }
  .hero { min-height: 650px; }
  .hero::after { background: linear-gradient(90deg, rgba(2,25,43,.9), rgba(2,28,48,.48)); }
  .order-strip-inner { grid-template-columns: 1fr; }
  .order-info { border-right: 0; border-bottom: 1px solid var(--line); }
  .menu-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feature-grid, .hours-contact, .history-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 22px, 1160px); }
  .brand span { display: none; }
  .nav-wrap { min-height: 70px; }
  .brand img { width: 52px; height: 52px; }
  .hero { min-height: 610px; }
  .hero-content { padding: 70px 0 92px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .hero-actions .btn { width: 100%; }
  .section { padding: 64px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .filters { align-items: stretch; }
  .search-wrap { order: -1; max-width: none; flex-basis: 100%; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-card { min-height: 0; }
  .feature-photo { min-height: 390px; }
  .feature-copy { padding: 28px; }
  .review-actions { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 180px 180px; }
  .gallery figure:first-child { grid-column: 1 / 3; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .floating-whatsapp { bottom: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
