/* Kit Jornada 2027: estilos comunes del sitio (página principal, términos, aviso de privacidad, 404) y base del generador. */
:root {
  --ink: #1e3a34;
  --ink-2: #2f6b5e;
  --text: #1f2523;
  --muted: #5b6763;
  --line: #d5e0dc;
  --soft: #eff4f2;
  --paper: #ffffff;
  --bg: #f7f5f0;
  --accent: #b5482f;
  --accent-dark: #93361f;
  --ok: #1f7a4d;
  --warn: #8a5a00;
  --bad: #a1271b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 40, 35, 0.06), 0 6px 18px rgba(20, 40, 35, 0.06);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; }
a { color: var(--ink-2); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); margin: 0 0 0.6rem; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 0 0 0.8rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
p { margin: 0 0 0.9rem; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 0.5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
small, .small { font-size: 0.88rem; }

/* encabezado y pie */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--text); }
.nav a:hover { color: var(--ink-2); }
.site-foot { margin-top: 3rem; background: var(--ink); color: #dbe7e3; padding: 2rem 0 2.4rem; font-size: 0.92rem; }
.site-foot a { color: #fff; }
.site-foot .wrap { display: grid; gap: 1rem; }
.foot-note { border-left: 3px solid #8fc1b3; padding-left: 0.8rem; color: #fff; font-style: italic; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; font: inherit; font-weight: 600; border-radius: 999px; padding: 0.7rem 1.25rem; border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; min-height: 44px; }
.btn--cta { background: var(--accent); color: #fff; }
.btn--cta:hover { background: var(--accent-dark); color: #fff; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-2); color: var(--ink-2); }
.btn--sm { padding: 0.4rem 0.85rem; min-height: 36px; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; }

/* página principal */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.lead { font-size: 1.12rem; color: #2c3532; }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.2rem 0 0.6rem; }
.hero__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); }
.hero__card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1rem; }
.hero__card dt { font-weight: 700; color: var(--ink); }
.hero__card dd { margin: 0; }
.section { padding: 2.6rem 0 0.6rem; }
.section > .wrap > p.intro { max-width: 760px; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
table.info { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.info th, table.info td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.info thead th { background: var(--soft); color: var(--ink); }
table.info tbody tr:last-child td { border-bottom: 0; }
.callout { margin: 1.2rem 0; background: #fff8f2; border: 1px solid #efcdbd; border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 1rem 1.2rem; }
.callout p:last-child { margin-bottom: 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.checklist li { padding-left: 1.8rem; position: relative; }
.checklist li::before { content: ''; position: absolute; left: 0.2rem; top: 0.35rem; width: 0.9rem; height: 0.9rem; border: 2px solid var(--ink-2); border-radius: 3px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.card-doc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.card-doc .fmt { display: inline-block; font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--ink-2); border-radius: 999px; padding: 0.1rem 0.55rem; margin-bottom: 0.4rem; }
.card-doc .fmt--xlsx { background: #2e7d4f; }
.card-doc p { margin: 0; color: #33403c; font-size: 0.95rem; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1rem 3.2rem; position: relative; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 1rem; top: 1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.9rem; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; align-items: stretch; }
.price { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; box-shadow: var(--shadow); }
.price--best { border: 2px solid var(--accent); }
.price__tag { align-self: flex-start; font-size: 0.78rem; font-weight: 700; background: var(--accent); color: #fff; border-radius: 999px; padding: 0.15rem 0.6rem; }
.price__amount { font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; }
.price__amount small { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.price ul { margin: 0; padding-left: 1.1rem; }
.price .btn { margin-top: auto; }
.faq { display: grid; gap: 0.6rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.2rem 1.1rem; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--ink); padding: 0.75rem 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 0.6rem; }
.faq details p { margin: 0 0 0.8rem; }
.sources { font-size: 0.92rem; }
.sources li { margin-bottom: 0.35rem; overflow-wrap: anywhere; }
.updated { font-size: 0.9rem; color: var(--muted); }

/* páginas legales */
.doc-page { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 4vw, 2.4rem); margin-top: 2rem; max-width: 860px; }
.doc-page h2 { font-size: 1.2rem; margin-top: 1.6rem; }
.doc-page ol, .doc-page ul { padding-left: 1.3rem; }
.doc-page li { margin-bottom: 0.35rem; }

@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .nav { gap: 0.8rem; font-size: 0.9rem; }
  .nav .nav__hide { display: none; }
}
