/* Yatai Yatoi — demo. Negro laca, rojo bermellón, crema washi y dorado. Asian Pop Tech. */
:root {
  --negro: #0D0909; --negro2: #1A1010; --rojo: #D7191F; --rojo-osc: #9E0F14;
  --crema: #F6EBD6; --crema2: #EBDDC0; --oro: #FFC531; --rosa: #FF4D8D; --tinta: #1A0F0F;
  --titulo: 'Dela Gothic One', 'Noto Sans JP', sans-serif;
  --texto: 'Zen Kaku Gothic New', 'Noto Sans JP', system-ui, sans-serif;
  --kanji: 'Noto Serif JP', serif;
  --alto-barra: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--negro); color: var(--crema); font: 500 17px/1.55 var(--texto); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }

/* ---------- barra ---------- */
.barra { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--alto-barra); background: linear-gradient(#0D0909ee, #0D090900); }
.barra .cont { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 4vw, 48px); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.sello { width: 38px; height: 38px; background: var(--rojo); color: var(--crema); display: grid; place-items: center; font: 900 17px/1 var(--kanji); border-radius: 4px; transform: rotate(-4deg); box-shadow: 0 0 0 2px var(--negro), 0 0 0 3px var(--oro); }
.marca b { font: 400 19px/1 var(--titulo); letter-spacing: .02em; text-transform: uppercase; }
.marca b i { display: block; font-style: normal; color: var(--oro); }
.barra nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 30px); font-weight: 700; font-size: 15px; }
.barra nav a { text-decoration: none; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.barra nav a:hover { opacity: 1; color: var(--oro); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 999px; background: var(--rojo); color: var(--crema); font: 700 15px var(--texto); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 2px solid var(--rojo); transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--oro); border-color: var(--oro); color: var(--negro); transform: translateY(-2px); }
.btn.borde { background: transparent; border-color: var(--crema); }
.barra .btn { min-height: 40px; padding: 0 18px; opacity: 1; }
@media (max-width: 720px) { .barra nav a:not(.btn) { display: none; } .marca b { font-size: 16px; } }

/* ---------- ramen que se arma con el scroll ---------- */
.ramen { position: relative; height: 760vh; background: radial-gradient(ellipse at 50% 45%, #2a0f10 0%, var(--negro) 62%); }
.escena { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.titulo-fondo { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; will-change: transform, opacity; }
.titulo-fondo h1 { margin: 0; font: 400 clamp(64px, 17vw, 250px)/.86 var(--titulo); text-transform: uppercase; letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 2px var(--rojo); }
.titulo-fondo h1 span { display: block; color: var(--rojo); -webkit-text-stroke: 0; }
.titulo-fondo p { margin: 20px 0 0; font: 700 clamp(13px, 1.6vw, 20px) var(--texto); letter-spacing: .5em; text-transform: uppercase; color: var(--oro); }
.titulo-fondo .kj { font: 900 clamp(18px, 3vw, 34px) var(--kanji); letter-spacing: .4em; color: var(--crema); margin-top: 6px; }
.bowl-caja { position: absolute; left: 50%; top: 50%; width: min(78vh, 62vw); aspect-ratio: 1; transform: translate(-50%, -50%); }
.bowl-caja svg { width: 100%; height: 100%; overflow: visible; }
.bowl-caja g[id] { transform-box: fill-box; transform-origin: center; will-change: transform, opacity; }

.nota { position: absolute; width: min(300px, 24vw); opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; pointer-events: none; }
.nota.on { opacity: 1; transform: none; }
.nota .num { font: 400 16px var(--titulo); color: var(--oro); letter-spacing: .1em; }
.nota .kj { display: block; font: 900 clamp(46px, 6vw, 84px)/1 var(--kanji); color: var(--rojo); margin: 2px 0 4px; text-shadow: 0 0 22px #d7191f55; }
.nota h3 { margin: 0 0 6px; font: 400 clamp(19px, 1.9vw, 26px)/1.1 var(--titulo); text-transform: uppercase; }
.nota p { margin: 0; font-size: clamp(14px, 1.15vw, 16.5px); color: #e9dcc2; }
.nota::after { content: ''; position: absolute; top: 38px; height: 2px; width: clamp(40px, 6vw, 110px); background: linear-gradient(90deg, var(--oro), transparent); }
.nota.izq { left: clamp(20px, 4vw, 72px); text-align: left; }
.nota.izq::after { left: 100%; margin-left: 14px; }
.nota.der { right: clamp(20px, 4vw, 72px); text-align: right; }
.nota.der::after { right: 100%; margin-right: 14px; background: linear-gradient(270deg, var(--oro), transparent); }
.nota.f1 { top: 11%; } .nota.f2 { top: 35%; } .nota.f3 { top: 59%; }

.cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font: 700 12px var(--texto); letter-spacing: .35em; text-transform: uppercase; color: var(--crema); transition: opacity .4s; }
.cue i { width: 2px; height: 38px; background: linear-gradient(var(--oro), transparent); animation: baja 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes baja { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.final { position: absolute; left: 0; right: 0; bottom: clamp(18px, 5vh, 56px); text-align: center; opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; pointer-events: none; }
.final.on { opacity: 1; transform: none; pointer-events: auto; }
.final h2 { margin: 0 0 14px; font: 400 clamp(24px, 3.2vw, 46px)/1.05 var(--titulo); text-transform: uppercase; text-shadow: 0 4px 30px #000; }
.final h2 em { font-style: normal; color: var(--oro); }
.final .btn { margin: 0 6px; }

@media (max-width: 860px) {
  .bowl-caja { top: 40%; width: min(92vw, 52vh); }
  .nota { width: auto; left: 20px; right: 20px; top: auto; bottom: 7%; text-align: left; }
  .nota.izq, .nota.der { left: 20px; right: 20px; text-align: left; }
  .nota.f1, .nota.f2, .nota.f3 { top: auto; }
  .nota::after { display: none; }
  .nota { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; }
  .nota .num { grid-column: 1 / -1; }
  .nota .kj { grid-row: 2 / 4; margin: 0; font-size: 64px; }
  .nota h3, .nota p { grid-column: 2; }
  .final { bottom: 6%; }
  .titulo-fondo h1 { -webkit-text-stroke-width: 1.5px; }
}

/* ---------- banda de kanji ---------- */
.banda { background: var(--rojo); color: var(--crema); overflow: hidden; border-block: 3px solid var(--negro); transform: rotate(-1.2deg); margin: -10px -2vw; position: relative; z-index: 3; }
.banda div { display: flex; width: max-content; animation: corre 32s linear infinite; }
.banda span { padding: 14px 26px; font: 400 clamp(20px, 3vw, 34px) var(--titulo); text-transform: uppercase; white-space: nowrap; }
.banda span:nth-child(even) { font-family: var(--kanji); font-weight: 900; color: var(--oro); }
@keyframes corre { to { transform: translateX(-50%); } }

/* ---------- secciones ---------- */
.sec { padding: clamp(70px, 10vw, 140px) clamp(20px, 6vw, 80px); }
.sec .in { max-width: 1120px; margin: 0 auto; }
.sec h2 { margin: 0 0 18px; font: 400 clamp(34px, 6vw, 80px)/.95 var(--titulo); text-transform: uppercase; }
.etq { display: block; margin-bottom: 14px; font: 700 13px var(--texto); letter-spacing: .4em; text-transform: uppercase; color: var(--rojo); }
.papel { background-color: var(--crema); color: var(--tinta); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 56 28'%3E%3Cg fill='none' stroke='%23D7191F' stroke-opacity='.16' stroke-width='1.4'%3E%3Ccircle cx='28' cy='28' r='26'/%3E%3Ccircle cx='28' cy='28' r='19'/%3E%3Ccircle cx='28' cy='28' r='12'/%3E%3Ccircle cx='0' cy='14' r='26'/%3E%3Ccircle cx='0' cy='14' r='19'/%3E%3Ccircle cx='0' cy='14' r='12'/%3E%3Ccircle cx='56' cy='14' r='26'/%3E%3Ccircle cx='56' cy='14' r='19'/%3E%3Ccircle cx='56' cy='14' r='12'/%3E%3C/g%3E%3C/svg%3E"); }
.casas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 40px); margin-top: 36px; }
.casa { position: relative; padding: 34px 30px 30px; background: var(--negro); color: var(--crema); border-radius: 6px; overflow: hidden; }
.casa::before { content: attr(data-kj); position: absolute; right: -6px; top: -18px; font: 900 150px/1 var(--kanji); color: var(--rojo); opacity: .35; }
.casa h3 { position: relative; margin: 0 0 6px; font: 400 clamp(24px, 3vw, 34px)/1.05 var(--titulo); text-transform: uppercase; }
.casa p { position: relative; margin: 0; color: #e9dcc2; }
.casa .tag { position: relative; display: inline-block; margin-top: 16px; padding: 4px 12px; border: 1px solid var(--oro); border-radius: 999px; color: var(--oro); font: 700 12px var(--texto); letter-spacing: .15em; text-transform: uppercase; }
@media (max-width: 760px) { .casas { grid-template-columns: 1fr; } }

.karaoke { background: var(--negro2); overflow: hidden; position: relative; }
.karaoke .in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.karaoke .etq { color: var(--oro); }
.karaoke p { color: #e9dcc2; max-width: 52ch; }
.premios { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.premios li { padding: 8px 16px; border-radius: 999px; background: var(--rojo); font: 700 14px var(--texto); letter-spacing: .08em; text-transform: uppercase; }
.premios li:nth-child(2n) { background: var(--oro); color: var(--negro); }
.dado { justify-self: center; width: min(280px, 60vw); aspect-ratio: 1; display: grid; place-items: center; background: linear-gradient(145deg, #ff3a41, var(--rojo-osc)); border-radius: 22%; font: 900 min(150px, 30vw)/1 var(--kanji); color: var(--crema); transform: rotate(-9deg); box-shadow: 0 0 0 6px var(--negro2), 0 0 0 9px var(--oro), 0 30px 80px #d7191f66; animation: flota 5s ease-in-out infinite; }
@keyframes flota { 50% { transform: rotate(7deg) translateY(-14px); } }
@media (max-width: 760px) { .karaoke .in { grid-template-columns: 1fr; } }

.pie { padding: 38px clamp(20px, 6vw, 80px) 46px; background: var(--negro); border-top: 3px solid var(--rojo); }
.pie .in { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.pie small { color: #b7a98e; }
.pie a { text-decoration: none; font-weight: 700; letter-spacing: .08em; }
.pie a:hover { color: var(--oro); }

/* ---------- ubicación estándar ---------- */
.ub { --ub-franja: var(--negro2); --ub-panel: var(--rojo-osc); --ub-acento: var(--oro); --ub-pin: var(--oro); --ub-titulo: 'Dela Gothic One', sans-serif; --ub-texto: 'Zen Kaku Gothic New', sans-serif; }

/* ---------- carta ---------- */
.pagina-carta { background: var(--crema); color: var(--tinta); }
.pagina-carta .barra { background: var(--negro); position: sticky; }
.cab-carta { position: relative; background: var(--negro); padding: clamp(40px, 7vw, 90px) clamp(20px, 6vw, 80px) clamp(36px, 5vw, 64px); overflow: hidden; border-bottom: 4px solid var(--rojo); }
.cab-carta::after { content: '品書'; position: absolute; right: 3vw; top: 50%; transform: translateY(-50%); font: 900 clamp(110px, 24vw, 330px)/1 var(--kanji); color: var(--rojo); opacity: .28; pointer-events: none; }
.cab-carta h1 { position: relative; margin: 0 0 8px; font: 400 clamp(46px, 9vw, 120px)/.9 var(--titulo); text-transform: uppercase; color: var(--crema); }
.cab-carta p { position: relative; margin: 0; max-width: 56ch; color: #e9dcc2; }
.cab-carta .etq { position: relative; color: var(--oro); }
.carta-pagina { padding: 10px 0 70px; }
.nota-carta { max-width: 900px; margin: 10px auto 0; padding: 0 20px; text-align: center; color: #6a5a48; font-size: 14px; }
.pagina-carta .ce { --ce-fondo: var(--crema); --ce-tarjeta: #FFF9EC; --ce-suave-fondo: var(--crema2); --ce-tinta: var(--tinta); --ce-suave: #5e4b3a; --ce-linea: #dcc9a3; --ce-acento: var(--rojo); --ce-sobre-acento: #fff; --ce-cab: #EBD3A6; --ce-radio: 6px; --ce-titulo: 'Dela Gothic One', sans-serif; --ce-texto: 'Zen Kaku Gothic New', system-ui, sans-serif; --ce-offset: 70px; }

@media (prefers-reduced-motion: reduce) {
  .banda div, .dado, .cue i { animation: none; }
  html { scroll-behavior: auto; }
}
.barra.solida { background: var(--negro); box-shadow: 0 2px 0 var(--rojo); }
.pagina-carta .barra { color: var(--crema); }
