/* DPES SII · landing */
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --blue: #1072b8;
  --blue-light: #7cc0f2;
  --orange: #f28c28;
  --orange-hover: #ffa24a;
  --ink: #16202e;
  --ink-2: #44526a;
  --line: #d9e1ec;
  --tint: #f3f6fa;
  --white: #ffffff;
  --radius: 6px;
  --wrap: 1160px;
  --font: "Jakarta", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 750; color: var(--navy); max-width: 22ch; }
h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }
.sap { color: var(--blue); font-weight: inherit; }

.preview-bar { background: #fff4d6; color: #5a4200; font-size: .875rem; text-align: center; padding: 6px 12px; border-bottom: 1px solid #f0d9a0; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 24px; border-radius: var(--radius); border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center; transition: background-color .15s, border-color .15s, color .15s; }
.btn-cta { background: var(--orange); color: var(--navy); }
.btn-cta:hover { background: var(--orange-hover); color: var(--navy); }
.btn-small { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--tint); color: var(--navy); }
.btn[disabled] { opacity: .6; cursor: progress; }
.show-sm { display: none; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { width: 184px; height: auto; }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%; border: 70px solid rgba(16,114,184,.18); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: start; position: relative; z-index: 1; }
.hero .sap { color: var(--blue-light); }
.eyebrow { display: inline-block; font-size: .9rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #cfe0f3; margin-bottom: 20px; padding-left: 14px; border-left: 3px solid var(--orange); }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 20px; max-width: 17ch; }
.lead { font-size: 1.15rem; color: #dbe6f3; max-width: 58ch; }
.benefits { list-style: none; padding: 0; margin: 28px 0 10px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.benefits li { font-size: 1.12rem; font-weight: 750; display: flex; align-items: center; gap: 10px; }
.benefits li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2545' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.benefits-note { font-size: .95rem; color: #b9cbe0; max-width: 60ch; }
.cta-row { margin-top: 28px; }
.cta-support { margin: 12px 0 0; font-size: .95rem; color: #cfe0f3; }

.summary { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px 28px 12px; border-top: 5px solid var(--orange); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.summary .sap { color: var(--blue); }
.summary-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); margin-bottom: 14px; max-width: none; }
.summary dl { margin: 0; }
.summary dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.summary dt { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.summary dd { margin: 2px 0 0; font-size: .98rem; }

/* Secciones */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #e6eef8; }
.section-dark h2 { color: #fff; }
.section-dark a { color: var(--blue-light); }
.section-dark .kicker { color: var(--orange); }
.kicker { font-size: .85rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; }
.prose p { max-width: 64ch; }
.definition { font-size: 1rem; color: var(--ink-2); border-left: 3px solid var(--blue); padding-left: 16px; margin-top: 20px; }
.definition dfn { font-style: normal; font-weight: 700; color: var(--ink); }
.definition a { display: inline-block; margin-top: 6px; }
.note { background: #fff7ee; border-left: 4px solid var(--orange); padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); }
.note-dark { background: rgba(255,255,255,.06); color: #fff; }
.source { font-size: .9rem; color: var(--ink-2); }
.section-dark .source { color: #b9cbe0; }

.features { list-style: none; counter-reset: f; padding: 0; margin: 40px 0 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--navy); }
.features li { counter-increment: f; padding: 24px 24px 8px 0; }
.features li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.features li::before { content: "0" counter(f); display: block; font-size: 2.4rem; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 18px; letter-spacing: -0.03em; }
.features p { color: var(--ink-2); margin: 0; }
.aside-note { font-weight: 600; color: var(--navy); }

.paths { display: grid; grid-template-columns: 1fr 1fr; margin-top: 36px; border: 1px solid var(--line); border-radius: var(--radius); }
.path { padding: 36px; }
.path + .path { border-left: 1px solid var(--line); }
.path h3 { font-size: 1.3rem; }
.path p { color: var(--ink-2); max-width: 46ch; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 2px solid var(--orange); color: var(--navy); }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(4px); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: s; position: relative; padding-top: 60px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 56px; right: -20px; height: 2px; background: var(--line); }
.steps p { color: var(--ink-2); }

/* Formulario */
.form-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
#formulario:focus { outline: none; }
.contact-alt { font-size: .95rem; color: var(--ink-2); }
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide, .form-flag, .form-status { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: .95rem; }
.req { color: #b3261e; }
.opt { font-weight: 400; color: var(--ink-2); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid #9aa8bb; border-radius: var(--radius); background: #fff; color: var(--ink); min-height: 48px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(16,114,184,.25); outline-offset: 0; }
.field [aria-invalid=true] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .9rem; font-weight: 600; margin: 0; }
.hint { font-size: .875rem; color: var(--ink-2); margin: 0; }
.check { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--navy); }
.check label { font-weight: 400; font-size: .95rem; }
.privacy-box { font-size: .85rem; color: var(--ink-2); background: var(--tint); padding: 14px 16px; border-radius: var(--radius); }
.privacy-box p { margin: 0; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-flag { margin: 0; background: #fff4d6; color: #5a4200; padding: 8px 12px; border-radius: var(--radius); font-size: .9rem; }
.form-status { padding: 14px 16px; border-radius: var(--radius); font-weight: 600; }
.form-status.is-success { background: #e7f5ec; color: #14532d; border-left: 4px solid #1c7c43; }
.form-status.is-pending { background: #eef4fb; color: var(--navy); border-left: 4px solid var(--blue); }
.form-status.is-error { background: #fdecea; color: #7f1d1d; border-left: 4px solid #b3261e; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.08rem; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); padding-bottom: 8px; max-width: 64ch; }

.closing { background: var(--tint); border-top: 1px solid var(--line); padding: 40px 0; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.closing p { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--navy); }

/* Pie */
.site-footer { background: #fff; border-top: 4px solid var(--navy); padding: 48px 0 32px; font-size: .92rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-brand img { width: 170px; margin-bottom: 14px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal { grid-column: 1 / -1; font-size: .82rem; border-top: 1px solid var(--line); padding-top: 20px; margin: 0; }

/* Consentimiento */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; display: flex; justify-content: center; }
.consent[hidden] { display: none; }
.consent-inner { background: #fff; color: var(--ink); max-width: 760px; width: 100%; border-radius: 8px; box-shadow: 0 18px 60px rgba(11,37,69,.35); border: 1px solid var(--line); padding: 22px 24px; max-height: calc(100vh - 32px); overflow-y: auto; }
.consent h2 { font-size: 1.15rem; margin-bottom: 8px; max-width: none; }
.consent p { font-size: .92rem; color: var(--ink-2); }
.consent fieldset { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.consent-actions .btn { min-height: 44px; padding: 10px 18px; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .split, .form-grid, .faq-wrap { grid-template-columns: 1fr; gap: 36px; }
  .features { grid-template-columns: 1fr 1fr; }
  .features li:nth-child(3) { padding-left: 0; border-left: 0; }
  .features li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .section { padding: 60px 0; }
  .hero { padding: 28px 0 44px; }
  .hero h1 { font-size: 1.95rem; margin-bottom: 14px; }
  .eyebrow { font-size: .8rem; margin-bottom: 14px; }
  .lead { font-size: 1.02rem; }
  .benefits-note { font-size: .88rem; }
  .cta-row { margin-top: 20px; }
  .consent-inner { padding: 16px; }
  .consent p { font-size: .85rem; }
  .hero::after { display: none; }
  .benefits { flex-direction: column; gap: 6px; margin-top: 18px; }
  .benefits li { font-size: 1.1rem; }
  .cta-row .btn { width: 100%; }
  .features { grid-template-columns: 1fr; }
  .features li, .features li + li { padding: 22px 0 6px; border-left: 0; }
  .features li + li { border-top: 1px solid var(--line); }
  .paths { grid-template-columns: 1fr; }
  .path { padding: 26px 22px; }
  .path + .path { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li { padding: 0 0 0 60px; min-height: 44px; }
  .steps li::after { display: none; }
  .lead-form { grid-template-columns: 1fr; padding: 22px 18px; }
  .submit-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .closing-inner .btn { width: 100%; }
  .consent { left: 8px; right: 8px; bottom: 8px; }
  .consent-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 520px) {
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .brand img { width: 120px; }
  .header-inner { min-height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

a[href^="tel:"] { white-space: nowrap; }
