/* cuiqli.com · mismo lenguaje visual del app: verde muy oscuro, Pesto como acción, Figtree. Sin estilos en línea (la política CSP no los permite) */

@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-latin-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ground: #050c07;
  --surface: #09130b;
  --raised: #101d13;
  --line: rgba(244, 241, 234, 0.13);
  --line-strong: rgba(244, 241, 234, 0.26);
  --ink: #f4f1ea;
  --soft: #d3d9cf;
  --muted: #9aa89d;
  --acc: #c4f135;
  --acc-ink: #07140a;
  --paper: #ebe7d7;
  --paper-ink: #1c2016;
  --w: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--acc); color: var(--acc-ink); padding: 12px 18px; border-radius: 12px; font-weight: 600; text-decoration: none; transition: top 0.15s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }

/* Tipografía */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.45rem, 6.2vw, 4.5rem); letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1.25; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--soft); max-width: 56ch; }
.measure { max-width: 62ch; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font: inherit; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, filter 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); box-shadow: 0 10px 34px rgba(196, 241, 53, 0.18); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
@media (hover: hover) {
  .btn:not([disabled]):hover { border-color: var(--ink); }
  .btn.primary:not([disabled]):hover { filter: brightness(1.07); border-color: var(--acc); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 50; background: rgba(5, 12, 7, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; color: var(--ink); min-height: 44px; align-items: center; }
.logo { display: block; width: auto; height: 26px; }
.nav-links { display: none; gap: 4px; align-items: center; }
.nav-links a { padding: 10px 14px; border-radius: 999px; color: var(--soft); text-decoration: none; font-size: 0.97rem; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a[aria-current='page'] { color: var(--ink); background: var(--raised); }
@media (hover: hover) { .nav-links a:hover { color: var(--ink); } }
.top .btn { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 2 * var(--gutter))); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; padding: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.menu-panel a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.menu-panel a[aria-current='page'] { background: var(--raised); }
.top-end { display: flex; align-items: center; gap: 12px; }
.top-end .btn { display: none; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu { display: none; }
  .top-end .btn { display: inline-flex; }
}

/* Secciones */
section { padding-block: clamp(64px, 9vw, 116px); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin: 18px 0 0; }

/* Inicio: el ticket impreso es la pieza central */
.hero { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 104px); background: radial-gradient(900px 460px at 78% 10%, rgba(196, 241, 53, 0.08), transparent 65%); }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 72px; } }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 26px; }
.ticket-stage { display: grid; place-items: center; padding: 8px 0 28px; }
.ticket {
  position: relative; width: min(340px, 100%); background: var(--paper); color: var(--paper-ink);
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13.5px; line-height: 1.6; padding: 30px 26px 34px;
  transform: rotate(1.8deg); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.ticket::after { content: ''; position: absolute; left: 0; right: 0; bottom: -13px; height: 14px; background: radial-gradient(circle at 8px 0, #050c07 7px, transparent 7.5px) 0 0 / 16px 14px repeat-x; }
.ticket-name { text-align: center; font-weight: 500; font-size: 1.05rem; letter-spacing: 0.06em; margin: 0; }
.ticket-sub { text-align: center; margin: 2px 0 0; opacity: 0.75; }
.ticket hr { border: 0; border-top: 1px dashed rgba(28, 32, 22, 0.45); margin: 14px 0; }
.ticket-row { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.ticket-row span:last-child { white-space: nowrap; }
.ticket-total { font-weight: 500; font-size: 1.1rem; margin-top: 2px; }
.ticket-foot { text-align: center; margin: 16px 0 0; opacity: 0.75; }
@media (prefers-reduced-motion: no-preference) {
  .ticket { animation: print 2.1s cubic-bezier(0.45, 0.05, 0.25, 1) 0.35s both; }
  @keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px) rotate(1.8deg); } to { clip-path: inset(0 0 -16px 0); transform: translateY(0) rotate(1.8deg); } }
}

/* Resumen en cinco puntos */
.keys { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(40px, 6vw, 72px); }
.keys-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .keys-grid { grid-template-columns: 0.55fr 1.45fr; gap: 64px; } }
.keys h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.keys ul { list-style: none; margin: 0; padding: 0; }
.keys li { padding: 14px 0 14px 34px; border-top: 1px solid var(--line); position: relative; color: var(--soft); }
.keys li:last-child { border-bottom: 1px solid var(--line); }
.keys li::before { content: ''; position: absolute; left: 4px; top: 26px; width: 12px; height: 7px; border-left: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(-45deg); }

/* Recorrido de un pedido: sí es una secuencia, por eso va numerada */
.flow { list-style: none; margin: 0; padding: 0; counter-reset: paso; position: relative; max-width: 640px; }
.flow li { counter-increment: paso; position: relative; padding: 0 0 36px 64px; }
.flow li::before { content: counter(paso); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--ground); display: grid; place-items: center; font-weight: 600; color: var(--acc); z-index: 1; }
.flow li::after { content: ''; position: absolute; left: 20.5px; top: 44px; bottom: 2px; width: 1px; background: var(--line-strong); }
.flow li:last-child { padding-bottom: 0; }
.flow li:last-child::after { display: none; }
.flow h3 { margin-bottom: 6px; }
.flow p { margin: 0; color: var(--soft); }
.flow-layout { display: grid; gap: 56px; }
@media (min-width: 1000px) { .flow-layout { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; } }

/* Pantallas reales del producto */
.devices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 12px; }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.frame { border: 1px solid var(--line-strong); border-radius: 16px; padding: 8px; background: var(--surface); }
.frame.phone { border-radius: 30px; padding: 7px; }
.frame.phone img { border-radius: 23px; }
.devices .wide { grid-column: 1 / -1; }
@media (min-width: 1000px) { .devices { grid-template-columns: 1fr 1fr; } }

/* Para quién */
.audience { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .audience { grid-template-columns: 1fr 1fr; } .audience > div + div { border-left: 1px solid var(--line); } }
.audience > div { padding: clamp(28px, 4vw, 48px) 0; }
@media (min-width: 800px) { .audience > div { padding-inline: clamp(24px, 4vw, 56px); } .audience > div:first-child { padding-left: 0; } .audience > div:last-child { padding-right: 0; } }
.audience p { color: var(--soft); max-width: 44ch; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--acc); text-decoration: none; min-height: 44px; }
.more svg { width: 18px; height: 18px; transition: transform 0.15s; }
@media (hover: hover) { .more:hover svg { transform: translateX(4px); } }

/* Lo que incluye */
.rows { margin: 0; border-top: 1px solid var(--line); }
.rows > div { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .rows > div { grid-template-columns: 0.42fr 1fr; gap: 40px; } }
.rows dt { font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; }
.rows dd { margin: 0; color: var(--soft); max-width: 60ch; }

/* Preguntas frecuentes */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; min-height: 64px; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq .answer { padding: 0 0 24px; color: var(--soft); max-width: 66ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Cierre */
.closing { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: radial-gradient(800px 360px at 15% 100%, rgba(196, 241, 53, 0.09), transparent 70%); }
.closing h2 { max-width: 18ch; }
.closing .trazo { position: absolute; right: -40px; bottom: -30px; width: min(560px, 80vw); opacity: 0.13; pointer-events: none; }
.trazo path { fill: none; stroke: var(--acc); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }

/* Páginas internas y legales */
.page-head { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 20ch; }
.page-head .lead { margin-top: 22px; }
.crumbs { margin: 0 0 22px; padding: 0; list-style: none; display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 0.92rem; }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: 0.6; }
.crumbs a { color: var(--muted); text-decoration: none; min-height: 24px; display: inline-block; }
@media (hover: hover) { .crumbs a:hover { color: var(--ink); } }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 2.2em 0 0.6em; }
.prose h3 { margin: 1.6em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--acc); }
.prose a { color: var(--acc); text-underline-offset: 3px; }
.prose p, .prose li { color: var(--soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose-block { padding-block: clamp(40px, 6vw, 72px); }
.doc-meta { color: var(--muted); font-size: 0.95rem; margin-top: 18px; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: 14px; }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.96rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--soft); }
.table-wrap th { color: var(--ink); font-weight: 600; background: var(--surface); }
.table-wrap tr:last-child td { border-bottom: 0; }

/* Contacto */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 80px; } }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-weight: 600; font-size: 0.97rem; }
.field .hint { color: var(--muted); font-weight: 400; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid='true'], .field textarea[aria-invalid='true'] { border-color: #ff8a7a; }
.consents { display: grid; gap: 14px; margin: 4px 0; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--acc); }
.check span { color: var(--soft); font-size: 0.96rem; line-height: 1.5; }
.check a { color: var(--acc); text-underline-offset: 3px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 500; }
.form-status.ok { color: var(--acc); }
.form-status.err { color: #ff9d8f; }
.side { border-top: 1px solid var(--line); }
.side > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.side h2 { font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.side p { margin: 0; color: var(--soft); }
.side a { color: var(--acc); text-underline-offset: 3px; }

/* Barra fija en teléfono: escribir o llamar */
.dock { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(5, 12, 7, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.dock .btn { flex: 1; min-height: 52px; }
.dock .btn.call { flex: 0 0 56px; padding: 0; }
body.has-dock { padding-bottom: 82px; }
@media (min-width: 760px) { .dock { display: none; } body.has-dock { padding-bottom: 0; } }

/* Compartir */
.share-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 28px; margin-top: 40px; border-top: 1px solid var(--line); color: var(--muted); }
.share-row .btn { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.share-note { min-height: 1.4em; font-size: 0.92rem; }

/* Pie */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding-block: 56px 40px; }
.foot-grid { display: grid; gap: 40px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.foot h2 { font-size: 0.95rem; letter-spacing: 0; margin-bottom: 14px; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot a { color: var(--soft); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) { .foot a:hover { color: var(--acc); } }
.foot address { font-style: normal; color: var(--soft); line-height: 1.7; }
.foot .about { color: var(--muted); max-width: 34ch; margin-top: 14px; }
.legal-line { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }

/* 404 */
.lost { min-height: 60vh; display: grid; align-content: center; }
