/* ==========================================================================
   Once Pho & Ramen - Direccion C "Noren tickets"
   Paleta: kraft #D9C7A7 / charcoal #2B2825 / vermilion #D64B33
   Sistema de forma: todo esquina viva (radius 0); solo los agujeros
   perforados son circulos. Un solo acento: vermilion (tonos profundos
   para contraste AA en texto grande y elementos de interfaz).
   ========================================================================== */

:root {
  --kraft: #D9C7A7;
  --paper: #F1E7D0;
  --ink: #2B2825;
  --ink-soft: rgba(43, 40, 37, 0.78);
  --ink-faint: rgba(43, 40, 37, 0.35);
  --verm: #D64B33;
  --verm-deep: #B23A26;
  --verm-tint: #E8A08F;
  --star-empty: #6E6350;
  --edge: 1.5px solid var(--ink);
  --shadow-hard: 6px 6px 0 rgba(43, 40, 37, 0.16);
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--kraft);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, "Courier New", monospace;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  margin: 0;
}

p, ul, figure, address { margin: 0; }

a { color: inherit; }

::selection { background: var(--ink); color: var(--kraft); }

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Accesibilidad ---------- */

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 90;
  background: var(--ink);
  color: var(--kraft);
  padding: 10px 16px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip:focus { top: 12px; }

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--verm-deep);
  outline-offset: 3px;
}
.foot a:focus-visible { outline-color: var(--kraft); }

/* ---------- Barra superior ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--kraft);
  border-bottom: var(--edge);
}

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
}

.wordmark {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.codes {
  display: flex;
  align-items: center;
  gap: 18px;
}

.codes a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.codes a:hover .code {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--verm-deep);
}

.codes .code { font-weight: 600; }
.codes .lbl { margin-left: 5px; }

@media (max-width: 559px) {
  .codes .lbl { display: none; }
  .codes { gap: 14px; }
}

/* ---------- Hero: el ticket de entrada ---------- */

.hero { padding-block: 14px 8px; }

.hero-ticket {
  position: relative;
  background: var(--paper);
  border: var(--edge);
  box-shadow: var(--shadow-hard);
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.hero-ticket::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  border: var(--edge);
  transform: rotate(0.9deg);
}

.hero-media {
  height: min(16svh, 170px);
  min-height: 112px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-body {
  padding: 13px 18px 16px;
}

.hero-body h1 {
  font-weight: 700;
  font-size: clamp(1.9rem, 8.4vw, 2.4rem);
  line-height: 1.04;
  letter-spacing: 0.015em;
}

.promise {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 46ch;
}

/* Linea de perforacion horizontal (movil) y vertical (escritorio) */

.perf { position: relative; }

.perf i {
  display: block;
  border-top: 2px dashed var(--ink-faint);
}

.perf::before,
.perf::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%; /* agujeros perforados: unica excepcion al radius 0 */
  background: var(--kraft);
  border: var(--edge);
  box-shadow: inset 0 2px 3px rgba(43, 40, 37, 0.25);
}
.perf::before { left: -11px; }
.perf::after { right: -11px; }

.perf-v { display: none; }

/* Boton */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 26px;
  background: var(--verm);
  color: var(--ink);
  border: var(--edge);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translate(-1px, -2px); box-shadow: 6px 7px 0 var(--ink); }
.btn:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--ink); }

.btn-ink {
  background: var(--ink);
  color: var(--kraft);
  box-shadow: 4px 4px 0 var(--verm-deep);
}
.btn-ink:hover { box-shadow: 6px 7px 0 var(--verm-deep); }
.btn-ink:active { box-shadow: 0 0 0 var(--verm-deep); }

.btn svg { flex: none; }

/* Pantallas de celular bajas: el hero completo sigue cabiendo en ~45svh */
@media (max-width: 1023px) and (max-height: 740px) {
  .hero-media { height: 15svh; min-height: 118px; }
  .hero-body { padding: 14px 20px 18px; }
  .btn { margin-top: 14px; padding: 11px 22px; font-size: 1.15rem; }
}

/* Hero en escritorio: texto a la izquierda, foto-ticket a la derecha */
@media (min-width: 1024px) {
  .hero { padding-block: 22px 12px; }

  .hero-ticket {
    grid-template-columns: 46% 54%;
    grid-template-rows: 1fr;
    min-height: min(40svh, 380px);
  }

  .hero-media {
    grid-column: 2;
    grid-row: 1;
    height: auto;
    min-height: 0;
    max-height: 40svh;
  }

  .perf-h { display: none; }

  .perf-v {
    display: block;
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 46%;
    z-index: 1;
  }
  .perf-v i {
    height: 100%;
    border-top: 0;
    border-left: 2px dashed var(--ink-faint);
  }
  .perf-v::before,
  .perf-v::after {
    top: auto;
    left: -11px;
  }
  .perf-v::before { top: -11px; }
  .perf-v::after { top: auto; bottom: -11px; }

  .hero-body {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    padding: 24px 40px;
  }

  .hero-body h1 {
    font-size: clamp(2.6rem, 4vw, 3.3rem);
    max-width: 10ch;
  }

  .promise { font-size: 0.98rem; margin-top: 16px; }
}

/* ---------- Cortinas noren (encabezados de seccion) ---------- */

.noren {
  display: inline-block;
  padding: 9px 26px 11px 20px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(217, 199, 167, 0.16) 0 1.5px,
      transparent 1.5px 13px
    ),
    linear-gradient(105deg, var(--ink) 0%, var(--ink) 56%, var(--verm-deep) 82%, var(--verm) 100%);
  color: var(--paper);
  box-shadow: 4px 4px 0 rgba(43, 40, 37, 0.14);
}

.noren h2 {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
}

.noren-num {
  color: var(--verm-tint);
  margin-right: 6px;
}

/* ---------- Carta: tickets de recibo ---------- */

.carta { padding-block: 64px 10px; }

.carta-intro {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.stub-grid {
  display: grid;
  gap: 40px;
  margin-top: 44px;
  padding-bottom: 20px;
}

.stub {
  position: relative;
  background: var(--paper);
  border: var(--edge);
  box-shadow: var(--shadow-hard);
  scroll-margin-top: 72px;
}

.stub-media img { width: 100%; height: auto; }

.noren-mini {
  position: absolute;
  top: -17px;
  left: 16px;
  z-index: 2;
  padding: 6px 18px 8px 14px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(217, 199, 167, 0.16) 0 1.5px,
      transparent 1.5px 12px
    ),
    linear-gradient(105deg, var(--ink) 0%, var(--ink) 52%, var(--verm-deep) 80%, var(--verm) 100%);
  color: var(--paper);
  box-shadow: 3px 3px 0 rgba(43, 40, 37, 0.18);
}

.noren-mini h3 {
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.1em;
}

.noren-mini h3 span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--verm-tint);
  margin-right: 8px;
  vertical-align: 2px;
}

.stub-tag {
  padding: 30px 18px 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Lineas de recibo */
.rip {
  list-style: none;
  padding: 6px 18px 4px;
}

.rip li {
  padding: 11px 0 10px;
  border-bottom: 2px dashed rgba(43, 40, 37, 0.22);
}
.rip li:last-child { border-bottom: 0; }

.rip b {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rip span {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.stub-quote {
  margin: 6px 18px 20px;
  padding: 10px 14px;
  border-left: 3px solid var(--verm-deep);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.55;
}

.stub .rip { padding-top: 26px; }
.stub--flat .rip { padding-top: 14px; }

/* Escritorio: pila de tickets descentrada (no una fila de tarjetas iguales) */
@media (min-width: 1024px) {
  .carta { padding-block: 84px 10px; }

  .stub-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    margin-top: 52px;
    align-items: start;
  }

  .stub:nth-child(1) { transform: rotate(-0.7deg); }
  .stub:nth-child(2) { transform: rotate(0.55deg) translateY(30px); }
  .stub:nth-child(3) { transform: rotate(-0.4deg) translateY(10px); }

  .stub-tag { padding-top: 34px; }
  .stub .rip { padding-top: 18px; }
  .stub--flat .rip { padding-top: 10px; }
}

/* ---------- El local ---------- */

.local { padding-block: 72px 10px; }

.local-ticket {
  background: var(--paper);
  border: var(--edge);
  box-shadow: var(--shadow-hard);
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr;
}

.local-media img {
  width: 100%;
  height: auto;
}

.local-media figcaption {
  padding: 9px 16px;
  border-top: 2px dashed rgba(43, 40, 37, 0.22);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.local-copy {
  padding: 22px 24px 28px;
}

.local-copy p {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 52ch;
}

@media (min-width: 820px) {
  .local { padding-block: 88px 10px; }

  .local-ticket {
    grid-template-columns: 1.35fr 1fr;
    margin-top: 42px;
  }

  .local-media {
    display: grid;
    grid-template-rows: 1fr auto;
  }

  .local-media img {
    height: 100%;
    min-height: 360px;
    object-fit: cover;
  }

  .local-copy {
    align-self: center;
    padding: 34px 36px;
  }
}

/* ---------- Visitanos ---------- */

.visita { padding-block: 72px 0; }

.visita-grid {
  margin-top: 34px;
  display: grid;
  gap: 36px;
}

.address {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  max-width: 16ch;
}

.nivel {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.visita-info .btn { margin-top: 8px; }

.badges {
  display: grid;
  gap: 14px;
  align-content: start;
}

.badge {
  background: var(--paper);
  border: var(--edge);
  padding: 16px 18px;
  box-shadow: 4px 4px 0 rgba(43, 40, 37, 0.12);
}

.badge .stars { display: block; }

.badge-txt {
  margin-top: 9px;
  font-size: 0.92rem;
  font-weight: 500;
}

@media (min-width: 900px) {
  .visita { padding-block: 88px 0; }

  .visita-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 42px;
  }

  .badges { max-width: 420px; }
}

/* ---------- Pie ---------- */

.foot {
  margin-top: 88px;
  background: var(--ink);
  color: var(--kraft);
  border-top: 5px solid var(--verm);
  padding: 42px 0 30px;
}

.f-word {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.f-addr {
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(217, 199, 167, 0.82);
}

.f-colofon {
  margin-top: 22px;
  font-size: 0.8rem;
  line-height: 1.75;
  max-width: 72ch;
}

.foot a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--verm);
}
.foot a:hover { text-decoration-color: var(--kraft); }

.f-disclosure {
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Aparicion al hacer scroll (se desactiva sin JS o con motion reducido) ---------- */

.js .rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .rv.in {
  opacity: 1;
  transform: none;
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .skip { transition: none; }
}
