/* Qué Ricoo · landing. Póster callejero: campos planos con los colores de la app
   (coral del cliente, verde azulado del negocio), una sola letra muy gruesa y
   los platos servidos en círculo, como el plato de la Q. Móvil primero. */
:root {
  --coral: #ff6766;
  --teal: #2a9d8f;
  --yellow: #ffd23f;
  --ink: #141414;
  --white: #ffffff;
  --soft: #f4f1ee;
  --m: clamp(16px, 2.2vw, 32px);
  --gap: clamp(80px, 11vw, 160px);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-display: clamp(52px, 14vw, 128px);
  --t-head: clamp(40px, 8.4vw, 88px);
  --t-lead: clamp(20px, 2vw, 24px);
  --t-body: 18px;
  --t-small: 15px;
  /* Emil Kowalski — entradas / UI */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease: var(--ease-out);
  --dur-press: 140ms;
  --dur-ui: 220ms;
  --dur-reveal: 520ms;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 var(--t-body)/1.5 var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--yellow); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, p, figure, ol, ul, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-weight: 900; letter-spacing: -.03em; line-height: .92; text-wrap: balance; }
h2 { font-size: var(--t-head); }
p { text-wrap: pretty; max-width: 72ch; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
section { scroll-margin-top: 16px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 28px; border-radius: 999px; border: 0;
  font: 700 18px/1 var(--font); text-decoration: none; cursor: pointer;
  transition:
    transform var(--dur-press) var(--ease-out),
    background-color var(--dur-ui) ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-coral { background: var(--coral); color: var(--ink); }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.no-apk .btn svg { display: none; }
.text-link {
  font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px;
  transition: opacity var(--dur-ui) ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-ink:hover { background: #000; }
  .btn-coral:hover { background: #ff7d7c; }
  .text-link:hover { opacity: .7; }
  .nav-cta:hover { transform: translateY(-2px); }
  .nav-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
  .foot-links a:hover { text-decoration: underline; }
  .plate.p1:hover { transform: scale(1.04) rotate(-6deg); }
  .plate.p2:hover { transform: scale(1.04) rotate(5deg); }
  .plate.p3:hover { transform: scale(1.04) rotate(-3deg); }
  .pay-row li:hover { transform: scale(1.02); z-index: 1; }
}

/* ---------- portada ---------- */
/* Móvil: TODO el primer viewport (nav + video + título + CTA) cabe en 100svh */
.hero {
  background: var(--coral); color: var(--ink);
  height: 100svh;
  max-height: 100svh;
  padding: 0 var(--m) max(12px, var(--safe-b));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  overflow: hidden;
  box-sizing: border-box;
}
.nav { display: flex; align-items: center; gap: 24px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: none; }
.nav-cta {
  margin-left: auto; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--white);
  transition: transform var(--dur-press) var(--ease-out);
}
.hero-media {
  justify-self: stretch;
  align-self: stretch;
  width: calc(100% + 2 * var(--m));
  margin: 0 calc(var(--m) * -1);
  min-height: 0;
  background:
    center / cover no-repeat url("/video/hero-carousel-poster.webp?v=5"),
    var(--coral);
  overflow: hidden;
  line-height: 0;
}
.hero-media.is-poster .hero-carousel { display: none; }
.hero-carousel {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  pointer-events: none;
  background: transparent;
}
.hero-copy { padding-bottom: 4px; }
.hero h1 { font-size: clamp(40px, 11.5vw, 56px); line-height: .9; }
.lede {
  margin-top: 8px;
  font-size: clamp(15px, 3.8vw, 17px);
  line-height: 1.32;
  max-width: 36ch;
}
.hero .btn { margin-top: 12px; width: 100%; padding: 14px 18px; font-size: 16px; }
.hero-note { margin-top: 6px; font-size: 13px; color: rgba(20, 20, 20, .78); }

.js .hero-enter {
  opacity: 0;
  transform: translateY(18px) scale(0.97);
}
.js.ready .hero-enter {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
}
.js.ready .hero-media.hero-enter { transition-delay: 80ms; }
.js.ready .hero-copy .hero-enter:nth-child(1) { transition-delay: 140ms; }
.js.ready .hero-copy .hero-enter:nth-child(2) { transition-delay: 200ms; }
.js.ready .hero-copy .hero-enter:nth-child(3) { transition-delay: 260ms; }
.js.ready .hero-copy .hero-enter:nth-child(4) { transition-delay: 320ms; }

/* ---------- la franja que grita ---------- */
.shout { background: var(--ink); color: var(--white); overflow: hidden; padding: 18px 0; }
.shout-track { display: flex; width: max-content; animation: shout 28s linear infinite; }
.shout span { font-weight: 900; font-size: clamp(28px, 4vw, 48px); letter-spacing: -.02em; padding-right: .9em; white-space: nowrap; }
.shout span:nth-child(7n+1) { color: var(--yellow); }
@keyframes shout { to { transform: translateX(-50%); } }

/* ---------- el pedido en vivo ---------- */
.track { padding: var(--gap) var(--m); display: grid; gap: 40px; }
.track-copy p { margin-top: 24px; max-width: 46ch; }
.track-photo { margin-top: 32px; }
.track-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.order {
  background: var(--soft); border-radius: 28px; padding: 22px;
  display: grid; gap: 22px; align-self: start;
}
.order-head { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; }
.order-head img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
.order-head strong { display: block; font-size: 18px; }
.order-head span { display: block; font-size: var(--t-small); color: #4a4a4a; line-height: 1.35; }
.order-total { font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-steps { display: grid; gap: 4px; }
.order-steps li {
  position: relative; padding: 10px 0 10px 40px; font-size: 18px; color: #6b6661;
  transition: color var(--dur-ui) ease;
}
.order-steps li::before {
  content: ""; position: absolute; left: 6px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%; background: #d9d3cd;
  transition:
    background-color var(--dur-ui) ease,
    transform var(--dur-ui) var(--ease-out);
}
.order-steps li.is-done { color: var(--ink); }
.order-steps li.is-done::before { background: var(--teal); }
.order-steps li.is-now { color: var(--ink); font-weight: 700; }
.order-steps li.is-now::before { background: var(--coral); transform: scale(1.28); }
.order-eta {
  transition: opacity var(--dur-ui) var(--ease-out);
}
.order-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.order-eta { font-weight: 700; }

/* ---------- hay de todo ---------- */
.menu { background: var(--yellow); padding: var(--gap) var(--m); }
.menu-body { display: grid; gap: 40px; margin-top: 40px; }
.menu-list li { font-weight: 900; font-size: clamp(34px, 6vw, 72px); line-height: 1.08; letter-spacing: -.03em; }
.plates { position: relative; height: 300px; order: -1; }
.plate {
  position: absolute; border-radius: 50%; object-fit: cover; aspect-ratio: 1;
  box-shadow: 0 18px 36px -18px rgba(20, 20, 20, .4);
  transition: transform var(--dur-ui) var(--ease-out);
}
.plate.p1 { width: 58%; left: 0; top: 0; transform: rotate(-6deg); }
.plate.p2 { width: 46%; right: 0; top: 18px; transform: rotate(5deg); }
.plate.p3 { width: 38%; left: 38%; bottom: 0; transform: rotate(-3deg); }
.menu-note { margin-top: 40px; max-width: 46ch; font-size: var(--t-lead); line-height: 1.4; }

/* ---------- pagar ---------- */
.pay { background: var(--teal); padding: var(--gap) var(--m); }
.pay-row { display: flex; flex-wrap: wrap; margin-top: 40px; }
.pay-row li {
  flex: 1 1 40%; min-height: 120px; padding: 20px;
  display: flex; align-items: flex-end;
  font-weight: 900; font-size: clamp(24px, 3vw, 40px); line-height: 1; letter-spacing: -.02em;
  transition: transform var(--dur-ui) var(--ease-out);
}
.pay-row .w3 { flex-basis: 100%; }
.f-coral { background: var(--coral); }
.f-ink { background: var(--ink); color: var(--white); }
.f-yellow { background: var(--yellow); }
.f-white { background: var(--white); }
.pay-note { margin-top: 32px; max-width: 46ch; font-size: var(--t-lead); line-height: 1.4; }
/* Tiles de pago: entrada con más presencia al scrollear */
.js .pay .pay-tile.rv {
  opacity: 0;
  transform: translateY(36px) scale(0.88);
  transition:
    opacity 620ms var(--ease-out),
    transform 620ms var(--ease-out);
}
.js .pay.in .pay-tile.rv {
  opacity: 1;
  transform: none;
}

/* ---------- instalar ---------- */
.install { padding: var(--gap) var(--m); display: grid; gap: 48px; }
.install-steps { counter-reset: s; display: grid; gap: 24px; margin: 36px 0 36px; }
.install-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; max-width: 52ch; }
.install-steps li::before {
  content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 20px; background: var(--coral);
}
.install-steps strong { display: block; font-size: 20px; }
.install .btn { width: 100%; }
.install-icon img { width: 100%; max-width: 520px; transform: rotate(3deg); }
.install-icon figcaption { margin-top: 20px; font-size: var(--t-small); }

/* ---------- negocios ---------- */
.sell { background: var(--ink); color: var(--white); display: grid; }
.sell-photo { position: relative; }
.sell-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sell-photo figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--teal); color: var(--ink);
  padding: 14px var(--m); font-weight: 700; font-size: 18px;
}
.sell-copy { padding: 64px var(--m) var(--gap); }
.sell-lede { margin-top: 20px; font-size: var(--t-lead); line-height: 1.4; max-width: 34ch; }
.sell-list { display: grid; gap: 14px; margin: 32px 0 36px; }
.sell-list li { position: relative; padding-left: 32px; max-width: 48ch; }
.sell-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--coral);
}
.sell-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- preguntas ---------- */
.faq { padding: var(--gap) var(--m); display: grid; gap: 40px; }
.faq-rows { display: grid; gap: 36px; }
.faq-rows dt { font-weight: 900; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.02em; }
.faq-rows dd { margin-top: 10px; max-width: 56ch; }

/* ---------- lista ---------- */
.waitlist { background: var(--yellow); padding: var(--gap) var(--m); display: grid; gap: 40px; }
.waitlist-copy p { margin-top: 24px; max-width: 40ch; font-size: var(--t-lead); line-height: 1.4; }
.field { display: grid; gap: 8px; margin-bottom: 16px; font-weight: 700; font-size: var(--t-small); }
.field input {
  height: 58px; padding: 0 18px; border-radius: 16px; border: 2px solid var(--ink);
  font: 400 18px var(--font); background: var(--white); color: var(--ink);
  transition: border-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
}
.field input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 20, 20, .18);
}
.interest { border: 0; padding: 0; margin: 4px 0 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.interest legend { width: 100%; font-weight: 700; font-size: var(--t-small); margin-bottom: 10px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; }
.radio span {
  display: inline-block; padding: 12px 20px; border-radius: 999px;
  background: rgba(20,20,20,.1); font-weight: 700; cursor: pointer;
  transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease, transform var(--dur-press) var(--ease-out);
}
.radio input:checked + span { background: var(--ink); color: var(--white); }
.radio input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .radio span:hover { transform: translateY(-1px); }
}
.waitlist .btn { width: 100%; }
.form-msg { margin-top: 14px; font-weight: 700; }
.form-msg.err { color: #9b1020; }

/* ---------- cierre ---------- */
.foot { background: var(--coral); padding: 56px var(--m) calc(104px + var(--safe-b)); overflow: hidden; }
.foot-name { display: inline-block; font-weight: 900; font-size: 19vw; line-height: .85; letter-spacing: -.05em; white-space: nowrap; }
.foot-row { display: grid; gap: 16px; margin-top: 32px; font-size: var(--t-small); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { text-decoration: none; font-weight: 700; }
.foot-legal {
  margin: 20px 0 0;
  max-width: 42rem;
  font-size: var(--t-small);
  line-height: 1.45;
  opacity: 0.92;
}
.foot-legal a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- barra fija de descarga (móvil) ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 25;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 24px;
  background: var(--ink); color: var(--white);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.45); /* taste-skill-ignore: barra fija que flota sobre la página */
  transform: translateY(140%);
  transition: transform 280ms var(--ease-out);
}
.dock.is-on { transform: none; }
.dock img { border-radius: 11px; }
.dock-text { flex: 1; display: grid; line-height: 1.2; }
.dock-text span { font-size: var(--t-small); color: rgba(255,255,255,.7); }

/* ---------- entradas al scroll (transform + opacity) ---------- */
.js .rv {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  will-change: opacity, transform;
}
.js .in .rv {
  opacity: 1;
  transform: none;
  will-change: auto;
}
.js .in .plate.rv.p1 { transform: rotate(-6deg); }
.js .in .plate.rv.p2 { transform: rotate(5deg); }
.js .in .plate.rv.p3 { transform: rotate(-3deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shout-track { animation: none !important; }
  .hero-carousel { display: none; }
  .hero-media {
    background:
      center / cover no-repeat url("/video/hero-carousel-poster.webp?v=5"),
      var(--coral);
  }
  .js .pay .pay-tile.rv {
    opacity: 1 !important;
    transform: none !important;
  }
  .js .rv,
  .js .hero-enter {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .js .in .plate.rv.p1 { transform: rotate(-6deg) !important; }
  .js .in .plate.rv.p2 { transform: rotate(5deg) !important; }
  .js .in .plate.rv.p3 { transform: rotate(-3deg) !important; }
}

/* ---------- tablet ---------- */
@media (min-width: 640px) {
  .hero .btn, .install .btn, .waitlist .btn { width: auto; }
  .pay-row .w3 { flex-basis: 50%; }
  .pay-row li { flex-basis: 25%; min-height: 160px; }
  .plates { height: 420px; }
}

/* ---------- escritorio ---------- */
@media (min-width: 900px) {
  .nav-links { display: flex; gap: 28px; margin-left: auto; }
  .nav-links a { text-decoration: none; font-weight: 700; font-size: 17px; }
  .nav-cta { margin-left: 8px; }

  .hero {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    column-gap: var(--m);
    height: auto;
    max-height: none;
    min-height: min(100svh, 960px);
    padding-bottom: 72px;
    align-content: start;
    gap: 0;
  }
  .nav { grid-column: 1 / -1; padding-top: 20px; }
  .brand { font-size: 22px; }
  .brand img { width: 40px; height: 40px; }
  .hero-copy { grid-column: 1 / 7; grid-row: 2; align-self: end; padding-top: 48px; }
  .hero h1 { font-size: min(8.6vw, 150px); }
  .lede { margin-top: 20px; font-size: var(--t-lead); line-height: 1.4; max-width: 30ch; }
  .hero .btn { margin-top: 28px; padding: 16px 22px; font-size: 17px; }
  .hero-note { margin-top: 14px; font-size: var(--t-small); }
  .hero-media {
    grid-column: 7 / 13; grid-row: 2; align-self: center;
    width: 100%; margin: 24px 0 0;
    aspect-ratio: 900 / 560;
    height: auto;
    border-radius: 0;
    background: var(--coral);
  }
  .hero-carousel { object-position: center; height: 100%; }

  .track { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); align-items: start; }
  .track-copy { grid-column: 1 / 7; }
  .order { grid-column: 8 / 13; padding: 32px; position: sticky; top: 32px; }

  .menu { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); }
  .menu h2, .menu-note { grid-column: 1 / 7; }
  .menu-body { grid-column: 1 / -1; grid-template-columns: subgrid; }
  .menu-list { grid-column: 1 / 7; }
  .plates { grid-column: 7 / 13; order: 0; height: auto; min-height: 560px; }

  .pay h2, .pay-note { max-width: none; }
  .pay-row li { min-height: 220px; padding: 28px; }
  .pay-row .w3 { flex: 3 1 0; }
  .pay-row .w2 { flex: 2 1 0; }

  .install { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); align-items: center; }
  .install-copy { grid-column: 1 / 7; }
  .install-icon { grid-column: 8 / 13; }

  .sell { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); }
  .sell-photo { grid-column: 1 / 7; }
  .sell-photo img { height: 100%; min-height: 720px; aspect-ratio: auto; }
  .sell-copy { grid-column: 7 / 13; align-self: center; padding: var(--gap) var(--m) var(--gap) 0; }

  .faq { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); }
  .faq h2 { grid-column: 1 / 5; align-self: start; }
  .faq-rows { grid-column: 5 / 13; }
  .faq-rows > div { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--m); }
  .faq-rows dt { grid-column: 1 / 4; }
  .faq-rows dd { grid-column: 4 / 9; margin-top: 4px; }

  .waitlist { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); align-items: start; }
  .waitlist-copy { grid-column: 1 / 7; }
  .waitlist form { grid-column: 8 / 13; }

  .foot { padding-bottom: 48px; }
  .foot-row { grid-template-columns: 1fr auto; align-items: center; }
  .dock { display: none; }
}
