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

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

@font-face {
  font-family: Sora;
  src: url(/landing/fonts/sora-latin-800-normal.woff2) format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fff;
  --soft: #f4f2f9;
  --text: #191623;
  --muted: #5a5569;
  --accent: #4931bf;
  --brand: #573bd4;
  --line: #dfdce8;
  --highlight: #E6E0FF;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(56px, 6vw, 84px);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 Sora, system-ui, sans-serif; }
.w { width: min(1080px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.18; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.375rem); }
h2 { font-size: clamp(1.6875rem, 3.3vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
p, dl, dd, figure { margin: 0; }
a { color: var(--accent); text-underline-offset: .23em; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: fixed; z-index: 10; top: 12px; left: var(--gutter); padding: 10px 14px; background: var(--text); color: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: none; }

header { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--line); background: var(--bg); }
header .w { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 32px); min-height: 68px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.marca-dl { font-size: clamp(1.0625rem, 3.5vw, 1.4375rem); letter-spacing: -.055em; line-height: 1; white-space: nowrap; }
.marca-dl b { font-weight: 800; }
.marca-dl i { display: inline-block; width: .27em; height: .19em; margin: 0 .07em; background: var(--brand); }
header .w > nav { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 24px); margin-left: auto; }
nav a, .idioma a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .875rem; text-decoration: none; }
nav a:hover, .idioma a:hover { color: var(--accent); }
.idioma { display: flex; align-items: center; }
.idioma a { min-width: 44px; justify-content: center; }
.idioma [aria-current] { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border-radius: 10px; background: var(--brand); color: #fff; font-size: .875rem; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--accent); }
.menu { display: none; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

.top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 6vw, 88px); padding-block: clamp(48px, 6vw, 84px) var(--section); }
.top h1 { max-width: 16ch; line-height: 1.1; }
.top h1 span { display: block; margin-top: .15em; }
mark { padding-inline: .08em; background: var(--highlight); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.top h1 mark { display: inline-block; max-width: 100%; }
.lead { max-width: 39ch; margin-top: 16px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.125rem); }
.top .lead { margin-block: 22px 20px; }
.badge { display: inline-block; vertical-align: top; }
.badge img { width: auto; height: 48px; }
.platform { margin-top: 10px; color: var(--muted); font-size: .8125rem; }
.sheet { padding: clamp(16px, 2.8vw, 32px); border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: 7px 7px 0 var(--soft), 7px 7px 0 1px var(--line); }
.sheet-head { display: flex; justify-content: flex-start; margin-bottom: 14px; }
.score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 5px 10px; border-radius: 6px; background: var(--soft); color: var(--accent); font-size: .8125rem; }
.score b { font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.question { font-size: clamp(1rem, 1.55vw, 1.25rem); font-weight: 600; line-height: 1.4; }
.label { margin-block: 14px 2px; color: var(--muted); font-size: .8125rem; }
.answer { font-size: .9375rem; }
.answer u { text-decoration-color: var(--brand); text-underline-offset: .2em; }
.ideas { margin: 16px 0 10px; padding: 0; border-top: 1px solid var(--line); list-style: none; font-size: .875rem; }
.ideas li { display: grid; grid-template-columns: 1.2em minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ideas .check { color: var(--accent); }
.ideas .missing mark { font-weight: 600; }
.missing small { margin-left: 8px; color: var(--muted); font-size: .75rem; }
.sheet figcaption { color: var(--muted); font-size: .75rem; }

section { padding-block: var(--section); border-top: 1px solid var(--line); }
.alt { background: var(--soft); }
.illustration-note { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; margin-top: 28px; }
.feat { display: grid; row-gap: 12px; min-width: 0; padding: 16px 0 0; border-top: 2px solid var(--text); }
.feat-copy, .feat-list { color: var(--muted); font-size: .875rem; }
.feat-list { margin: 0; padding-left: 1.125rem; }
.feat-list li + li { margin-top: 3px; }
.mock { min-width: 0; margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--bg); font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.mock p + p { margin-top: 8px; }
.mk-label { color: var(--muted); font-size: .75rem; }
.mk-input, .mk-panel { padding: 7px 8px; border-radius: 7px; background: var(--soft); }
.mk-panel { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 6px; color: var(--accent); }
.mk-title { font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.mk-result { padding: 7px 8px; border-left: 2px solid var(--brand); }
.mk-result strong { display: block; color: var(--accent); font-weight: 600; }
.mk-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 8px; }
.mk-progress { height: 4px; margin-block: 6px 12px; border-radius: 6px; background: linear-gradient(90deg, var(--brand) 30%, var(--line) 30%); }
.mk-choices { display: grid; gap: 4px; margin: 8px 0 0; padding: 0; list-style-position: inside; }
.mk-choices li { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; }
.mk-choices .chosen { border-color: var(--brand); background: var(--soft); color: var(--accent); }
.mock pre { margin: 8px 0; padding: 6px 8px; border-radius: 6px; background: var(--soft); color: var(--text); font: .75rem/1.55 ui-monospace, Menlo, monospace; white-space: pre-wrap; }

.calendar { margin-top: 26px; }
.calendar figcaption { margin-bottom: 8px; color: var(--muted); font-size: .875rem; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.cal li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 78px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .8125rem; }
.cal b { font-size: 1.5rem; font-weight: 600; }
.cal .review { border-color: var(--brand); background: var(--soft); color: var(--accent); }
.cal .exam { background: var(--brand); color: #fff; }

.rows { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 28px; margin-top: 24px; }
.rows > div { grid-column: span 2; padding-top: 12px; border-top: 1px solid var(--line); }
.rows > div:nth-last-child(-n + 2) { grid-column: span 3; }
.rows dt { font-size: 1.0625rem; font-weight: 600; }
.rows dd { margin-top: 5px; color: var(--muted); }

.two { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 64px); align-items: start; }
.mut { margin-top: 12px; color: var(--muted); font-size: .875rem; }
.tbl { padding: 6px clamp(8px, 2vw, 20px) 14px; border: 1px solid var(--line); border-radius: 14px; font-size: .9375rem; }
.tbl p { margin-top: 10px; color: var(--muted); font-size: .8125rem; }
.tbl p strong { color: var(--text); font-weight: 600; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 3px; border-bottom: 1px solid var(--line); text-align: right; }
th:first-child { text-align: left; }
thead th { color: var(--muted); font-weight: 400; font-size: .8125rem; }
tbody th { font-weight: 400; }
td { white-space: nowrap; font-weight: 600; }
details.q { border-bottom: 1px solid var(--line); }
details.q:first-child { border-top: 1px solid var(--line); }
details.q summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 0; font-weight: 600; }
details.q summary::after { content: "+"; color: var(--accent); font-size: 1.375rem; line-height: 1; }
details.q[open] summary::after { content: "−"; }
details.q p { margin: 0 22px 14px 0; color: var(--muted); font-size: .9375rem; }
.end { text-align: center; }
.end .badge { margin-top: 18px; }

footer { padding: 32px 0; border-top: 1px solid var(--line); font-size: .875rem; }
.fg { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 20px; }
.fg > div { display: flex; flex-direction: column; align-items: flex-start; }
.footer-label { font-weight: 600; }
.fg a:not(.logo) { display: inline-flex; align-items: center; min-height: 38px; color: var(--muted); }
.fg a:hover { color: var(--accent); }
.legal { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }

.error-page { min-height: 70vh; padding-block: var(--section); }
.error-page p { margin-top: 12px; color: var(--muted); }
.error-page .error-code { color: var(--accent); font-size: .875rem; margin: 0 0 8px; }
.error-page h2 { margin-top: 42px; }
.error-page ul { display: flex; flex-wrap: wrap; gap: 0 20px; padding: 0; list-style: none; }
.error-page li a { display: inline-flex; align-items: center; min-height: 44px; }

@supports (grid-template-rows: subgrid) {
  .feat { grid-row: span 4; grid-template-rows: subgrid; }
}

@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  header .w { gap: 8px; }
  header .w > nav { display: none; }
  header .btn { margin-left: auto; }
  .menu { display: block; }
  .menu summary { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .875rem; font-weight: 600; }
  .menu summary::after { content: ""; width: 6px; height: 6px; margin: -3px 1px 0 0; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
  .menu[open] summary { background: var(--soft); color: var(--accent); }
  .menu[open] summary::after { margin-top: 3px; transform: rotate(225deg); }
  .menu-panel { position: absolute; right: var(--gutter); top: calc(100% + 8px); width: min(320px, calc(100% - 2 * var(--gutter))); max-height: calc(100dvh - 88px); overflow: auto; padding: 8px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: 0 16px 45px -12px rgb(25 22 35 / .24); }
  .menu-panel nav a { display: flex; border-bottom: 1px solid var(--line); }
  .menu-panel .idioma { gap: 8px; margin-top: 6px; }
  .fg a:not(.logo) { min-height: 44px; }
}

@media (max-width: 700px) {
  .top, .two { grid-template-columns: minmax(0, 1fr); }
  .top h1 { max-width: 18ch; }
  .sheet { max-width: 560px; }
  .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .rows > div, .rows > div:nth-last-child(-n + 2) { grid-column: auto; }
  .rows > div:last-child { grid-column: 1 / -1; }
  .fg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  header .btn, .menu summary { padding-inline: 9px; font-size: .8125rem; }
  .menu summary { gap: 5px; }
  .features, .rows { grid-template-columns: minmax(0, 1fr); }
  .cal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cal li { padding-inline: 6px; }
  .cal .exam { grid-column: span 2; }
  .tbl { font-size: .875rem; }
  .fg { gap: 24px 20px; }
  .fg > div:first-child { grid-column: 1 / -1; }
  .fg a:not(.logo) { padding-block: 6px; line-height: 1.4; }
}

.missing small{white-space:nowrap}
