/* Al Toque IA — dirección "El producto actúa" · Hanken Grotesk · Papel y latón */
:root {
  --bg: #e8e8e3;
  --surface: #dcdcd6;
  --surface-2: #d0d0c9;
  --ink: #181715;
  --muted: #5a5953;
  --accent: #bfb21a;
  --accent-ink: #181715;
  --field-1: #181715;
  --field-1-ink: #e8e8e3;
  --field-1-muted: #b4b3ab;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.2rem + 4vw, 5.5rem);

  --m: clamp(16px, 2.2vw, 32px);
  --gap-section: clamp(96px, 12vw, 200px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.45;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.head {
  font-size: var(--step-head);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
  max-width: 14ch;
}
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }

/* Botones: rectos, un solo relleno */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: var(--radius);
  font-weight: 500; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { background: #d1c32a; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: #33312d; }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { background: #c4c4bc; }

/* Barra */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--m);
  background: var(--bg);
}
.wordmark { font-weight: 500; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); font-size: 15px; }
.bar nav a:not(.btn) { text-decoration: none; transition: opacity .15s; }
.bar nav a:not(.btn):hover { opacity: .6; }

/* HERO */
.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: grid;
  grid-template-columns: 1fr minmax(320px, 440px) 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: clamp(16px, 2.5vw, 40px);
  padding: 24px var(--m) 32px;
}
.hero-title { display: contents; }
.half {
  font-size: clamp(2.5rem, 1rem + 3.4vw, 4.25rem);
  font-weight: 500; letter-spacing: -0.05em; line-height: 0.95;
  align-self: center;
}
.half-a { grid-column: 1; grid-row: 1; max-width: 11ch; }
.half-b { grid-column: 3; grid-row: 1; justify-self: end; text-align: right; max-width: 11ch; }
.hero-stage { grid-column: 2; grid-row: 1; display: grid; gap: 12px; }
.hero-support { grid-column: 1; grid-row: 2; align-self: end; font-size: 18px; max-width: 38ch; }
.hero-cta { grid-column: 3; grid-row: 2; justify-self: end; align-self: end; }

.rubros { display: flex; gap: 8px; }
.rubros button {
  flex: 1; min-height: 44px; border: 0; border-radius: var(--radius);
  background: var(--surface); cursor: pointer; font-size: 15px;
  transition: background-color .18s, transform .18s var(--ease);
}
.rubros button:hover { background: var(--surface-2); }
.rubros button:active { transform: scale(.97); }
.rubros button[aria-selected="true"] { background: var(--ink); color: var(--bg); }

/* Fragmento de chat (interfaz del producto) */
.chat {
  background: #e9ebe6; border-radius: 10px; overflow: hidden;
  font-size: 16px; line-height: 1.4; color: #111b21;
  border: 1px solid #d6d1c7; /* taste-skill-ignore: interfaz del producto (data-ui) */
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f7f5f0; border-bottom: 1px solid #ddd8ce; } /* taste-skill-ignore: interfaz del producto (data-ui) */
.chat-head strong { display: block; font-weight: 500; font-size: 15px; }
.chat-head small { display: block; font-size: 13px; color: #54656f; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #2f6f5e; color: #fff; font-weight: 500; }
.chat-body { display: flex; flex-direction: column; gap: 6px; padding: 14px; min-height: 360px; }
.msg { max-width: 82%; padding: 7px 10px 18px; border-radius: 8px; position: relative; box-shadow: 0 1px 0 rgba(0,0,0,.08); } /* taste-skill-ignore: interfaz del producto (data-ui) */
.msg time { position: absolute; right: 8px; bottom: 3px; font-size: 11px; color: #667781; }
.msg.in { align-self: flex-start; background: #fff; }
.msg.out { align-self: flex-end; background: #d9fdd3; }
.msg b { font-weight: 500; }
.msg.voice { font-style: normal; }
.msg .vn { display: block; font-size: 13px; color: #54656f; margin-bottom: 3px; }
.sys { align-self: center; background: #fff7c2; color: #3b3a2a; font-size: 13px; padding: 4px 10px; border-radius: 6px; }
.chat-body li { animation: pop .35s var(--ease) both; }
.chat-body li:nth-child(2) { animation-delay: .25s; }
.chat-body li:nth-child(3) { animation-delay: .5s; }
.chat-body li:nth-child(4) { animation-delay: .75s; }
.chat-body li:nth-child(5) { animation-delay: 1s; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* LIMA: historia fija */
.field-dark { background: var(--field-1); color: var(--field-1-ink); }
.lima {
  margin-top: var(--gap-section);
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px);
  padding: clamp(80px, 9vw, 140px) var(--m);
}
.lima-pin { position: sticky; top: 120px; align-self: start; display: grid; gap: 24px; }
.lima .lead { color: var(--field-1-ink); }
.lima-photos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ph { overflow: hidden; position: relative; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ph:hover img { transform: scale(1.04); }
.ph figcaption { padding-top: 8px; font-size: var(--step-small); color: var(--field-1-muted); }
.ph-a { grid-column: 1 / 7; aspect-ratio: 16 / 9; }
.ph-a img { animation: drift 24s ease-in-out infinite alternate; }
.ph-b { grid-column: 1 / 4; aspect-ratio: 4 / 5; }
.ph-c { grid-column: 4 / 7; aspect-ratio: 4 / 5; margin-top: 96px; }
.ph-d { grid-column: 2 / 7; aspect-ratio: 3 / 2; }
.ph-a, .ph-b, .ph-c, .ph-d { aspect-ratio: auto; }
.ph-a img { aspect-ratio: 16 / 9; }
.ph-b img, .ph-c img { aspect-ratio: 4 / 5; }
.ph-d img { aspect-ratio: 3 / 2; }
@keyframes drift { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.08) translateX(-2%); } }

/* CÓMO FUNCIONA */
.stages {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto;
  min-height: 88svh;
}
.stage-left { background: var(--surface); padding: clamp(40px, 6vw, 96px) var(--m); display: grid; align-content: start; gap: 28px; }
.stage-left .head { font-size: clamp(2.25rem, 1rem + 3.2vw, 4.25rem); max-width: 13ch; min-height: 2em; }
.stage-note { max-width: 40ch; }
.stage-right { background: var(--accent); display: grid; place-items: center; padding: 48px var(--m); }
.stage-track { grid-column: 1 / 3; background: var(--ink); color: var(--bg); padding: 28px var(--m) 32px; }
.range-wrap { position: relative; }
.range-wrap::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 8px; background: #4a4842; }
.range-fill { position: absolute; left: 0; top: 12px; height: 8px; width: var(--fill, 0%); background: var(--bg); transition: width .2s var(--ease); }
#stage-range { position: relative; -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; }
#stage-range::-webkit-slider-runnable-track { height: 8px; background: transparent; }
#stage-range::-moz-range-track { height: 8px; background: transparent; }
#stage-range::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; background: var(--accent); border-radius: 0; }
#stage-range::-moz-range-thumb { width: 32px; height: 32px; background: var(--accent); border: 0; border-radius: 0; }
.stage-names { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; font-size: 16px; color: #8d8b83; }
.stage-names li { transition: color .2s; }
.stage-names li:nth-child(2) { text-align: center; transform: translateX(-17%); }
.stage-names li:nth-child(3) { text-align: center; transform: translateX(17%); }
.stage-names li:last-child { text-align: right; }
.stage-names .on { color: var(--bg); }

.frag {
  width: min(440px, 100%); background: #f3f3f0; color: #1c1b19; border-radius: 10px;
  font-size: 16px; line-height: 1.4; border: 1px solid #c9c7bd; overflow: hidden; /* taste-skill-ignore: interfaz del producto (data-ui) */
  transition: opacity .2s;
}
.frag.fade { opacity: 0; }
.frag-head { padding: 12px 16px; background: #f1f0eb; border-bottom: 1px solid #dddbd2; font-weight: 500; display: flex; justify-content: space-between; align-items: center; } /* taste-skill-ignore: interfaz del producto (data-ui) */
.frag-head small { font-weight: 400; color: #6b6a63; font-size: 13px; }
.frag-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #ecebe5; } /* taste-skill-ignore: interfaz del producto (data-ui) */
.frag-row:last-child { border-bottom: 0; }
.frag-row span:first-child { color: #6b6a63; }
.frag-row.sel { background: #f6f3d6; }
.frag-field { margin: 12px 16px; }
.frag-field label { display: block; font-size: 13px; color: #6b6a63; margin-bottom: 4px; }
.frag-field div { border: 1px solid #cfcdc4; border-radius: 6px; padding: 8px 10px; background: #fff; } /* taste-skill-ignore: interfaz del producto (data-ui) */
.pill-ok { display: inline-block; background: #def2dc; color: #1d5b2c; border-radius: 99px; padding: 2px 10px; font-size: 13px; }
.pill-warn { display: inline-block; background: #fbe6d5; color: #7a3b10; border-radius: 99px; padding: 2px 10px; font-size: 13px; }
.frag .chat-body { min-height: 0; background: #e9ebe6; }

/* PREGUNTA QUE SE ESCRIBE */
.ask { min-height: 88svh; padding: var(--gap-section) var(--m) 64px; display: grid; align-content: center; gap: 48px; }
.ask-line input {
  width: 100%; border: 0; background: transparent; padding: 0; outline: none;
  font-size: clamp(2.5rem, 1rem + 6.4vw, 8.25rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1.05;
  caret-color: var(--accent); caret-shape: block;
}
.ask-line:focus-within { box-shadow: inset 0 -6px 0 var(--accent); } /* taste-skill-ignore: interfaz del producto (data-ui) */
.ask-answer {
  max-width: 560px; background: #d9fdd3; color: #111b21; border-radius: 10px; padding: 12px 16px 14px;
  font-size: 17px; line-height: 1.45; border: 1px solid #bfe3b8; /* taste-skill-ignore: interfaz del producto (data-ui) */
}
.ask-who { display: block; font-size: 13px; color: #45615a; margin-bottom: 4px; }
.ask-tag { display: inline-block; margin-top: 8px; font-size: 13px; color: #45615a; }
.ask-examples { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; font-size: 17px; }
.ask-examples span { color: var(--muted); }
.ask-examples button { background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); text-decoration-thickness: 3px; transition: opacity .15s; }
.ask-examples button:hover { opacity: .6; }

/* PLANES */
.plans { padding: var(--gap-section) var(--m); }
.plan-table { width: 100%; border-collapse: collapse; font-size: 20px; }
.plan-table th, .plan-table td { text-align: left; padding: 20px 18px; vertical-align: top; }
.plan-table thead th { font-weight: 500; font-size: clamp(1.5rem, 0.9rem + 1.6vw, 2.75rem); letter-spacing: -0.04em; line-height: 1; padding-bottom: 28px; vertical-align: bottom; }
.plan-heading { font-size: inherit; font-weight: 500; max-width: 8ch; }
.price { display: block; font-weight: 400; margin-top: 10px; }
.price small { font-size: 16px; letter-spacing: 0; }
.plan-table tbody th { font-weight: 400; width: 30%; }
.plan-table tbody tr:nth-child(odd) { background: var(--surface); }
.plan-table .rec { background: var(--accent); }
.plan-table tbody tr:nth-child(odd) .rec { background: #b3a614; }
.plan-cta td, .plan-cta th { padding-top: 28px; padding-bottom: 28px; }
.plan-cta { background: var(--bg) !important; }
.note { font-size: 16px; color: var(--muted); display: block; max-width: 30ch; }

/* FAQ */
.faq { display: grid; grid-template-columns: 5fr 1fr 6fr; padding: clamp(96px, 10vw, 160px) var(--m); }
.faq-list { grid-column: 1; display: grid; gap: 18px; font-size: 18px; }
.faq-heading h2 { font-size: 18px; font-weight: 500; color: var(--field-1-muted); }
.q {
  display: flex; gap: 14px; align-items: baseline; width: 100%; text-align: left;
  background: none; border: 0; padding: 0; cursor: pointer; color: #cfcec6;
  transition: color .15s;
}
.q::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--field-1-muted); transform: translateY(-2px); transition: background-color .15s; }
.q:hover, .q.on { color: var(--field-1-ink); }
.q.on::before { background: var(--accent); }
.a-inline { display: none; }
.faq-pane { grid-column: 3; position: sticky; top: 120px; align-self: start; }
.faq-pane p { font-size: clamp(1.375rem, 1.1rem + 0.6vw, 1.75rem); line-height: 1.3; max-width: 30ch; transition: opacity .15s; }
.faq-pane p.fade { opacity: 0; }
.faq a { color: var(--accent); }

/* CONTACTO */
.contact { width: min(520px, calc(100% - 2 * var(--m))); margin: 0 auto; padding: 200px 0 160px; }
.contact-prompt { font-size: clamp(1.5rem, 1.2rem + 0.6vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.contact-prompt span { display: block; color: var(--muted); }
.contact-form { position: relative; margin-top: 28px; }
.contact-form input {
  width: 100%; height: 64px; border: 0; border-radius: var(--radius); background: #f6f6f2;
  padding: 0 64px 0 20px; font-size: 18px; outline: none; transition: box-shadow .15s; /* taste-skill-ignore: interfaz del producto (data-ui) */
}
.contact-form input:focus { box-shadow: inset 0 0 0 2px var(--accent); } /* taste-skill-ignore: interfaz del producto (data-ui) */
.contact-form button {
  position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--ink); color: var(--bg); display: grid; place-items: center; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s;
}
.contact-form button:hover { transform: translateX(3px); background: #33312d; }
.contact-next { margin-top: 16px; font-size: 16px; color: var(--ink); }
.contact-rows { margin-top: 72px; display: grid; gap: 10px; font-size: 16px; }
.contact-rows div { display: grid; grid-template-columns: 110px 1fr; }
.contact-rows dt { color: var(--muted); }

/* PIE: tablero de baldosas */
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; padding: 10px; }
.tile { padding: 22px; min-height: 220px; background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; }
.t-statement { grid-column: 1 / 5; }
.t-statement p { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; max-width: 22ch; }
.t-statement small { font-size: 16px; color: var(--ink); max-width: 44ch; }
.t-nav { grid-column: 5 / 8; justify-content: flex-start; gap: 8px; font-size: 16px; }
.t-nav a { text-decoration: none; }
.t-nav a:hover { text-decoration: underline; }
.t-time { grid-column: 8 / 10; }
.t-time strong { font-size: var(--step-lead); font-weight: 500; font-variant-numeric: tabular-nums; }
.t-time small { font-size: 16px; color: var(--ink); }
.t-mail { grid-column: 10 / 13; justify-content: flex-end; font-size: 20px; }
.t-word { grid-column: 1 / 9; min-height: 320px; background: var(--ink); color: var(--bg); justify-content: center; align-items: center; font-size: clamp(2.5rem, 7.4vw, 8rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; overflow: hidden; }
.t-go { grid-column: 9 / 13; min-height: 320px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; transition: background-color .2s; }
.t-go svg { align-self: flex-end; transition: transform .25s var(--ease); }
.t-go:hover { background: #d1c32a; }
.t-go:hover svg { transform: translate(6px, -6px); }
.credits { grid-column: 1 / 13; padding: 16px 12px 8px; font-size: 16px; color: var(--ink); max-width: 110ch; }

/* Entradas */
.js .reveal, .js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in, .js .rise.in { opacity: 1; transform: none; }

/* Teléfono */
@media (max-width: 860px) {
  .bar nav a:not(.btn):not(:first-child) { display: none; }
  .bar nav a:first-child { display: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 20px; min-height: 0; padding-top: 16px; }
  .hero-title { display: flex; flex-direction: column; gap: 20px; }
  .half { font-size: 8.4vw; max-width: none; }
  .half-b { order: 2; text-align: right; align-self: flex-end; }
  .hero-title { display: contents; }
  .half-a { order: 1; align-self: flex-start; }
  .hero-stage { order: 2; }
  .half-b { order: 3; }
  .hero-support { order: 4; font-size: 16px; }
  .hero-cta { order: 5; align-self: stretch; }
  .chat-body { min-height: 0; }
  .lima { grid-template-columns: 1fr; }
  .lima-pin { position: static; }
  .lima-photos { gap: 10px; }
  .ph-c { margin-top: 48px; }
  .stages { grid-template-columns: 1fr; }
  .stage-right { order: -1; min-height: 46svh; padding: 28px 12px; }
  .stage-track { grid-column: 1; order: 2; }
  .stage-left { order: 1; }
  .stage-left .head { font-size: 8.4vw; }
  #stage-range::-webkit-slider-thumb { width: 40px; height: 40px; margin-top: -16px; }
  .stage-names { grid-template-columns: 1fr 1fr; gap: 6px; font-size: 15px; }
  .stage-names li:nth-child(n) { text-align: left; transform: none; }
  .ask { min-height: 0; gap: 28px; }
  .ask-line input { font-size: 9vw; }
  .ask-examples button { background: var(--surface); text-decoration: none; padding: 0 14px; min-height: 44px; border-radius: var(--radius); }
  .plan-table, .plan-table thead, .plan-table tbody, .plan-table tr, .plan-table th, .plan-table td { display: block; width: auto; }
  .plan-table thead { display: none; }
  .plan-table tbody tr { background: none !important; }
  .plan-table tbody th { padding: 14px 0 0; color: var(--muted); font-size: 17px; }
  .plan-table td { padding: 2px 0 0; font-size: 17px; }
  .plan-table .rec { background: none !important; }
  .mobile-plans { display: grid !important; gap: 56px; }
  .faq { grid-template-columns: 1fr; }
  .faq-pane { display: none; }
  .a-inline { padding: 10px 0 4px 22px; font-size: 19px; color: var(--field-1-ink); }
  .q.on + .a-inline { display: block; }
  .contact { padding: 120px 0 100px; }
  .contact-prompt { font-size: 22px; }
  .contact-form input { height: 60px; }
  .contact-form button { top: 8px; }
  .contact-rows div { grid-template-columns: 1fr; gap: 2px; margin-bottom: 10px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .tile { padding: 20px; min-height: 160px; }
  .t-word { grid-column: 1 / 3; order: -2; min-height: 160px; font-size: 12vw; }
  .t-go { grid-column: 1 / 3; order: -1; min-height: 160px; }
  .t-nav { grid-column: 1; }
  .t-mail { grid-column: 2; font-size: 16px; word-break: break-all; }
  .t-time { grid-column: 1; }
  .t-statement { grid-column: 2; }
  .t-statement p { font-size: 19px; }
  .credits { grid-column: 1 / 3; }
}

/* Planes en teléfono: bloques por plan */
.mobile-plans { display: none; }
.mplan { padding: 24px 20px; background: var(--surface); }
.mplan.rec { background: var(--accent); }
.mplan-name { margin: 0; font-size: 9vw; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.mplan .price { font-size: 9vw; margin: 6px 0 12px; }
.mplan dl div { padding: 8px 0; }
.mplan dt { color: var(--muted); font-size: 17px; }
.mplan .rec dt, .mplan.rec dt { color: #3a3720; }
.mplan dd { font-size: 17px; }
.mplan .btn { width: 100%; margin: 4px 0 12px; }
@media (max-width: 860px) { .plan-table { display: none; } }

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