[hidden] { display: none !important; }
:root {
  --primary: #d62828;
  --accent: #e9a23b;
  --bg: #0e0e0f;
  --bg-2: #161618;
  --surface: #1c1c1f;
  --surface-2: #25252a;
  --line: #303036;
  --text: #f5f1ea;
  --muted: #a9a39a;
  --ok: #3fb950;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --script: 'Kaushan Script', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; margin: 0 0 .4rem; }
.script { font-family: var(--script); color: var(--accent); font-size: 1.7rem; margin: .5rem 0 0; }
.lead { font-size: 1.1rem; color: #d9d3ca; }

/* Patrón seigaiha (olas japonesas) como en la carta */
.seigaiha {
  background-color: var(--bg-2);
  background-image:
    radial-gradient(circle at 50% 100%, transparent 18px, rgba(233,162,59,.09) 19px, transparent 20px, transparent 25px, rgba(233,162,59,.07) 26px, transparent 27px, transparent 32px, rgba(233,162,59,.05) 33px, transparent 34px),
    radial-gradient(circle at 0 50%, transparent 18px, rgba(233,162,59,.09) 19px, transparent 20px, transparent 25px, rgba(233,162,59,.07) 26px, transparent 27px, transparent 32px, rgba(233,162,59,.05) 33px, transparent 34px);
  background-size: 70px 35px;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* Anuncio */
.announcement { background: var(--primary); color: #fff; text-align: center; padding: .5rem 16px; font-weight: 600; font-size: .95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(14,14,15,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { border-radius: 50%; width: 44px; height: 44px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.1rem; letter-spacing: .02em; }
.brand-text small { color: var(--accent); font-weight: 600; }
.main-nav { margin-left: auto; display: flex; gap: 1.5rem; }
.main-nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.main-nav a:hover { color: var(--text); }
.cart-btn {
  display: flex; align-items: center; gap: .5rem; background: var(--primary); color: #fff;
  border: 0; border-radius: 999px; padding: .55rem 1rem; font-weight: 700;
}
.cart-count { background: #fff; color: var(--primary); border-radius: 999px; min-width: 24px; height: 24px; display: grid; place-items: center; font-size: .8rem; padding: 0 6px; }

/* Hero */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; padding: 4.5rem 0; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--muted); }
.hero-facts strong { color: var(--text); }
.status-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem; border-radius: 999px; background: var(--surface-2); font-weight: 600; font-size: .9rem; }
.status-pill::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status-pill.open::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(63,185,80,.2); }
.status-pill.closed::before { background: var(--primary); }
.hero-visual { position: relative; display: grid; place-items: center; }
.sun { position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; background: var(--primary); opacity: .9; }
.hero-visual img { position: relative; width: 100%; border-radius: 22px; box-shadow: var(--shadow); transform: rotate(-3deg); border: 6px solid #fff; aspect-ratio: 4/3; object-fit: cover; }

/* Secciones */
.section-head { margin: 4rem auto 1.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

/* Destacados */
.featured-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.featured-row .card { scroll-snap-align: start; }

/* Navegación de categorías */
.cat-nav-wrap { position: sticky; top: 68px; z-index: 30; background: rgba(14,14,15,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cat-nav { display: flex; gap: .5rem; overflow-x: auto; padding: .75rem 0; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; text-decoration: none; padding: .45rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; color: var(--muted); }
.cat-nav a.active, .cat-nav a:hover { background: var(--accent); color: #1a1206; border-color: var(--accent); }

/* Categorías */
.category { padding: 2.5rem 0 1rem; }
.category-head { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1.2rem; }
.category-head img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); flex: none; }
.category-head h3 { font-size: 1.7rem; margin: 0 0 .2rem; }
.category-head p { margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }

/* Tarjetas de producto */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .15s, transform .15s; position: relative;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--surface-2); }
.card-body { padding: 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card h4 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.card .desc { margin: 0; color: var(--muted); font-size: .9rem; }
.card ul.details { margin: .3rem 0; padding-left: 1.1rem; color: #d3cdc4; font-size: .88rem; }
.card ul.details li { margin: .15rem 0; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .6rem; }
.price { font-weight: 800; font-size: 1.2rem; color: var(--accent); }
.price small { font-weight: 500; color: var(--muted); font-size: .75rem; display: block; }
.add-btn { border: 0; background: var(--primary); color: #fff; font-weight: 700; border-radius: 999px; padding: .5rem 1rem; }
.add-btn[disabled] { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.badge { position: absolute; top: .7rem; left: .7rem; background: var(--accent); color: #1a1206; font-weight: 700; font-size: .75rem; padding: .2rem .6rem; border-radius: 999px; }
.badge.soldout { background: #444; color: #fff; }
.card.compact .card-img { display: none; }
.card.compact .badge { position: static; align-self: flex-start; margin: 1rem 1rem -.4rem; }
.card-cat { margin: 0; color: var(--accent); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.card.tabla { grid-column: span 1; }
.variants { display: flex; gap: .6rem; flex-wrap: wrap; }
.variants span { background: var(--surface-2); border-radius: 10px; padding: .25rem .6rem; font-size: .85rem; }
.variants b { color: var(--accent); }

/* Nosotros */
.about { margin-top: 4rem; border-block: 1px solid var(--line); }
.about-inner { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: center; padding: 4rem 0; }
.about-inner img { border-radius: 50%; box-shadow: var(--shadow); }
.about h2 { font-size: 2.2rem; }

/* Ubicación */
.location { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; padding: 4rem 0; }
.location h2 { font-size: 2.2rem; }
.address { font-size: 1.2rem; font-weight: 600; margin: 0; }
.hours { border-collapse: collapse; margin: 1.2rem 0; width: 100%; max-width: 360px; }
.hours td { padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; color: var(--muted); }
.hours tr.today td { color: var(--accent); font-weight: 700; }
.contact-list { display: flex; flex-direction: column; gap: .5rem; }
.contact-list a { color: var(--accent); font-weight: 600; text-decoration: none; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; background: var(--surface); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(.3) contrast(1.05); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0 5rem; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-admin { color: var(--muted); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 35; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }

/* Modal */
.modal { border: 0; padding: 0; background: transparent; color: var(--text); width: min(560px, 100% - 24px); max-height: 92vh; }
.modal::backdrop { background: rgba(0,0,0,.7); }
.modal-inner { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: auto; max-height: 92vh; position: relative; }
.modal-close { position: absolute; right: 12px; top: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 1.5rem; line-height: 1; }
.pm-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.pm-body { padding: 1.2rem 1.3rem 1.4rem; }
.pm-body h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.opt-group { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; }
.opt-group legend { font-weight: 700; padding: 0 .4rem; }
.opt-group legend small { color: var(--muted); font-weight: 500; margin-left: .4rem; }
.opt-group.invalid { border-color: var(--primary); }
.opt { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; cursor: pointer; }
.opt input { accent-color: var(--primary); width: 18px; height: 18px; }
.opt .opt-price { margin-left: auto; color: var(--accent); font-weight: 600; font-size: .9rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin: .8rem 0; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea, .field select {
  background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: .7rem .8rem; font: inherit;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 38px; height: 38px; border: 0; background: var(--surface-2); color: var(--text); font-size: 1.2rem; }
.qty span { min-width: 36px; text-align: center; font-weight: 700; }
.pm-foot { display: flex; gap: 1rem; align-items: center; margin-top: 1.2rem; }
.pm-foot .btn { flex: 1; }

/* Carro */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); z-index: 51; transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); position: relative; }
.drawer-head h2 { margin: 0; font-size: 1.4rem; }
.drawer-head .modal-close { position: static; background: var(--surface-2); }
.drawer-body { overflow: auto; padding: 1rem 1.2rem 2rem; flex: 1; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.cart-line h4 { margin: 0; font-size: 1rem; }
.cart-line .opts { color: var(--muted); font-size: .85rem; margin: 0; }
.cart-line .line-actions { display: flex; align-items: center; gap: .6rem; }
.cart-line .remove { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: .85rem; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 800; margin: 1rem 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; background: var(--bg); padding: .3rem; border-radius: 12px; }
.seg label { text-align: center; padding: .55rem; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg input { display: none; }
.seg label:has(input:checked) { background: var(--primary); color: #fff; }
.notice { background: rgba(233,162,59,.12); border: 1px solid rgba(233,162,59,.4); color: #f3d9ae; padding: .7rem .9rem; border-radius: 12px; font-size: .9rem; margin: 1rem 0; white-space: pre-line; }
.empty { text-align: center; color: var(--muted); padding: 3rem 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 200%); visibility: hidden; background: var(--text); color: var(--bg); padding: .7rem 1.2rem; border-radius: 999px; font-weight: 600; z-index: 60; transition: transform .25s; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

@media (max-width: 860px) {
  html { scroll-padding-top: 120px; }
  .main-nav { display: none; }
  .cart-btn { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; padding: 2.5rem 0 3rem; gap: 2rem; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .about-inner { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; padding: 3rem 0; }
  .about-inner img { width: 160px; margin-inline: auto; }
  .location { grid-template-columns: 1fr; }
  .category-head img { width: 64px; height: 64px; }
}
@media (max-width: 480px) {
  .cart-btn span:not(.cart-count) { display: none; }
  .brand-text strong { font-size: 1rem; }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
