/* Radios: 8px en todo; el teléfono de la demo usa 28px por ser un objeto físico. */
:root {
  color-scheme: light dark;
  --bg: #f1f2ee;
  --bg-tint: #e6e8e2;
  --surface: #fbfbf9;
  --ink: #171815;
  --muted: #5a5d55;
  --line: #d2d5cc;
  --accent: #d6301a;
  --on-accent: #fffdfb;
  --r: 8px;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121311;
    --bg-tint: #1a1c19;
    --surface: #20221e;
    --ink: #eff0ea;
    --muted: #a6a99f;
    --line: #33362f;
    --accent: #ff5b3d;
    --on-accent: #1a0a06;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

h2 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h3 { font-size: 1.3rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.015em; }

/* Franja de poste de barbero: el único adorno de la marca */
.pole {
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, var(--bg) 12px 24px, var(--ink) 24px 36px, var(--bg) 36px 48px);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--r);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-block { width: 100%; }

/* Encabezado */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}

.brand span { color: var(--accent); }

.nav { display: flex; gap: 32px; margin-left: auto; }

.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 28px 0 40px; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 18px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 { font-size: clamp(4rem, 7.6vw, 7.5rem); line-height: 0.9; }

.hero-sub { max-width: 34ch; margin-top: 24px; font-size: 1.25rem; line-height: 1.5; color: var(--muted); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.hero-stage { animation: rise 0.9s 0.15s var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.hero-stage { position: relative; display: flex; justify-content: center; }

/* Demo de reserva */
.phone {
  width: min(100%, 370px);
  height: clamp(540px, calc(100dvh - 120px), 590px);
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: 0 30px 60px -30px rgb(23 24 21 / 0.55);
  scroll-margin-top: 90px;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 20px 20px 0 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.steps { display: flex; gap: 5px; }
.steps li { width: 20px; height: 4px; border-radius: 2px; background: var(--line); transition: background-color 0.25s; }
.steps li.on { background: var(--accent); }

.phone-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  border-radius: 0 0 20px 20px;
  background: var(--surface);
}

.screen { display: flex; flex-direction: column; gap: 10px; flex: 1; animation: rise 0.35s var(--ease) both; }
.screen h3 { margin-bottom: 4px; }
.screen .btn { margin-top: auto; flex: none; }
.label { font-size: 0.85rem; font-weight: 700; color: var(--muted); }

.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.choice:hover { border-color: var(--muted); }
.choice.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.choice strong { display: block; font-size: 1rem; }
.choice small { color: var(--muted); font-size: 0.85rem; }
.choice b { font-family: var(--display); font-size: 1.6rem; font-weight: 800; }

.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.pick {
  min-height: 46px;
  padding: 4px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.pick:hover:not(:disabled) { border-color: var(--muted); }
.pick.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.pick:disabled { color: var(--muted); opacity: 0.55; text-decoration: line-through; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field input {
  min-height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  font-size: 1rem; /* 16px: evita el zoom de iOS al enfocar */
}

.field input:focus { outline: none; border-color: var(--accent); }
.field-error { min-height: 1.2em; font-size: 0.85rem; font-weight: 600; color: var(--accent); }

.back {
  align-self: flex-start;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.summary { padding: 12px 14px; border-radius: var(--r); background: var(--bg-tint); font-size: 0.95rem; font-weight: 600; }

.done { justify-content: center; text-align: center; align-items: center; }
.done h3 { font-family: var(--display); font-size: 2.4rem; font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: 0; }
.done p { color: var(--muted); }
.done .btn { margin-top: 14px; }

.toast {
  position: absolute;
  z-index: 2;
  right: -8px;
  bottom: 44px;
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: var(--r);
  border-left: 4px solid var(--accent);
  background: var(--surface);
  box-shadow: 0 18px 40px -18px rgb(23 24 21 / 0.5);
  font-size: 0.9rem;
  animation: rise 0.45s var(--ease) both;
}

.toast[hidden] { display: none; }
.toast a { font-weight: 700; color: var(--accent); }

/* Cifras */
.facts { border-block: 1px solid var(--line); }

.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); }

.facts p { padding: 22px 0; color: var(--muted); font-weight: 600; }

.facts strong {
  display: block;
  font-family: var(--display);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.05;
  color: var(--ink);
}

/* Secciones */
.section { padding: 104px 0; }
.section-tint { background: var(--bg-tint); }

/* Beneficios */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 48px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  border-radius: var(--r);
  background: var(--surface);
}

.tile p { color: var(--muted); }

.tile-lead {
  grid-column: span 3;
  grid-row: span 2;
  justify-content: flex-end;
  min-height: 420px;
  background: var(--accent);
  color: var(--on-accent);
}

.tile-lead h3 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tile-lead p { max-width: 40ch; color: inherit; font-size: 1.1rem; font-weight: 500; }

.tile-loyalty, .tile-hours { grid-column: span 3; }
.tile-alert { grid-column: span 2; background: var(--ink); color: var(--bg); }
.tile-alert p { color: inherit; opacity: 0.8; }
.tile-money { grid-column: span 4; }

.stamps { display: flex; gap: 10px; margin-top: 10px; }
.stamps i { width: 46px; height: 46px; border-radius: 50%; border: 2px dashed var(--line); }
.stamps i.on { border: 0; background: repeating-linear-gradient(-45deg, var(--accent) 0 6px, transparent 6px 12px), var(--bg-tint); }

.week { display: flex; gap: 6px; margin-top: 10px; }

.week li {
  flex: 1;
  max-width: 46px;
  padding: 6px 0;
  border-radius: var(--r);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
}

.week .off { background: transparent; color: var(--muted); text-decoration: line-through; }

.tile-money { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; align-items: end; }
.tile-money h3, .tile-money p { grid-column: 1; }

.bars {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 110px;
}

.bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--ink); }
.bars i:last-child { background: var(--accent); }

/* Panel */
.panel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 64px;
  align-items: start;
}

.panel-intro p { max-width: 42ch; margin-top: 18px; color: var(--muted); }
.panel-hint { font-weight: 700; color: var(--accent) !important; }

.panel-totals { display: flex; gap: 40px; margin-top: 32px; }
.panel-totals dt { font-size: 0.9rem; font-weight: 600; color: var(--muted); }

.panel-totals dd {
  font-family: var(--display);
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.agenda { border-radius: var(--r); background: var(--surface); overflow: hidden; }

.agenda-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.agenda-head span { font-size: 0.85rem; color: var(--muted); }

.appt {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
  padding: 18px 20px;
}

.appt + .appt { border-top: 1px solid var(--line); }
.appt.new { animation: flash 1.6s var(--ease); }

@keyframes flash {
  from { background: color-mix(in srgb, var(--accent) 22%, transparent); }
  to { background: transparent; }
}

.appt strong { display: block; }
.appt small { color: var(--muted); font-size: 0.9rem; }
.appt-state { font-size: 0.82rem; font-weight: 700; color: var(--muted); text-align: right; }
.appt-state.pending { color: var(--accent); }
.appt.cancelled strong, .appt.cancelled small { text-decoration: line-through; opacity: 0.6; }

.appt-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.appt-actions { display: flex; gap: 8px; }

.mini {
  min-height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s;
}

.mini:hover { border-color: var(--muted); }
.mini.primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }

.seals { display: flex; align-items: center; gap: 5px; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.seals i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); }
.seals i.on { border-color: var(--accent); background: var(--accent); }
.seals em { margin-left: 4px; font-style: normal; color: var(--accent); }

/* Antes y después */
.versus { margin-top: 48px; }

.versus-head, .versus-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.versus-head {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.versus-head span:last-child { color: var(--accent); }
.versus-row { padding: 20px 0; }
.versus-row + .versus-row { border-top: 1px solid var(--line); }
.versus-row p:first-child { color: var(--muted); }
.versus-row p:last-child { font-size: 1.2rem; font-weight: 700; line-height: 1.35; }

/* Precios */
.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}

.ticket { padding: 44px; border-radius: var(--r); background: var(--surface); }
.ticket .btn { margin-top: 32px; }

.ticket-prices, .ticket-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ticket-prices { margin-top: 32px; }

.amount {
  font-family: var(--display);
  font-size: clamp(5rem, 11vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--accent);
}

.amount small { font-size: 0.35em; font-weight: 800; color: var(--muted); }
.amount-label { font-weight: 700; }

.ticket-lists { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.ticket-lists li, .extras li { padding: 5px 0; color: var(--muted); }

.extras { padding-bottom: 44px; }
.extras h3 { margin-bottom: 12px; }

/* Preguntas */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 64px;
  align-items: start;
}

.faq-layout h2 { position: sticky; top: 104px; }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 14px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  flex: none;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 58ch; }

/* Cierre */
.closing { background: var(--accent); color: var(--on-accent); }
.closing .pole { background: repeating-linear-gradient(-45deg, var(--ink) 0 12px, var(--accent) 12px 24px); }
.closing-inner { padding-top: 96px; padding-bottom: 96px; }
.closing h2 { max-width: 13ch; font-size: clamp(3.2rem, 9vw, 7.5rem); line-height: 0.92; }
.closing p { margin-top: 20px; font-size: 1.2rem; font-weight: 500; }
.closing .btn { margin-top: 28px; background: var(--ink); color: var(--bg); }

/* Pie */
.site-footer { padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer p { font-size: 0.9rem; color: var(--muted); }

.wa-float {
  position: fixed;
  z-index: 15;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #1f8f4e;
  color: #fff;
  box-shadow: 0 10px 24px -10px rgb(23 24 21 / 0.6);
  transition: transform 0.2s var(--ease);
}

.wa-float:hover { transform: scale(1.06); }

/* Aparición al hacer scroll: solo si hay JS, sin JS todo queda visible */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }

/* Tablet y celular */
@media (max-width: 1023px) {
  .toast { right: 0; }
  .price-layout { grid-template-columns: 1fr; align-items: stretch; gap: 32px; }
  .extras { padding-bottom: 0; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .wrap { padding: 0 16px; }
  .hero { padding: 32px 0 40px; }
  .hero-inner, .panel-layout, .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .hero-sub { font-size: 1.15rem; }
  .section { padding: 72px 0; }
  .faq-layout h2 { position: static; }
  .toast { position: fixed; left: 16px; right: 16px; bottom: 16px; width: auto; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 80px; }
  h1 { font-size: clamp(3.2rem, 17vw, 6rem); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .facts strong { font-size: 2.1rem; }
  .facts p { padding: 16px 8px 16px 0; font-size: 0.85rem; line-height: 1.35; }
  .bento { display: flex; flex-direction: column; margin-top: 32px; }
  .tile { padding: 22px; }
  .tile-lead { min-height: 320px; }
  .tile-money { grid-template-columns: 1fr; }
  .bars { grid-column: 1; grid-row: auto; height: 80px; margin-top: 8px; }
  .panel-totals dd { font-size: 3rem; }
  .versus-head { display: none; }
  .versus-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .versus-row p:first-child { text-decoration: line-through; text-decoration-color: var(--accent); font-size: 0.95rem; }
  .ticket { padding: 24px; }
  .ticket-prices, .ticket-lists { grid-template-columns: 1fr; gap: 16px; }
  .ticket-lists { gap: 0; }
  .ticket .btn { width: 100%; }
  .closing-inner { padding-top: 64px; padding-bottom: 88px; }
  .closing .btn { width: 100%; }
  .site-footer { padding-bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
