@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/assets/schibsted-grotesk.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  /* Badalona a mediodía: cal, mar y sol. */
  --cal: #fbf8f1;
  --papel: #ffffff;
  --arena: #f4eee0;
  --tinta: #10242b;
  --tinta-2: #40535a;
  --linea: #dcd6c7;
  --mar: #0d6078;
  --mar-claro: #e4f1f6;
  --sol: #ffc94d;
  --sol-claro: #fff4d2;
  --si: #17754c;
  --si-claro: #e3f4ea;
  --hh: #22b573;
  --alerta: #9a2f1c;
  --sombra-1: 0 1px 2px rgba(16,36,43,.06), 0 6px 18px rgba(16,36,43,.07);
  --sombra-2: 0 2px 4px rgba(16,36,43,.07), 0 22px 54px rgba(16,36,43,.16);
  --radio: 18px;
  --font: 'Schibsted Grotesk', 'Avenir Next', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4.5vw, 64px);
  --lap: clamp(70px, 10vw, 140px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cal); color: var(--tinta); font: 400 1.0625rem/1.55 var(--font); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
h1, h2, h3, h4, h5, p, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 800; line-height: 1.1; letter-spacing: -.015em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--mar); outline-offset: 3px; border-radius: 4px; }
#herramienta:focus:not(:focus-visible), #quiz-title:focus:not(:focus-visible), .match-card:focus:not(:focus-visible), #lead-recipient:focus:not(:focus-visible) { outline: none; }
.wrap { width: min(calc(100% - var(--gutter) * 2), 1240px); margin-inline: auto; }
.sr, .lead-sr, .lead-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
.skip { position: absolute; top: .65rem; left: .65rem; z-index: 5; transform: translateY(-180%); background: var(--sol); color: var(--tinta); padding: .7rem 1rem; border-radius: 10px; font-weight: 700; }
.skip:focus { transform: none; }
.eyebrow, .quiz-step { font: 700 .8rem/1.4 var(--font); letter-spacing: .07em; text-transform: uppercase; color: var(--mar); }
.eyebrow span { color: var(--tinta-2); letter-spacing: .02em; text-transform: none; font-weight: 500; white-space: nowrap; }

/* Cabecera */
.masthead { background: var(--cal); border-bottom: 1px solid var(--linea); }
.mast-inner { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .42em; white-space: nowrap; text-decoration: none; color: var(--tinta); font: 800 1.42rem/1 var(--font); letter-spacing: -.035em; }
.brandmark { width: 1.18em; height: 1.18em; flex: none; margin-top: -.12em; }
.mast-nav { display: flex; gap: 4px; margin-left: auto; }
.mast-nav a, .lang a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; font-size: .94rem; font-weight: 600; text-decoration: none; color: var(--tinta-2); border-radius: 10px; }
.mast-nav a:hover, .lang a:hover { color: var(--tinta); background: var(--arena); }
.lang { display: flex; gap: 2px; padding-left: clamp(6px, 1.4vw, 16px); border-left: 1px solid var(--linea); }
.lang a { min-width: 44px; justify-content: center; font-weight: 700; }
.lang a[aria-current] { color: var(--tinta); box-shadow: inset 0 -3px var(--sol); border-radius: 10px 10px 0 0; }

/* Portada: la foto a sangre, la pregunta debajo y la herramienta montada sobre la foto. */
.top { position: relative; padding-bottom: clamp(36px, 5vw, 72px); }
.top-photo { display: block; height: clamp(170px, 26vw, 360px); overflow: hidden; background: #b9d5e6; }
.top-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.top-grid { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 4.4vw, 64px); align-items: start; margin-top: calc(var(--lap) * -1); }
.hero-copy { padding-top: calc(var(--lap) + clamp(26px, 3.2vw, 46px)); }
.hero-copy h1 { font-size: clamp(2.05rem, 3.8vw, 3.45rem); margin-top: 12px; line-height: 1.05; letter-spacing: -.025em; }
.hero-sub { margin-top: 18px; font-size: clamp(1.05rem, 1.25vw, 1.2rem); color: var(--tinta-2); max-width: 46ch; }
.hero-facts { display: flex; gap: clamp(16px, 2.6vw, 34px); margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--linea); }
.hero-facts dt { font: 800 clamp(1.7rem, 2.6vw, 2.3rem)/1 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-facts dd { margin-top: 6px; font-size: .86rem; line-height: 1.3; color: var(--tinta-2); max-width: 13ch; }
.hero-copy .hero-cta { display: none; }
.tool-shell { min-width: 0; }
.tool-grid { background: var(--papel); border-radius: var(--radio); box-shadow: var(--sombra-2); padding: clamp(18px, 2.4vw, 32px); }
.tool-panel { min-width: 0; }
.disclosure-note { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--linea); color: var(--tinta-2); font-size: .86rem; line-height: 1.5; }
.disclosure-note a { color: var(--tinta); font-weight: 700; white-space: nowrap; }
/* Con el formulario o el estudio en pantalla, la portada cede todo el ancho. */
body:is([data-stage="contact"], [data-stage="loading"], [data-stage="result"], [data-stage="failed"]) .hero-copy { display: none; }
body:is([data-stage="contact"], [data-stage="loading"], [data-stage="result"], [data-stage="failed"]) .top-grid { grid-template-columns: minmax(0, 1fr); max-width: 1080px; --lap: clamp(48px, 7vw, 96px); }
body:is([data-stage="contact"], [data-stage="loading"], [data-stage="result"], [data-stage="failed"]) .top-photo { height: clamp(120px, 17vw, 230px); }
body:is([data-stage="loading"], [data-stage="result"], [data-stage="failed"]) .disclosure-gate { display: none; }

/* Botones */
.btn { appearance: none; border: 1.5px solid var(--tinta); background: var(--papel); color: var(--tinta); text-decoration: none; display: inline-flex; gap: 12px; align-items: center; justify-content: center; padding: 12px 20px; min-height: 50px; font: 700 1rem/1.25 var(--font); text-align: center; border-radius: 12px; transition: background-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--tinta); color: #fff; }
.btn.primary:hover { background: #1d3a44; }
.btn.secondary:hover { background: var(--arena); }
.arrow { font-size: 1.2rem; line-height: 1; }

/* Cuestionario */
.quiz-step-view { animation: subir .3s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes subir { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.quiz-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.quiz-progress { display: flex; gap: 5px; width: 132px; }
.quiz-progress span { display: block; height: 6px; border-radius: 3px; background: #e2ddcf; flex: 1; }
.quiz-progress .is-current { background: var(--sol); }
.quiz-progress .is-complete { background: var(--tinta); }
.quiz-question, #tool-fallback h3 { font-size: clamp(1.45rem, 2.1vw, 1.95rem); }
.hint { color: var(--tinta-2); margin: 8px 0 16px; }
.fields.quiz-options { display: grid; grid-template-columns: 1fr; gap: 8px; }
.fields.quiz-zone-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz-option { appearance: none; border: 1.5px solid var(--linea); border-radius: 12px; background: var(--papel); color: var(--tinta); display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: start; padding: 11px 14px; min-height: 54px; font-weight: 650; line-height: 1.3; transition: border-color .15s, background-color .15s; }
.quiz-option::after { content: ''; height: 8px; width: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-inline: 2px 4px; flex: none; color: var(--mar); }
.quiz-option small { display: block; margin-top: 2px; font-size: .78rem; font-weight: 500; color: var(--tinta-2); }
.quiz-option small i { font-style: normal; }
.quiz-option.is-selected { border-color: var(--tinta); background: var(--sol-claro); }
.quiz-option:active { background: var(--sol-claro); }
@media (hover: hover) { .quiz-option:hover { border-color: var(--tinta); background: var(--mar-claro); } }
.quiz-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; margin-top: 18px; }
.quiz-actions:empty { display: none; }
.quiz-edit { background: none; border: 0; text-decoration: underline; text-underline-offset: .2em; padding: 8px 0; min-height: 44px; font-weight: 650; color: var(--tinta); }
#tool-fallback p { margin: 10px 0; max-width: 52ch; color: var(--tinta-2); }

/* El plano de barrios: se toca el barrio o se elige en la lista. */
.zone-map { position: relative; }
.zone-map svg { display: block; width: 100%; height: auto; border-radius: 14px; background: #f1ead9; }
.zone-shape { fill: #e9e1cd; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; cursor: pointer; transition: fill .15s; }
.zone-shape.is-named { fill: #fffdf7; stroke: #a9b3ae; stroke-width: 1.2; }
.zone-shape.is-hot { fill: var(--sol); }
.zone-shape.is-selected { fill: var(--mar); }
@media (hover: hover) { .zone-shape:hover { fill: var(--sol); } }
.zone-wave { fill: none; stroke: #fff; stroke-width: 1.5; }
.zone-label { font: 700 19px var(--font); fill: var(--tinta); text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: #fffdf7; stroke-width: 5px; stroke-linejoin: round; }
.zone-sea-name { font: 600 17px var(--font); letter-spacing: .12em; text-transform: uppercase; fill: #2e7f97; pointer-events: none; }
.zone-map-readout { position: absolute; top: 10px; left: 10px; margin: 0; padding: 5px 11px; border-radius: 999px; background: var(--tinta); color: #fff; font-size: .86rem; font-weight: 700; pointer-events: none; }
.zone-map-readout:empty { display: none; }
.zone-map figcaption { margin-top: 6px; font-size: .74rem; color: var(--tinta-2); text-align: right; }
.quiz-map-slot { margin-bottom: 12px; }
.zone-map-home { margin-top: 16px; }

/* Resultado */
/* Solo opacidad: un desplazamiento aquí dejaría la barra de contacto fija dentro de la ficha. */
.result { animation: aparecer .35s ease-out both; }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
.match-receipt { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--si-claro); color: var(--si); letter-spacing: .02em; text-transform: none; font-size: .88rem; }
.match-receipt::before { content: ''; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--si) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.3 8.3l2.4 2.4 5-5.4' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain; }
.match-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.match-again { min-height: 40px; padding: 4px 0; font-size: .92rem; color: var(--mar); }
.quiz-result > .quiz-question { margin-top: 14px; font-size: clamp(1.7rem, 3.2vw, 2.7rem); letter-spacing: -.03em; max-width: 22ch; }
.match-comparison { margin-top: 12px; font-size: 1.1rem; max-width: 62ch; }
.match-profile { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.match-profile span { padding: 4px 11px; border-radius: 999px; background: var(--arena); font-size: .84rem; color: var(--tinta-2); }
.match-overview { margin-top: 22px; border: 1.5px solid var(--tinta); border-radius: 16px; overflow: hidden; background: var(--papel); }
.match-overview > .quiz-step { padding: 14px 16px 0; }
.match-legend { margin: 8px 0 12px; padding: 0 16px; list-style: none; counter-reset: criterio; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .88rem; color: var(--tinta-2); }
.match-legend li { counter-increment: criterio; display: flex; gap: 7px; align-items: baseline; }
.match-legend li::before { content: counter(criterio); flex: none; width: 1.45em; height: 1.45em; border-radius: 50%; background: var(--tinta); color: #fff; font-size: .74rem; font-weight: 700; display: inline-grid; place-items: center; transform: translateY(-1px); }
.match-jump { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 14px; min-height: 54px; padding: 10px 16px; border-top: 1px solid var(--linea); text-decoration: none; }
.match-jump strong { font-size: 1.04rem; line-height: 1.25; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.match-jump > span { order: 3; font: 800 1.15rem/1 var(--font); font-variant-numeric: tabular-nums; min-width: 2.4em; text-align: right; }
.match-jump:hover strong { text-decoration-thickness: 2px; }
.match-jump[data-role="sponsor"] { background: var(--sol-claro); }
.match-jump[data-role="sponsor"] strong { font-size: 1.16rem; }
.match-dots { order: 2; display: inline-flex; gap: 6px; }
.match-dots b { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #b7bfbb; background: transparent; }
.match-dots b.is-on { border-color: var(--si); background: var(--si) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.3 8.3l2.4 2.4 5-5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain; animation: marcar .4s cubic-bezier(.3, 1.4, .5, 1) both; }
.match-jump:nth-of-type(2) .is-on { animation-delay: .12s; }
.match-jump:nth-of-type(3) .is-on { animation-delay: .2s; }
.match-jump:nth-of-type(4) .is-on { animation-delay: .28s; }
@keyframes marcar { from { transform: scale(.35); } to { transform: none; } }
.match-note { margin-top: 12px; font-size: .86rem; color: var(--tinta-2); max-width: 78ch; }
.match-list { margin-top: 26px; display: grid; gap: 16px; }
.match-card { border: 1px solid var(--linea); border-radius: 16px; background: var(--papel); padding: clamp(16px, 2.2vw, 26px); }
.match-card h4, .match-next h4 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); margin: 6px 0 4px; }
.match-score { display: block; font-weight: 750; color: var(--si); }
.match-complete { margin-top: 2px; color: var(--tinta-2); }
.match-evidence { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.match-evidence li { position: relative; padding-left: 30px; }
.match-evidence li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--si) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.3 8.3l2.4 2.4 5-5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain; }
.match-evidence strong { display: block; line-height: 1.3; }
.match-evidence p, .match-local, .match-gaps, .match-related { font-size: .95rem; color: var(--tinta-2); }
.match-source { color: var(--mar); font-weight: 650; overflow-wrap: anywhere; }
.match-card > p, .sponsor-body > p { margin: 12px 0 0; }
.match-gaps { padding: 10px 12px; border-radius: 10px; background: var(--arena); }
.match-gaps strong, .match-related strong { color: var(--tinta); }
.match-agency-link { font-weight: 650; }
.match-tie { margin-top: 14px; font-size: .88rem; color: var(--tinta-2); }
/* La ficha de quien edita la guía: es publicidad y se ve como tal, con su rótulo. */
.match-sponsor { padding: 0; overflow: hidden; border: 2px solid var(--tinta); box-shadow: var(--sombra-1); display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); }
.sponsor-photo { position: relative; min-height: 100%; background: var(--arena); }
.sponsor-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.sponsor-photo figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 8px; background: rgba(16,36,43,.86); color: #fff; font-size: .8rem; font-weight: 600; }
.sponsor-body { padding: clamp(18px, 2.4vw, 30px); min-width: 0; }
.sponsor-body header { display: grid; }
.sponsor-logo { display: block; width: 132px; height: auto; margin: 12px 0 4px; }
.sponsor-reasons { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--linea); }
.sponsor-reasons h5 { font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--mar); }
.sponsor-reasons ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; font-size: .95rem; color: var(--tinta-2); }
.sponsor-reasons li { position: relative; padding-left: 18px; }
.sponsor-reasons li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--sol); }
.sponsor-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.sponsor-actions .btn { flex: 1 1 210px; min-height: 54px; }
.btn.sponsor-call { background: var(--hh); border-color: var(--hh); color: var(--tinta); font-size: 1.06rem; }
.btn.sponsor-call:hover { background: #2fc783; }
.btn.sponsor-chat:hover { background: var(--si-claro); }
.sponsor-next { font-size: .92rem; color: var(--tinta-2); }
.sponsor-bar { display: none; }
.match-next { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: var(--sol-claro); border-left: 5px solid var(--sol); }
.match-next h4 { margin: 0 0 6px; font-size: 1.1rem; }
.match-method { margin-top: 16px; font-size: .9rem; color: var(--tinta-2); }
.match-method a { font-weight: 650; color: var(--tinta); }
.quiz-summary { border-block: 1px solid var(--linea); margin-top: 18px; }
.quiz-summary summary { min-height: 48px; padding-block: 12px; cursor: pointer; font-weight: 650; }
.quiz-summary ul { padding: 0 0 8px; margin: 0; list-style: none; }
.quiz-summary li { padding: 6px 0; font-size: .95rem; color: var(--tinta-2); }
.quiz-summary strong { display: block; color: var(--tinta); }
#quiz-title, .match-card[id] { scroll-margin-block-start: 12px; }

/* La comparativa en abierto */
.section-head { max-width: 70ch; }
.section-head h2, .notes-inner h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-top: 8px; letter-spacing: -.03em; }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--tinta-2); }
.open-table { padding-block: clamp(40px, 6vw, 88px); background: var(--papel); border-block: 1px solid var(--linea); }
.agencies { list-style: none; margin: 26px 0 0; padding: 0; border-top: 2px solid var(--tinta); }
.agency { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: clamp(14px, 3vw, 44px); padding: 22px 0; border-bottom: 1px solid var(--linea); }
.agency.is-publisher { background: linear-gradient(90deg, var(--sol-claro), transparent 70%); margin-inline: calc(var(--gutter) * -.35); padding-inline: calc(var(--gutter) * .35); border-radius: 10px; }
.agency-head { display: flex; gap: 14px; align-items: flex-start; }
.agency-rank { flex: none; width: 2em; height: 2em; border-radius: 50%; background: var(--tinta); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums; }
.agency h3 { font-size: 1.22rem; line-height: 1.2; }
.agency-zones { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .88rem; color: var(--tinta-2); }
.agency-zones span { color: #63757b; }
.agency-city { margin-top: 8px; font-size: .88rem; color: var(--tinta-2); }
.agency-count { font-weight: 750; }
.agency-services { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.agency-services a { display: inline-flex; align-items: center; min-height: 32px; padding: 3px 12px; border-radius: 999px; border: 1.5px solid var(--si); background: var(--si-claro); color: #0f4f33; font-size: .88rem; font-weight: 650; text-decoration: none; }
.agency-services a:hover { background: #cfeadb; }
.agency details { margin-top: 12px; }
.agency summary { display: inline-flex; align-items: center; min-height: 40px; cursor: pointer; font-size: .92rem; font-weight: 650; color: var(--mar); }
.agency-evidence, .agency details > ul { margin: 6px 0 0; padding-left: 1.1em; font-size: .93rem; color: var(--tinta-2); display: grid; gap: 7px; }
.agency-partial-title { margin-top: 12px; font-size: .86rem; font-weight: 700; }
.source { white-space: nowrap; color: var(--mar); font-weight: 650; }
.table-note { margin-top: 20px; font-size: .9rem; color: var(--tinta-2); max-width: 86ch; }
.table-note a { font-weight: 650; color: var(--tinta); }

/* Respuestas rápidas y antes de firmar */
.quick-answers { background: var(--cal); }
.seller-notes { background: var(--arena); border-top: 1px solid var(--linea); }
.notes-inner { padding-block: clamp(40px, 5.5vw, 84px); display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: clamp(20px, 5vw, 80px); }
.notes-list { min-width: 0; border-top: 2px solid var(--tinta); }
.notes-list > details { border-bottom: 1px solid #c9c2b0; }
.notes-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; min-height: 56px; font-weight: 700; cursor: pointer; list-style: none; }
.notes-list summary::-webkit-details-marker { display: none; }
.notes-list summary::after { content: '+'; font: 400 1.5rem/1 var(--font); flex: none; color: var(--mar); }
.notes-list details[open] > summary::after { content: '−'; }
.notes-list details > p, .answer { color: var(--tinta-2); padding: 0 8px 20px 0; max-width: 74ch; }
.answer ul { margin: 10px 0 0; padding-left: 1.1em; display: grid; gap: 8px; font-size: .96rem; }
.answer strong { color: var(--tinta); }
.answer-partial { margin-top: 14px; font-size: .86rem; font-weight: 700; color: var(--tinta); }
.zone-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: .95rem; }
.zone-table th, .zone-table td { text-align: left; vertical-align: top; padding: 9px 0; border-top: 1px solid #d5cfbf; }
.zone-table th { width: 8.5em; padding-right: 14px; color: var(--tinta); }
.zone-table span { color: #63757b; }

/* Pie y páginas de lectura */
.footer { background: var(--tinta); color: #e8eeec; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding-block: 28px; }
.footer .brand { color: #fff; }
.footer .brandmark { color: #2b4a55; }
.foot-brand p { margin-top: 8px; font-size: .88rem; color: #c3d0cd; }
.footer nav { display: flex; gap: 6px 24px; flex-wrap: wrap; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; }
.footer :focus-visible { outline-color: var(--sol); }
.reading { max-width: 860px; padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 104px); }
.back-link { display: inline-flex; gap: 9px; align-items: center; min-height: 44px; margin-bottom: 14px; font-weight: 650; }
.reading header { padding-bottom: clamp(22px, 3.4vw, 40px); border-bottom: 2px solid var(--tinta); }
.reading h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.035em; }
.reading header p { font-size: 1.15rem; color: var(--tinta-2); max-width: 56ch; margin-top: 14px; }
.reading-body { max-width: 70ch; }
.reading-body section { margin-top: 30px; }
.reading h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.reading-body p, .reading address { margin-top: 12px; }
.reading address { font-style: normal; }
.reading-body a { font-weight: 650; }
.missing-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px !important; }
.missing-links .btn { text-decoration: none; }

@media (max-width: 900px) {
  .top-grid { grid-template-columns: minmax(0, 1fr); margin-top: 0; gap: 22px; }
  .hero-copy { padding-top: 22px; }
  .hero-sub { max-width: 58ch; }
  .hero-copy .hero-cta { display: inline-flex; margin-top: 22px; background: var(--sol); border-color: var(--sol); color: var(--tinta); }
  .hero-copy .hero-cta:hover { background: #ffd978; }
  body:is([data-stage="contact"], [data-stage="loading"], [data-stage="result"], [data-stage="failed"]) .top-grid { margin-top: calc(var(--lap) * -1); }
  .match-sponsor { grid-template-columns: minmax(0, 1fr); }
  .sponsor-photo { height: clamp(150px, 38vw, 250px); min-height: 0; }
  /* En el móvil, llamar o escribir queda siempre a mano. */
  .sponsor-bar { position: fixed; z-index: 4; inset: auto 0 0 0; display: flex; align-items: center; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--papel); border-top: 1px solid var(--linea); box-shadow: 0 -8px 24px rgba(16,36,43,.14); }
  .sponsor-bar p { flex: 1 1 auto; min-width: 0; font-size: .74rem; line-height: 1.25; color: var(--tinta-2); }
  .sponsor-bar strong { display: block; font-size: .98rem; color: var(--tinta); }
  .sponsor-bar .btn { flex: none; min-height: 46px; padding: 8px 16px; }
  body[data-stage="result"] { padding-bottom: 76px; }
  .agency, .notes-inner { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 700px) {
  .mast-inner { min-height: 56px; }
  .mast-nav { display: none; }
  .lang { margin-left: auto; border-left: 0; padding-left: 0; }
  .brand { font-size: 1.28rem; }
  .top-photo img { object-position: 50% 20%; }
  .tool-grid { padding: 16px; border-radius: 16px; }
  .quiz-option { min-height: 52px; padding: 10px 12px; }
  .zone-label { font-size: 30px; stroke-width: 8px; }
  .quiz-zone-options .quiz-option small i { display: none; }
  .match-profile { display: none; }
  .zone-sea-name { font-size: 26px; }
  .match-jump { grid-template-columns: minmax(0, 1fr) auto; }
  .match-dots { order: 4; grid-column: 1 / -1; }
  .zone-table th { width: 6.8em; }
  .foot-inner { display: grid; }
}
@media (max-width: 370px) {
  .fields.quiz-zone-options { gap: 6px; }
  .quiz-option { font-size: .95rem; }
  .hero-facts { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}
@media print {
  .masthead, .top-photo, .hero-copy, .disclosure-note, .open-table, .quick-answers, .seller-notes, .footer, .lead-section,
  .quiz-actions, .quiz-summary, .skip, .quiz-edit, .match-again, .sponsor-actions, .sponsor-bar, .sponsor-photo, .quiz-result button { display: none !important; }
  body { color: #101c20; background: #fff; }
  .wrap, .top-grid, .tool-grid, .tool-panel, .match-list, .match-sponsor { display: block; width: 100%; max-width: none; margin: 0; }
  .tool-grid, .match-card, .match-overview { box-shadow: none; padding: 0; border-radius: 0; }
  .match-card { margin: 1rem 0; padding: .7rem 0; break-inside: auto; border: 0; border-top: 1px solid #90999a; }
  .match-card header, .match-evidence li, .match-next { break-inside: avoid; }
  .match-next, .match-jump[data-role="sponsor"], .match-gaps { background: none; }
  .result h3, .result h4 { break-after: avoid; }
}
