/* Posadas Viva — estilo compartido
   Identidad de la campaña: degradé turquesa #06ABB1 → #038291 → #016C7E.
   Tipografía única: Barlow Condensed (alojada en /assets/fonts, licencia OFL).
   Tono: moderno y tecnológico; fondo claro, datos en primer plano. */

@font-face { font-family: "Barlow Condensed"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

:root {
  --tinta: #0F2930;
  --suave: #4F666C;
  --papel: #FFFFFF;
  --niebla: #F1F6F6;
  --linea: #D7E3E3;
  --turquesa: #06ABB1;
  --medio: #038291;
  --petroleo: #016C7E;
  --rio: #016C7E;            /* alias para estilos existentes */
  --rio-claro: #E2F5F5;
  --degrade: linear-gradient(120deg, #06ABB1 0%, #038291 55%, #016C7E 100%);
  --verde: #2B8A3E;
  --amarillo: #E0A100;
  --rojo: #D23B3B;
  --radio: 12px;
  --fuente: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --cond: var(--fuente);
  --texto: var(--fuente);
  --sombra: 0 1px 2px rgba(15,41,48,.06), 0 8px 24px -12px rgba(1,108,126,.25);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--fuente); color: var(--tinta); background: var(--papel); font-size: 18px; line-height: 1.45; letter-spacing: .005em; -webkit-font-smoothing: antialiased; }
a { color: var(--petroleo); }
:focus-visible { outline: 3px solid var(--turquesa); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* texto en degradé, como la pieza #VOYCONLUCAS */
.degrade-texto { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* encabezado */
.top { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; height: 60px; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--linea); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 26px; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; line-height: 1; }
.marca .palabra { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marca svg { flex: none; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--suave); text-decoration: none; font-weight: 600; font-size: 18px; padding: 6px 12px; border-radius: 999px; }
.nav a:hover { color: var(--tinta); background: var(--niebla); }
.nav a[aria-current="page"] { color: #fff; background: var(--degrade); }
@media (max-width: 640px) {
  .top { padding: 0 10px 0 14px; height: 54px; gap: 8px; }
  .marca { font-size: 21px; gap: 8px; }
  .nav { gap: 0; }
  .nav a { padding: 5px 9px; font-size: 16px; }
  .nav .solo-escritorio { display: none; }
}

/* estados de los proyectos */
.estado { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; letter-spacing: .02em; }
.estado.disponible { background: #E3F4E7; color: #1E6B30; }
.estado.disponible::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--verde); }
.estado.preparacion { background: #FFF3D6; color: #845C00; }
.estado.proximo { background: var(--niebla); color: var(--suave); }

/* pie */
.pie { border-top: 1px solid var(--linea); padding: 28px 24px 40px; color: var(--suave); font-size: 16px; }
.pie .ancho { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }

/* páginas de mapa: panel + mapa a pantalla completa */
.app { display: flex; height: calc(100vh - 60px); height: calc(100dvh - 60px); }
.panel { width: 390px; min-width: 390px; overflow-y: auto; border-right: 1px solid var(--linea); padding: 22px 22px 32px; background: var(--papel); }
.mapa { flex: 1; min-height: 300px; }
.panel h1 { font-weight: 800; font-size: 36px; line-height: 1; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .005em; }
.panel h1 span { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.panel .bajada { color: var(--suave); margin: 0 0 18px; font-size: 18px; }
.panel h2 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--suave); margin: 22px 0 8px; }
@media (max-width: 820px) {
  .app { flex-direction: column-reverse; height: calc(100dvh - 54px); }
  .panel { width: 100%; min-width: 0; max-height: 55%; border-right: 0; border-top: 1px solid var(--linea); padding: 14px 16px 24px; }
  .panel h1 { font-size: 27px; }
  .panel .bajada { display: none; }
}

/* controles */
.seg { display: flex; background: var(--niebla); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 4px; border-radius: 999px; font: inherit; font-size: 17px; font-weight: 600; color: var(--suave); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--degrade); color: #fff; box-shadow: 0 4px 12px -4px rgba(1,108,126,.5); }
select, input[type=search] { width: 100%; padding: 9px 12px; border: 1px solid var(--linea); border-radius: 10px; font: inherit; font-size: 17px; background: var(--papel); color: var(--tinta); }
select:focus, input[type=search]:focus { border-color: var(--turquesa); outline: none; box-shadow: 0 0 0 3px rgba(6,171,177,.18); }
select + select { margin-top: 8px; }
.boton-sec { border: 1.5px solid var(--turquesa); color: var(--petroleo); background: var(--papel); border-radius: 999px; padding: 6px 16px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.boton-sec:hover { background: var(--rio-claro); }
.boton { display: inline-flex; align-items: center; gap: 8px; background: var(--degrade); color: #fff; border: 0; border-radius: 999px; padding: 11px 22px; font: inherit; font-size: 18px; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(1,108,126,.7); }
.boton:hover { filter: brightness(1.05); }
input[type=range] { accent-color: var(--medio); }
input[type=checkbox] { accent-color: var(--medio); width: 16px; height: 16px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 17px; margin: 6px 0; cursor: pointer; }
.nota { font-size: 15px; color: var(--suave); line-height: 1.45; }
details.metodo { margin-top: 20px; border-top: 1px solid var(--linea); padding-top: 12px; font-size: 16px; color: var(--suave); }
details.metodo summary { cursor: pointer; color: var(--tinta); font-weight: 700; }

/* popups de Leaflet */
.leaflet-container { font-family: var(--fuente); }
.leaflet-popup-content { font-family: var(--fuente); font-size: 15px; margin: 12px 14px; }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--sombra); }
.pop h3 { margin: 0 0 2px; font-size: 19px; font-weight: 800; }
.pop .meta { color: var(--suave); font-size: 15px; }
.pop a { color: var(--petroleo); font-weight: 600; }
.p-icon { background: var(--degrade); color: #fff; font-weight: 800; font-size: 13px; border-radius: 6px; width: 22px; height: 22px; line-height: 22px; text-align: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); font-family: var(--fuente); }
