/* NOD — landing estática (nod.com.ar). La app Flutter vive en /app/. */

:root {
  --navy: #02265B;      /* fondo del ícono de la app */
  --ink: #0B1F44;       /* texto principal */
  --muted: #55688A;     /* texto secundario */
  --blue: #0A6CF0;      /* "N" del logo */
  --cyan: #12C6E6;      /* nodo del logo */
  --paper: #F3F7FC;     /* fondo general */
  --line: #D5E0EE;
  --white: #FFFFFF;
  --wa: #128C4A;

  --display: "Red Hat Display", system-ui, sans-serif;
  --text: "Red Hat Text", system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, monospace;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border-radius: 12px; border: 2px solid transparent;
  font: 600 1rem/1 var(--text); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--solid { background: var(--blue); color: var(--white); }
.btn--solid:hover { background: #0558C7; }
.btn--line { border-color: var(--line); color: var(--ink); background: var(--white); min-height: 40px; padding: 0 16px; }
.btn--line:hover { border-color: var(--blue); color: var(--blue); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: #E3F6FB; }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: #0E733C; }
.btn--full { width: 100%; }

/* ---------- Barra superior ---------- */
.top { background: var(--paper); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.top__logo img { width: 104px; }
.top__nav { display: flex; align-items: center; gap: 22px; }
.top__nav > a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.top__nav > a:not(.btn):hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(24px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.hero__in {
  display: grid; gap: clamp(40px, 6vw, 80px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.025em;
  max-width: 17ch;
}
.lead { margin-top: 22px; font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.hero__facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.hero__facts li { position: relative; padding-left: 26px; max-width: 48ch; }
.hero__facts li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 4px rgba(18, 198, 230, .18);
}

/* Ticket de 80 mm: el mismo formato que los comprobantes de la app */
.hero__ticket { justify-self: center; width: min(100%, 360px); }
.slot {
  height: 14px; margin: 0 -14px; border-radius: 8px;
  background: var(--navy);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35);
  position: relative; z-index: 2;
}
.ticket {
  --diente: 9px;
  position: relative; z-index: 1;
  margin-top: -5px;
  background: var(--white);
  padding: 26px 26px 34px;
  font-family: var(--mono);
  filter: drop-shadow(0 18px 30px rgba(2, 38, 91, .14));
  /* borde inferior dentado (papel cortado) */
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--diente)) no-repeat,
    radial-gradient(circle at 50% 100%, transparent calc(var(--diente) - .5px), #000 var(--diente)) bottom / calc(var(--diente) * 2) var(--diente) repeat-x;
          mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--diente)) no-repeat,
    radial-gradient(circle at 50% 100%, transparent calc(var(--diente) - .5px), #000 var(--diente)) bottom / calc(var(--diente) * 2) var(--diente) repeat-x;
  animation: imprimir 1.1s cubic-bezier(.2, .7, .2, 1) .25s both;
}
@keyframes imprimir {
  from { clip-path: inset(0 0 100% 0); transform: translateY(-40px); }
  to   { clip-path: inset(0 0 0 0);    transform: translateY(0); }
}
.ticket__head { display: flex; align-items: center; gap: 10px; font: 700 1.05rem/1.2 var(--display); color: var(--navy); }
.ticket__rule { border-top: 2px dashed var(--line); margin: 18px 0; }
.ticket__label { display: block; font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.ticket__input {
  width: 100%; height: 64px;
  border: 2px solid var(--line); border-radius: 10px;
  background: var(--paper);
  font: 600 1.9rem/1 var(--mono); letter-spacing: .28em; text-align: center;
  color: var(--ink); text-transform: uppercase;
  padding: 0 0 0 .28em;
}
.ticket__input::placeholder { color: #B6C4D8; }
.ticket__input:focus { outline: none; border-color: var(--blue); background: var(--white); }
.ticket__input[aria-invalid="true"] { border-color: #C62F3B; }
.ticket__error { color: #B3202C; font: 500 .9rem/1.4 var(--text); margin-top: 8px; }
.ticket .btn { margin-top: 16px; }
.ticket__help { margin-top: 14px; font: 400 .92rem/1.5 var(--text); color: var(--muted); }
.ticket__back { font: 500 .92rem/1.4 var(--text); }
/* Tarea 77: Google en el formulario */
.ticket__aviso { color: var(--navy); background: #E8F1FE; border-radius: 10px; padding: 10px 12px; font: 500 .92rem/1.4 var(--text); margin-bottom: 14px; }
.ticket__elegir { display: grid; gap: 8px; margin-bottom: 14px; }
.ticket .ticket__opcion { margin-top: 0; text-align: left; white-space: normal; }
.ticket__google { margin-top: 14px; }
.ticket__o { display: flex; align-items: center; gap: 10px; color: #9AAAC2; font-size: .85rem; margin-bottom: 12px; }
.ticket__o::before, .ticket__o::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
#google-boton { display: flex; justify-content: center; min-height: 44px; }
[hidden] { display: none !important; }
.ticket__foot { margin-top: 18px; text-align: center; font-size: .8rem; color: #9AAAC2; letter-spacing: .08em; }

/* ---------- Cómo pedir ---------- */
.steps { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(56px, 8vw, 104px) 0; }
.steps__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 7vw, 96px); align-items: center; }
.steps h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }

/* Pasos unidos por una línea con nodos, como el símbolo del logo */
.nodes { list-style: none; counter-reset: paso; padding: 0; margin: 36px 0 0; position: relative; }
.nodes::before {
  content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 4px;
  background: linear-gradient(var(--blue), var(--cyan)); border-radius: 2px;
}
.nodes li { counter-increment: paso; position: relative; padding: 0 0 34px 66px; }
.nodes li:last-child { padding-bottom: 0; }
.nodes li::before {
  content: counter(paso);
  position: absolute; left: 0; top: -2px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--navy);
  border: 4px solid var(--blue);
  font: 800 1.05rem/1 var(--display);
}
.nodes li:nth-child(2)::before { border-color: #0E98EB; }
.nodes li:last-child::before { border-color: var(--cyan); }
.nodes h3 { font-size: 1.25rem; font-weight: 700; padding-top: 6px; }
.nodes p { margin-top: 6px; color: var(--muted); max-width: 44ch; }

/* Ilustración del celular */
.phone {
  margin: 0; width: 290px; padding: 12px;
  background: var(--navy); border-radius: 40px;
  box-shadow: 0 30px 60px rgba(2, 38, 91, .22);
}
.phone__screen {
  background: var(--paper); border-radius: 30px; overflow: hidden;
  font-family: var(--text); font-size: .8rem; color: var(--ink);
  height: 540px; display: flex; flex-direction: column;
}
.app-bar { flex: none; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: var(--white); padding: 34px 16px 14px; }
.app-bar__name { display: block; font: 700 1rem/1.2 var(--display); }
.app-bar__search { display: block; margin-top: 12px; background: rgba(255, 255, 255, .94); color: #8A9AB4; border-radius: 10px; padding: 8px 12px; }
.chips { flex: none; display: flex; gap: 6px; padding: 12px 12px 4px; overflow: hidden; }
.chips span { flex: none; padding: 5px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--muted); }
.chips .on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.prods { list-style: none; margin: 0; padding: 8px 12px; display: grid; gap: 8px; flex: 1; }
.prods li {
  display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: auto auto;
  column-gap: 10px; align-items: center;
  background: var(--white); border-radius: 12px; padding: 8px;
}
.prods i { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 9px; }
.prods .p1 { background: #DDF3E4; } .prods .p2 { background: #FFF1C7; }
.prods .p3 { background: #FDE2D5; } .prods .p4 { background: #DCEBFF; }
.prods b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prods em { font-style: normal; color: var(--muted); grid-column: 2; }
.prods .qty, .prods .add {
  grid-column: 3; grid-row: 1 / 3;
  min-width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 700;
}
.prods .qty { background: var(--blue); color: var(--white); }
.prods .add { border: 2px solid var(--line); color: var(--blue); }
.cart {
  margin: 0 12px 14px; padding: 12px 14px; border-radius: 14px;
  background: var(--navy); color: var(--white);
  display: grid; grid-template-columns: 1fr auto; row-gap: 2px;
}
.cart strong { font: 800 1rem/1.2 var(--display); grid-row: 2; }
.cart__go { grid-column: 2; grid-row: 1 / 3; align-self: center; background: var(--cyan); color: var(--navy); font-weight: 700; padding: 7px 12px; border-radius: 9px; }

/* ---------- Distribuidoras ---------- */
.staff { background: var(--navy); color: var(--white); padding: clamp(48px, 7vw, 80px) 0; }
.staff__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.staff h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.staff p { margin-top: 12px; color: #B9CCEA; max-width: 58ch; }

/* ---------- Contacto ---------- */
.contact { padding: clamp(56px, 8vw, 96px) 0; }
.contact__in > * { max-width: 720px; }
.contact h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.contact p { margin: 12px 0 26px; color: var(--muted); max-width: 56ch; }

/* ---------- Pie ---------- */
.foot { border-top: 1px solid var(--line); padding: 26px 0 32px; color: var(--muted); font-size: .92rem; }
.foot__in { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot__in p { flex: 1 1 260px; }
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__in, .steps__in { grid-template-columns: 1fr; }
  .phone { justify-self: center; }
  .staff__in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .top__nav > a:not(.btn) { display: none; }
  .top__logo img { width: 88px; }
  .hero h1 { max-width: none; }
  .phone { width: 260px; }
  .phone__screen { height: auto; }
  .slot { margin: 0 -6px; }
  .btn--light, .btn--wa { width: 100%; }
}

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