/* Koy Studio — landing. Misma paleta que Koy PDF (acento teal), tipografía editorial de Finanzas (Fraunces + Inter). */
:root {
  color-scheme: light;
  --bg: #f4f6f8; --panel: #ffffff; --panel-2: #eef2f4; --border: #d8dee3;
  --text: #10171d; --muted: #5b6b78;
  --accent: #0e7c86; --accent-strong: #0b5f67; --accent-soft: #e2f2f3;
  --ok: #1a7f4b; --ok-soft: #e3f4ea;
  --radius: 18px; --shadow: 0 10px 30px rgba(16, 23, 29, .08);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1418; --panel: #141d23; --panel-2: #101a1f; --border: #243139;
    --text: #e7eef2; --muted: #93a3ae;
    --accent: #34b3bd; --accent-strong: #4cc4cd; --accent-soft: #123036;
    --ok: #5fd191; --ok-soft: #10261a;
    --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1418; --panel: #141d23; --panel-2: #101a1f; --border: #243139;
  --text: #e7eef2; --muted: #93a3ae;
  --accent: #34b3bd; --accent-strong: #4cc4cd; --accent-soft: #123036;
  --ok: #5fd191; --ok-soft: #10261a;
  --shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.55;
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 0 16px 40px;
  overflow-x: hidden;
}
main { width: 100%; max-width: var(--max); }
a { color: var(--accent-strong); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.015em; }
h1, h2 { font-family: var(--display); font-weight: 500; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:target { scroll-margin-top: 84px; }

/* Barra superior */
.topbar {
  position: sticky; top: 0; z-index: 20; width: 100%; max-width: var(--max);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; margin-bottom: 8px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo { width: 38px; height: 38px; display: grid; place-items: center; background: var(--accent); color: #fff; border-radius: 11px; flex: 0 0 auto; }
.bname { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.bname b { font-weight: 500; font-family: var(--display); color: var(--accent-strong); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav a:hover { color: var(--text); }
.topbtns { display: flex; gap: 8px; align-items: center; }
.topbtns button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; color: var(--text); cursor: pointer; }
.topbtns button:hover { border-color: var(--accent); }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: inline; }
}
.cta { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; background: var(--accent); color: #fff; border-radius: 10px; text-decoration: none; font-size: .9rem; font-weight: 600; }
.cta:hover { background: var(--accent-strong); }
@media (max-width: 760px) { .nav { display: none; } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: .98rem; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-strong); }
.btn.secondary { background: var(--panel); color: var(--text); border-color: var(--border); }
.btn.secondary:hover { border-color: var(--accent); }
.btn.big { padding: 16px 22px; font-size: 1.05rem; width: 100%; }

/* Etiquetas y encabezados de sección */
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 10px; }
.section { padding: 56px 0 8px; }
.section-head { max-width: 680px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 10px; }
.section-lead { color: var(--muted); font-size: 1.05rem; }

/* Portada */
.hero {
  position: relative; padding: 56px 0 40px; max-width: 820px;
}
.hero::before {
  content: ""; position: absolute; inset: -80px -40vw 0 -40vw; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 30% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--accent-strong); }
.hero .lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 640px; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.proof li { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.proof svg { color: var(--ok); flex: 0 0 auto; }
@media (max-width: 520px) { .hero { padding-top: 28px; } .hero-cta .btn { width: 100%; } }

/* Tarjetas */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.grid { display: grid; gap: 14px; }
.services { grid-template-columns: repeat(3, 1fr); }
.svc.featured { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.svc.featured .ic { grid-row: span 3; }
.svc.featured h3 { font-size: 1.35rem; font-family: var(--display); font-weight: 500; }
.svc .ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 14px; }
.svc.featured .ic { background: var(--panel); }
.svc h3 { margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: .95rem; }
.bullets { margin-top: 12px; display: grid; gap: 6px; }
.bullets li { position: relative; padding-left: 18px; font-size: .92rem; color: var(--text); }
.bullets li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } .svc.featured { grid-column: span 2; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } .svc.featured { grid-column: span 1; grid-template-columns: 1fr; } .svc.featured .ic { grid-row: auto; } }

/* Productos */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.shot { display: block; background: var(--panel-2); border-bottom: 1px solid var(--border); padding: 22px 22px 0; text-decoration: none; }
.pbody { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ptitle { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ptitle h3 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; }
.pill { font-size: .76rem; font-weight: 600; color: var(--ok); background: var(--ok-soft); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.pbody > p { color: var(--muted); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; font-weight: 600; color: var(--accent-strong); background: var(--accent-soft); border-radius: 8px; padding: 4px 9px; }
.tech { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; }
.tech b { color: var(--text); font-weight: 600; }
.pbody .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 800px) { .products { grid-template-columns: 1fr; } }

/* Maquetas de las apps (puro CSS, sin imágenes) */
.mock { background: var(--panel); border: 1px solid var(--border); border-bottom: none; border-radius: 14px 14px 0 0; padding: 14px 16px 0; box-shadow: var(--shadow); font-size: .8rem; max-width: 420px; margin: 0 auto; transition: transform .2s; }
.shot:hover .mock { transform: translateY(-3px); }
.mock-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.mock-logo { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); }
.mock-logo.fin { background: #0f6b5c; }
.mock-name { font-weight: 700; font-size: .95rem; }
.mock-meter { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--ok); background: var(--ok-soft); border-radius: 999px; padding: 5px 10px; margin-bottom: 10px; }
.mock-meter i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.mock-meter b { font-weight: 700; }
.mock-drop { border: 2px dashed var(--border); border-radius: 10px; background: var(--panel-2); padding: 18px 10px; text-align: center; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.mock-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-bottom: 14px; }
.mock-actions span { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 7px 8px; font-weight: 600; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-bal { margin-bottom: 12px; }
.mock-bal small { display: block; color: var(--muted); font-size: .72rem; }
.mock-bal b { font-family: var(--display); font-weight: 500; font-size: 1.6rem; letter-spacing: -.01em; }
.mock-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; height: 84px; margin-bottom: 10px; }
.mock-bars div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.mock-bars span { display: block; width: 100%; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--panel))); }
.mock-bars small { font-size: .62rem; color: var(--muted); white-space: nowrap; }
.mock-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding: 10px 0 14px; color: var(--muted); }
.mock-row b { color: var(--text); }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.steps li { position: relative; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 14px; font-family: var(--display); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .93rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Stack */
.stack { padding-top: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .86rem; font-weight: 500; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 7px 13px; color: var(--text); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: 36px; margin-top: 16px; background: linear-gradient(135deg, var(--panel), var(--accent-soft)); }
.contact h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 10px; }
.contact-actions { display: grid; gap: 10px; }
.contact-note { font-size: .85rem; color: var(--muted); text-align: center; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; padding: 26px 22px; } }

/* Pie */
.footer { width: 100%; max-width: var(--max); margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; font-size: .86rem; color: var(--muted); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer .logo { width: 30px; height: 30px; border-radius: 9px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .mock, .btn { transition: none; } }
