/* Estilos compartidos de las páginas internas (soporte, privacidad). Mismos tokens que la home. */
:root {
  color-scheme: light;
  --bg: #fafafc;
  --bg-alt: #f1eff7;
  --surface: #ffffff;
  --ink: #16121f;
  --muted: #5c5769;
  --line: #e4e0ee;
  --accent: #5b3fd6;
  --on-accent: #ffffff;
  --accent-soft: #eeeafd;
  --warn: #a8442a;
  --warn-soft: #f6e6df;
  --ok: #177a34;
  --ok-soft: #e6f2e9;
  --rule: rgba(22, 18, 31, .1);
  --dark: #15102a;
  --on-dark: #f1eefa;
  --on-dark-muted: #b7afcf;
  --dark-line: #2a2345;
  --mint: #b9a8ff;
  --ph-bg: #fff3b8;
  --ph-ink: #5c4a00;
  --ph-line: #c9a700;
  --serif: Newsreader, "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: .8rem;
  --fs-sm: .94rem;
  --fs-md: 1rem;
  --fs-lg: 1.15rem;
  --fs-h3: 1.3rem;
  --radius: 14px;
  --header-h: 66px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; text-underline-offset: 3px; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 30; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.ph { background: var(--ph-bg); color: var(--ph-ink); outline: 1px dashed var(--ph-line); border-radius: 4px; padding: 0 5px; font-style: normal; font-weight: 500; }

/* Header */
header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.brand .labs { font-style: italic; font-weight: 500; color: var(--accent); margin-left: .22em; }
.links { display: flex; align-items: center; gap: 18px; font-size: var(--fs-sm); white-space: nowrap; }
.links a:not(.btn) { color: var(--muted); text-decoration: none; padding: 12px 0; }
.links a:not(.btn):hover, .links a[aria-current="page"] { color: var(--ink); }
.links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 560px) { .links a[aria-current="page"] { display: none; } .brand { font-size: 1.4rem; } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: inherit; font-weight: 600; font-size: var(--fs-md); text-decoration: none; border: 1.5px solid var(--accent); cursor: pointer; transition: background-color .2s ease-out, color .2s ease-out; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.links .btn { min-height: 44px; padding: 0 18px; font-size: var(--fs-sm); }
.btn .wa { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Encabezado de página */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 18ch; }
.page-head p { margin-top: 16px; color: var(--muted); font-size: var(--fs-lg); max-width: 62ch; }
.page-head .meta { font-size: var(--fs-sm); margin-top: 10px; }

/* Soporte */
.support { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px 64px; padding: 56px 0 88px; align-items: start; }
.support h2 { font-size: 1.75rem; margin-bottom: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field legend { font-weight: 600; font-size: var(--fs-sm); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-md); }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--warn); }
.field .err { color: var(--warn); font-size: var(--fs-xs); font-weight: 600; min-height: 1em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); margin: 4px 0 20px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 14px; font-size: var(--fs-xs); color: var(--muted); }
.status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: var(--fs-sm); }
.status.ok { background: var(--ok-soft); color: var(--ok); }
.status.error { background: var(--warn-soft); color: var(--warn); }
.status[hidden] { display: none; }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 12px 0; font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .2s ease-out; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 62ch; }
.contact-alt { margin-top: 28px; padding: 20px 22px; border-radius: var(--radius); background: var(--bg-alt); font-size: var(--fs-sm); color: var(--muted); }
.contact-alt b { color: var(--ink); display: block; font-size: var(--fs-md); margin-bottom: 4px; }
.support > *, .legal > * { min-width: 0; }
@media (max-width: 900px) { .support { grid-template-columns: 1fr; padding-top: 40px; } }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } .card { padding: 22px 18px; } }

/* Privacidad */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 48px 0 96px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: var(--fs-sm); }
.toc b { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.toc ol { padding-left: 18px; display: grid; gap: 2px; color: var(--muted); }
.toc a { text-decoration: none; display: inline-block; padding: 4px 0; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.6rem; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-h3); margin: 24px 0 8px; }
.prose p, .prose li { color: #3d3848; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }
.prose .aaip { margin-top: 20px; padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--bg-alt); border-radius: 0 10px 10px 0; font-size: var(--fs-sm); }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; background: var(--bg-alt); padding: 18px 20px; border-radius: var(--radius); } }

/* Pie */
footer { background: var(--dark); color: var(--on-dark-muted); padding: 32px 0 40px; font-size: var(--fs-sm); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 36px; }
footer b { display: block; color: var(--on-dark); font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; }
footer b .labs { font-style: italic; font-weight: 500; color: var(--mint); margin-left: .22em; }
footer a { color: var(--on-dark); }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
footer :focus-visible { outline-color: var(--mint); }
