/* Protección MD · seguros de salud AXA
   Estilo corporativo limpio: arquitectura en duotono azul de la marca, sans fina,
   etiquetas pequeñas, cifras grandes y bordes finos. Sin fotos de personas. */

@font-face { font-family: "Jakarta"; src: url("/assets/fonts/jakarta-latin.woff2") format("woff2"); font-weight: 200 800; 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("/assets/fonts/jakarta-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f4f6fa;
  --paper: #ffffff;
  --ink: #0f1638;
  --muted: #5a6382;
  --line: #dce2ee;
  --brand: #2e3192;
  --brand-2: #2f4aa0;
  --deep: #141a4f;
  --sky: #e6ecf7;
  --accent: #cf2530;
  --font: "Jakarta", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1280px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --r: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.6; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.015em; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 999px; text-decoration: none; }
.skip:focus { top: .5rem; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.eyebrow { font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); }
.lede { color: var(--muted); max-width: 52ch; }
.nums { font-variant-numeric: tabular-nums; }

/* buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: 0 1.5rem; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 500; font-size: .95rem; text-decoration: none; white-space: nowrap; border: 1px solid transparent; transition: background-color .2s ease, color .2s ease, transform .14s var(--ease); }
.button:active { transform: scale(.98); }
.button--light { background: #fff; color: var(--brand); }
.button--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.button--small { min-height: 2.5rem; padding: 0 1.1rem; font-size: .88rem; }
.arrow-link { display: inline-flex; align-items: center; gap: .45rem; padding-bottom: .3rem; border-bottom: 1px solid currentColor; text-decoration: none; font-weight: 500; }
.arrow-link svg { width: .8em; height: .8em; transition: transform .2s var(--ease); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .22em; transition: text-decoration-color .2s ease; }
.link-plain { text-decoration: underline; text-underline-offset: .2em; }
@media (hover: hover) {
  .button:hover { background: var(--deep); }
  .button--light:hover { background: var(--sky); color: var(--brand); }
  .button--ghost:hover { background: rgba(255,255,255,.12); }
  .arrow-link:hover svg { transform: translate(2px, -2px); }
  .link:hover { text-decoration-color: currentColor; }
}

/* header */
.bar { position: absolute; z-index: 30; top: 0; left: 0; right: 0; color: #fff; }
.bar__in { display: flex; align-items: center; gap: 2rem; padding-block: 1.6rem; }
.bar__mark { display: inline-flex; align-items: center; gap: .65rem; margin-right: auto; text-decoration: none; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.bar__mark img { width: 2.3rem; height: 2.3rem; }
.bar__mark span b { color: var(--accent); font-weight: 600; }
.bar__mark span { white-space: nowrap; }
@media (max-width: 30em) { .bar__mark { font-size: 1.05rem; gap: .45rem; } .bar__mark img { width: 1.9rem; height: 1.9rem; } .bar__in { padding-block: 1.1rem; } }
.bar__nav { display: flex; align-items: center; gap: 1.9rem; font-size: .95rem; }
.bar__nav a { text-decoration: none; opacity: .92; }
.bar__nav a[aria-current="page"] { border-bottom: 1px solid currentColor; }
.is-light .bar { color: var(--ink); }
@media (max-width: 64em) { .bar__nav a:not(.bar__lang) { display: none; } .bar__in { gap: 1rem; } }

/* hero */
.hero { position: relative; min-height: min(100svh, 56rem); color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: var(--brand-2); }
.hero--page { min-height: min(78svh, 44rem); }
.hero__img { position: absolute; inset: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,19,63,.88) 0%, rgba(16,19,63,.66) 38%, rgba(16,19,63,.1) 70%, rgba(16,19,63,0) 100%), linear-gradient(0deg, rgba(16,19,63,.55) 0%, rgba(16,19,63,0) 30%); }
.hero__body { position: relative; z-index: 2; padding-top: 9rem; padding-bottom: 3rem; }
.hero__text { max-width: 40rem; display: grid; gap: 1.4rem; justify-items: start; }
.hero .eyebrow { color: #dfe7f8; }
.hero__title { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.6rem); line-height: 1.05; font-weight: 400; letter-spacing: -.02em; }
.hero__lede { max-width: 34rem; color: #e3e9f8; font-size: 1.02rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: .6rem; }
.hero__facts { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 2.2rem; padding-block: 1.6rem 2.2rem; font-size: .88rem; color: #dfe7f8; }
.hero__facts strong { color: #fff; font-weight: 500; }
@media (max-width: 47.99em) {
  .hero { min-height: auto; }
  .hero__img::after { background: linear-gradient(180deg, rgba(16,19,63,.5) 0%, rgba(16,19,63,.82) 70%); }
  .hero__body { padding-top: 7.5rem; }
}

/* section heads */
.section { padding-block: var(--section); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: 3.5rem; }
.head__title { display: grid; gap: 1rem; }
.head .lede { justify-self: end; }
@media (max-width: 52em) { .head { grid-template-columns: 1fr; } .head .lede { justify-self: start; } }

/* about + stats */
.about { position: relative; }
.about::before { content: ""; position: absolute; left: 0; top: 0; width: 26rem; height: 22rem; background-image: radial-gradient(circle, #c9d2e6 1px, transparent 1.2px); background-size: 22px 22px; opacity: .8; pointer-events: none; mask-image: linear-gradient(135deg, #000 40%, transparent 80%); }
.about__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; }
.about__text { display: grid; gap: 2.5rem; align-content: end; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.stat__num { font-size: clamp(2.3rem, 1.6rem + 2vw, 3.2rem); font-weight: 300; letter-spacing: -.03em; line-height: 1; color: var(--brand); }
.stat__num sup { font-size: .42em; vertical-align: super; margin-left: .1em; }
.stat__label { margin-top: .6rem; font-size: .88rem; color: var(--muted); max-width: 18ch; }
.about__img { margin-top: 4rem; border-radius: var(--r); overflow: hidden; aspect-ratio: 21 / 8; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 52em) { .about__grid { grid-template-columns: 1fr; } .about__img { aspect-ratio: 4 / 3; } }
@media (max-width: 30em) { .stats { grid-template-columns: 1fr; } }

/* services list */
.services { background: var(--paper); }
.svc { display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem 2rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__num { font-size: .85rem; color: var(--muted); }
.svc__name { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.svc__name a { text-decoration: none; }
.svc__desc { color: var(--muted); max-width: 58ch; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.tag { font-size: .8125rem; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--paper); }
@media (max-width: 52em) { .svc { grid-template-columns: 3rem minmax(0, 1fr); } .svc__body { grid-column: 2; } }

/* values */
.values__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.value { padding: 2rem 1.6rem 2.2rem; display: grid; gap: 1rem; align-content: start; }
.value + .value { border-left: 1px solid var(--line); }
.value svg { width: 1.6rem; height: 1.6rem; color: var(--brand); margin-bottom: 2.5rem; }
.value h3 { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.value p { font-size: .92rem; color: var(--muted); }
@media (max-width: 64em) { .values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .value:nth-child(3) { border-left: 0; } .value:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 36em) { .values__grid { grid-template-columns: 1fr; } .value + .value { border-left: 0; border-top: 1px solid var(--line); } .value svg { margin-bottom: 1rem; } }

/* blue band with the waiting-list tool */
.band { position: relative; overflow: hidden; background: var(--brand-2); color: #fff; }
.band__img { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; }
.band__img img { width: 100%; height: 100%; object-fit: cover; }
.band__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand-2) 0%, rgba(47,74,160,.35) 45%, rgba(47,74,160,0) 100%); }
.band__in { position: relative; z-index: 2; padding-block: var(--section); display: grid; gap: 2rem; max-width: 46rem; }
.band .eyebrow { color: #dfe7f8; }
.band__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; color: #dfe6f8; font-size: .95rem; }
.waits { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem; border: 1px solid rgba(255,255,255,.28); border-radius: var(--r); background: rgba(16,19,63,.28); }
.waits label { display: grid; gap: .35rem; font-size: .8125rem; color: #dfe7f8; }
.waits select { appearance: none; width: 100%; min-height: 2.9rem; padding: 0 2.4rem 0 1rem; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat calc(100% - 1rem) 50% / .7rem auto; color: #fff; font-size: .95rem; }
.waits select option { color: var(--ink); }
.waits__out { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.4rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.22); }
.waits__days { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.waits__text { color: #dfe6f8; font-size: .95rem; max-width: 30rem; }
.waits__text strong { color: #fff; }
.band__source { font-size: .8125rem; color: #c9d4f0; max-width: 40rem; }
.band__source a { color: #fff; }
@media (max-width: 52em) {
  .band__img { position: relative; width: 100%; height: 16rem; }
  .band__img::after { background: linear-gradient(0deg, var(--brand-2) 0%, rgba(47,74,160,0) 60%); }
  .band__cols, .waits { grid-template-columns: 1fr; }
}

/* cards (situations) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.card { display: grid; gap: 1rem; padding: 1rem 1rem 1.4rem; text-decoration: none; align-content: start; }
.card + .card { border-left: 1px solid var(--line); }
.card__img { aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: 6px; background: var(--sky); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card__title { font-size: 1.05rem; font-weight: 500; }
.card__text { font-size: .9rem; color: var(--muted); }
.card .arrow-link { justify-self: start; font-size: .9rem; color: var(--brand); }
@media (hover: hover) { a.card:hover .card__img img { transform: scale(1.04); } }
@media (max-width: 52em) { .cards { grid-template-columns: 1fr; } .card + .card { border-left: 0; border-top: 1px solid var(--line); } }

/* guides */
.guides { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.guide { display: grid; gap: 1rem; align-content: start; }
.guide__top { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.guide__img { aspect-ratio: 16 / 7.5; overflow: hidden; border-radius: 6px; }
.guide__img img { width: 100%; height: 100%; object-fit: cover; }
.guide h3 { font-size: 1.2rem; font-weight: 500; }
.guide p { font-size: .95rem; color: var(--muted); max-width: 62ch; }
@media (max-width: 52em) { .guides { grid-template-columns: 1fr; } }

/* faq */
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; font-size: 1.05rem; font-weight: 500; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; flex: none; width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: 50%; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: .75rem; height: 1.5px; background: var(--brand); transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { padding: 0 3.5rem 1.6rem 0; color: var(--muted); max-width: 70ch; }
.faq__a p + p { margin-top: .8em; }
.faq__a a { color: var(--brand); }
@media (hover: hover) { .faq__item summary:hover { color: var(--brand); } }

/* split panel (calculator, office, consulate) */
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.5rem 4rem; padding: clamp(1.5rem, 4vw, 3.5rem); border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.panel__head { display: grid; gap: 1rem; align-content: start; justify-items: start; }
@media (max-width: 52em) { .panel { grid-template-columns: 1fr; } }
.calc { display: grid; gap: 1rem; }
.calc__field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; }
.calc__field input { width: 7rem; min-height: 2.8rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); text-align: right; font-weight: 500; }
.calc__check { display: flex; align-items: baseline; gap: .7rem; }
.calc__check input { accent-color: var(--brand); transform: translateY(.12em); }
.calc__result { margin-top: 2rem; padding: 1.4rem 1.6rem; border-radius: var(--r); background: var(--brand); color: #fff; display: grid; gap: .3rem; }
.calc__out { font-size: 2.6rem; font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.calc__note { font-size: .88rem; color: #dfe6f8; }
.facts li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts li:first-child { border-top: 1px solid var(--line); }
.facts span:first-child { color: var(--muted); }
.facts span { overflow-wrap: anywhere; }

/* comparison table */
.cmp__wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.cmp__table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cmp__table th, .cmp__table td { padding: 1rem 1.25rem; text-align: left; font-weight: 400; border-bottom: 1px solid var(--line); }
.cmp__table thead th { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.cmp__table tbody tr:last-child > * { border-bottom: 0; }
.cmp__yes { color: var(--brand); font-weight: 600; }
.cmp__no { color: var(--muted); }
.cmp__note { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
@media (max-width: 36em) { .cmp__table { font-size: .82rem; } .cmp__table th, .cmp__table td { padding: .75rem .45rem; } .cmp__table thead th { letter-spacing: .02em; } }

/* call to action band */
.cta { position: relative; overflow: hidden; background: var(--deep); color: #fff; text-align: center; }
.cta::before, .cta::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; background-image: radial-gradient(circle, rgba(255,255,255,.22) 1px, transparent 1.2px); background-size: 22px 22px; pointer-events: none; }
.cta::before { left: 0; mask-image: linear-gradient(90deg, #000, transparent); }
.cta::after { right: 0; mask-image: linear-gradient(270deg, #000, transparent); }
.cta__in { position: relative; z-index: 2; padding-block: var(--section); display: grid; gap: 1.2rem; justify-items: center; }
.cta__text { color: #cfd7f2; max-width: 36rem; }
.cta__form { margin-top: 1rem; display: flex; gap: .5rem; padding: .35rem; width: min(100%, 30rem); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.06); }
.cta__form input { flex: 1; min-width: 0; padding: 0 1.1rem; border: 0; background: transparent; color: #fff; font-size: .95rem; }
.cta__form input::placeholder { color: #aeb8de; }
.cta__form input:focus-visible { outline: none; }
.cta__form:focus-within { border-color: #fff; }
.cta__note { font-size: .82rem; color: #aeb8de; }
@media (max-width: 30em) { .cta__form { flex-direction: column; border-radius: 18px; } .cta__form input { min-height: 2.8rem; } }

/* footer */
.foot { background: var(--deep); color: #cfd7f2; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.foot__in { padding-block: 3.5rem 2rem; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.4fr; gap: 2rem; }
.foot__brand { display: grid; gap: 1rem; align-content: start; }
.foot__brand .bar__mark { color: #fff; }
.foot__col { display: grid; gap: .5rem; align-content: start; }
.foot__col h2 { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: .3rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot__legal { padding-block: 1.5rem 2.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8125rem; color: #aab4da; }
.foot__legal p { max-width: 90ch; }
@media (max-width: 64em) { .foot__in { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* prose (legal pages) */
.prose { padding-top: 9rem; padding-bottom: var(--section); max-width: 50rem; }
.prose h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin-bottom: 2rem; }
.prose h2 { font-size: 1.25rem; font-weight: 500; margin: 2.5rem 0 .8rem; }
.prose p + p { margin-top: .9em; }
.prose ul { padding-left: 1.2em; display: grid; gap: .4rem; margin-top: .6rem; }
.prose a { color: var(--brand); }

/* quote form */
.quiz { padding-top: 8.5rem; padding-bottom: var(--section); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3rem 4rem; align-items: start; }
.quiz__head { display: grid; gap: 1.2rem; position: sticky; top: 2rem; }
.quiz__title { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.quiz__lede { color: var(--muted); max-width: 30rem; }
.quiz__aside { font-size: .92rem; color: var(--muted); }
.quiz__photo { margin-top: 1rem; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; }
.quiz__photo img { width: 100%; height: 100%; object-fit: cover; }
.quiz__body, .quiz__done { padding: clamp(1.4rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.quiz__done { display: grid; gap: 1.4rem; }
.quiz__done dl { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.5rem; padding: 1.2rem 1.4rem; border-radius: 8px; background: var(--bg); }
.quiz__done dt { color: var(--muted); }
.quiz__progress { display: none; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 2rem; overflow: hidden; }
.is-stepped .quiz__progress { display: block; }
.quiz__progress span { display: block; height: 100%; width: var(--done, 0%); background: var(--brand); transition: width .5s var(--ease); }
.qstep { border: 0; margin: 0; padding: 0; min-width: 0; }
.qstep + .qstep { margin-top: 2.5rem; }
.is-stepped .qstep { display: none; }
.is-stepped .qstep.is-on { display: block; animation: q-in .45s var(--ease); }
.is-stepped .qstep + .qstep { margin-top: 0; }
@keyframes q-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.qstep__q { font-size: 1.35rem; font-weight: 500; letter-spacing: -.01em; margin-bottom: 1.3rem; padding: 0; }
.qstep__q:focus { outline: none; }
.qopts { display: grid; gap: .55rem; }
.qopt { position: relative; display: block; cursor: pointer; }
.qopt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.qopt span { display: block; padding: .95rem 1.2rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.qopt input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.qopt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (hover: hover) { .qopt:hover input:not(:checked) + span { border-color: var(--brand); } }
.qfields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.qfield { display: grid; gap: .35rem; }
.qfield--wide { grid-column: 1 / -1; }
.qfield label { font-size: .88rem; color: var(--muted); }
.qfield input, .qfield select { width: 100%; min-height: 3rem; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 1rem; appearance: none; }
.qfield select { background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230f1638' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat calc(100% - 1rem) 50% / .7rem auto; padding-right: 2.5rem; }
.qfield input:focus-visible, .qfield select:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.qfield [aria-invalid="true"] { border-color: var(--accent); }
.qcheck { grid-column: 1 / -1; display: flex; gap: .7rem; align-items: baseline; font-size: .92rem; }
.qcheck input { accent-color: var(--brand); flex: none; transform: translateY(.12em); }
.quiz__nav { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; margin-top: 2rem; }
.quiz__back { margin-right: auto; color: var(--muted); text-decoration: underline; text-underline-offset: .2em; }
.quiz__error { margin-top: 1rem; color: var(--accent); font-weight: 500; }
.quiz__error:empty { display: none; }
@media (max-width: 52em) { .quiz { grid-template-columns: 1fr; padding-top: 7rem; } .quiz__head { position: static; } .quiz__photo { display: none; } .qfields { grid-template-columns: 1fr; } }

/* entrances */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .hero__text > * { animation: rise .9s var(--ease) both; }
  .js .hero__text > :nth-child(2) { animation-delay: .08s; }
  .js .hero__text > :nth-child(3) { animation-delay: .16s; }
  .js .hero__text > :nth-child(4) { animation-delay: .24s; }
  .js .hero__img img { animation: zoom 1.8s var(--ease) both; }
  .waits__out { transition: opacity .16s ease; }
  .is-swap { opacity: 0; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes zoom { from { transform: scale(1.06); } to { transform: none; } }
