/* ==========================================================================
   diseno-lugar.css · piezas comunes de las páginas de un lugar que no son su
   ficha (vistas, clima, histórico, tendencia, hora dorada...) y de las páginas
   de texto. Solo con la bandera del diseño nuevo; se apoya en sistema.css.
   ========================================================================== */

/* Cabecera: migas, H1, frase y pestañas del lugar (templates/diseno/_lugar_cab.php) */
.lc { display: grid; gap: var(--e-2); min-width: 0; }
.lc .migas { display: none; }
.lc__cab { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--e-2) var(--e-3); flex-wrap: wrap; min-width: 0; }
.lc__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.lc h1 { font-size: var(--t-5); text-wrap: balance; }
.lc__meta { color: var(--muted); font-size: var(--t-1); }
.lc__acc { gap: 6px; }
.lc__sub { margin-top: var(--e-1); max-width: 62ch; }
.lc__sub b, .lc__sub strong { font-weight: 600; }
.lc__pest { margin-top: var(--e-1); margin-inline: calc(-1 * var(--margen)); padding-inline: calc(var(--margen) - 12px); }
@media (min-width: 900px) {
  .lc .migas { display: flex; }
  .lc h1 { font-size: var(--t-6); }
  .lc__pest { margin-inline: 0; padding-inline: 0; }
}

/* Secciones: el ancla no queda bajo la cabecera fija */
.l-sec { scroll-margin-top: 76px; }

/* Cifras en rejilla: rótulo, valor grande y nota */
.l-cifras { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: var(--e-3); }
.l-cifra { display: grid; gap: 2px; align-content: start; padding: var(--e-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); min-width: 0; }
.l-cifra__v { font-family: var(--f-titular); font-variation-settings: "wdth" 84; font-weight: 700; font-size: var(--t-5); line-height: 1.05; font-variant-numeric: tabular-nums; }
.l-cifra__v small { font: 500 var(--t-1) var(--f-texto); color: var(--muted); margin-left: 3px; }
.l-cifra .nota { line-height: 1.35; }

/* Enlaces relacionados: tarjetas en rejilla */
.l-enlaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: var(--e-2); list-style: none; margin: 0; padding: 0; }
.l-enlaces a { display: grid; grid-template-columns: 20px minmax(0, 1fr) 16px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); text-decoration: none; color: var(--ink); min-height: 52px; }
.l-enlaces a:hover { border-color: var(--ink); }
.l-enlaces b { font-weight: 600; display: block; overflow-wrap: anywhere; }
.l-enlaces small { display: block; color: var(--muted); font-size: var(--t-1); }

/* Preguntas plegables */
.l-faq { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); }
.l-faq details + details { border-top: 1px solid var(--line); }
.l-faq summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--e-3); }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.l-faq details[open] summary::after { content: "−"; }
.l-faq details p { padding: 0 16px 14px; color: var(--ink-2); max-width: 70ch; }

/* Texto largo (páginas legales y «Acerca de») */
.l-texto { max-width: 72ch; color: var(--ink-2); line-height: 1.6; }
.l-texto h2 { color: var(--ink); margin: var(--e-6) 0 var(--e-2); font-size: var(--t-4); }
.l-texto h3 { color: var(--ink); margin: var(--e-4) 0 var(--e-1); font-size: var(--t-3); }
.l-texto p, .l-texto ul, .l-texto ol { margin: 0 0 var(--e-3); }
.l-texto ul, .l-texto ol { padding-left: 1.25em; }
.l-texto ul { list-style: disc; } .l-texto ol { list-style: decimal; }
.l-texto li + li { margin-top: 4px; }
.l-texto a { text-decoration: underline; text-decoration-color: var(--senal); text-underline-offset: 3px; }
.l-texto strong, .l-texto b { color: var(--ink); }

@media print { .lc__pest, .l-enlaces { display: none !important; } }

/* «Ver en el mapa» (templates/diseno/_ver_mapa.php) */
.vm { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--e-3); text-decoration: none; color: var(--ink); background: var(--senal-suave, var(--sunk)); border-color: transparent; }
.vm:hover { border-color: var(--ink); }
.vm__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-3); background: var(--surface); color: var(--senal-tinta, var(--ink)); }
.vm__t { display: grid; gap: 2px; }
.vm__t b { font-size: var(--t-3); font-weight: 600; }
.vm__btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 700px) { .vm { grid-template-columns: auto minmax(0, 1fr) auto; } .vm__btn { grid-column: auto; } }
