/* Sitio público de Claudio pedidos. Mismo sistema visual que heyclaudio.io (tokens.css):
   crema con cuadrícula, trazos tinta de 4px, sombras duras, Fredoka + Nunito. Solo claro. */
@import url("tokens.css");

:root { --max: 1120px; --gutter: 16px; color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; font-family: var(--font-body); font-weight: 600; font-size: 17px; line-height: 1.55; color: var(--ink);
  background-color: var(--cream);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--grid-step) var(--grid-step);
}
h1, h2, h3, .wordmark { font-family: var(--font-display); font-weight: 700; line-height: 1.04; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 8.5vw, 70px); }
h2 { font-size: clamp(1.9rem, 5.6vw, var(--h2)); margin-bottom: 0.35em; }
h3 { font-size: 1.4rem; letter-spacing: -0.01em; margin-bottom: 8px; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
strong, b { font-weight: 800; }
.muted { color: var(--muted); }
:focus-visible { outline: var(--stroke-small) solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 60px 0; scroll-margin-top: 80px; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 62ch; }
.head { margin-bottom: 32px; }
.head .tag { margin-bottom: 16px; }

.tag { display: inline-flex; align-items: center; padding: 5px 12px; border: var(--stroke-small) solid var(--ink); border-radius: var(--radius-tag); box-shadow: var(--shadow-tag); background: var(--butter); font-weight: 800; font-size: var(--tag-size); letter-spacing: var(--tag-tracking); text-transform: uppercase; line-height: 1.2; white-space: nowrap; }
.tag-mint { background: var(--mint); } .tag-peach { background: var(--peach); } .tag-lilac { background: var(--lilac); } .tag-white { background: var(--white); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border: var(--stroke) solid var(--ink); border-radius: var(--radius-btn); box-shadow: var(--shadow-btn); background: var(--white); color: var(--ink); font-family: var(--font-body); font-weight: 800; font-size: 1rem; line-height: 1.2; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .08s, box-shadow .08s; }
.btn:hover, .btn:focus-visible { transform: translate(3px, 3px); box-shadow: var(--shadow-btn-hover); }
.btn-peach { background: var(--peach); } .btn-mint { background: var(--mint); }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn[aria-disabled="true"] { color: var(--muted); box-shadow: none; transform: none; cursor: default; }
.btn-small { padding: 9px 14px; font-size: .92rem; }
.acciones { display: flex; flex-wrap: wrap; gap: 16px; }

/* barra superior */
.nav { position: sticky; top: 0; z-index: 10; background: var(--cream); border-bottom: var(--stroke) solid var(--ink); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.wordmark { font-size: 1.55rem; text-transform: lowercase; }
.nav-links { display: none; gap: 22px; }
.nav-links a { font-weight: 800; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; text-decoration-thickness: 3px; }

/* tarjetas */
.grid { display: grid; gap: 24px; }
.card { background: var(--white); border: var(--stroke) solid var(--ink); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 26px; min-width: 0; }
.card p:last-child { margin-bottom: 0; }
.card .muted { margin-bottom: 0; }
.card-peach { background: var(--peach); } .card-butter { background: var(--butter); } .card-mint { background: var(--mint); } .card-lilac { background: var(--lilac); }
.card-ink { background: var(--ink); color: var(--cream); }
.card-ink .muted { color: var(--muted-on-ink); }
.num-paso { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: var(--stroke-small) solid var(--ink); border-radius: 50%; background: var(--butter); font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 14px; }

/* portada */
.hero { padding: 40px 0 64px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero .tag { margin-bottom: 20px; }
.hero .hl { display: inline-block; background: var(--peach); border: var(--stroke) solid var(--ink); border-radius: var(--radius-btn); box-shadow: var(--shadow-btn); padding: .02em .22em; margin-top: .16em; line-height: 1.1; }
.hero .lead { margin: 22px 0 26px; }
.hero-nota { color: var(--muted); font-size: .95rem; margin: 18px 0 0; }

/* teléfono con el chat de ejemplo */
.telefono { background: var(--ink); border: var(--stroke) solid var(--ink); border-radius: 34px; box-shadow: var(--shadow-card); padding: 12px; max-width: 380px; width: 100%; justify-self: center; }
.pantalla { background: #EFE7DA; border-radius: 24px; overflow: hidden; }
.pantalla .barra { background: var(--mint); border-bottom: var(--stroke-small) solid var(--ink); padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 800; }
.pantalla .barra img { width: 30px; height: 30px; background: var(--white); border: 2px solid var(--ink); border-radius: 50%; padding: 2px; }
.pantalla .barra small { display: block; font-weight: 600; font-size: .78rem; }
.chat { padding: 14px; display: grid; gap: 10px; font-size: .93rem; }
.globo { max-width: 86%; padding: 9px 12px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); line-height: 1.4; }
.globo.cli { justify-self: end; background: #D8F5C9; }
.globo .hora { display: block; text-align: right; font-size: .7rem; color: var(--muted); margin-top: 2px; }
.globo.pedido { background: var(--butter); }
.globo ul { margin: 4px 0; padding-left: 18px; }

/* tira de beneficios */
.tira { background: var(--butter); border-top: var(--stroke) solid var(--ink); border-bottom: var(--stroke) solid var(--ink); padding: 0; }
.tira .wrap { display: grid; grid-template-columns: repeat(2, 1fr); }
.tira .celda { padding: 20px 12px; text-align: center; border-right: var(--stroke-small) solid var(--ink); border-bottom: var(--stroke-small) solid var(--ink); font-weight: 800; }
.tira .celda:nth-child(2n) { border-right: 0; }
.tira .celda:nth-last-child(-n+2) { border-bottom: 0; }
.tira .grande { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.05; }
.tira .chica { display: block; font-size: .78rem; letter-spacing: var(--tag-tracking); text-transform: uppercase; margin-top: 6px; }

/* listas con viñeta */
.checks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 17px; height: 17px; border-radius: 50%; background: var(--mint); border: var(--stroke-small) solid var(--ink); }
.card-mint .checks li::before { background: var(--white); }

/* número */
.bloque-ink { background: var(--ink); color: var(--cream); border-top: var(--stroke) solid var(--ink); border-bottom: var(--stroke) solid var(--ink); }
.bloque-ink .lead { color: var(--muted-on-ink); }
.bloque-ink .card { color: var(--ink); }
.dos { display: grid; gap: 32px; align-items: center; }

/* fases */
.fases { display: grid; gap: 20px; counter-reset: fase; }
.fase .dias { display: inline-block; margin-bottom: 12px; }

/* resultados (oculto hasta tener datos reales) */
.tiles { display: grid; grid-template-columns: repeat(1, 1fr); gap: 20px; }
.tile .v { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; display: block; margin: 8px 0; }
.tile .k { font-size: .8rem; font-weight: 800; letter-spacing: var(--tag-tracking); text-transform: uppercase; }

/* preguntas */
.faq { display: grid; gap: 18px; max-width: 820px; }
.faq details { background: var(--white); border: var(--stroke) solid var(--ink); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; flex: none; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: var(--butter); border: var(--stroke-small) solid var(--ink); border-radius: var(--radius-tag); }
.faq details[open] summary::after { content: "−"; background: var(--peach); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* llamado final */
.final { text-align: center; }
.final .card { padding: 40px 24px; }
.final .acciones { justify-content: center; margin-top: 24px; }

/* formulario (ventana) */
dialog { border: var(--stroke) solid var(--ink); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 0; width: min(520px, calc(100vw - 32px)); background: var(--cream); color: var(--ink); }
dialog::backdrop { background: rgba(18, 18, 18, .55); }
.form { padding: 26px; display: grid; gap: 14px; }
.form h2 { font-size: 2rem; margin: 0; }
.form label { font-weight: 800; display: grid; gap: 6px; }
.form input, .form select { font: inherit; font-weight: 600; padding: 11px 12px; border: var(--stroke-small) solid var(--ink); border-radius: var(--radius-btn); background: var(--white); color: var(--ink); width: 100%; }
.form .trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .estado { margin: 0; font-weight: 800; min-height: 1.4em; }
.form .estado.error { color: #B3261E; }
.form .fila { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.cerrar { background: none; border: 0; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; padding: 6px; color: var(--ink); }
.ok-envio { padding: 30px 26px; text-align: center; display: grid; gap: 12px; }

/* pie */
footer { background: var(--ink); color: var(--cream); border-top: 8px solid var(--peach); padding: 40px 0 48px; font-size: .93rem; }
footer .wrap { display: grid; gap: 22px; }
footer a { color: var(--cream); }
footer .brand { color: var(--cream); }
footer .brand img { background: var(--cream); border-radius: 50%; padding: 3px; }
footer .muted { color: var(--muted-on-ink); }
.pie-cols { display: grid; gap: 20px; }
.pie-cols h4 { margin: 0 0 8px; font-size: .8rem; letter-spacing: var(--tag-tracking); text-transform: uppercase; color: var(--muted-on-ink); }
.pie-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* páginas legales */
.legal { padding: 40px 0 70px; }
.legal .card { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.5rem; margin: 28px 0 8px; }
.legal li { margin-bottom: 6px; }

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .nav-links { display: flex; }
  .hero { padding: 64px 0 84px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; }
  .tira .wrap { grid-template-columns: repeat(4, 1fr); }
  .tira .celda { border-bottom: 0; }
  .tira .celda:nth-child(2n) { border-right: var(--stroke-small) solid var(--ink); }
  .tira .celda:last-child { border-right: 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .dos { grid-template-columns: 1.1fr .9fr; }
  .fases { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .pie-cols { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 1000px) { .fases { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* celular: nada más ancho que la pantalla */
.hero .wrap > *, .dos > *, .grid > *, .fases > * { min-width: 0; }
@media (max-width: 480px) {
  .tag { white-space: normal; letter-spacing: .08em; }
  h1 { font-size: 2.15rem; }
  .hero .hl { box-shadow: var(--shadow-tag); }
}

/* utilidades (la política de seguridad del sitio no permite estilos en línea) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mt { margin-top: 16px; }
.sin-mt { margin-top: 0; }
.centro { margin: 0 auto; }
.mt-chico { margin-top: 12px; }
.sin-m { margin: 0; }
.nota { font-size: .85rem; }

/* cuatro rubros e integraciones */
.sistemas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.sistemas li { background: var(--white); border: var(--stroke-small) solid var(--ink); border-radius: var(--radius-btn); box-shadow: var(--shadow-tag); padding: 10px 16px; font-weight: 800; font-size: 1.02rem; }
.sistemas li:nth-child(4n+1) { background: var(--peach); }
.sistemas li:nth-child(4n+2) { background: var(--mint); }
.sistemas li:nth-child(4n+3) { background: var(--lilac); }
.sistemas li:nth-child(4n+4) { background: var(--butter); }
.otro { margin: 28px 0 0; font-size: 1.1rem; }
.marcas { margin: 10px 0 0; color: var(--muted); font-size: .82rem; }
@media (min-width: 720px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* botones de la barra: Iniciar sesión + Agendar demo */
.nav-acciones { display: flex; gap: 10px; align-items: center; }
.nav .login { display: none; }
@media (min-width: 900px) { .nav .login { display: inline-flex; } }
.proximo { margin: 8vh auto 0; text-align: center; display: grid; gap: 18px; justify-items: center; }
.proximo h1 { max-width: 16ch; }
.centrado { justify-content: center; }

/* franja hacia el sitio de trading */
.franja { display: block; background: var(--ink); color: var(--cream); text-align: center; font-weight: 800; font-size: .9rem; padding: 8px var(--gutter); text-decoration: none; }
.franja:hover { text-decoration: underline; }
