/* Haochi Sushi — "Tinta y neón" */
:root {
  --tinta: #000;
  --nori: #0e1512;
  --nori-claro: #17221c;
  --arroz: #f3efe6;
  --arroz-suave: #b9b4a8;
  --rojo: #e4002b;
  --neon: #ff2d4a;
  --gari: #f2a7a0;

  --display: "Poppins", "Arial Black", sans-serif;
  --texto: "Zen Kaku Gothic New", system-ui, sans-serif;

  --margen: clamp(1rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tinta);
  color: var(--arroz);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
.defs { position: absolute; width: 0; height: 0; }

:focus-visible { outline: 3px solid var(--gari); outline-offset: 3px; }

.saltar {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--arroz); color: var(--tinta); padding: .6rem 1rem; font-weight: 700;
}
.saltar:focus { top: 1rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 2px;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.btn-chico { padding: .5rem 1rem; font-size: .95rem; }
.btn-rojo { background: var(--rojo); color: #fff; }
.btn-rojo:hover { box-shadow: 0 0 22px rgba(255, 45, 74, .75); }
.btn-linea { border-color: var(--arroz); }
.btn-linea:hover { background: var(--arroz); color: var(--tinta); }

/* ---------- Barra superior ---------- */
.barra-sup {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; gap: 2rem;
  padding: .9rem var(--margen);
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(10px);
}
.marca {
  font-family: var(--display);
  font-size: 1.25rem;
  text-decoration: none;
  line-height: 1;
}
.marca span { color: var(--rojo); font-size: .7em; }
.barra-sup nav { display: flex; gap: 1.75rem; margin-left: auto; }
.barra-sup nav a { text-decoration: none; font-weight: 500; }
.barra-sup nav a:hover { color: var(--gari); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 7rem var(--margen) clamp(2.5rem, 7vh, 5rem);
  overflow: hidden;
}
.enso {
  position: absolute;
  right: -12vw; top: 50%;
  width: min(95vh, 78vw);
  transform: translateY(-52%) rotate(-28deg);
}
.enso circle {
  fill: none;
  stroke: var(--rojo);
  stroke-width: 42;
  stroke-linecap: round;
  stroke-dasharray: 1194;
  stroke-dashoffset: 110;
  animation: trazar 1.5s cubic-bezier(.6, 0, .2, 1) both;
}
@keyframes trazar { from { stroke-dashoffset: 1194; } }

.hero-texto { position: relative; max-width: 60rem; }
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.02em;
}
.neon {
  display: block;
  font-size: clamp(3rem, 8vw, 7.5rem);
  color: #fff;
  text-shadow:
    0 0 6px #fff,
    0 0 18px var(--neon),
    0 0 46px var(--neon),
    0 0 110px rgba(228, 0, 43, .8);
  animation: encender 1.3s 1.2s steps(1) both;
}
/* El letrero se enciende una vez, después del trazo */
@keyframes encender {
  0% { color: #2a0a10; text-shadow: none; }
  18% { color: #fff; text-shadow: 0 0 6px #fff, 0 0 18px var(--neon); }
  26% { color: #2a0a10; text-shadow: none; }
  44% { color: #fff; text-shadow: 0 0 6px #fff, 0 0 18px var(--neon), 0 0 46px var(--neon); }
  52% { color: #5a1420; text-shadow: none; }
  66%, 100% { color: #fff; text-shadow: 0 0 6px #fff, 0 0 18px var(--neon), 0 0 46px var(--neon), 0 0 110px rgba(228, 0, 43, .8); }
}
.hero h1 .sub {
  display: block;
  font-size: clamp(1.3rem, 2.5vw, 2.2rem);
  color: var(--rojo);
  margin-left: .12em;
}
.bajada { margin-top: 1.75rem; font-size: clamp(1.1rem, 1.6vw, 1.4rem); max-width: 34ch; }
.estado { margin-top: 1rem; display: flex; align-items: center; gap: .6rem; font-weight: 500; color: var(--arroz-suave); }
.luz { width: .65rem; height: .65rem; border-radius: 50%; background: #6b6b6b; flex: none; }
.estado[data-abierto="true"] { color: var(--arroz); }
.estado[data-abierto="true"] .luz { background: #57d163; box-shadow: 0 0 10px #57d163; }
.acciones { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Armado del roll ---------- */
.armado { height: 260vh; background: var(--tinta); }
.armado-fijo {
  position: sticky; top: 0;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: 5rem var(--margen) 2rem;
}
.armado-visual { display: grid; place-items: center; }
#roll-svg, #roll-canvas { width: min(72vh, 100%); height: auto; aspect-ratio: 1; }
/* funde el borde del render con el negro de la página */
#roll-canvas {
  -webkit-mask-image: radial-gradient(closest-side, #000 68%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 68%, transparent 100%);
}
#roll-svg [data-capa] { transform-origin: 300px 300px; opacity: 0; }

.pasos { counter-reset: paso; display: grid; gap: 1.6rem; }
.pasos li {
  counter-increment: paso;
  display: grid; grid-template-columns: auto 1fr; column-gap: 1.1rem;
  color: var(--arroz-suave);
  opacity: .32;
  transition: opacity .3s;
}
.pasos li::before {
  content: counter(paso);
  grid-row: span 2;
  font-family: var(--display);
  font-size: 2rem; line-height: 1;
  color: var(--rojo);
}
.pasos strong {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.2rem, 1.9vw, 1.7rem); line-height: 1.15;
  color: var(--arroz);
}
.pasos li[data-activo="true"] { opacity: 1; }

/* ---------- Trazo divisor ---------- */
.trazo { line-height: 0; padding: 0 var(--margen); }
.trazo svg { width: 100%; height: 60px; overflow: visible; }
.trazo rect { fill: var(--arroz); }
.trazo-rojo rect { fill: var(--rojo); }

/* ---------- Carta ---------- */
.carta, .promos, .local { padding: clamp(4rem, 10vh, 8rem) var(--margen); }
h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.05;
  letter-spacing: -.02em;
}
.carta-intro { margin-top: 1rem; color: var(--arroz-suave); font-size: 1.15rem; }
.mundos { margin-top: 2rem; border-top: 1px solid rgba(243, 239, 230, .28); }
.mundo { border-bottom: 1px solid rgba(243, 239, 230, .28); }
.mundo h3 { font-weight: 400; }
.mundo h3 button {
  all: unset; box-sizing: border-box;
  display: flex; justify-content: space-between; align-items: baseline;
  width: 100%;
  padding: .95rem 0;
  font-family: var(--texto);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.2;
  color: var(--arroz-suave);
  cursor: pointer;
  transition: color .15s;
}
.mundo h3 button::after { content: "+"; font-weight: 400; color: var(--rojo); }
.mundo h3 button:hover, .mundo[data-abierto="true"] h3 button { color: var(--arroz); }
.mundo[data-abierto="true"] h3 button::after { content: "–"; }
.mundo h3 button:focus-visible { outline: 3px solid var(--gari); outline-offset: 3px; }

.mundo-cuerpo {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
  padding: .5rem 0 2.5rem;
}
.mundo[data-abierto="true"] .mundo-cuerpo { display: grid; }
.clip {
  grid-row: span 2;
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(60% 80% at 30% 60%, rgba(228, 0, 43, .35), transparent 70%),
    var(--nori);
  overflow: hidden;
}
.clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip span { position: absolute; left: 1rem; bottom: .8rem; font-size: .9rem; color: var(--arroz-suave); }
.platos li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--nori-claro);
}
.plato { font-weight: 700; font-size: 1.05rem; }
.plato small { display: block; font-weight: 400; font-size: .9rem; line-height: 1.35; color: var(--arroz-suave); }
.precio { color: var(--gari); font-weight: 700; white-space: nowrap; }
.mundo-cuerpo .btn { justify-self: start; align-self: start; }

/* ---------- Promos ---------- */
.promos { background: var(--tinta); }
.promos-lista {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.promo-precio { font-family: var(--display); font-size: clamp(1.9rem, 2.8vw, 2.6rem); line-height: 1; }
.promo-grande .promo-precio { font-size: clamp(1.9rem, 2.8vw, 2.6rem); }
.promo h3 { margin-top: .8rem; font-size: 1.35rem; font-weight: 700; }
.promo p:last-child { margin-top: .3rem; max-width: 30ch; }

/* ---------- Local ---------- */
.local-grid {
  margin-top: 3rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
}
.local h3 { font-size: 1.05rem; font-weight: 700; color: var(--gari); margin-bottom: .7rem; }
.local p { margin-bottom: 1.3rem; }
.horario div { padding: .55rem 0; border-bottom: 1px solid var(--nori-claro); }
.horario dt { font-weight: 700; }
.horario dd { color: var(--arroz-suave); }

/* ---------- Pie ---------- */
.pie {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 2rem var(--margen);
  border-top: 1px solid var(--nori-claro);
  color: var(--arroz-suave);
}
.pie .marca { color: var(--arroz); }

/* ---------- Móvil ---------- */
@media (max-width: 800px) {
  .barra-sup { gap: 1rem; }
  .barra-sup nav { display: none; }
  .barra-sup .btn { margin-left: auto; }
  .enso { right: -30vw; top: 34%; width: 120vw; }
  .armado-fijo { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 1.5rem; }
  #roll-svg, #roll-canvas { width: min(42vh, 80%); }
  .pasos { gap: .9rem; }
  .pasos li::before { font-size: 1.8rem; }
  .pasos li { font-size: .95rem; }
  .mundo-cuerpo, .promos-lista, .local-grid { grid-template-columns: 1fr; }
  .clip { grid-row: auto; }
  .promos-lista { align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enso circle, .neon { animation: none; }
  .armado { height: auto; }
  .armado-fijo { position: static; height: auto; }
  #roll-svg [data-capa] { opacity: 1 !important; transform: none !important; }
  .pasos li { opacity: 1; }
}

/* ---------- Pedido ---------- */
.platos li { align-items: center; }
.platos .plato { flex: 1; }
.agregar {
  flex: none;
  width: 2.2rem; height: 2.2rem;
  border: 1px solid var(--arroz); border-radius: 50%;
  background: none; color: var(--arroz);
  font: 400 1.3rem/1 var(--texto);
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.agregar:hover { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.agregar[data-ok="true"] { background: var(--arroz); color: var(--tinta); }

.pedido { padding: clamp(3rem, 8vh, 6rem) var(--margen); background: var(--nori); }
.pedido-vacio { margin-top: 1rem; color: var(--arroz-suave); }
.pedido-cuerpo {
  margin-top: 2rem;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}
.pedido-cuerpo[hidden] { display: none; }
.pedido-lista li {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem;
  padding: .8rem 0; border-bottom: 1px solid var(--nori-claro);
}
.pedido-lista .nombre { font-weight: 700; }
.pedido-lista .nombre small { display: block; font-weight: 400; color: var(--arroz-suave); }
.cantidad { display: flex; align-items: center; gap: .6rem; }
.cantidad button {
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  border: 1px solid var(--arroz-suave); background: none; color: var(--arroz);
  font: 400 1.1rem/1 var(--texto); cursor: pointer;
}
.cantidad button:hover { border-color: var(--arroz); }
.pedido-lista .subtotal { color: var(--gari); font-weight: 700; min-width: 5.5rem; text-align: right; }
.pedido-cierre { display: grid; gap: 1.2rem; justify-items: start; }
.pedido-total { font-size: 1.15rem; }
.pedido-total strong { font-family: var(--display); font-weight: 400; font-size: 1.9rem; margin-left: .6rem; }
.pedido-nota { color: var(--arroz-suave); font-size: .95rem; max-width: 40ch; }
.pedido-modo { border: 0; padding: 0; margin: 0; display: grid; gap: .4rem; }
.pedido-modo legend { font-weight: 700; margin-bottom: .4rem; padding: 0; }
.pedido-modo input { accent-color: var(--rojo); margin-right: .4rem; }
.pedido-comentario { display: grid; gap: .4rem; font-weight: 700; width: 100%; }
.pedido-comentario textarea {
  font: 400 1rem/1.4 var(--texto);
  background: var(--tinta); color: var(--arroz);
  border: 1px solid var(--nori-claro); border-radius: 2px; padding: .7rem .8rem; resize: vertical;
}
.pedido-cierre .btn { border: 0; cursor: pointer; font: 700 1.0625rem/1.55 var(--texto); }
.btn-texto { background: none; border: 0; padding: 0; color: var(--arroz-suave); font: inherit; text-decoration: underline; cursor: pointer; }
.btn-texto:hover { color: var(--arroz); }

.barra-pedido {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 9;
  display: flex; gap: 1.5rem; align-items: center;
  padding: .8rem 1.3rem;
  background: var(--rojo); color: #fff; font-weight: 700; text-decoration: none;
  border-radius: 2px; box-shadow: 0 6px 24px rgba(0, 0, 0, .6);
  white-space: nowrap;
}
.barra-pedido[hidden] { display: none; }
.barra-pedido span:last-child { text-decoration: underline; }

@media (max-width: 800px) {
  .pedido-cuerpo { grid-template-columns: 1fr; }
  .barra-pedido { left: 1rem; right: 1rem; transform: none; justify-content: space-between; }
}
.barra-pedido[data-oculta="true"] { display: none; }

/* ---------- Ajustes de navegación ---------- */
.platos-nota { color: var(--arroz-suave); font-size: .9rem; }
/* el video acompaña mientras se recorre la lista */
@media (min-width: 801px) {
  .clip { position: sticky; top: 5.5rem; align-self: start; }
}
/* promos: tarjetas de borde fino, precio en rojo */
.promos-lista { gap: clamp(1rem, 2vw, 1.75rem); align-items: stretch; }
.promo { border: 1px solid rgba(243, 239, 230, .28); padding: 1.4rem 1.5rem 1.6rem; }
.promo .promo-precio { color: var(--rojo); }
.trazo svg { height: 40px; }

/* ---------- Logo real ---------- */
.marca img { display: block; height: 3.1rem; width: auto; }
.pie .marca img { height: 4rem; }
.barra-sup { padding-block: .5rem; }
.hero h1 { line-height: 0; }
.hero-logo {
  display: block;
  width: clamp(13rem, 27vw, 24rem); height: auto;
  filter: drop-shadow(0 0 14px rgba(255, 45, 74, .55)) drop-shadow(0 0 60px rgba(228, 0, 43, .5));
  animation: encender-logo 1.3s 1.2s steps(1) both;
}
/* el logo se enciende una vez, como un letrero */
@keyframes encender-logo {
  0% { opacity: .12; filter: none; }
  18% { opacity: 1; }
  26% { opacity: .15; filter: none; }
  44% { opacity: 1; }
  52% { opacity: .3; filter: none; }
  66%, 100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }

/* ---------- Cabecera con sello, hero con video ---------- */
.barra-sup .marca { display: flex; align-items: center; gap: .65rem; font-size: 1.1rem; letter-spacing: 0; }
.barra-sup .marca img { height: 2.6rem; }
.barra-sup .marca span { color: inherit; font-size: inherit; }

.hero-video {
  position: absolute; top: 0; right: 0;
  width: 66%; height: 100%;
  object-fit: cover; object-position: 35% 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 48%), linear-gradient(to top, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 48%), linear-gradient(to top, transparent 0%, #000 22%);
  mask-composite: intersect;
}
@media (max-width: 800px) {
  .hero-video {
    width: 100%; opacity: .5;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 45%);
    mask-image: linear-gradient(to top, transparent 0%, #000 45%);
  }
}

/* la nueva tipografía de titulares es más angosta: ajustes de proporción */
h2 { letter-spacing: -.01em; }
.promo-precio, .promo-grande .promo-precio { letter-spacing: -.01em; }

/* ---------- Variantes, promos y datos del pedido ---------- */
.platos .opciones {
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding: .7rem 0 .9rem; justify-content: flex-start;
}
.opciones button {
  border: 1px solid rgba(243, 239, 230, .4); border-radius: 2px;
  background: none; color: var(--arroz);
  font: 500 .95rem/1.3 var(--texto);
  padding: .45rem .7rem; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.opciones button:hover { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.opciones button b { color: var(--gari); font-weight: 700; margin-left: .45rem; }
.opciones button:hover b { color: #fff; }
.promo { display: flex; flex-direction: column; }
.promo .btn { margin-top: auto; align-self: flex-start; background: none; color: var(--arroz); cursor: pointer; font: 700 1rem/1.5 var(--texto); padding: .6rem 1.1rem; }
.promo .btn:hover { background: var(--arroz); color: var(--tinta); }
.promo p:not(.promo-precio):not(.promo-aviso) { margin-bottom: 1.2rem; }
.promo .opciones { padding-top: 0; }
.promo-aviso { margin-top: auto; color: var(--arroz-suave); font-size: .95rem; }
.pedido-campo { display: grid; gap: .4rem; font-weight: 700; width: 100%; }
.pedido-campo[hidden] { display: none; }
.pedido-campo input {
  font: 400 1rem/1.4 var(--texto);
  background: var(--tinta); color: var(--arroz);
  border: 1px solid var(--nori-claro); border-radius: 2px; padding: .7rem .8rem;
}
.pedido-error { color: var(--gari); font-weight: 700; }

/* espacio para que la barra flotante no tape el pie */
.pie { padding-bottom: 5.5rem; }
