/* Assistant AI — Cumbre Dev. CSS propio, sin dependencias. */

@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --night: #0f1b33;
  --white: #ffffff;
  --bg: #f5f7fb;
  --raised: #ffffff;
  --ink: #0f1b33;
  --muted: #5c6678;
  --line: #dfe5ef;
  --btn-bg: #0f1b33;
  --btn-ink: #ffffff;
  --ph-bg: #fff1b8;
  --ph-ink: #4a3600;
  --bubble-in: #ffffff;
  --bubble-out: #0f1b33;
  --bubble-out-ink: #ffffff;
  --font: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 8px;
  --r-card: 22px;
  --r-pill: 9999px;
  --wrap: 1120px;
  --prose: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1324;
    --raised: #15213a;
    --ink: #f5f7fb;
    --muted: #9aa6b8;
    --line: #24324f;
    --btn-bg: #ffffff;
    --btn-ink: #0f1b33;
    --ph-bg: #3d3110;
    --ph-ink: #ffe28a;
    --bubble-in: #1d2b48;
    --bubble-out: #f5f7fb;
    --bubble-out-ink: #0f1b33;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  overflow-wrap: break-word;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; background: var(--raised); padding: 8px 16px; z-index: 10; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.label { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

/* Placeholder visible para completar */
.ph { background: var(--ph-bg); color: var(--ph-ink); padding: 0 .3em; border-radius: 4px; font-weight: 600; overflow-wrap: anywhere; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 72px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-size: .95rem; font-weight: 600; display: inline-block; padding: 10px 0; }
.site-nav a:hover { text-decoration: underline; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none; border: 2px solid var(--btn-bg); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Secciones */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 28px; }

/* Chat de ejemplo */
.chat { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.chat-head img { width: 40px; height: 40px; border-radius: 10px; }
.chat-head strong { display: block; font-size: .95rem; }
.chat-head span { font-size: .8rem; color: var(--muted); }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: .92rem; line-height: 1.45; margin: 0; }
.msg-in { background: var(--bubble-in); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg-out { background: var(--bubble-out); color: var(--bubble-out-ink); align-self: flex-end; border-bottom-right-radius: 6px; }
.msg-note { align-self: center; font-size: .78rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-pill); padding: 4px 12px; margin: 4px 0 0; }
.chat-caption { font-size: .8rem; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* Grillas y tarjetas */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; }
.card p:last-child { margin-bottom: 0; }
.step-num { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--r-pill); background: var(--btn-bg); color: var(--btn-ink); font-weight: 700; margin-bottom: 16px; }
.icon { width: 28px; height: 28px; margin-bottom: 14px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps { list-style: none; padding: 0; margin: 0; }

.privacy-box { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }
.privacy-box ul { margin: 0 0 0 1.1em; padding: 0; }
.privacy-box li { margin-bottom: 6px; }

.contact { text-align: left; }
.contact .mail { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 600; word-break: break-word; }

/* Páginas legales */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: calc(var(--prose) + 40px); }
.legal h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.4em; padding-top: .6em; scroll-margin-top: 16px; }
.legal h3 { margin-top: 1.6em; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: .45em; }
.meta-line { color: var(--muted); font-size: .95rem; }
.toc { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 28px; margin: 28px 0 8px; }
.toc p { font-weight: 600; margin-bottom: .4em; }
.toc ol { margin: 0; }
.callout { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 24px; margin: 20px 0; }
.callout p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; background: var(--bg); }
tr:last-child td { border-bottom: 0; }
ol.big-steps { counter-reset: s; list-style: none; padding: 0; }
ol.big-steps > li { counter-increment: s; position: relative; padding: 0 0 0 56px; margin-bottom: 24px; }
ol.big-steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: var(--r-pill); background: var(--btn-bg); color: var(--btn-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: .05em .35em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { display: inline-block; padding: 6px 0; }
.site-footer p { margin: 0; color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap, .grid-3, .grid-2, .privacy-box { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .card { padding: 22px; }
  .brand img { height: 30px; }
}
@media print {
  .site-header nav, .skip { display: none; }
  body { background: #fff; color: #000; }
}
