/* ============================================================
   AUROVAS · Datos, informes y prensa (data-build.mjs)
   Sobrio, en blanco y negro, coherente con zone.css: la cifra manda,
   la fuente se ve y se puede pulsar. Clases propias dt-.
   Solo se carga en /datos/mapa-de-precios/, /informes/ y /prensa/.
   ============================================================ */
.dt { background: var(--bg); color: var(--ink); }
.dt a { color: inherit; }
.dt small { display: block; font-size: .76rem; line-height: 1.45; color: var(--grey); font-weight: 400; margin-top: 3px; }
.dt small a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--grey-2); }
.dt small a:hover { text-decoration-color: var(--ink); }

/* héroe */
.dt-hero { padding: calc(var(--nav-h) + clamp(36px, 5vw, 72px)) 0 clamp(30px, 4vw, 52px); background: var(--bone); border-bottom: 1px solid var(--line); }
.dt-crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .84rem; color: var(--grey); margin-bottom: 18px; }
.dt-crumb a { color: var(--graphite); font-weight: 600; }
.dt-crumb a:hover { text-decoration: underline; }
.dt-crumb i { font-style: normal; color: var(--grey-2); }
.dt-eyebrow { display: inline-block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.dt h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.7rem); line-height: 1.04; letter-spacing: -.035em; margin: 14px 0 22px; max-width: 20ch; text-wrap: balance; }
.dt h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.45rem, 2.8vw, 2.1rem); letter-spacing: -.03em; line-height: 1.1; }
.dt-h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; margin: 30px 0 12px; }

/* respuesta directa (mismo lenguaje que .iz-answer) */
.dt-answer { max-width: 76ch; padding: 18px 22px 16px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 4px 16px 16px 4px; display: grid; gap: 8px; }
.dt-answer p { font-size: 1rem; line-height: 1.62; color: var(--graphite); }
.dt-answer strong { color: var(--ink); }
.dt-answer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--grey-2); }
.dt-answer a:hover { text-decoration-color: var(--ink); }
.dt-answer__k { font-family: var(--font-mono); font-size: .7rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--ink) !important; font-weight: 600; }
.dt-answer__meta { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: .8rem !important; line-height: 1.5 !important; color: var(--grey) !important; }

/* botones y enlaces */
.dt-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.dt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff !important; font-weight: 700; font-size: .95rem; border: 1.5px solid var(--ink); cursor: pointer; font-family: inherit; transition: transform .3s var(--ease-out, ease), box-shadow .3s; }
.dt-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(10,10,10,.55); }
.dt-btn--line { background: transparent; color: var(--ink) !important; }
.dt-btn[hidden] { display: none; }
.dt-links { display: flex; flex-wrap: wrap; gap: 8px; }
.dt-links a, .dt-chip { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: .92rem; font-weight: 600; background: #fff; font-family: inherit; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.dt-links a:hover, .dt-chip:hover { border-color: var(--ink); background: var(--bone); }
.dt-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.dt-dl { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* secciones */
.dt-sec { padding-top: clamp(40px, 6vw, 76px); }
.dt-sec:last-child { padding-bottom: clamp(56px, 8vw, 100px); }
.dt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 6px 20px; margin-bottom: 20px; }
.dt-head p { color: var(--grey); font-size: .95rem; max-width: 62ch; }
.dt-head p a { text-decoration: underline; text-underline-offset: 3px; }
.dt-p { color: var(--graphite); line-height: 1.65; margin: 0 0 12px; max-width: 64ch; }
.dt-p a:not(.dt-btn) { text-decoration: underline; text-underline-offset: 3px; }
.dt-two { display: grid; gap: 36px; }
@media (min-width: 900px) { .dt-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; } }
.dt-list { margin: 0 0 0 1.2em; display: grid; gap: 9px; list-style: decimal; color: var(--graphite); line-height: 1.6; font-size: .98rem; }
ul.dt-list { list-style: disc; }
.dt-cite { border: 1px solid var(--line); border-radius: 14px; background: var(--bone); padding: 16px 18px; font-size: .92rem; line-height: 1.6; color: var(--graphite); max-width: 72ch; overflow-wrap: anywhere; user-select: all; }

/* cifras */
.dt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 24px; }
.dt-stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: grid; gap: 4px; }
.dt-stat b { font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; line-height: 1.05; }
.dt-stat span { font-size: .92rem; font-weight: 600; color: var(--graphite); }

/* titulares citables */
.dt-hls { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 84ch; }
.dt-hl { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 4px 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.dt-hls .dt-hl:last-child { border-bottom: 1px solid var(--line); }
.dt-hl__n { font-family: var(--font-mono); font-size: .76rem; color: var(--grey); padding-top: 4px; }
.dt-hl p { font-size: 1.04rem; line-height: 1.5; font-weight: 600; letter-spacing: -.01em; }

/* tablas */
.dt-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: 8px; }
.dt-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 980px; table-layout: fixed; }
.dt-table thead th:nth-child(1) { width: 15%; } .dt-table thead th:nth-child(2) { width: 26%; } .dt-table thead th:nth-child(3) { width: 18%; } .dt-table thead th:nth-child(4) { width: 23%; } .dt-table thead th:nth-child(5) { width: 18%; }
.dt-table--prov { min-width: 700px; table-layout: auto; }
.dt-table caption { text-align: left; padding: 12px 16px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); border-bottom: 1px solid var(--line); }
.dt-table thead th { text-align: left; padding: 11px 16px; font-family: var(--font-mono); font-weight: 500; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); background: var(--bone); border-bottom: 1px solid var(--line); line-height: 1.4; }
.dt-table td, .dt-table tbody th { padding: 13px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-2); font-weight: 400; }
.dt-table tbody tr:first-child td, .dt-table tbody tr:first-child th { border-top: 0; }
.dt-table tbody th { font-weight: 700; min-width: 150px; }
.dt-table tbody th a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.dt-table tbody th a:hover { text-decoration-color: var(--ink); }
.dt-table td b { display: block; font-size: 1rem; letter-spacing: -.01em; }
.dt-table tbody tr:hover { background: var(--bone); }
.dt-nd { color: var(--grey-2); }
.dt-wide { color: var(--graphite); font-style: italic; }
@media (max-width: 720px) {
  .dt-tablewrap { border: 0; background: none; overflow: visible; }
  .dt-table, .dt-table tbody, .dt-table tr, .dt-table td, .dt-table tbody th, .dt-table caption { display: block; min-width: 0; width: 100% !important; }
  .dt-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dt-table tr { border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: 12px; padding: 4px 0; overflow: hidden; }
  .dt-table tbody tr:hover { background: #fff; }
  .dt-table tbody th { padding: 12px 16px 6px; border-top: 0; font-size: 1.05rem; }
  .dt-table td { padding: 9px 16px; border-top: 1px solid var(--line-2) !important; }
  .dt-table td.dt-empty { display: none; }
  .dt-table td::before { content: attr(data-l); display: block; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin-bottom: 3px; }
  .dt-table caption { background: none; border: 0; padding: 0 0 10px; }
}

/* mapa */
.dt-mapbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.dt-map { height: clamp(380px, 62vh, 620px); border: 1px solid var(--line); border-radius: 18px; background: var(--bone); overflow: hidden; position: relative; z-index: 0; }
.dt-map__msg { display: grid; place-items: center; height: 100%; padding: 20px; text-align: center; color: var(--grey); }
.dt-legend { margin-top: 12px; font-size: .84rem; color: var(--grey); line-height: 2; }
.dt-pinwrap { width: 0; height: 0; }
.dt-pin { position: absolute; transform: translate(-50%, -50%); display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--font-head); font-size: .72rem; font-weight: 700; line-height: 1.2; letter-spacing: .01em; white-space: nowrap; border: 1.5px solid #fff; box-shadow: 0 2px 8px rgba(10,10,10,.35); }
.dt-pin--wide { background: #6b6b6b; }
.dt-pin--k { position: static; transform: none; box-shadow: none; vertical-align: middle; margin: 0 2px; }
.leaflet-marker-icon:focus-visible .dt-pin, .leaflet-marker-icon:hover .dt-pin { outline: 2px solid var(--ink); outline-offset: 2px; background: #000; }
.dt-pop { font-family: var(--font-main); min-width: 190px; }
.dt-pop b { display: block; font-family: var(--font-head); font-size: 1.05rem; letter-spacing: -.02em; }
.dt-pop span { display: block; font-size: .82rem; color: var(--graphite); margin-top: 3px; line-height: 1.45; }
.dt-pop em { display: block; font-style: normal; font-size: 1.15rem; font-weight: 700; margin-top: 6px; }
.dt-pop a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* gráfico de barras SVG */
.dt-figs { display: grid; gap: 28px; }
@media (min-width: 900px) { .dt-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
.dt-fig { margin: 0; }
.dt-fig figcaption { margin-top: 10px; font-size: .82rem; line-height: 1.5; color: var(--grey); }
.dt-svg { width: 100%; height: auto; display: block; }
.dt-svg text { font-family: var(--font-main); }
.dt-svg-l { font-size: 13px; fill: var(--ink); font-weight: 600; }
.dt-svg-v { font-size: 13px; fill: var(--graphite); }
.dt-svg-s { font-size: 11.5px; fill: var(--grey); }
.dt-svg-m { fill: #c9c8c4; }
.dt-svg-o { fill: var(--ink); }

/* informes (índice) */
.dt-reps { display: grid; gap: 18px; }
.dt-rep { border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 30px); background: #fff; max-width: 860px; }
.dt-rep h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.dt-rep h2 { margin: 8px 0 6px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.dt-rep__m { color: var(--grey); font-size: .9rem; }
.dt-rep__hl { margin: 14px 0 0 1.1em; list-style: disc; display: grid; gap: 6px; color: var(--graphite); line-height: 1.5; }
.dt-rep__a { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* prensa */
.dt-card { border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 30px); background: #fff; display: grid; gap: 12px; align-content: start; }
.dt-card h2 { margin-bottom: 2px; }
.dt-card p { color: var(--graphite); line-height: 1.6; }
.dt-card--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.dt-card--dark h2 { color: #fff; }
.dt-card--dark p, .dt-card--dark li { color: rgba(255,255,255,.78); }
.dt-card--dark a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dt-contact { list-style: none; display: grid; gap: 8px; line-height: 1.5; }
.dt-topics { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.dt-topic { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; background: #fff; }
.dt-topic h3 { font-family: var(--font-head); font-size: 1.1rem; letter-spacing: -.02em; margin-bottom: 6px; }
.dt-topic h3 a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.dt-topic h3 a:hover { text-decoration-color: var(--ink); }
.dt-topic p { font-size: .92rem; line-height: 1.5; color: var(--graphite); }
.dt-topic__z { margin-top: 8px; font-size: .84rem !important; color: var(--grey) !important; }
.dt-topic__z a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line); }
.dt-notes { display: grid; gap: 28px; }
.dt-note { border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3.4vw, 38px); background: #fff; max-width: 880px; }
.dt-note h3 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.8rem); letter-spacing: -.025em; line-height: 1.15; margin: 10px 0 14px; text-wrap: balance; }
.dt-note__text { display: grid; gap: 12px; }
.dt-note__text p { line-height: 1.7; color: var(--graphite); font-size: 1rem; }
.dt-note__lead { font-weight: 600; color: var(--ink) !important; font-size: 1.08rem !important; }
.dt-note__list { list-style: disc; margin: -4px 0 4px 1.2em; display: grid; gap: 5px; color: var(--graphite); line-height: 1.55; font-size: .96rem; }
.dt-note__src { margin-top: 6px; color: var(--ink) !important; }
.dt-note__srcs { list-style: disc; margin: -4px 0 4px 1.2em; display: grid; gap: 3px; font-size: .86rem; color: var(--graphite); }
.dt-note__srcs a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--grey-2); overflow-wrap: anywhere; }
.dt-note__act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.dt-note__d { font-size: .8rem; color: var(--grey); }
.dt-logos { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.dt-logo { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: #fff; transition: border-color .2s; }
.dt-logo:hover { border-color: var(--ink); }
.dt-logo__img { display: grid; place-items: center; aspect-ratio: 16 / 10; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; margin-bottom: 8px; }
.dt-logo__img img { max-width: 70%; max-height: 80%; object-fit: contain; display: block; }
.dt-logo b { font-size: .98rem; }
.dt .nap { font-size: .98rem; color: var(--graphite); }
.dt .nap__name { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); }
.dt .nap a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .dt-answer { padding: 14px 16px 12px; border-radius: 4px 14px 14px 4px; }
  .dt-answer p { font-size: .95rem; }
  .dt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dt-stat { padding: 12px 13px; border-radius: 14px; }
  .dt-stat b { font-size: 1.2rem; }
  .dt-stat span { font-size: .8rem; line-height: 1.3; }
  .dt-hl { grid-template-columns: 30px minmax(0, 1fr); gap: 4px 10px; }
  .dt-hl p { font-size: .98rem; }
  .dt-cta .dt-btn { flex: 1 1 100%; }
}
@media print { .dt-mapbar, .dt-map, .dt-cta, .dt-note__act { display: none !important; } }
