/* ==========================================================================
   cadiz.org — hoja de estilos v1.0 (sobre la plantilla de sitio temático 1.2, hoja v1.1)
   1.0 (2026-10-11): identidad de cadiz.org (Fraunces + Outfit, mar, albero, terracota y cal),
       cabecera con cielo, sol, silueta de la ciudad y olas; fotos con atribución; azulejo;
       tarjetas de zonas con foto; mapa de la provincia; calendario de fiestas; webs amigas.
   Semántica de color: --ok (bien), --warn (atención), --bad (alerta), --accent (marca).
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; 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: "Fraunces";
  src: url("../fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-400-normal.woff2") format("woff2");
  font-weight: 400; 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: "Outfit";
  src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2");
  font-weight: 500; 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: "Outfit";
  src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2");
  font-weight: 600; 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: "Outfit";
  src: url("../fonts/outfit-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-ext-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #1d2a33;
  --ink-2: #4a5b66;
  --ink-3: #6b7a84;
  --paper: #fffdf8;
  --surface: #ffffff;
  --line: #e6dccb;
  --accent: #0b5d8f;
  --accent-soft: #e8f6fb;
  --mar: #0b5d8f;
  --mar-deep: #073b5c;
  --atlantico: #1489c7;
  --albero: #f6b93b;
  --sol: #ffd36b;
  --terracota: #c4552d;
  --arena: #f4e6c8;
  --ok: #1f7a55;
  --ok-soft: #ddf1e6;
  --warn: #c07a0c;
  --warn-ink: #8a5600;
  --warn-soft: #fbefd6;
  --bad: #b8432a;
  --bad-soft: #fbe3da;
  --ok-band: rgba(31, 122, 85, .12);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-text: "Outfit", "Segoe UI", system-ui, sans-serif;

  --r-s: 8px;
  --r-m: 18px;
  --r-l: 26px;
  --wrap: 1180px;
  --measure: 70ch;
  --gutter: clamp(16px, 4vw, 40px);
  --sombra: 0 18px 40px -18px rgba(7, 59, 92, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef3f6;
    --ink-2: #b9c8d2;
    --ink-3: #8fa1ad;
    --paper: #0a1d2b;
    --surface: #10293b;
    --line: #23425a;
    --accent: #7cc7e6;
    --accent-soft: #123a52;
    --mar: #7cc7e6;
    --mar-deep: #cfe9f5;
    --arena: #1a2a33;
    --terracota: #f0956f;
    --ok: #5fd0a0;
    --ok-soft: #12352a;
    --warn: #f0b54a;
    --warn-ink: #f0b54a;
    --warn-soft: #3a2e14;
    --bad: #ff9a80;
    --bad-soft: #3d1f17;
    --ok-band: rgba(95, 208, 160, .14);
    --sombra: 0 18px 40px -18px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--f-text);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 760; letter-spacing: -.02em; color: var(--mar-deep); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; color: var(--mar-deep); }
h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--paper); padding: .6em 1em; border-radius: var(--r-s); }
.skip:focus { left: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 600 1rem/1 var(--f-text);
  padding: .85em 1.2em;
  border-radius: 999px;
  text-decoration: none;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink);
  transition: background-color .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { color: var(--ok); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--accent); }
.brand-name { font: 500 1.35rem/1 var(--f-display); letter-spacing: -.03em; margin: 0; }
.brand-name b { font-weight: 780; }
.nav-main { margin-left: auto; display: none; }
.nav-main ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-main a {
  display: block; padding: .5em .7em; border-radius: var(--r-s);
  color: var(--ink-2); text-decoration: none; font-size: .98rem; white-space: nowrap;
}
.nav-main a:hover { color: var(--ink); background: var(--surface); }
.nav-main a[aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--ok); border-radius: 0; }
.btn-test { display: none; padding: .7em 1.05em; font-size: .95rem; }
.nav-mobile { margin-left: auto; }
.nav-mobile summary {
  list-style: none; cursor: pointer; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary .icon { width: 24px; height: 24px; }
.nav-mobile .i-close, .nav-mobile[open] .i-open { display: none; }
.nav-mobile[open] .i-close { display: block; }
.nav-mobile nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: .5rem var(--gutter) 1.25rem; box-shadow: 0 18px 30px -20px rgba(20, 38, 58, .35);
}
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile li + li { border-top: 1px solid var(--line); }
.nav-mobile a { display: block; padding: .9rem 0; color: var(--ink); text-decoration: none; font-size: 1.15rem; }
.nav-mobile a[aria-current="page"] { font-weight: 700; color: var(--ok); }
@media (min-width: 1120px) {
  .nav-main, .btn-test { display: flex; }
  .nav-mobile { display: none; }
}

/* ---------- Migas y cabecera de página ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 1.5rem 0 0; padding: 0; font-size: .95rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.crumbs a { color: var(--ink-2); }
.page-head { max-width: 54rem; padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head .lede { font-size: clamp(1.18rem, 2vw, 1.35rem); line-height: 1.55; color: var(--ink-2); max-width: 46rem; margin-bottom: 1.2rem; }
.page-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .95rem; color: var(--ink-3); margin: 0; }
.page-meta > * { display: inline-flex; align-items: center; gap: .4em; }
.page-meta a { color: var(--ink-2); }

/* ---------- Rejilla de artículo ---------- */
.article-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
.article-grid > * { min-width: 0; }
.toc { display: none; }
@media (min-width: 1000px) {
  .article-grid { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; }
  .toc { display: block; position: sticky; top: 96px; align-self: start; font-size: .95rem; }
  .toc-title { font-family: var(--f-display); font-weight: 650; margin-bottom: .6rem; }
  .toc ol { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--line); }
  .toc li { margin: 0 0 .55rem; }
  .toc a { color: var(--ink-2); text-decoration: none; display: block; line-height: 1.35; }
  .toc a:hover, .toc a.is-active { color: var(--ink); }
  .toc a.is-active { font-weight: 700; box-shadow: -1.1rem 0 0 -0.95rem var(--ok); }
}
.prose { max-width: var(--measure); }
.prose-solo { margin-bottom: 3rem; }
.prose > h2 { margin-top: 2.6em; padding-top: .2em; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--ink-3); }
.prose .wide { max-width: none; width: 100%; }
@media (min-width: 1000px) {
  .prose .wide { width: min(100%, 52rem); }
}

/* Lo esencial */
.keypoints {
  background: var(--surface); border-radius: var(--r-m); padding: 1.4rem 1.5rem 1.2rem;
  border: 1px solid var(--line); margin: 0 0 2.5rem;
}
.keypoints .kp-title { font-size: 1.15rem; margin: 0 0 .8rem; display: flex; align-items: center; gap: .5rem; }
.keypoints .kp-title .icon { color: var(--ok); width: 1.3em; height: 1.3em; }
.keypoints ul { list-style: none; padding: 0; margin: 0; }
.keypoints li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; }
.keypoints li::before {
  content: ""; position: absolute; left: .2rem; top: .55em; width: .62rem; height: .62rem;
  border-radius: 50%; background: var(--ok);
}

/* Avisos */
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start;
  border-radius: var(--r-m); padding: 1.15rem 1.3rem; margin: 1.8rem 0;
  background: var(--accent-soft);
}
.callout > .icon { width: 1.5rem; height: 1.5rem; margin-top: .15rem; color: var(--accent); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.callout-alert { background: var(--bad-soft); }
.callout-alert > .icon { color: var(--bad); }
.callout-ok { background: var(--ok-soft); }
.callout-ok > .icon { color: var(--ok); }

/* Tablas */
.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--f-display); font-weight: 650; background: color-mix(in srgb, var(--paper) 60%, var(--surface)); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 700; }
td.ok { color: var(--ok); font-weight: 700; }
td.mid { color: var(--warn-ink); font-weight: 700; }
td.bad { color: var(--bad); font-weight: 700; }

/* ---------- Infografías ---------- */
.ig {
  margin: 2rem 0 2.5rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-l);
  padding: clamp(1.1rem, 3vw, 2rem);
}
.ig > figcaption, .ig-caption { font-size: .95rem; color: var(--ink-3); margin-top: 1.1rem; line-height: 1.45; }
.ig-title { font-family: var(--f-display); font-size: 1.25rem; font-weight: 680; margin: 0 0 1.2rem; letter-spacing: -.01em; }
.ig svg text { font-family: var(--f-text); fill: var(--ink); }
.ig svg .t-muted { fill: var(--ink-3); }
.ig svg .t-display { font-family: var(--f-display); font-weight: 700; }

/* Escala de diagnóstico: tres tramos coloreados con umbrales */
.scale { margin: 0 0 1.6rem; }
.scale:last-child { margin-bottom: 0; }
.scale-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .55rem; }
.scale-name { font-weight: 700; }
.scale-unit { font-size: .9rem; color: var(--ink-3); }
.scale-bar { display: grid; grid-template-columns: var(--cols); border-radius: 999px; overflow: hidden; height: 2.6rem; }
.scale-bar > span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: .9rem; font-weight: 700; line-height: 1.1; padding: 0 .4rem;
}
.seg-ok { background: var(--ok-soft); color: var(--ok); }
.seg-mid { background: var(--warn-soft); color: var(--warn-ink); }
.seg-bad { background: var(--bad-soft); color: var(--bad); }
.scale-ticks { position: relative; height: 1.5rem; font-size: .88rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.scale-ticks span { position: absolute; top: .25rem; transform: translateX(-50%); white-space: nowrap; }
.scale-ticks span::before { content: ""; position: absolute; left: 50%; top: -.4rem; width: 2px; height: .45rem; background: var(--ink-3); }
.scale-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .95rem; margin-bottom: 1.4rem; }
.scale-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.scale-legend i { width: .9rem; height: .9rem; border-radius: 50%; display: inline-block; }
.scale-legend .l-ok { background: var(--ok); }
.scale-legend .l-mid { background: var(--warn); }
.scale-legend .l-bad { background: var(--bad); }

/* Pasos (secuencias reales: regla 15/15, etc.) */
.steps { list-style: none; margin: 1.5rem 0 2rem; padding: 0; counter-reset: paso; display: grid; gap: .9rem; }
.steps > li {
  counter-increment: paso; position: relative; padding: 1.1rem 1.2rem 1.1rem 4.2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); margin: 0;
}
.steps > li::before {
  content: counter(paso); position: absolute; left: 1.1rem; top: 1rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  font: 750 1.1rem/1 var(--f-display); background: var(--ink); color: var(--paper);
}
.steps h3 { font-size: 1.1rem; margin: .15rem 0 .25rem; }
.steps p { margin: 0; }

/* Rejilla de iconos (síntomas, hábitos…) */
.icon-grid { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.prose .icon-grid { padding-left: 0; }
.icon-grid > li { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; align-items: start; }
.icon-grid .ig-ico {
  grid-row: span 2; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.icon-grid .ig-ico .icon { width: 1.45rem; height: 1.45rem; }
.icon-grid strong { display: block; line-height: 1.3; padding-top: .2rem; }
.icon-grid span.d { color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
.icon-grid.tone-alert .ig-ico { background: var(--bad-soft); color: var(--bad); }
.icon-grid.tone-ok .ig-ico { background: var(--ok-soft); color: var(--ok); }
.icon-grid.tone-high .ig-ico { background: var(--warn-soft); color: var(--warn-ink); }

/* Comparativa (tarjetas con cifra destacada) */
.types { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1.5rem 0 2rem; }
.type-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.3rem; display: flex; flex-direction: column; }
.type-card h3 { margin-bottom: .25rem; }
.type-card .share { font: 750 2.2rem/1 var(--f-display); letter-spacing: -.03em; margin: .4rem 0 .1rem; }
.type-card .share-l { font-size: .92rem; color: var(--ink-3); margin-bottom: 1rem; }
.type-card dl { margin: 0 0 1rem; display: grid; gap: .55rem; font-size: 1rem; }
.type-card dt { font-weight: 700; font-size: .9rem; color: var(--ink-3); }
.type-card dd { margin: 0; line-height: 1.4; }
.type-card .more { margin-top: auto; font-weight: 700; }

/* Tarjetas de color por grupo (plazos, categorías…) */
.checkups { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 0; }
.checkup { border-top: 6px solid var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 8%, var(--surface)); border-radius: var(--r-s); padding: 1rem 1.1rem; }
.checkup h4 { font-size: 1.05rem; margin: 0 0 .5rem; }
.checkup ul { list-style: none; padding: 0; margin: 0; font-size: 1rem; }
.checkup li { padding: .35rem 0; border-top: 1px solid color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); margin: 0; }
.checkup li:first-child { border-top: 0; }

/* ---------- FAQ, relacionados, fuentes ---------- */
.faq, .related, .sources { max-width: 52rem; margin-top: 3.5rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font: 650 1.15rem/1.35 var(--f-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq-chev { position: absolute; right: .3rem; top: 1.25rem; transition: transform .2s; color: var(--ink-3); }
.faq details[open] .faq-chev { transform: rotate(180deg); }
.faq details p { color: var(--ink-2); padding-right: 1rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
@media (min-width: 760px) { .related ul { grid-template-columns: repeat(3, 1fr); } }
.related a { display: flex; flex-direction: column; gap: .4rem; height: 100%; background: var(--surface); padding: 1.2rem; text-decoration: none; color: var(--ink); }
.related a:hover { background: var(--accent-soft); }
.rel-title { font: 680 1.15rem/1.25 var(--f-display); }
.rel-desc { font-size: .97rem; color: var(--ink-2); line-height: 1.45; }
.sources ol { font-size: .95rem; color: var(--ink-2); padding-left: 1.4em; }
.sources li { margin-bottom: .5em; }
.sources a { color: var(--ink-2); overflow-wrap: anywhere; }
.disclaimer { display: flex; gap: .8rem; max-width: 52rem; margin: 3rem 0 4rem; padding: 1.1rem 1.25rem; border-radius: var(--r-m); border: 1px dashed var(--ink-3); font-size: .97rem; color: var(--ink-2); }
.disclaimer .icon { width: 1.3rem; height: 1.3rem; margin-top: .15rem; }
.disclaimer p { margin: 0; }

/* ---------- Pie ---------- */
.site-footer { background: #073b5c; color: rgba(255,255,255,.78); padding: 3.5rem 0 1.5rem; font-size: 1rem; }
.site-footer a { color: #e8eef4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.footer-brand .brand-name { color: #fff; font-size: 1.5rem; margin-bottom: .8rem; }
.footer-h { font: 650 1.05rem/1 var(--f-display); color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-sale { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; padding: 1.2rem 1.4rem; border: 1px solid #2c4058; border-radius: var(--r-m); background: #1a3049; }
.footer-sale p { margin: 0; color: #e8eef4; }
.site-footer .btn-sale { background: #4cc996; border-color: #4cc996; color: #0f1a26; text-decoration: none; }
.site-footer .btn-sale:hover { background: transparent; color: #4cc996; text-decoration: none; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; border-top: 1px solid #2c4058; margin-top: 2.5rem; padding-top: 1.25rem; font-size: .9rem; color: #93a6b9; }
.footer-base p { margin: 0; }

/* ==========================================================================
   Portada
   ========================================================================== */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 0; overflow: hidden; }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 5.6rem); line-height: .98; letter-spacing: -.045em; max-width: 13ch; margin-bottom: 1.2rem; }
.hero .lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--ink-2); max-width: 40rem; }
.hero-top { display: grid; gap: 0 3rem; }
@media (min-width: 980px) {
  .hero-top { grid-template-columns: 1.25fr 1fr; align-items: end; }
  .hero-top h1 { margin-bottom: 0; }
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 0; }


/* Cifras destacadas */
.cifras h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.03em; }
.cifras p { color: var(--ink-2); max-width: 36rem; }
.fact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.fact-list li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: baseline; border-top: 1px solid var(--line); padding-top: .7rem; }
.fact-list b { font: 750 1.35rem/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.fact-list span { color: var(--ink-2); font-size: 1rem; }

/* Rutas de lectura */
.paths { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.paths-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; }
.paths-head h2 { margin: 0; }
.path-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); }
/* 9 tarjetas: 2 columnas con la primera a lo ancho (5 filas) y 3 × 3 en escritorio */
@media (min-width: 720px) { .path-list { grid-template-columns: 1fr 1fr; } .path-list li:first-child { grid-column: span 2; } }
@media (min-width: 1080px) { .path-list { grid-template-columns: repeat(3, 1fr); } .path-list li:first-child { grid-column: auto; } }
.path-list a {
  display: grid; grid-template-rows: auto auto 1fr; gap: .5rem; height: 100%;
  background: var(--surface); color: var(--ink); text-decoration: none; padding: 1.6rem 1.5rem 1.4rem;
}
.path-list a:hover { background: color-mix(in srgb, var(--surface) 80%, var(--accent-soft)); }
.path-list .p-ico { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.path-list .p-ico .icon { width: 1.3rem; height: 1.3rem; }
.path-list h3 { font-size: 1.35rem; margin: .4rem 0 0; }
.path-list p { color: var(--ink-2); font-size: 1rem; margin: 0; line-height: 1.5; }
.path-list li:first-child h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.path-list li:first-child p { font-size: 1.1rem; }
.path-list .p-for { font-size: .92rem; color: var(--ink-3); align-self: end; padding-top: .8rem; }

/* Bloque test */
.test-band { background: var(--ink); color: #eef3f7; border-radius: var(--r-l); padding: clamp(1.8rem, 5vw, 3.5rem); display: grid; gap: 1.5rem; align-items: center; margin: 1rem 0 clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 860px) { .test-band { grid-template-columns: 1.4fr 1fr; } }
.test-band h2 { color: #fff; }
.test-band p { color: #c3cfdb; margin: 0; max-width: 38rem; }
.test-band .btn { background: var(--ok); border-color: var(--ok); color: #fff; justify-self: start; }
.test-band .btn:hover { background: transparent; color: #fff; border-color: #fff; }
.risk-dial { display: flex; gap: 4px; margin-top: 1.4rem; max-width: 26rem; }
.risk-dial span { flex: 1; height: .6rem; border-radius: 99px; }
.risk-dial span:nth-child(1) { background: #4cc996; }
.risk-dial span:nth-child(2) { background: #9fd36b; }
.risk-dial span:nth-child(3) { background: #f0b54a; }
.risk-dial span:nth-child(4) { background: #f08a4a; }
.risk-dial span:nth-child(5) { background: #ff6f8f; }

/* ==========================================================================
   Noticias (estilo Discover)
   ========================================================================== */
.news-section { padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--line); }
.news-body { margin-bottom: 4rem; }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 0 1rem; margin: 0 0 1rem; list-style: none; scrollbar-width: thin; }
.chips a {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); text-decoration: none; font-size: .97rem;
}
.chips a:hover { border-color: var(--ink-3); color: var(--ink); }
.chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.feed { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); margin: 0;
}
.card:hover { border-color: var(--ink-3); }
.card-media { aspect-ratio: 16 / 9; background: var(--accent-soft); overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media.ph { display: grid; place-items: center; color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 12%, var(--surface)); }
.card-media.ph svg.icon { width: 3.2rem; height: 3.2rem; opacity: .85; }
.card-media.ph .ph-wave { position: absolute; inset: auto 0 18% 0; width: 100%; height: 40%; opacity: .45; }
.card-body { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-src { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ink-3); }
.card-src img { width: 16px; height: 16px; border-radius: 3px; }
.card-src .pub { font-weight: 700; color: var(--ink-2); max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card h3 { font: 650 1.12rem/1.3 var(--f-display); margin: 0; letter-spacing: -.005em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h3 a:focus-visible { outline: none; }
.card:has(h3 a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.card p { font-size: .98rem; color: var(--ink-2); margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; gap: .6rem; margin-top: auto; padding-top: .3rem; font-size: .88rem; color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .2em .65em; border-radius: 99px; background: color-mix(in srgb, var(--c, var(--accent)) 13%, var(--surface)); color: var(--c, var(--accent)); font-weight: 700; font-size: .82rem; }
.lang { font-weight: 700; border: 1px solid var(--line); border-radius: 4px; padding: 0 .3em; font-size: .78rem; }
@media (min-width: 900px) {
  .feed > .card.is-lead { grid-column: span 2; grid-row: span 2; }
  .feed > .card.is-lead .card-media { aspect-ratio: 16 / 10; }
  .feed > .card.is-lead h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }
  .feed > .card.is-lead p { -webkit-line-clamp: 4; font-size: 1.05rem; }
}
.feed-empty { background: var(--surface); border: 1px dashed var(--ink-3); border-radius: var(--r-l); padding: 2rem; max-width: 40rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0 0; }
.news-meta { font-size: .95rem; color: var(--ink-3); margin: -0.5rem 0 1.2rem; }

/* ==========================================================================
   Test o autoevaluación configurable
   ========================================================================== */
.quiz { max-width: 46rem; }
.quiz fieldset { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-m); padding: 1.2rem 1.3rem 1rem; margin: 0 0 1rem; }
.quiz legend { font: 650 1.15rem/1.3 var(--f-display); padding: 0 .4rem; margin-left: -.4rem; }
.quiz .hint { font-size: .95rem; color: var(--ink-3); margin: .2rem 0 .8rem; }
.opts { display: grid; gap: .5rem; }
@media (min-width: 640px) { .opts.cols-2 { grid-template-columns: 1fr 1fr; } }
.opts label {
  display: flex; align-items: center; gap: .7rem; cursor: pointer; padding: .7rem .9rem;
  border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--paper); line-height: 1.3;
}
.opts label:hover { border-color: var(--ink-3); }
.opts .pts { margin-left: auto; font-size: .85rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.opts input { accent-color: var(--ok); width: 1.15rem; height: 1.15rem; flex: none; margin: 0; }
.opts label:has(input:checked) { border-color: var(--ok); background: var(--ok-soft); }
.opts label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.result {
  position: sticky; bottom: 0; z-index: 5; margin-top: 1.5rem;
  background: var(--ink); color: #eef3f7; border-radius: var(--r-m) var(--r-m) 0 0; padding: 1.1rem 1.3rem;
}
.result-row { display: flex; align-items: center; gap: 1rem; }
.result-score { font: 780 2.6rem/1 var(--f-display); font-variant-numeric: tabular-nums; min-width: 3.2ch; }
.result-score small { font-size: .95rem; font-weight: 400; color: #93a6b9; }
.result-level { font: 650 1.2rem/1.25 var(--f-display); }
.result p { margin: .6rem 0 0; color: #c3cfdb; font-size: 1rem; }
.result-meter { height: .55rem; border-radius: 99px; background: linear-gradient(90deg, #4cc996 0 27%, #9fd36b 27% 46%, #f0b54a 46% 58%, #f08a4a 58% 81%, #ff6f8f 81%); position: relative; margin-top: .9rem; }
.result-meter i { position: absolute; top: -.35rem; width: 4px; height: 1.25rem; border-radius: 2px; background: #fff; transform: translateX(-50%); left: var(--pos, 0%); transition: left .3s; box-shadow: 0 0 0 2px var(--ink); }
.quiz button.btn { cursor: pointer; }
.result:focus { outline: none; }
.result.is-final { position: static; border-radius: var(--r-m); }
.result .pending { color: #93a6b9; }

/* ==========================================================================
   404 y utilidades
   ========================================================================== */
.list-links { list-style: none; padding: 0; display: grid; gap: .6rem; }
.list-links a { font-size: 1.15rem; font-weight: 700; }
.two-col { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.pill-row li { margin: 0; padding: .35em .8em; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: .97rem; }

@media print {
  .site-header, .site-footer, .toc, .related, .hero-cta, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .ig, .keypoints { break-inside: avoid; }
  a { color: #000; }
}

/* Gráficas de líneas */
.chart { display: block; width: 100%; height: auto; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-cut { stroke: var(--ink-3); stroke-dasharray: 4 5; }
.c-measure { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2 4; }
.c-line { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.c-line.c-ok { stroke: var(--ok); } .c-line.c-mid { stroke: var(--warn); } .c-line.c-bad { stroke: var(--bad); }
.c-dot.c-ok { fill: var(--ok); } .c-dot.c-mid { fill: var(--warn); } .c-dot.c-bad { fill: var(--bad); }
.ig svg text.c-lbl { font-weight: 700; }
.ig svg text.c-lbl.c-ok { fill: var(--ok); } .ig svg text.c-lbl.c-mid { fill: var(--warn-ink); } .ig svg text.c-lbl.c-bad { fill: var(--bad); }


/* Flujo (secuencia real con flechas) */
.flow { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1.6rem; counter-reset: f; }
.prose .flow { padding: 0; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; } }
.flow > li { counter-increment: f; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem 1.1rem 1.1rem; margin: 0; }
.flow > li::before { content: counter(f); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: var(--paper); font: 750 1rem/1 var(--f-display); margin-bottom: .6rem; }
.flow > li:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -1.3rem; width: 2px; height: 1rem; background: var(--ink-3); }
@media (min-width: 900px) {
  .flow > li:not(:last-child)::after { left: auto; right: -1.15rem; top: 1.9rem; bottom: auto; width: .9rem; height: 2px; }
}
.flow strong { display: block; font-family: var(--f-display); font-size: 1.15rem; line-height: 1.2; margin-bottom: .35rem; }
.flow span { display: block; font-size: .98rem; color: var(--ink-2); line-height: 1.45; }
.flow .big { font: 780 2.4rem/1 var(--f-display); color: var(--bad); letter-spacing: -.03em; margin: .2rem 0 .3rem; }
.card-media.ph { aspect-ratio: 16 / 7; }
@media (min-width: 900px) { .card-media.ph { aspect-ratio: 16 / 9; } }
.card-media.ph { aspect-ratio: 16 / 7; }
@media (min-width: 900px) { .card-media.ph { aspect-ratio: 16 / 9; } }
.checkup.c-accent { --c: var(--accent); } .checkup.c-warn { --c: var(--warn); } .checkup.c-bad { --c: var(--bad); } .checkup.c-ok { --c: var(--ok); }

/* Portada: infografía protagonista y nota de fuente */
.hero-visual { margin: clamp(1.5rem, 4vw, 3rem) 0 0; }
.hero-visual .ig { margin: 0; }
.small-note { font-size: .95rem; color: var(--ink-3); margin: .8rem 0 0; }
.cifras { display: grid; gap: 1.5rem 4rem; align-items: start; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
@media (min-width: 860px) { .cifras { grid-template-columns: 1fr 1fr; } }
.cifras .fact-list { margin-top: 0; }
.cifras .fact-list li:first-child { border-top: 0; padding-top: 0; }

/* Barras horizontales (infografía genérica) */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.prose .bars { padding: 0; }
.bars li { margin: 0; display: grid; grid-template-columns: minmax(7rem, 12rem) 1fr; gap: .3rem 1rem; align-items: center; }
@media (max-width: 560px) { .bars li { grid-template-columns: 1fr; } }
.bars .b-label { font-weight: 700; line-height: 1.3; }
.bars .b-track { position: relative; height: 2.2rem; background: color-mix(in srgb, var(--line) 45%, var(--surface)); border-radius: 999px; overflow: hidden; }
.bars .b-fill { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c, var(--accent)); border-radius: 999px; }
.bars .b-val { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .hero-visual .b-fill { animation: grow 1.2s cubic-bezier(.3, 0, .2, 1) both; animation-delay: calc(var(--i, 0) * 120ms + 200ms); }
  @keyframes grow { from { width: 0; } }
}

/* ---------- 1.1: selector de idioma, filtros, código (de harmonyos.es) ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: .4em; font-size: .95rem; font-weight: 600; color: var(--ink-2);
  text-decoration: none; padding: .45em .8em; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.lang-switch:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 520px) { .lang-switch { position: relative; } .lang-switch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.filtro { margin: 0 0 2.5rem; }
.filtro .chips { flex-wrap: wrap; overflow: visible; margin-bottom: .8rem; }
.chip { font: inherit; font-size: .95rem; cursor: pointer; display: inline-flex; align-items: center; gap: .4em; padding: .45em .9em;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filtro-count { color: var(--ink-3); font-size: .95rem; margin: 0 0 1rem; }
[data-filtro] [hidden] { display: none !important; }
pre.code { background: var(--ink); color: var(--paper); padding: 1.1rem 1.2rem; border-radius: var(--r-m); overflow-x: auto;
  font: 400 .9rem/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; max-width: 100%; }
:not(pre) > code { font: .92em ui-monospace, Menlo, Consolas, monospace; background: var(--accent-soft); padding: .05em .35em; border-radius: 4px; }
.card-src .lang.tr { font-size: .75rem; }

/* ==========================================================================
   cadiz.org — identidad propia (v1.0)
   ========================================================================== */
.eyebrow { display: inline-block; font: 600 .78rem/1.2 var(--f-text); letter-spacing: .18em; text-transform: uppercase; color: var(--terracota); margin-bottom: .8rem; }
.btn { background: var(--albero); border-color: var(--albero); color: #073b5c; box-shadow: 0 10px 24px -12px rgba(196, 85, 45, .65); }
.btn:hover { background: var(--sol); border-color: var(--sol); color: #073b5c; }
.btn-ghost { background: transparent; border-color: var(--mar); color: var(--mar); box-shadow: none; }
.btn-ghost:hover { background: var(--mar); border-color: var(--mar); color: #fff; }
.btn-sol { background: var(--sol); border-color: var(--sol); }
.brand-mark { width: 36px; height: 36px; }
.brand-name { font: 800 1.4rem/1 var(--f-display); color: var(--mar-deep); letter-spacing: -.02em; }
.brand-name b { color: var(--terracota); font-weight: 800; }
.footer-brand .brand-name b { color: var(--sol); }
.site-footer a { color: #fff; }
.site-footer .footer-h { color: var(--sol); }
.page-head h1 { max-width: 22ch; }
.page-head .lede { color: var(--ink-2); }
.prose > h2 { position: relative; }
.prose > h2::before { content: ""; display: block; width: 46px; height: 4px; border-radius: 4px; background: var(--albero); margin-bottom: .7rem; }

/* Portada: cielo, sol, silueta y olas */
.hero-cadiz { position: relative; overflow: hidden; color: #fff; padding: 0;
  background: linear-gradient(180deg, #0e6ea6 0%, #1d8fc9 45%, #7cc7e6 75%, #f8d58a 100%); }
.hero-cadiz .hero-grid { position: relative; z-index: 2; display: grid; gap: 2.5rem; align-items: center; padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(13rem, 22vw, 16rem); }
@media (min-width: 980px) { .hero-cadiz .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero-cadiz .hero-grid > * { min-width: 0; }
.hero-cadiz .eyebrow { color: var(--sol); }
.hero-cadiz h1 { color: #fff; font-size: clamp(2.5rem, 6.4vw, 4.8rem); line-height: 1.02; letter-spacing: -.025em; max-width: 14ch; text-shadow: 0 4px 30px rgba(7, 59, 92, .35); margin-bottom: 1rem; }
.hero-cadiz .lede { color: #fff; opacity: .96; font-size: clamp(1.1rem, 2vw, 1.25rem); max-width: 36rem; text-shadow: 0 1px 12px rgba(7, 59, 92, .3); }
.hero-cadiz .btn-ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.hero-cadiz .btn-ghost:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.hero-cadiz .sun { position: absolute; right: 8%; top: 40px; width: 160px; height: 160px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle, #fff3c4 0%, var(--sol) 45%, rgba(255, 211, 107, 0) 70%); opacity: .9; }
.hero-cadiz .skyline { position: absolute; left: 0; right: 0; bottom: 70px; width: 100%; height: 160px; z-index: 1; }
.hero-cadiz .waves { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 110px; z-index: 3; }
.hero-cadiz .wave-paper { fill: var(--paper); }
.hero-cadiz .waves path { animation: swell 9s ease-in-out infinite alternate; }
.hero-cadiz .waves path:nth-child(2) { animation-duration: 12s; }
@keyframes swell { from { transform: translateX(0); } to { transform: translateX(-60px); } }
@media (prefers-reduced-motion: reduce) { .hero-cadiz .waves path { animation: none; } }
.postal { margin: 0; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(8px);
  border-radius: 26px; padding: 12px; box-shadow: var(--sombra); transform: rotate(1.5deg); }
.postal img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.postal figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .7rem .4rem .2rem; font-size: .85rem; }
.postal figcaption strong { font: 700 1.15rem/1.2 var(--f-display); }
.postal figcaption a { color: #fff; }
@media (prefers-color-scheme: dark) {
  .hero-cadiz { background: linear-gradient(180deg, #06263d 0%, #0b4a72 45%, #2b7aa3 75%, #a8743a 100%); }
}

.stats { padding: 1.5rem 0 .5rem; }
.stats .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 860px) { .stats .wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.2rem; text-align: center; }
.stat b { display: block; font: 800 1.9rem/1.1 var(--f-display); color: var(--terracota); }
.stat span { font-size: .92rem; color: var(--ink-2); }

.zonas, .mapa-home { padding: clamp(3rem, 7vw, 5rem) 0 1rem; }
.intro { max-width: 46rem; margin-bottom: 2rem; }
.intro p { color: var(--ink-2); font-size: 1.1rem; }
.zona-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.zona-list li { min-width: 0; }
.zona-list a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.zona-list a:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.zona-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--accent-soft); }
.zona-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.zona-list a:hover .zona-img img { transform: scale(1.05); }
.zona-body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: .3rem; }
.zona-t { font: 700 1.2rem/1.2 var(--f-display); color: var(--mar-deep); }
.zona-d { font-size: .95rem; color: var(--ink-2); }
.small-note { font-size: .9rem; color: var(--ink-3); }

.mapa-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 980px) { .mapa-grid { grid-template-columns: .8fr 1.2fr; } }
.mapa-grid > * { min-width: 0; }
.mapa-grid .btn { margin: .3rem .4rem .3rem 0; }

.azulejo { background-color: #073b5c; color: #fff; margin-top: clamp(3rem, 6vw, 4.5rem); padding: clamp(3rem, 7vw, 5rem) 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23f6b93b' stroke-opacity='.22' stroke-width='2'%3E%3Cpath d='M40 4l36 36-36 36L4 40z'/%3E%3Ccircle cx='40' cy='40' r='12'/%3E%3Cpath d='M40 28v24M28 40h24'/%3E%3Ccircle cx='0' cy='0' r='10'/%3E%3Ccircle cx='80' cy='0' r='10'/%3E%3Ccircle cx='0' cy='80' r='10'/%3E%3Ccircle cx='80' cy='80' r='10'/%3E%3C/g%3E%3C/svg%3E"); }
.azulejo h2 { color: #fff; }
.azulejo .eyebrow { color: var(--sol); }
.azulejo .intro p { color: rgba(255, 255, 255, .88); }
.azulejo .ig { color: var(--ink); }

/* Fotos con atribución */
.foto { margin: 1.8rem 0 2.2rem; }
.foto img { display: block; width: 100%; height: auto; border-radius: var(--r-m); background: var(--accent-soft); }
.foto-v img { max-width: 440px; margin: 0 auto; }
.foto figcaption { margin-top: .55rem; font-size: .88rem; line-height: 1.45; color: var(--ink-3); }
.foto-pie { color: var(--ink-2); }
.foto-cred a { color: var(--ink-3); }
.prose .foto.wide { margin-inline: 0; }

/* Mapa */
.ig-mapa svg { width: 100%; height: auto; display: block; border-radius: var(--r-m); }
.ig-mapa .m-sea { fill: #d7eef8; }
.ig-mapa .m-near { fill: #efe6d3; stroke: #fff; stroke-width: 1.2; }
.ig-mapa .m-prov { fill: #fffaf0; stroke: #c9a46a; stroke-width: 2; stroke-linejoin: round; }
.ig svg .m-sea-lbl { fill: #4a7f9c; font-size: 15px; font-style: italic; letter-spacing: .08em; }
.ig svg .m-town text { font-size: 13px; fill: #6b7a84; }
.ig svg .m-town.on text { font-size: 16px; font-weight: 600; fill: #1d2a33; }
.ig svg .m-town.cap text { font-size: 18px; font-weight: 600; }
.ig-mapa .m-town circle { stroke: #fff; stroke-width: 2; }
.ig-mapa .m-town:not(.on) circle { opacity: .55; }
@media (prefers-color-scheme: dark) {
  .ig-mapa .m-sea { fill: #0d3550; }
  .ig-mapa .m-near { fill: #1b3446; stroke: #0d3550; }
  .ig-mapa .m-prov { fill: #234a63; stroke: #c9a46a; }
  .ig svg .m-sea-lbl { fill: #8fc1dc; }
  .ig svg .m-town text { fill: #a9bccb; }
  .ig svg .m-town.on text { fill: #fff; }
  .ig-mapa .m-town circle { stroke: #0a1d2b; }
}
.m-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .5rem; }
.m-legend a, .m-legend span { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.m-legend a[aria-current] { font-weight: 600; color: var(--ink); }
.m-legend i { width: .8rem; height: .8rem; border-radius: 50%; display: inline-block; }

/* Calendario de fiestas */
.cal { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.cal li { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .7rem; display: flex; flex-direction: column; gap: .35rem; min-height: 4.2rem; }
.cal li:not(.has) { opacity: .6; }
.cal-m { font: 700 .95rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .08em; color: var(--mar-deep); }
.cal-f { font-size: .85rem; line-height: 1.3; padding-left: .55rem; border-left: 4px solid var(--c); }

/* Vinos */
.vinos { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); }
.vinos li { min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; font-size: .88rem; color: var(--ink-2); }
.vinos strong { font: 700 1rem/1.2 var(--f-display); color: var(--ink); }
.v-copa { width: 44px; height: 64px; display: block; background: linear-gradient(180deg, transparent 0 30%, var(--c) 30% 100%);
  border: 2px solid var(--ink-3); border-radius: 4px 4px 22px 22px; position: relative; }
.v-copa::after { content: ""; position: absolute; left: 50%; bottom: -18px; width: 2px; height: 16px; background: var(--ink-3); transform: translateX(-50%); }
.vinos li { padding-bottom: .2rem; }
.vinos li strong { margin-top: 1.1rem; }
.vinos-eje { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 0; padding-top: .5rem; font-size: .85rem; color: var(--ink-3);
  border-top: 3px solid; border-image: linear-gradient(90deg, #ecd77f, #8a4a1f, #3a1a0e) 1; }

/* Clima */
.ig-clima svg { width: 100%; height: auto; }
.ig svg .cl-bar { fill: var(--albero); }
.ig svg .cl-t { font-size: 13px; font-weight: 600; }
.ig svg .cl-rain { fill: var(--atlantico); }
.ig svg .c-grid { stroke: var(--line); stroke-dasharray: 3 4; }

/* Webs recomendadas */
.links-intro { font-size: 1.15rem; }
.link-card { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--albero); border-radius: var(--r-m); padding: 1.2rem 1.4rem; margin: 0 0 1.4rem; }
.link-card p:last-child { margin-bottom: 0; }
.link-site { font: 700 1.1rem/1.2 var(--f-display); color: var(--terracota); margin-bottom: .4rem; }
.link-card a { font-weight: 600; }

/* Créditos */
.creditos { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1rem; }
.creditos li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 1rem; align-items: start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.creditos img { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; }
.creditos div { display: grid; gap: .15rem; font-size: .95rem; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.creditos strong { color: var(--ink); }
