/* =========================================================
   TOKENS — paleta limpia, sin tonos de "sello postal"
   ========================================================= */
:root{
  --paper: #FFFFFF;
  --paper-deep: #F0F5F4;
  --card: #FFFFFF;
  --ink: #16302B;
  --ink-soft: #5A6B66;
  --line: #E2E9E7;
  --blue: #1F6FB2;
  --blue-soft: #E6F0F8;
  --red: #C0473B;
  --red-soft: #FAE9E7;
  --gold: #128C7E;
  --gold-soft: #E2F4F1;
  --amber: #0E7C6E;
  --amber-soft: #E2F4F1;
  --green: #1FA871;
  --green-soft: #E3F6EE;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 40, 35, 0.05), 0 1px 1px rgba(20, 40, 35, 0.04);
  --shadow-md: 0 4px 16px rgba(20, 60, 50, 0.09);
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap{ max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap;
}
a{ color: var(--blue); }

/* visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 2.5px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* =========================================================
   HEADER
   ========================================================= */
.manifest-header{
  background: linear-gradient(135deg, #EAF3FA 0%, #E3F6EE 100%);
  padding: 44px 0 30px;
  border-bottom: 1px solid var(--line);
}
.eyebrow{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.manifest-header h1{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 5.6vw, 52px);
  line-height: 1.08;
  margin: 0 0 14px;
}
.manifest-header h1 span{ color: var(--blue); }
.lede{
  max-width: 620px;
  font-size: 15.5px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.lede--light{
  font-size: 13px;
  margin: 0 0 26px;
}
.stats{
  display:flex;
  gap: 32px;
  margin: 0;
  flex-wrap: wrap;
}
.stats div{ display:flex; flex-direction:column-reverse; gap:2px; }
.stats dt{
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  margin:0;
}
.stats dd{
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin:0;
}

/* =========================================================
   CONTROLS
   ========================================================= */
.controls{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px 20px 16px;
}
.filter-group{ display:flex; gap:8px; flex-wrap:wrap; }
.filter-btn{
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 9px 15px;
  cursor: pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
  box-shadow: var(--shadow-sm);
}
.filter-btn:hover{ border-color: var(--blue); color: var(--ink); }
.filter-btn.is-active{
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.dot{ width:11px; height:11px; border-radius:50%; display:inline-block; }
.dot--internacional{ background: var(--blue); }
.dot--nacional{ background: var(--red); }

.search-group{ flex: 1 1 220px; min-width: 200px; }
.controls:has(.search-group:only-child) .search-group{ flex: 1 1 100%; }
.btn-hint{ font-size: 11px; opacity: 0.65; }
.filter-btn[aria-pressed="true"]#toggle-map{ background: #0E7468; border-color: #0E7468; color: #fff; }
.community-toggle{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.community-toggle input{ accent-color: var(--amber); width: 15px; height: 15px; }
.search-input{
  width:100%;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 15px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.search-input:focus{ outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,178,0.18); }
.search-input::placeholder{ color: var(--ink-soft); }

#toggle-map{
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 700;
}
#toggle-map:hover{ background: #168f60; border-color: #168f60; color: #fff; }
#toggle-map .btn-hint{ color: rgba(255,255,255,0.85); }

.btn-suggest{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  padding: 11px 18px 11px 14px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn-add-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
}
.btn-suggest:hover{ background: #0E7468; transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* =========================================================
   CONTENT — mapa + lista
   ========================================================= */
.content{
  display: block;
  padding: 4px 20px 36px;
  max-width: 1120px;
  margin: 0 auto;
}
.content.show-map{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}
.map{
  display: none;
  height: 460px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.content.show-map .map{ display: block; }
.list-wrap{
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.quick-nav{
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.quick-nav:empty{ display: none; margin: 0; padding: 0; }
.quick-nav-btn{
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.quick-nav-btn:hover{ border-color: var(--gold); }

.group-pais{
  margin: 6px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.group-pais + .group-pais{ margin-top: 10px; }
.group-pais > summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  padding: 13px 14px;
}
.group-pais > summary:hover{ background: var(--paper-deep); }
.group-pais > summary::-webkit-details-marker{ display: none; }
.group-pais > summary::before{
  content: "›";
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: transform 0.15s ease;
}
.group-pais[open] > summary::before{ transform: rotate(90deg); }
.group-pais-body{ padding: 0 12px 12px; }
.group-pais-body .group-ciudad{ padding-left: 1.5em; }
.group-ciudad-det{ margin: 6px 0; }
.group-ciudad{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  margin: 12px 0 8px 0;
  padding: 2px 0;
}
.group-ciudad::-webkit-details-marker{ display: none; }
.group-ciudad::before{
  content: "›";
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  transition: transform 0.15s ease;
}
.group-ciudad-det[open] > .group-ciudad::before{ transform: rotate(90deg); }
.group-ciudad-body{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 760px){
  .list--ciudades-2col{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: start;
  }
  .list--ciudades-2col > .group-pais{ margin: 0; }
  .list--ciudades-2col > .group-pais[open]{ grid-column: 1 / -1; }
}
.group-count{
  font-family: var(--font-mono);
  font-weight: 400;
  opacity: 0.55;
  font-size: 0.82em;
}
.list{
  height: 460px;
  overflow-y: auto;
  display:flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}
.content:not(.show-map) .list{ height: auto; max-height: none; }

/* tarjeta de centro */
.card{
  position:relative;
  background: #FBFDFC;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor:pointer;
  transition: box-shadow .12s ease, border-color .12s ease;
}
.card[data-tipo="nacional"]{ border-left-color: var(--red); }
.card:hover{ box-shadow: var(--shadow-md); border-color: var(--ink); }
.card.is-selected{ outline: 2px solid var(--gold); outline-offset: 1px; }

.card-top{
  display:flex;
  justify-content: space-between;
  align-items:flex-start;
  gap: 8px;
}
.card-name{
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0;
}
.badge{
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge--internacional{ color: var(--blue); background: var(--blue-soft); }
.badge--nacional{ color: var(--red); background: var(--red-soft); }
.badge--comunidad{
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 999px;
  padding: 3px 9px;
  margin-top: 6px;
}
.card--comunidad{ border-left-style: dashed; }

.card-meta{
  font-size: 13px;
  color: var(--ink-soft);
  margin: 6px 0 0;
}
.card-meta strong{ color: var(--ink); font-weight: 600; }

.card-tags{
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.card-tags-label{
  font-size: 11.5px;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.card-tag-pill{
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
  background: transparent;
}
.card-tag-pill--ancho{
  display: inline-block;
  white-space: normal;
  border-radius: 14px;
  padding: 5px 12px;
  line-height: 1.4;
}

.card-actions{
  margin-top: 10px;
  display:flex;
  gap: 14px;
  align-items: center;
}
.card-actions a{
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  color: var(--blue);
}
.card-actions a:hover{ text-decoration: underline; }
.card-report{
  margin-left: auto;
  color: var(--amber) !important;
  font-weight: 600 !important;
  font-size: 11.5px !important;
}
.card-wa{
  color: #128C7E !important;
  font-weight: 700 !important;
}
.card-share-link{
  color: var(--blue) !important;
  font-weight: 700 !important;
  cursor: pointer;
}
.card-share-link:hover{ text-decoration: underline; }
.card-dist{
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 6px;
}
.card-urgente{
  background: var(--red-soft);
  border-left: 3px solid var(--red);
  border-radius: 0 6px 6px 0;
  padding: 6px 10px;
  margin: 8px 0 0;
  font-size: 12.5px;
  color: #791F1F;
}
.card-urgente strong{ color: var(--red); }
.badge--voluntarios{
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: #9A5B00;
  background: #FFF1DC;
  border-radius: 999px;
  padding: 3px 9px;
  margin: 8px 0 0;
}

/* Sección de voluntarios */
.voluntarios-bar{ margin-bottom: 18px; }
.voluntarios-box{
  background: #FAEEDA;
  border-left: 4px solid var(--gold, #BA7517);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
}
.voluntarios-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: #633806;
  margin: 0 0 6px;
}
.voluntarios-intro{ font-size: 13.5px; color: #854F0B; margin: 0 0 14px; line-height: 1.5; }
.voluntarios-list{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.voluntarios-item{
  background: #fff;
  border-radius: 8px;
  padding: 11px 13px;
  flex: 0 0 240px;
  scroll-snap-align: start;
  text-decoration: none;
  display: block;
  color: inherit;
  border: 1px solid #E2E9E7;
}
.voluntarios-item:hover{ border-color: var(--gold); }
.vol-dir{ font-size: 11.5px; color: var(--ink-soft); margin: 2px 0 0; }
.vol-contacto{ font-size: 11.5px; color: var(--blue); margin: 4px 0 0; word-break: break-all; }
.vol-ver{ display: inline-block; font-size: 11px; font-weight: 700; color: var(--blue); margin-top: 8px; }
.vol-fecha{ font-size: 11px; color: var(--ink-soft); margin: 6px 0 0; }
.vol-seccion{ font-size: 10.5px; font-weight: 700; color: var(--blue); margin: 5px 0 0; text-transform: uppercase; letter-spacing: 0.04em; }

/* Panel buscar voluntarios */
.buscar-vol-wrap{ margin-top: 16px; }
.buscar-vol-btn{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  background: #fff;
  color: #633806;
  border: 2px solid #BA7517;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}
.buscar-vol-btn:hover{ background: #FFF1DC; }
.buscar-vol-panel{
  margin-top: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.buscar-vol-label{
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.buscar-vol-opciones{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.buscar-vol-op{
  display: block;
  padding: 10px 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.buscar-vol-op:hover{ background: var(--blue); color: #fff; }
.vol-nombre{ font-weight: 700; font-size: 14px; color: var(--ink); margin: 0; }
.vol-lugar{ font-size: 12.5px; color: var(--ink-soft); margin: 3px 0 0; }
.vol-tareas{ font-size: 12.5px; color: #633806; margin: 5px 0 0; }
.vol-tareas strong{ font-weight: 700; }

.empty-state{
  font-size: 13px;
  color: var(--ink-soft);
  text-align:center;
  padding: 36px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* marcador del mapa */
.stamp-icon{ background: transparent; border: none; }
.stamp{
  display:block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.stamp--internacional{ background: var(--blue); }
.stamp--nacional{ background: var(--red); }

/* popup de Leaflet con tipografía propia */
.leaflet-popup-content{ font-family: var(--font-body); font-size: 13px; }
.leaflet-popup-content b{ font-family: var(--font-display); }

/* =========================================================
   GUÍA DE EMERGENCIA
   ========================================================= */
.guia-wrap{ padding-top: 18px; padding-bottom: 40px; }
.guia-main{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 40px;
}
/* La primera sección (contactos) ocupa todo el ancho y resalta */
.guia-main > .guia-sec:first-child{
  grid-column: 1 / -1;
  border-left-color: var(--blue);
}
.guia-main > .guia-sec:first-child > summary::after{ color: var(--blue); }
/* Cuando un módulo está abierto, ocupa todo el ancho para leerse cómodo */
.guia-sec[open]{ grid-column: 1 / -1; }
.guia-sec{
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  margin-bottom: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: fit-content;
}
.guia-sec > summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  padding: 15px 16px;
  line-height: 1.25;
}
.guia-sec > summary::-webkit-details-marker{ display: none; }
.guia-sec > summary::after{
  content: "+";
  margin-left: auto;
  font-size: 20px;
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}
.guia-sec[open] > summary::after{ content: "–"; }
.guia-body{ padding: 0 18px 18px; }

.app-sum-nombre{ flex: 1 1 auto; }
.app-sum-stores{
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 4px;
}
.store-mini{
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.store-mini--play{ background: var(--green); color: #fff; }
.store-mini--apple{ background: var(--ink); color: #fff; }
.app-sum-vermas{
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}
.app-sum-vermas .chev{ font-size: 12px; transition: transform 0.2s ease; }
.guia-sec[open] .app-sum-vermas .chev{ transform: rotate(180deg); }
@media (max-width: 420px){
  .guia-sec > summary{ flex-wrap: wrap; }
  .app-sum-stores{ margin-left: 0; order: 3; flex-basis: 100%; }
  .guia-sec > summary::after{ order: 2; }
}
@media (max-width: 720px){
  .guia-main{ grid-template-columns: 1fr; }
}
.guia-body p{ font-size: 14.5px; color: var(--ink); line-height: 1.6; margin: 0 0 12px; }
.guia-body ul{ margin: 0 0 14px; padding-left: 22px; }
.guia-body li{ font-size: 14.5px; color: var(--ink); line-height: 1.55; margin-bottom: 8px; }
.guia-body strong{ color: var(--ink); font-weight: 700; }
.guia-tip{
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 10px;
}
.guia-tip p{ font-size: 14px; color: var(--ink); margin: 0; line-height: 1.55; }

/* App destacada (Bridgefy) */
.app-hero{
  background: linear-gradient(135deg, #192A46 0%, #103A46 100%);
  border-radius: var(--radius);
  padding: 24px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
}
.app-hero-tag{
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: #16302B;
  background: #40C4A0;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
}
.app-hero-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1;
}
.app-hero-desc{ color: #DCE8EE; font-size: 15px; line-height: 1.55; margin: 0 0 12px; }
.app-hero-desc strong{ color: #9FE8D4; }
.app-hero-how{ color: #B8CAD4; font-size: 13.5px; line-height: 1.55; margin: 0 0 16px; }
.app-hero-how strong{ color: #fff; }

/* Botones de tienda */
.store-btns{ display: flex; gap: 10px; flex-wrap: wrap; }
.store-btn{
  flex: 1 1 auto;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 10px;
  white-space: nowrap;
}
.store-btn--play{ background: var(--green); color: #fff; }
.store-btn--play:hover{ background: #168f60; }
.store-btn--apple{ background: var(--ink); color: #fff; }
.store-btn--apple:hover{ background: #000; }
.app-hero .store-btn--play{ background: #40C4A0; color: #0C2B26; }
.app-hero .store-btn--apple{ background: #fff; color: #16302B; }

.apps-divider{
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 20px 0 12px;
}
.guia-section-divider{
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  margin: 18px 0 10px;
  padding: 10px 14px;
  background: var(--paper-deep);
  border-radius: var(--radius-sm);
}
.guia-nota{
  background: var(--red-soft);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px !important;
  color: var(--ink) !important;
}
.contactos li{ font-size: 15px; }
.guia-cierre{
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 24px auto 0;
  max-width: 560px;
}

/* =========================================================
   BANNER PROMO (llamar a la familia)
   ========================================================= */
.promo-ad{
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto 18px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}
.promo-ad:hover{ filter: brightness(1.06); }
.promo-ad-icon{ font-size: 32px; flex-shrink: 0; }
.promo-ad-text{ display: flex; flex-direction: column; gap: 3px; }
.promo-ad-text strong{
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
}
.promo-ad-text span{ color: rgba(255,255,255,0.92); font-size: 13.5px; line-height: 1.35; }
.promo-ad-hint{
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
}
.promo-ad-hint .chev{ font-size: 15px; }

/* =========================================================
   DASHBOARD DE NECESIDADES URGENTES (página principal)
   ========================================================= */
.urgencias-dash{
  margin: 0 0 18px;
  background: var(--red-soft);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 18px;
}
.urgencias-dash-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: #501313;
  margin: 0 0 4px;
}
.urgencias-dash-intro{ font-size: 13px; color: #791F1F; margin: 0 0 12px; }
.urgencias-dash-list{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.urgencias-dash-item{
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: #fff;
}
.urgencias-dash-btn{
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
}
.urgencias-dash-btn:hover{ background: #8a261e; }

/* Tarjeta de urgencia (compartida entre dashboard y página completa) */
.card--urgencia{ border-left-color: var(--red); }
.urg-cat-badge{
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.cat-medico .urg-cat-badge{ color: #993C1D; background: #FAECE7; }
.cat-alimento .urg-cat-badge{ color: #0E7468; background: var(--green-soft); }
.cat-transporte .urg-cat-badge{ color: #3C3489; background: #EEEDFE; }
.cat-refugio .urg-cat-badge{ color: #854F0B; background: #FAEEDA; }
.cat-otro .urg-cat-badge{ color: var(--ink-soft); background: var(--paper-deep); }

.callout--urgencia{ border-left-color: var(--red); }
.btn-suggest--urgencia{ background: var(--red); }
.btn-suggest--urgencia:hover{ background: #8a261e; }

/* =========================================================
   NAVEGACIÓN ENTRE PÁGINAS
   ========================================================= */
.page-nav{
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.page-nav a{
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .1s ease, filter .1s ease;
}
.page-nav a:hover{ filter: brightness(1.08); transform: translateY(-1px); }
.page-nav a.is-current{
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(31,168,113,0.25);
}
.eyebrow--big{
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  color: var(--blue) !important;
}
.badge--recibe{ color: #0E7C6E; background: var(--green-soft); }
.badge--norecibe{ color: var(--ink-soft); background: var(--paper-deep); }
.badge--voluntarios{
  display: inline-block;
  color: #9A5B00;
  background: #FFF1DC;
  margin-top: 6px;
}
.card--refugio{ border-left-color: var(--green); }
.badge--publico{ color: var(--blue); background: var(--blue-soft); }
.badge--privado{ color: var(--green); background: var(--green-soft); }
.card[data-tipo="publico"]{ border-left-color: var(--blue); }
.card[data-tipo="privado"]{ border-left-color: var(--green); }

/* =========================================================
   IDIOMA + INSUMOS MÁS NECESITADOS
   ========================================================= */
.lang-bar{
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.lang-btn{
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 4px 11px;
  cursor: pointer;
}
.lang-btn.is-active{ background: var(--blue); border-color: var(--blue); color: #fff; }

.needs-bar{ padding: 16px 20px 0; }
.needs{
  background: var(--green-soft);
  border: 1px solid #C6E8DC;
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.needs > summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}
.needs > summary::-webkit-details-marker{ display: none; }
.needs-expand-hint{
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.needs-expand-hint .chev{
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 13px;
}
.needs[open] .needs-expand-hint .chev{ transform: rotate(180deg); }
.needs[open] .needs-expand-hint .txt-cerrar{ display: inline; }
.needs[open] .needs-expand-hint .txt-ver{ display: none; }
.needs:not([open]) .needs-expand-hint .txt-cerrar{ display: none; }
.needs-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14.5px;
  color: var(--ink);
}
.needs-body{ padding: 0 16px 16px; }
.needs-cats{
  columns: 2;
  column-gap: 18px;
  margin-bottom: 10px;
}
.need-cat{
  break-inside: avoid;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #D7EDE4;
  border-radius: 8px;
  overflow: hidden;
}
.need-cat > summary{
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.need-cat > summary::-webkit-details-marker{ display: none; }
.need-cat > summary::after{
  content: "+";
  margin-left: auto;
  font-size: 15px;
  color: var(--green);
  font-weight: 700;
}
.need-cat[open] > summary::after{ content: "–"; }
.need-cat ul{
  margin: 0;
  padding: 0 12px 10px 28px;
}
.need-cat li{
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.needs-note{
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.45;
}
.no-donar{
  margin-top: 14px;
  background: var(--red-soft);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 14px 16px;
}
.no-donar-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14.5px;
  color: var(--red);
  margin: 0 0 8px;
}
.no-donar-intro{ font-size: 13px; color: var(--ink); margin: 0 0 8px; line-height: 1.5; }
.no-donar-list{ margin: 0 0 8px; padding-left: 20px; }
.no-donar-list li{ font-size: 13px; color: var(--ink); margin-bottom: 5px; line-height: 1.45; }
.no-donar-resumen{ font-size: 13px; color: var(--ink); margin: 0; font-weight: 600; line-height: 1.5; }
@media (max-width: 600px){
  .needs-cats{ columns: 1; }
}

/* =========================================================
   RECURSOS MÉDICOS — títulos de sección y tarjeta psicológica
   ========================================================= */
.seccion-pagina{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  margin: 18px 0 10px;
  padding-top: 14px;
  border-top: 2px solid var(--green);
}
.seccion-titulo{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  margin: 28px 0 6px;
}
main > .seccion-titulo:first-child{ margin-top: 4px; }
.seccion-intro{
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 14px;
  max-width: 640px;
}
.card--apoyo{ border-left-color: #7C5CBF; }

.cat-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-items: start;
}
.cat-det{ margin: 0; }
.cat-det.cat-det--open{ grid-column: 1 / -1; }
@media (max-width: 480px){
  .cat-grid{ grid-template-columns: 1fr; }
}
.card--mascotas{ border-left-color: #D97706; }
.masc-section{ padding-top: 0; margin-top: -4px; }
.callout--mascotas{ border-left-color: #D97706; }
.btn-suggest--masc{ background: #D97706; }
.btn-suggest--masc:hover{ background: #b45309; }

/* =========================================================
   CALLOUTS — sugerir centro / comentarios
   ========================================================= */
.callouts{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 4px 20px 30px;
}
.callout{
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.callout--comments{ background: var(--blue-soft); border-left-color: var(--blue); }
.callout-text h2{
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 800;
  margin: 0 0 6px;
}
.callout-text p{
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 480px;
}
.btn-suggest--big{
  align-self: flex-start;
  font-size: 14.5px;
  padding: 13px 20px;
}
.btn-suggest--alt{
  background: var(--blue);
  color: #fff;
}
.btn-suggest--alt:hover{ background: #234d73; }

.comments-box{
  max-width: 1120px;
  margin: 14px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #fff;
}
.comments-iframe{
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}
@media (max-width: 480px){
  .comments-iframe{ height: 720px; }
}

@media (max-width: 600px){
  .callout{ flex: 1 1 100%; }
  .btn-suggest--big{ align-self: stretch; text-align: center; }
}

/* =========================================================
   OTROS RECURSOS
   ========================================================= */
.resources{ padding: 4px 20px 26px; }
.resources h2{
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 6px;
}
.resources-note{
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 14px;
}
.resources-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 760px){
  .resources-list{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
.resources-list a{
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.resources-list a:hover{ border-color: var(--gold); border-left-color: var(--gold); }
.resources-list .res-body{ flex: 1 1 auto; min-width: 0; }
.resources-list .res-go{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}
.resources-list strong{
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}

/* =========================================================
   FRASE DESTACADA
   ========================================================= */
.frase-vzla{
  max-width: 1120px;
  margin: 8px auto 22px;
  padding: 22px 24px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 800;
  font-style: italic;
  line-height: 1.35;
  color: var(--blue);
  border: none;
  border-top: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
}

/* =========================================================
   MENSAJES DE COMPARTIR
   ========================================================= */
.share-top{
  background: #fff;
  border: 1.5px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  max-width: 640px;
  margin: 2px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.share-top-text{
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.45;
}
@media (max-width: 600px){
  #share-btn-top{ align-self: stretch; text-align: center; }
}
.share-bottom{
  background: linear-gradient(135deg, #EAF3FA 0%, #E3F6EE 100%);
  border-radius: var(--radius);
  padding: 26px 22px;
  margin-bottom: 24px;
}
.share-bottom h2{
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--ink);
}
.share-bottom p{
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 680px;
  margin: 0 0 12px;
}
#share-btn{ border: none; cursor: pointer; margin-top: 4px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  padding: 18px 20px 56px;
  font-size: 12.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 880px){
  .content.show-map{ grid-template-columns: 1fr; }
  .map{ height: 320px; }
  .content.show-map .list{ height: auto; max-height: 420px; }
  .controls{ flex-direction: column; align-items: stretch; gap: 8px; }
  .controls .search-group{ flex: 0 0 auto; }
  .controls #toggle-map{ justify-content: center; }
  .btn-suggest{ text-align:center; }
}
