/* Horas de más: estilos. Dirección visual en DESIGN.md (ticket de caja). */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff2") format("woff2-variations"), url("/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --paper: #f3efe6;
  --surface: #fbf8f1;
  --ticket: #fffdf8;
  --ink: #1c1b18;
  --ink-2: #5b574e;
  --line: #d9d2c3;
  --marker: #ffe14a;
  --error: #b42318;

  --btn-bg: var(--ink);
  --btn-fg: var(--ticket);
  --btn-bg-hover: #000;
  --focus: var(--ink);

  --ticket-ink: #1c1b18;
  --ticket-ink-2: #5b574e;
  --ticket-line: #cfc7b6;
  --ticket-shadow: 0 1px 0 rgb(80 66 40 / 0.06), 0 18px 40px -18px rgb(80 66 40 / 0.35);

  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 6px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171613;
    --surface: #22201c;
    --ink: #f1ece2;
    --ink-2: #b5ae9f;
    --line: #3a3731;
    --error: #ff8a7a;

    --btn-bg: var(--marker);
    --btn-fg: #1c1b18;
    --btn-bg-hover: #fff0a0;
    --focus: var(--marker);

    --ticket-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.7);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-variation-settings: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (min-width: 48rem) {
  body {
    font-size: 1.125rem;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.875rem, 4.2vw, 2.75rem);
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Fosforito: siempre detrás del texto, nunca como color de letra. */
.marker {
  background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%);
  padding-inline: 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: inherit;
}

@media (prefers-color-scheme: dark) {
  .marker {
    background: none;
    color: var(--marker);
  }
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip:focus {
  top: 0.75rem;
}

/* Cabecera */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.site-header[data-scrolled] {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.125rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 150ms ease, border-color 150ms ease, transform 120ms var(--ease-out);
}

.btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-bg-hover);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform 150ms var(--ease-out);
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn-small {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: progress;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding-inline: 0.25rem;
  font-weight: 600;
}

/* Portada */

.hero {
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem);
}

.hero .wrap {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) 23rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--marker);
  box-shadow: 0 0 0 2px var(--ink);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-stretch: 115%;
  max-width: 18ch;
}

.hero .lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  color: var(--ink-2);
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}

/* Ticket */

.ticket-stage {
  margin: 0;
  position: relative;
  display: grid;
  justify-items: center;
}

/* La ranura de la impresora: el ticket sale de aquí. */
.ticket-stage::before {
  content: "";
  position: relative;
  z-index: 2;
  width: min(23rem, 100%);
  height: 0.875rem;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: inset 0 -3px 0 rgb(255 255 255 / 0.12);
}

.ticket-clip {
  width: min(23rem, 100%);
  margin-top: -0.45rem;
  padding: 0 1rem;
  /* Recorta solo por arriba (la ranura), deja ver la sombra por los lados y abajo. */
  clip-path: inset(0 -4rem -4rem -4rem);
}

.ticket {
  --tooth: 9px;
  position: relative;
  background: var(--ticket);
  color: var(--ticket-ink);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 1.6rem 1.35rem calc(1.4rem + var(--tooth));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
}

.ticket-shadow {
  filter: drop-shadow(0 18px 24px rgb(80 66 40 / 0.28));
}

@media (prefers-color-scheme: dark) {
  .ticket-shadow {
    filter: drop-shadow(0 20px 30px rgb(0 0 0 / 0.6));
  }
}

.ticket-head {
  text-align: center;
}

.ticket-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-stretch: 118%;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ticket-sub {
  color: var(--ticket-ink-2);
  font-size: 0.8125rem;
}

.ticket hr {
  margin: 0.85rem 0;
  border: 0;
  border-top: 1.5px dashed var(--ticket-line);
}

.ticket dl,
.ticket ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.t-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.t-row > :last-child {
  text-align: right;
  white-space: nowrap;
}

.t-day {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  gap: 0.5rem;
}

.t-day .t-shifts {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.6rem;
  color: var(--ticket-ink-2);
  font-size: 0.8125rem;
  line-height: 1.75;
}

.t-shifts > span {
  white-space: nowrap;
}

.t-day.off .t-shifts {
  font-style: italic;
}

.t-dim {
  color: var(--ticket-ink-2);
}

.t-total {
  align-items: baseline;
  font-weight: 600;
  font-size: 1.05rem;
}

.t-total .t-amount {
  font-family: var(--font-sans);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1.1;
  background: linear-gradient(transparent 55%, var(--marker) 55%, var(--marker) 92%, transparent 92%);
  padding-inline: 0.1em;
}

.t-note {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ticket-ink-2);
}

/* El ticket sale de la impresora una vez al cargar. */
@media (prefers-reduced-motion: no-preference) {
  .ticket-print {
    animation: print 1100ms var(--ease-out) 250ms both;
  }

  @keyframes print {
    from {
      transform: translateY(-101%);
    }
    to {
      transform: translateY(0);
    }
  }
}

/* Secciones */

.section {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head p {
  margin-top: 1rem;
  color: var(--ink-2);
}

/* Cómo funciona: filas numeradas, como las líneas de un ticket */

.how {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.how .wrap {
  display: grid;
  gap: 2rem;
}

@media (min-width: 60rem) {
  .how .wrap {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: start;
  }

  .how .section-head {
    position: sticky;
    top: 6rem;
  }
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1.5px dashed var(--line);
}

.step {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.25rem 1rem;
  padding-block: 1.6rem;
  border-bottom: 1.5px dashed var(--line);
}

@media (min-width: 40rem) {
  .step {
    grid-template-columns: 5rem 1fr;
  }
}

.step-num {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1;
  color: var(--ink-2);
}

.step h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-stretch: 108%;
}

.step p {
  margin-top: 0.5rem;
  max-width: 36rem;
  color: var(--ink-2);
}

/* Lo que no hace: caja de aviso */

.notice {
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  gap: 2rem;
}

@media (min-width: 60rem) {
  .notice {
    grid-template-columns: minmax(16rem, 0.9fr) 1.1fr;
    gap: 3.5rem;
  }
}

.notice-head svg {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
}

.notice-head p {
  margin-top: 1rem;
  color: var(--ink-2);
}

.nots {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

.nots li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
}

.nots svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.3rem;
}

.nots strong {
  display: block;
  font-weight: 700;
}

.nots span {
  color: var(--ink-2);
}

/* Precio */

.price .wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 60rem) {
  .price .wrap {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .price .ticket-shadow {
    order: 2;
  }
}

.price .ticket-shadow {
  justify-self: center;
  width: min(24rem, 100%);
}

.price .ticket {
  font-size: 0.95rem;
  padding-top: 1.4rem;
}

.leaders {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-block: 0.35rem;
}

.leaders .dots {
  flex: 1;
  min-width: 1rem;
  border-bottom: 2px dotted var(--ticket-line);
  transform: translateY(-0.3em);
}

.leaders .val {
  white-space: nowrap;
  font-weight: 600;
}

.leaders.strike .val {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  color: var(--ticket-ink-2);
  font-weight: 400;
}

.leaders.hl .val {
  background: var(--marker);
  padding-inline: 0.3em;
}

.price-copy p + p {
  margin-top: 1rem;
}

.price-copy .small {
  color: var(--ink-2);
  font-size: 0.95em;
}

/* Preguntas frecuentes */

.faq {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.faq .wrap {
  max-width: 50rem;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 1.1rem;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  transition: transform 180ms var(--ease-out);
}

.faq details[open] summary svg {
  transform: rotate(45deg);
}

.faq summary:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.faq .answer {
  padding-bottom: 1.4rem;
  max-width: 42rem;
  color: var(--ink-2);
}

.faq .answer p + p {
  margin-top: 0.75rem;
}

/* Lista de espera: coge número */

.waitlist .wrap {
  max-width: 46rem;
}

.number-card {
  position: relative;
  background: var(--ticket);
  color: var(--ticket-ink);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 3rem);
  box-shadow: var(--ticket-shadow);
}

/* Muescas del ticket de turno */
.number-card::before,
.number-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.75rem;
  border-radius: 50%;
  background: var(--paper);
}

.number-card::before {
  left: -0.75rem;
}

.number-card::after {
  right: -0.75rem;
}

.number-card h2 {
  color: var(--ticket-ink);
}

.number-card .intro {
  margin-top: 1rem;
  color: var(--ticket-ink-2);
  max-width: 34rem;
}

.form {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.field input[type="email"] {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 2px solid #8a8375;
  border-radius: var(--radius);
  background: #fff;
  color: #1c1b18;
  font: inherit;
  font-size: 1.0625rem;
  transition: border-color 150ms ease;
}

.field input[type="email"]::placeholder {
  color: #6f6a60;
  opacity: 1;
}

.field input[type="email"]:hover {
  border-color: #1c1b18;
}

.field input[type="email"]:focus-visible {
  outline: 3px solid #1c1b18;
  outline-offset: 2px;
  border-color: #1c1b18;
}

.field input[aria-invalid="true"] {
  border-color: #b42318;
}

.check {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--ticket-ink-2);
  font-size: 0.975rem;
}

.check input {
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.15rem 0 0;
  accent-color: #1c1b18;
  cursor: pointer;
}

.check input:focus-visible {
  outline: 3px solid #1c1b18;
  outline-offset: 2px;
}

.check label {
  cursor: pointer;
}

.field-error {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin-top: 0.5rem;
  color: #b42318;
  font-size: 0.95rem;
  font-weight: 600;
}

.field-error[hidden] {
  display: none;
}

.field-error svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  margin-top: 0.15rem;
}

.form .btn {
  justify-self: start;
  background: #1c1b18;
  border-color: #1c1b18;
  color: #fffdf8;
}

.form .btn:hover {
  background: #000;
  border-color: #000;
}

.form .btn:focus-visible {
  outline-color: #1c1b18;
}

.fine {
  color: var(--ticket-ink-2);
  font-size: 0.9rem;
}

.form-status {
  margin-top: 0.25rem;
}

.form-status:empty {
  display: none;
}

.status-box {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 2px solid #1c1b18;
}

.status-box svg {
  width: 1.4rem;
  height: 1.4rem;
}

.status-box.error {
  border-color: #b42318;
  color: #8f1c13;
}

.status-box strong {
  display: block;
}

.done {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1.5px dashed var(--ticket-line);
}

.done-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ticket-ink-2);
}

.done h3 {
  margin-top: 0.5rem;
  font-size: 1.6rem;
}

.done p {
  margin-top: 0.75rem;
  color: var(--ticket-ink-2);
}

/* Pie */

.site-footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.site-footer strong {
  color: var(--ink);
}

/* Páginas de texto (privacidad, 404) */

.doc {
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

.doc .wrap {
  max-width: 44rem;
}

.doc h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
}

.doc .updated {
  margin-top: 0.75rem;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.doc h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
}

.doc p,
.doc ul {
  margin-top: 1rem;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.4rem;
}

.doc .summary {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.doc .summary p:first-child {
  margin-top: 0;
}

.not-found {
  min-height: 60dvh;
  display: grid;
  align-content: center;
}

.not-found p {
  margin-top: 1rem;
  color: var(--ink-2);
}

.not-found .btn {
  margin-top: 2rem;
  justify-self: start;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ticket dd {
  margin: 0;
}
