/* Hecho y Contado — layout del sitio. Solo usa tokens de marca/tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--surface-100); color: var(--ink);
  font-family: var(--font-sans); font-size: 17px; line-height: 27px;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.muted { color: var(--ink-muted); }

.skip { position: absolute; left: var(--space-4); top: -100px; background: var(--surface-300); padding: var(--space-3) var(--space-4); border-radius: var(--radius-pill); box-shadow: var(--shadow-md); z-index: 10; }
.skip:focus { top: var(--space-4); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--space-5); }
.wrap--narrow { max-width: 760px; }
.section { padding: var(--space-9) 0; }
.section--alt { background: var(--surface-200); }
.section__head { display: grid; gap: var(--space-3); max-width: 680px; margin-bottom: var(--space-7); }
.section__head p { color: var(--ink-muted); }

/* Cabecera */
.site-head { border-bottom: 1px solid var(--hairline); background: var(--surface-100); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 72px; }
.site-head__logo img { height: 36px; width: auto; }
.site-head nav { display: flex; gap: var(--space-5); font-size: 15px; font-weight: 600; }
.site-head nav a { color: var(--ink); text-decoration: none; }
.site-head nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding: var(--space-9) 0 var(--space-8); }
.hero__text { display: grid; gap: var(--space-5); max-width: 760px; }
.hero__lead { font-size: 20px; line-height: 30px; color: var(--ink-muted); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-2); }
.hero .shot { margin-top: var(--space-8); }

/* Capturas de planilla: son anchas, en el celular se desplazan de lado */
.shot { background: var(--surface-300); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); overflow: hidden; }
.shot__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.shot__scroll img { width: 100%; min-width: 760px; }
.shot__hint { display: none; padding: var(--space-2) var(--space-4) var(--space-3); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.shots { display: grid; gap: var(--space-7); }
.shot-item { display: grid; gap: var(--space-4); }
.shot-item figcaption { display: grid; gap: var(--space-1); max-width: 680px; }
.shot-item figcaption strong { font-size: 20px; line-height: 28px; }
.shot-item figcaption span { color: var(--ink-muted); }

/* Problema */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.point { display: grid; gap: var(--space-2); align-content: start; }
.point h3 { font-size: 20px; line-height: 28px; font-weight: 700; }
.point p { color: var(--ink-muted); }
.point svg { width: 32px; height: 32px; margin-bottom: var(--space-2); fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); list-style: none; padding: 0; counter-reset: paso; }
.step { display: grid; gap: var(--space-3); align-content: start; background: var(--surface-300); border-radius: var(--radius-xl); padding: var(--space-6); box-shadow: var(--shadow-md); counter-increment: paso; }
.step::before { content: counter(paso); font-family: var(--font-display); font-size: 36px; line-height: 42px; font-weight: 600; color: var(--accent); }
.step h3 { font-size: 20px; line-height: 28px; font-weight: 700; }
.step p { color: var(--ink-muted); font-size: 15px; line-height: 22px; }

/* Grilla de rubros */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-6); }
.grid .hc-product { max-width: none; }
.grid .hc-product__lead { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.hc-product__foot .hc-product__price { font-size: 20px; line-height: 28px; }

/* Preguntas */
.faq { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; padding: var(--space-5) 0; font-weight: 700; font-size: 18px; line-height: 26px; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 26px; color: var(--ink-muted); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 var(--space-5); color: var(--ink-muted); max-width: 640px; }

/* Cierre */
.closing { text-align: center; }
.closing .wrap { display: grid; gap: var(--space-5); justify-items: center; }
.closing p { color: var(--ink-muted); max-width: 520px; }

/* Página de rubro */
.crumbs { padding: var(--space-5) 0 0; font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); }
.product-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-8); align-items: start; padding: var(--space-7) 0 var(--space-9); }
.product-top__text { display: grid; gap: var(--space-5); }
.buy { display: grid; gap: var(--space-4); background: var(--surface-300); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: var(--space-6); }
.buy__price { color: var(--accent); }
.buy > .hc-tag { justify-self: start; }
.buy__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.buy__note { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.buy .hc-btn { width: 100%; }
.checklist { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.checklist li { display: flex; gap: var(--space-3); }
.checklist li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 10px; border-radius: var(--radius-pill); background: var(--accent); }
.prose { display: grid; gap: var(--space-4); }
.prose p { color: var(--ink-muted); }

.worked { background: var(--surface-300); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: var(--space-6); display: grid; gap: var(--space-4); }
.worked table { width: 100%; border-collapse: collapse; }
.worked td { padding: var(--space-3) 0; border-bottom: 1px solid var(--hairline); }
.worked td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.worked tr.total td { font-weight: 700; border-bottom: 0; padding-top: var(--space-4); }
.worked tr.total td:last-child { color: var(--accent); font-size: 24px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }

/* Pie */
.site-foot { border-top: 1px solid var(--hairline); padding: var(--space-7) 0; font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.site-foot .wrap { display: grid; gap: var(--space-3); }
.site-foot img { height: 28px; width: auto; }

@media (max-width: 900px) {
  .product-top, .two-col { grid-template-columns: 1fr; gap: var(--space-7); }
  .points, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 var(--space-4); }
  .section { padding: var(--space-8) 0; }
  .hero { padding: var(--space-7) 0 var(--space-6); }
  .display-xl { font-size: 40px; line-height: 44px; }
  .title-1 { font-size: 30px; line-height: 36px; }
  .hero__lead { font-size: 18px; line-height: 28px; }
  .hero .shot { margin-top: var(--space-6); }
  .shot__hint { display: block; }
  .grid { grid-template-columns: 1fr; }
  .site-head nav { gap: var(--space-4); }
  .hero__actions .hc-btn--primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hc-btn { transition: none; }
}

/* Modo pronto (datos/lanzamiento.json) */
.hero__tag { justify-self: start; }
.section--gratis { padding-top: 0; }
.gratis { display: grid; gap: var(--space-5); justify-items: center; text-align: center; background: var(--surface-200); border-radius: var(--radius-xl); padding: var(--space-8) var(--space-7); }
.gratis p { color: var(--ink-muted); max-width: 560px; }
@media (max-width: 720px) {
  .gratis { padding: var(--space-7) var(--space-5); }
}
