/* ==========================================================================
   Plantilla de sitio temático — hoja de estilos v1.1 · TodoMálaga 1.0 (tipografías Fraunces + Figtree y capa «todomalaga» al final)
   1.1 (2026-10-11): selector de idioma, filtros con botones (js/filtro.js), bloques de código,
       etiqueta de noticia traducida (de harmonyos.es).
   Sistema de diseño neutro. Para dar identidad a cada sitio:
     - colores: app/tema.php → 'colores' (se inyectan como variables CSS);
     - tipografías: sustituye las @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: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 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: "Figtree";
  src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 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: "Figtree";
  src: url("../fonts/figtree-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 300 900; font-style: italic; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #14263a;
  --ink-2: #44566b;
  --ink-3: #6b7c8f;
  --paper: #f3f6f8;
  --surface: #ffffff;
  --line: #d6e0e8;
  --accent: #1f5fcc;
  --accent-soft: #e4edfb;
  --ok: #17895c;
  --ok-soft: #dcf2e7;
  --warn: #c98612;
  --warn-ink: #8a5a00;
  --warn-soft: #fbefd6;
  --bad: #c32d55;
  --bad-soft: #fae2e9;
  --ok-band: rgba(23, 137, 92, .12);

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

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 24px;
  --wrap: 1200px;
  --measure: 68ch;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef4;
    --ink-2: #b4c2d0;
    --ink-3: #8a9bad;
    --paper: #0f1a26;
    --surface: #162433;
    --line: #2a3b4d;
    --accent: #7fb0ff;
    --accent-soft: #1b3150;
    --ok: #4cc996;
    --ok-soft: #133528;
    --warn: #f0b54a;
    --warn-ink: #f0b54a;
    --warn-soft: #3a2e14;
    --bad: #ff7f9f;
    --bad-soft: #3d1a25;
    --ok-band: rgba(76, 201, 150, .14);
    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.125rem/1.65 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.25rem, 5.4vw, 3.75rem); font-weight: 720; font-variation-settings: "opsz" 96; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 680; font-variation-settings: "opsz" 48; }
h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; }
.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: 700 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: #14263a; color: #c9d5e0; 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; }

/* ==========================================================================
   Capa «todomalaga» 1.0 — identidad turística: Mediterráneo, sol y cal
   ========================================================================== */
:root {
  --sun: #ffb703; --coral: #e4572e; --turq: #1fa9a0; --sea: #0866a8; --navy: #0b2a42;
  --z-costa: #f39c12; --z-malaga: #e4572e; --z-este: #1fa9a0; --z-axarquia: #7cb342;
  --z-antequera: #8e5bd8; --z-ronda: #c0703a; --z-nieves: #2e8b57; --z-guadalhorce: #3a86c8;
  --shadow: 0 10px 30px -12px rgba(15, 45, 69, .35);
}
@media (prefers-color-scheme: dark) { :root { --shadow: 0 10px 30px -12px rgba(0, 0, 0, .7); } }
body { background: var(--paper); }
h1, h2, h3 { font-family: var(--f-display); }
h1 { font-weight: 650; font-variation-settings: "SOFT" 60, "WONK" 1; letter-spacing: -.02em; }
h2 { font-weight: 620; font-variation-settings: "SOFT" 50; letter-spacing: -.01em; }
.site-header { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--sea), var(--turq), var(--sun), var(--coral)) 1; }
.brand-name { font-family: var(--f-display); font-variation-settings: "SOFT" 100; }
.brand-name b { color: var(--coral); font-weight: 750; }
.btn { background: var(--sea); border-color: var(--sea); color: #fff; border-radius: 999px; }
.btn:hover { background: transparent; color: var(--sea); }
.btn-ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn-test { background: var(--sun); border-color: var(--sun); color: #3a2a00; }
.btn-test:hover { background: transparent; color: var(--ink); border-color: var(--sun); }
@media (prefers-color-scheme: dark) { .btn { color: #06243a; background: #6cc4ff; border-color: #6cc4ff; } .btn:hover { color: #6cc4ff; } }

/* ---- Portada con foto ---- */
.hero-foto { position: relative; min-height: min(82vh, 760px); display: grid; align-items: end; color: #fff; isolation: isolate; overflow: hidden; }
.hero-foto > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-foto::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 30, 48, .15) 0%, rgba(8, 30, 48, .35) 45%, rgba(8, 30, 48, .88) 100%); }
.hero-foto .wrap { padding-top: 6rem; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); width: 100%; }
.hero-foto h1 { color: #fff; font-size: clamp(2.7rem, 8vw, 6rem); line-height: .98; max-width: 12ch; margin: 0 0 1rem; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero-foto h1 em { font-style: italic; color: var(--sun); }
.hero-foto .lede { color: #f3f7fa; font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 42rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.hero-foto .btn-ghost { color: #fff; border-color: #fff; }
.hero-foto .btn-ghost:hover { background: #fff; color: var(--navy); }
.hero-foto .btn { color: #fff; background: var(--coral); border-color: var(--coral); }
.hero-foto .btn:hover { background: transparent; color: #fff; }
.hero-foto .hero-credit { position: absolute; right: .75rem; bottom: .5rem; font-size: .75rem; color: rgba(255, 255, 255, .8); margin: 0; }
.hero-foto .hero-credit a { color: inherit; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.hero-chips a { display: inline-block; padding: .35rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); color: #fff; text-decoration: none; font-size: .95rem; backdrop-filter: blur(4px); }
.hero-chips a:hover { background: rgba(255, 255, 255, .3); }

/* ---- Tarjetas de destino con foto ---- */
.destinos { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.dest-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.dest-grid > li { min-width: 0; margin: 0; }
.dest-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 20rem; border-radius: var(--r-l); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--shadow); }
.dest-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.dest-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(6, 22, 36, .88)); }
.dest-card:hover img { transform: scale(1.06); }
.dest-card .dc-body { padding: 1.2rem 1.25rem 1.3rem; }
.dest-card h3 { color: #fff; font-size: 1.5rem; margin: .35rem 0 .3rem; }
.dest-card p { margin: 0; color: #e8eef4; font-size: .98rem; line-height: 1.45; }
.dest-card .dc-tag { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--sun); color: #3a2a00; padding: .2rem .6rem; border-radius: 999px; }
.prose .dest-grid { margin: 1.5rem 0 2rem; padding: 0; }
.prose .dest-card { min-height: 15rem; }

/* ---- Fotos dentro de los artículos ---- */
.prose figure.foto { margin: 1.8rem 0 2.2rem; }
.prose figure.foto img { display: block; width: 100%; border-radius: var(--r-m); box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); }
.prose figure.foto.foto-alta img { aspect-ratio: 4 / 5; }
.prose figure.foto figcaption { font-size: .95rem; color: var(--ink-2); margin-top: .6rem; line-height: 1.45; }
.credito { display: block; font-size: .8rem; color: var(--ink-3); margin-top: .15rem; }
.credito a { color: inherit; }
.prose .galeria { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: 1.5rem 0 2rem; }
.prose .galeria > * { min-width: 0; }
.prose .galeria figure.foto { margin: 0; }
.prose figure.foto-portada { margin-top: 0; }
@media (min-width: 1080px) { .prose figure.foto-portada { margin-right: -6rem; } }

/* ---- Fichas de lugares ---- */
.lugares { list-style: none; padding: 0 !important; margin: 1.5rem 0 2rem; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.lugares > li { min-width: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--c, var(--turq)); border-radius: var(--r-m); padding: 1rem 1.1rem; }
.lugares strong { display: block; font-family: var(--f-display); font-size: 1.15rem; margin-bottom: .25rem; }
.lugares span { color: var(--ink-2); font-size: .98rem; line-height: 1.45; display: block; }
.keypoints { border-left: 6px solid var(--sun); background: color-mix(in srgb, var(--sun) 10%, var(--surface)); }
.keypoints .kp-title .icon { color: var(--coral); }
.callout { border-radius: var(--r-m); }

/* ---- Mapa de la provincia ---- */
.mapa-prov { margin: 1.5rem 0 2rem; }
.mapa-prov svg { width: 100%; height: auto; display: block; }
.mapa-prov .mar { fill: color-mix(in srgb, var(--sea) 14%, var(--paper)); }
.mapa-prov .zona path { stroke: var(--paper); stroke-width: 1.6; stroke-linejoin: round; transition: filter .2s, opacity .2s; }
.mapa-prov a.zona:hover path, .mapa-prov a.zona:focus path { filter: brightness(1.12) saturate(1.2); }
.mapa-prov a.zona:focus { outline: none; }
.mapa-prov a.zona:focus-visible path { stroke: var(--ink); stroke-width: 3; }
.mapa-prov .z-costa path { fill: var(--z-costa); } .mapa-prov .z-malaga path { fill: var(--z-malaga); }
.mapa-prov .z-este path { fill: var(--z-este); } .mapa-prov .z-axarquia path { fill: var(--z-axarquia); }
.mapa-prov .z-antequera path { fill: var(--z-antequera); } .mapa-prov .z-ronda path { fill: var(--z-ronda); }
.mapa-prov .z-nieves path { fill: var(--z-nieves); } .mapa-prov .z-guadalhorce path { fill: var(--z-guadalhorce); }
.ig.mapa-prov svg text { font-family: var(--f-text); }
.ig.mapa-prov svg .zl { font: 800 15px/1 var(--f-text); fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .45); stroke-width: 3px; pointer-events: none; text-anchor: middle; }
.ig.mapa-prov svg .pl { font: 600 11.5px/1 var(--f-text); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; pointer-events: none; }
.ig.mapa-prov svg .pt { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.ig.mapa-prov svg .pt-star { fill: var(--sun); stroke: var(--ink); stroke-width: 1.2; }
.ig.mapa-prov svg .mar-t { font: italic 600 18px/1 var(--f-display); fill: color-mix(in srgb, var(--sea) 70%, var(--paper)); letter-spacing: .2em; }
.mapa-ley { list-style: none; padding: 0 !important; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .95rem; }
.mapa-ley li { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.mapa-ley i { width: .95rem; height: .95rem; border-radius: 4px; display: inline-block; }

/* ---- Calendario de fiestas ---- */
.cal { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.cal > li { min-width: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.cal .mes { display: block; font: 700 .95rem/1 var(--f-text); letter-spacing: .08em; text-transform: uppercase; padding: .55rem .9rem; color: #fff; background: var(--c); }
.cal ul { list-style: none; padding: .6rem .9rem .8rem !important; margin: 0; }
.cal ul li { font-size: .95rem; line-height: 1.35; padding: .3rem 0; border-top: 1px dashed var(--line); margin: 0; }
.cal ul li:first-child { border-top: 0; }
.cal ul li b { display: block; }
.cal ul li small { color: var(--ink-3); }

/* ---- Barras de clima / distancias ---- */
.barras-t { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .3rem; align-items: end; height: 13rem; margin: 1rem 0 .4rem; }
.barras-t > div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.barras-t span.b { width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--coral), var(--sun)); }
.barras-t span.v { font-size: .78rem; font-weight: 700; margin-bottom: .2rem; }
.barras-t span.m { font-size: .78rem; color: var(--ink-3); margin-top: .3rem; }
.dist { list-style: none; padding: 0 !important; margin: 1rem 0 0; display: grid; gap: .45rem; }
.dist li { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr 4.5rem; gap: .7rem; align-items: center; margin: 0; font-size: .95rem; }
.dist .bar { height: .8rem; border-radius: 999px; background: linear-gradient(90deg, var(--turq), var(--sea)); }
.dist b { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- Planificador ---- */
.plan-filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.plan-filtros button { font: inherit; padding: .5rem 1rem; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.plan-filtros button[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: #fff; }
@media (prefers-color-scheme: dark) { .plan-filtros button[aria-pressed="true"] { color: #06243a; background: #6cc4ff; border-color: #6cc4ff; } }
.planes { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.planes > li { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; }
.planes > li[hidden] { display: none; }
.planes img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.planes .pb { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.planes h3 { font-size: 1.2rem; margin: 0; }
.planes p { margin: 0; color: var(--ink-2); font-size: .97rem; line-height: 1.45; }
.planes .tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: auto; padding-top: .5rem; }
.planes .tags span { font-size: .78rem; padding: .15rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--ink); }
.ruta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.3rem 1.4rem; margin: 0 0 1.2rem; }
.ruta h3 { margin-top: 0; }
.ruta ol { margin: 0; padding-left: 1.3em; }
.ruta li { margin-bottom: .45rem; }

/* ---- Webs recomendadas ---- */
.webs { list-style: none; padding: 0 !important; margin: 1.5rem 0 2rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.webs > li { min-width: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.1rem 1.2rem; }
.webs a.w { font: 650 1.2rem/1.2 var(--f-display); text-decoration: none; }
.webs span { display: block; color: var(--ink-2); font-size: .97rem; margin-top: .35rem; line-height: 1.45; }

/* ---- Créditos ---- */
.creditos { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.creditos li { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; font-size: .9rem; }
.creditos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.creditos .cb { padding: .6rem .8rem .8rem; line-height: 1.4; word-break: break-word; }

/* ---- Pie ---- */
.site-footer { background: var(--navy); position: relative; margin-top: 4rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -29px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30C120 0 240 0 360 15s240 15 360 0 240-15 360 0 240 15 360-3v18z' fill='%230b2a42'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.site-footer .brand-name b { color: var(--sun); }
.site-footer .footer-h { color: var(--sun); }
