:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --need: #e11d48;
  --need-dark: #be123c;
  --help: #1a9b8e;
  --help-dark: #147f74;
  --navy: #12355b;
  --accent: #1a9b8e;
  --crit: #e11d48;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
  --radius: 16px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% -5%, #dbeafe 0%, transparent 55%),
    radial-gradient(800px 380px at 100% 0%, #ffe4e6 0%, transparent 50%),
    radial-gradient(700px 360px at 80% 100%, #ede9fe 0%, transparent 45%),
    #f8fafc;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--help-dark); }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.4rem;
  background: var(--navy);
  color: #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #1e293b;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
}
.brand-logo {
  width: auto;
  height: 2.75rem;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
  background: #fff;
  padding: 0.12rem 0.28rem;
  object-fit: contain;
}
.mark {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-text span {
  font-weight: 500;
  font-size: 0.68rem;
  opacity: 0.72;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
nav { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; }
nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
}
nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
}
.nav-cta.need {
  background: #e11d48 !important;
  color: #fff !important;
}
main { max-width: 1080px; margin: 0 auto; padding: 1.6rem 1.15rem 3.5rem; }
footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.15rem 2.8rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.foot-grid {
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
footer strong { color: var(--navy); }
.fine { opacity: 0.8; font-size: 0.8rem; }
h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
  font-weight: 700;
}
h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 0 0 0.8rem;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 0.45rem;
}
.hero .kicker { color: #93c5fd; }
.lead { color: var(--muted); margin: 0 0 1.1rem; font-size: 1.05rem; max-width: 42rem; }
.hero {
  background:
    linear-gradient(160deg, #0f172a, #1e3a8a);
  color: #fff;
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  border: 18px solid rgba(37, 99, 235, 0.2);
  border-radius: 50%;
}
.hero .lead { color: #cbd5e1; }
.hero h1 { max-width: 18ch; }
.paths {
  display: grid;
  gap: 0.9rem;
  margin: 1.2rem 0 0.2rem;
}
@media (min-width: 760px) { .paths { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .paths.three { grid-template-columns: 1fr 1fr 1fr; } }
.path {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.25rem 1.3rem 1.35rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  display: block;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}
.path::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
}
.path.need::before { background: linear-gradient(180deg, #fb7185, #e11d48); }
.path.help::before { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.path.miss::before { background: linear-gradient(180deg, #c4b5fd, #7c3aed); }
.path:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12); }
.path-badge {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  background: #f1f5f9;
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}
.path.need .path-badge { background: #ffe4e6; }
.path.help .path-badge { background: #dbeafe; }
.path.miss .path-badge { background: #ede9fe; }
.path .eyebrow { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.path.need .eyebrow { color: var(--need); }
.path.help .eyebrow { color: var(--help); }
.path.miss .eyebrow { color: #7c3aed; }
.path h2 { margin-top: 0.25rem; }
.path p { color: var(--muted); margin: 0 0 0.9rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.15rem 0 0; position: relative; z-index: 1; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
}
.btn-need { background: var(--need); color: #fff; }
.btn-need:hover { background: var(--need-dark); }
.btn-help { background: var(--help); color: #fff; }
.btn-help:hover { background: var(--help-dark); }
.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  opacity: 0.92;
}
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.page-head { margin-bottom: 1.2rem; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin: 0 0 1.6rem;
}
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div, .stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  text-align: left;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}
.stats strong, .stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1;
}
.stats span, .stat span { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.section { margin: 2rem 0 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.section-head a { font-weight: 700; font-size: 0.9rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
@media (min-width: 760px) { .cards.two { grid-template-columns: 1fr 1fr; } }
.cards a, .cards li {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}
.cards a:hover { border-color: var(--accent); }
.cards strong { display: block; margin: 0.3rem 0 0.15rem; font-size: 1.05rem; }
.cards span, .cards em { color: var(--muted); font-size: 0.84rem; font-style: normal; }
.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: #f1f5f9;
  letter-spacing: 0.02em;
}
.tag-critica { background: #fde8e6; color: var(--crit); }
.tag-alta { background: #ffedd5; color: #9a3412; }
.tag-media { background: #e0f2fe; color: #075985; }
.tag-urgente { background: #fee2e2; color: #b91c1c; }
.tag-importante { background: #dbeafe; color: #1d4ed8; }
.tag-info { background: #f1f5f9; color: #334155; }
.prose { white-space: normal; line-height: 1.6; }
.cards.news strong { font-size: 1.08rem; }
.tag-empresa, .tag-fundacion, .tag-entidad { background: #e0eaff; color: #1e3a8a; }
.tag-iglesia { background: #f3e8ff; color: #6b21a8; }
.tag-colectivo, .tag-persona { background: #dbeafe; color: #1e40af; }
.howto {
  display: grid;
  gap: 0.8rem;
}
@media (min-width: 800px) { .howto { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
}
.step b {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.2rem 1.15rem 1.4rem;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: 1 / -1; }
}
.form p, .field { margin: 0; }
.field label, .form label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
  font-size: 0.88rem;
}
.input, .form input, .form select, .form textarea,
.form input[type="text"], .form input[type="search"], .form input[type="url"], .form input[type="number"] {
  width: 100%;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus, .input:focus {
  outline: 2px solid rgba(15,110,86,.28);
  border-color: var(--help);
}
.help { color: var(--muted); font-size: 0.8rem; margin: 0.25rem 0 0; }
.has-error .input, .has-error select, .has-error textarea { border-color: var(--crit); }
.radio-row ul, #id_tipo {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
@media (min-width: 640px) {
  .radio-row ul, #id_tipo { grid-template-columns: 1fr 1fr; }
}
.radio-row li, #id_tipo li {
  margin: 0;
}
.radio-row label, #id_tipo label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  cursor: pointer;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: end;
  margin-bottom: 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 1rem;
}
.filters label { font-size: 0.82rem; font-weight: 700; }
.hint, .meta { color: var(--muted); font-size: 0.9rem; }
.empty { color: var(--muted); }
.flash {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
}
.errorlist { color: var(--crit); font-size: 0.85rem; padding-left: 1rem; margin: 0.25rem 0 0; }
.geo-hint {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
}
.detail {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.3rem 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.2rem;
}
.meta-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.4rem 0 0.8rem; }
.map-page main { max-width: 1200px; }
.map-page footer { max-width: 1200px; }
.dash-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}
.dash-stats { margin: 0; min-width: 280px; }
.dash-grid { display: grid; gap: 1rem; }
@media (min-width: 960px) {
  .dash-grid { grid-template-columns: 280px 1fr; align-items: start; }
}
.dash-side {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.05rem;
}
.dash-side h2 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.dash-side h2:not(:first-child) { margin-top: 1.1rem; }
.kpi-mun, .rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.kpi-mun li, .rank button {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  text-align: left;
}
.kpi-mun strong, .rank strong { display: block; font-size: 0.88rem; }
.kpi-mun span, .rank span, .rank em {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
}
.rank button { width: 100%; cursor: pointer; font: inherit; }
.mapa {
  height: min(68vh, 640px);
  min-height: 380px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #e2e8f0;
}
.legend { color: var(--muted); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.legend .dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  margin-right: 0.25rem;
  vertical-align: -1px;
}
.legend .critica { background: #e11d48; }
.legend .alta { background: #ea580c; }
.legend .media { background: #0284c7; }
.legend .oferta { background: #2563eb; }
.legend .empresa { background: #7c3aed; }
.filters select, .filters input {
  display: block;
  margin-top: 0.2rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
}
.filters .check { display: flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.barrio-combo { position: relative; width: 100%; }
.barrio-suggest {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
  max-height: 260px;
  overflow: auto;
}
.barrio-opt {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}
.barrio-opt strong { font-size: 0.92rem; font-weight: 700; }
.barrio-opt em { font-style: normal; font-size: 0.75rem; color: #64748b; }
.barrio-opt:hover,
.barrio-opt.is-active { background: #eff6ff; }
.barrio-opt-custom { border-top: 1px dashed var(--line); margin-top: 0.2rem; }
.map-pin-box { margin-top: 0.85rem; }
.map-pin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: none;
  padding: 0;
  color: #0369a1;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.map-pin-toggle.is-on { color: #0f766e; text-decoration: none; }
.map-pin-panel {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.55rem;
}
.map-pin-panel[hidden] { display: none; }
.map-pin-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.mapa-pin {
  height: 280px;
  border-radius: 14px;
  border: 1px solid var(--line);
  z-index: 1;
}
.tercero-box {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem 1rem;
  border: 1px solid #bfdbfe;
  background: #f8fbff;
  border-radius: 16px;
}
.tercero-box .toggle-card { margin: 0; background: #fff; }
.tercero-extra { display: grid; gap: 0.75rem; margin-top: 0.85rem; }
.tercero-extra[hidden] { display: none; }
.hint.gestor-hint {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
}
.org-fields { display: none; }
.org-fields.is-on { display: grid; gap: 0.85rem; }
@media (min-width: 720px) {
  .org-fields.is-on { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  nav a { font-size: 0.78rem; padding: 0.35rem 0.55rem; }
  .top { padding: 0.75rem 0.9rem; }
}

/* ??? Rich visual system ??? */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,.85);
  color: #0f172a;
}
.pill.danger, .pill.urgente { background: #fee2e2; color: #b91c1c; }
.pill.importante { background: #dbeafe; color: #1d4ed8; }
.pill.info { background: #f1f5f9; color: #334155; }
.link-arrow { font-weight: 800; text-decoration: none; color: var(--help-dark); }

.banner {
  display: grid;
  gap: 1.2rem;
  border-radius: 28px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  margin-bottom: 1.3rem;
  overflow: hidden;
  position: relative;
  color: #fff;
  box-shadow: var(--shadow);
}
@media (min-width: 860px) {
  .banner { grid-template-columns: 1.25fr 0.9fr; align-items: center; }
}
.banner-news {
  background:
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 48%, #7c3aed 100%);
}
.banner-miss {
  background:
    linear-gradient(135deg, #4c1d95 0%, #7c3aed 45%, #db2777 100%);
}
.banner .lead { color: rgba(255,255,255,.85); }
.banner .kicker { color: #bfdbfe; }
.banner-miss .kicker { color: #fbcfe8; }
.banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.banner-art { position: relative; min-height: 180px; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
}
.orb-a { width: 140px; height: 140px; background: #f97316; right: 10%; top: 10%; animation: floaty 6s ease-in-out infinite; }
.orb-b { width: 90px; height: 90px; background: #22d3ee; left: 18%; bottom: 18%; animation: floaty 7s ease-in-out infinite reverse; }
.orb-c { width: 60px; height: 60px; background: #f472b6; right: 35%; bottom: 8%; animation: floaty 5s ease-in-out infinite; }
.chip-stack {
  position: absolute;
  inset: 18% 8% auto auto;
  display: grid;
  gap: 0.45rem;
  z-index: 2;
}
.chip-stack span {
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.miss-art { display: grid; place-items: center; }
.search-ring {
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 14px solid rgba(255,255,255,.2);
  box-shadow: 0 0 0 18px rgba(255,255,255,.08);
  animation: pulse 3s ease-in-out infinite;
}
.search-core {
  position: absolute;
  font-size: 2.8rem;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: .85; }
}

.filters-rich {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.story-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .story-grid .story-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
  }
  .home-stories .story-featured { grid-column: span 1; display: flex; flex-direction: column; }
}
.story {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(226,232,240,.9);
  box-shadow: 0 16px 36px rgba(15,23,42,.07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.story:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(15,23,42,.14); }
.story-media {
  position: relative;
  min-height: 140px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.story-featured .story-media { min-height: 220px; }
.story-icon {
  position: relative;
  z-index: 2;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 1.2rem;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  display: grid;
  place-items: center;
}
.story-icon::before {
  content: "";
  width: 1.7rem;
  height: 1.7rem;
  display: block;
  background: #fff;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.story-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.18) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.14) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,.1) 0 3px, transparent 4px);
  background-size: 48px 48px, 64px 64px, 40px 40px;
  opacity: .9;
  pointer-events: none;
}
.story-glow {
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  filter: blur(10px);
  animation: floaty 8s ease-in-out infinite;
}
.story-body { padding: 1rem 1.1rem 1.15rem; display: grid; gap: 0.35rem; }
.story-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.story-body strong {
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.story-body em, .story-time {
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}
.story-body p { margin: 0.15rem 0 0; color: #334155; font-size: 0.95rem; }

.org-bomberos .story-media,
.article.org-bomberos .article-hero { background: linear-gradient(145deg, #7f1d1d, #ea580c 55%, #fbbf24); }
.org-medicina_legal .story-media,
.article.org-medicina_legal .article-hero { background: linear-gradient(145deg, #1e3a8a, #334155 60%, #64748b); }
.org-alcaldia .story-media,
.article.org-alcaldia .article-hero { background: linear-gradient(145deg, #0f766e, #2563eb 55%, #38bdf8); }
.org-clinica .story-media,
.article.org-clinica .article-hero { background: linear-gradient(145deg, #0e7490, #14b8a6 50%, #a7f3d0); }
.org-cruz_roja .story-media,
.article.org-cruz_roja .article-hero { background: linear-gradient(145deg, #9f1239, #ef4444 55%, #fecaca); }
.org-defensa_civil .story-media,
.article.org-defensa_civil .article-hero { background: linear-gradient(145deg, #854d0e, #ca8a04 50%, #fde047); }
.org-policia .story-media,
.article.org-policia .article-hero { background: linear-gradient(145deg, #14532d, #166534 50%, #86efac); }
.org-gobernacion .story-media,
.article.org-gobernacion .article-hero { background: linear-gradient(145deg, #312e81, #6366f1 55%, #c4b5fd); }
.org-otro .story-media,
.article.org-otro .article-hero { background: linear-gradient(145deg, #0f172a, #334155 55%, #94a3b8); }

.hero-rich {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-rich { grid-template-columns: 1.15fr 0.85fr; }
  .hero-rich h1 { max-width: none; }
}
.hero-panel {
  position: relative;
  min-height: 240px;
}
.float-card {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.1rem;
  min-width: 150px;
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
}
.float-card span { font-size: 1.4rem; }
.float-card b { font-size: 0.95rem; }
.float-card small { opacity: .75; font-size: 0.75rem; }
.fc-1 { top: 8%; left: 8%; animation: floaty 5.5s ease-in-out infinite; }
.fc-2 { top: 38%; right: 4%; animation: floaty 6.5s ease-in-out infinite reverse; }
.fc-3 { bottom: 6%; left: 28%; animation: floaty 7s ease-in-out infinite; }
.hero-ring {
  position: absolute;
  inset: 18% 16%;
  border-radius: 50%;
  border: 16px solid rgba(255,255,255,.12);
}

.stats-rich .stat { border: 0; }
.stat.need-tone { background: linear-gradient(160deg, #fff, #ffe4e6); }
.stat.help-tone { background: linear-gradient(160deg, #fff, #dbeafe); }
.stat.miss-tone { background: linear-gradient(160deg, #fff, #ede9fe); }
.stat.org-tone { background: linear-gradient(160deg, #fff, #ecfccb); }

.miss-grid {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 760px) { .miss-grid { grid-template-columns: 1fr 1fr; } }
.miss-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  background: #fff;
  border-radius: 20px;
  padding: 1rem 1.05rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 32px rgba(15,23,42,.06);
  transition: transform .2s ease;
}
.miss-card:hover { transform: translateY(-3px); }
.miss-card strong { display: block; margin: 0.35rem 0 0.15rem; font-size: 1.1rem; }
.miss-card em { display: block; color: var(--muted); font-style: normal; font-size: 0.82rem; }
.miss-card p { margin: 0.4rem 0 0; color: #334155; font-size: 0.92rem; }
.miss-avatar {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(145deg, #7c3aed, #db2777);
  text-transform: uppercase;
}

.article {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-bottom: 1.2rem;
}
.article-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem 1.3rem;
  color: #fff;
}
.article-hero .kicker { color: rgba(255,255,255,.85); }
.article-hero h1 { margin-bottom: 0.5rem; }
.article-icon {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
}
.article .lead, .article .prose, .article .meta, .article p {
  padding-left: 1.3rem;
  padding-right: 1.3rem;
}
.article .lead { padding-top: 1rem; }
.article .prose { padding-bottom: 0.5rem; }
.article .meta { padding-bottom: 1.3rem; }
.callout {
  margin: 0 1.3rem 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.story-grid.compact { grid-template-columns: 1fr; }
@media (min-width: 800px) {
  .story-grid.compact { grid-template-columns: repeat(2, 1fr); }
}

/* Icon masks */
.ico {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  background: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  vertical-align: -0.15rem;
}
.ico.lg { width: 2.6rem; height: 2.6rem; }
.float-card .ico {
  width: 1.5rem;
  height: 1.5rem;
  background: #fff;
  margin-bottom: 0.2rem;
}
.article-icon .ico {
  width: 1.8rem;
  height: 1.8rem;
  background: #fff;
}
.chip .ico { background: #fff; }

.ico-bomberos,
.ico-bomberos::before,
.story-icon.ico-bomberos::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2c2 3 4 5 4 8a4 4 0 1 1-8 0c0-3 2-5 4-8z'/%3E%3Cpath d='M8 18h8'/%3E%3Cpath d='M9 21h6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2c2 3 4 5 4 8a4 4 0 1 1-8 0c0-3 2-5 4-8z'/%3E%3Cpath d='M8 18h8'/%3E%3Cpath d='M9 21h6'/%3E%3C/svg%3E");
}
.ico-medicina_legal,
.ico-medicina_legal::before,
.story-icon.ico-medicina_legal::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M5 8h4l3 4 3-4h4'/%3E%3Cpath d='M7 21h10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M5 8h4l3 4 3-4h4'/%3E%3Cpath d='M7 21h10'/%3E%3C/svg%3E");
}
.ico-alcaldia,
.ico-alcaldia::before,
.story-icon.ico-alcaldia::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V8l7-5 7 5v13'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V8l7-5 7 5v13'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3C/svg%3E");
}
.ico-clinica,
.ico-clinica::before,
.story-icon.ico-clinica::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M12 8v8'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M12 8v8'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E");
}
.ico-cruz_roja,
.ico-cruz_roja::before,
.story-icon.ico-cruz_roja::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M9 3h6v6h6v6h-6v6H9v-6H3V9h6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M9 3h6v6h6v6h-6v6H9v-6H3V9h6z'/%3E%3C/svg%3E");
}
.ico-defensa_civil,
.ico-defensa_civil::before,
.story-icon.ico-defensa_civil::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4v5c0 5-3.5 8.5-8 10-4.5-1.5-8-5-8-10V7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4v5c0 5-3.5 8.5-8 10-4.5-1.5-8-5-8-10V7z'/%3E%3C/svg%3E");
}
.ico-policia,
.ico-policia::before,
.story-icon.ico-policia::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6z'/%3E%3Ccircle cx='12' cy='11' r='2.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6z'/%3E%3Ccircle cx='12' cy='11' r='2.5'/%3E%3C/svg%3E");
}
.ico-gobernacion,
.ico-gobernacion::before,
.story-icon.ico-gobernacion::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h6'/%3E%3C/svg%3E");
}
.ico-otro,
.ico-otro::before,
.story-icon.ico-otro::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E");
}
.ico-search {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background: #fff;
}
.path-badge.badge-need::before,
.path-badge.badge-help::before,
.path-badge.badge-miss::before {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  background: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.path-badge.badge-need { color: #e11d48; }
.path-badge.badge-help { color: #2563eb; }
.path-badge.badge-miss { color: #7c3aed; }
.path-badge.badge-need::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-4.5-7-11a4 4 0 0 1 7-2 4 4 0 0 1 7 2c0 6.5-7 11-7 11z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-4.5-7-11a4 4 0 0 1 7-2 4 4 0 0 1 7 2c0 6.5-7 11-7 11z'/%3E%3C/svg%3E");
}
.path-badge.badge-help::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}
.path-badge.badge-miss::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pub-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .pub-grid { grid-template-columns: 1fr 1fr; }
}
.pub {
  background: #fff;
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 36px rgba(15,23,42,.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pub-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 1.05rem 0.6rem;
  text-decoration: none;
  color: inherit;
}
.pub-badge {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
}
.pub-badge .story-icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 16px;
}
.org-bomberos .pub-badge { background: linear-gradient(145deg, #7f1d1d, #ea580c); }
.org-medicina_legal .pub-badge { background: linear-gradient(145deg, #1e3a8a, #64748b); }
.org-alcaldia .pub-badge { background: linear-gradient(145deg, #0f766e, #2563eb); }
.org-clinica .pub-badge { background: linear-gradient(145deg, #0e7490, #14b8a6); }
.org-cruz_roja .pub-badge { background: linear-gradient(145deg, #9f1239, #ef4444); }
.org-defensa_civil .pub-badge { background: linear-gradient(145deg, #854d0e, #ca8a04); }
.org-policia .pub-badge { background: linear-gradient(145deg, #14532d, #86efac); }
.org-gobernacion .pub-badge { background: linear-gradient(145deg, #312e81, #6366f1); }
.org-otro .pub-badge { background: linear-gradient(145deg, #0f172a, #64748b); }
.pub-head strong {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.2;
  margin-top: 0.25rem;
}
.pub-head em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 0.84rem;
  margin-top: 0.15rem;
}
.pub-resumen {
  margin: 0;
  padding: 0 1.05rem 0.55rem;
  color: #334155;
  font-size: 0.95rem;
}
.pub-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1.05rem 0.7rem;
}
.pub-facts span {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  color: #475569;
}
.pub-facts b { color: #0f172a; margin-right: 0.2rem; }
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0.2rem 0 0;
  border-top: 1px solid #e2e8f0;
}
.pub-list li {
  padding: 0.7rem 1.05rem;
  border-bottom: 1px solid #f1f5f9;
  display: grid;
  gap: 0.15rem;
}
.pub-list li:last-child { border-bottom: 0; }
.pub-list b { font-size: 0.98rem; }
.pub-list span { color: var(--muted); font-size: 0.84rem; }
.pub-list.big li { padding: 0.85rem 1.3rem; }
.pub-list .item-persona { border-left: 4px solid #0ea5e9; }
.pub-list .item-punto { border-left: 4px solid #2563eb; }
.pub-list .item-telefono { border-left: 4px solid #16a34a; }
.pub-list .item-aviso { border-left: 4px solid #ea580c; }
.pub-more {
  display: block;
  padding: 0.85rem 1.05rem 1.05rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--help-dark);
}
.listado-block {
  margin: 0.4rem 0 0.8rem;
}
.listado-block h2 {
  margin: 0;
  padding: 0.9rem 1.3rem 0.4rem;
  font-size: 1.15rem;
}
.fact-strip {
  display: grid;
  gap: 0.55rem;
  padding: 0.4rem 1.3rem 0.9rem;
}
@media (min-width: 700px) {
  .fact-strip { grid-template-columns: repeat(3, 1fr); }
}
.fact-strip div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
}
.fact-strip b {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.fact-strip.rich { padding-left: 0; padding-right: 0; }

/* Portada con foto real en listados */
.pub-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}
.pub-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.pub:hover .pub-cover img { transform: scale(1.04); }
.pub-cover-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 1.6rem 0.85rem 0.75rem;
  background: linear-gradient(transparent, rgba(15, 23, 42, .78));
}
.pub-cover-overlay .pill {
  background: rgba(255,255,255,.92);
  color: #0f172a;
  border: 0;
}
.pub-cover-overlay .pill.danger {
  background: #fecaca;
  color: #7f1d1d;
}
.pub-content { display: flex; flex-direction: column; flex: 1; }
.pub-title {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0.95rem 1.05rem 0.35rem;
}
.pub-title strong {
  display: block;
  font-family: var(--display);
  font-size: 1.22rem;
  line-height: 1.2;
}
.pub-title em {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-style: normal;
  font-size: 0.86rem;
}

.item-cards {
  display: grid;
  gap: 0.55rem;
  padding: 0 1.05rem 0.4rem;
}
.item-cards.compact { padding-bottom: 0; }
.item-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 0.75rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.item-card.compact,
.item-cards.compact .item-card {
  grid-template-columns: 1fr;
  padding: 0.65rem 0.75rem;
}
.item-card.large {
  grid-template-columns: 4.5rem 1fr;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15,23,42,.04);
}
.item-kind {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}
.item-card b { display: block; font-size: 0.98rem; line-height: 1.25; }
.item-card span { color: #475569; font-size: 0.86rem; }
.item-visual {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 14px;
  background:
    linear-gradient(145deg, #dbeafe, #eff6ff);
}
.item-persona .item-visual { background: linear-gradient(145deg, #bae6fd, #e0f2fe); }
.item-punto .item-visual { background: linear-gradient(145deg, #bfdbfe, #dbeafe); }
.item-telefono .item-visual { background: linear-gradient(145deg, #bbf7d0, #dcfce7); }
.item-aviso .item-visual { background: linear-gradient(145deg, #fed7aa, #ffedd5); }
.item-photo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 14px;
  object-fit: cover;
}
.item-body { display: grid; gap: 0.2rem; }
.item-actions { display: flex; gap: 0.4rem; margin-top: 0.35rem; }
.mini-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}
.item-persona { border-left: 4px solid #0ea5e9; }
.item-punto { border-left: 4px solid #2563eb; }
.item-telefono { border-left: 4px solid #16a34a; }
.item-aviso { border-left: 4px solid #ea580c; }

/* Detalle de publicaci?n */
.story-page { display: grid; gap: 1rem; }
.story-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 240px;
  background: #0f172a;
  color: #fff;
}
.story-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}
.story-hero-copy {
  position: relative;
  z-index: 1;
  padding: 1.4rem 1.25rem 1.5rem;
  display: grid;
  gap: 0.45rem;
  background: linear-gradient(180deg, rgba(15,23,42,.15), rgba(15,23,42,.82));
  min-height: 240px;
  align-content: end;
}
.story-hero-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  line-height: 1.15;
  color: #fff;
}
.story-hero-copy .kicker { color: #bfdbfe; }
.hero-entidad { margin: 0; color: #e2e8f0; font-weight: 600; }
.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.btn-ghost.dark {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}
.lead.tight { margin: 0.2rem 0 0; }
.gallery-block,
.listado-block {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 1rem 1.05rem 1.15rem;
  box-shadow: 0 12px 28px rgba(15,23,42,.05);
}
.gallery-block h2,
.listado-block .section-head h2 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
@media (min-width: 800px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
.gallery figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid #e2e8f0;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.gallery figcaption {
  padding: 0.45rem 0.6rem 0.55rem;
  font-size: 0.78rem;
  color: #475569;
  background: #fff;
}
.listado-block .item-cards { padding: 0; }
.prose.pane,
.pane {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1rem 1.1rem;
}

/* Story cards con foto */
.story-media.has-cover {
  position: relative;
  overflow: hidden;
}
.story-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-media.has-cover .story-glow {
  background: linear-gradient(180deg, transparent 35%, rgba(15,23,42,.45));
  opacity: 1;
}

/* Desaparecidos con foto */
.miss-thumb {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}
.miss-photo {
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  margin: 0.6rem 0 0.9rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 36px rgba(15,23,42,.1);
}

.stats a.stat {
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.stats a.stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15,23,42,.1);
}
.hub-ayuda { margin-top: 0.4rem; }
.hub-split {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}
@media (min-width: 900px) {
  .hub-split { grid-template-columns: 1fr 1fr; }
}
.section-head.tight {
  margin-bottom: 0.55rem;
}
.section-head.tight h3 {
  margin: 0;
  font-size: 1.05rem;
}
.cta.compact { margin-top: 0.75rem; }
.empty-card {
  padding: 1rem 1.1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  color: #475569;
  list-style: none;
}
.foot-links {
  display: grid;
  gap: 0.35rem;
}
.foot-links a {
  color: #475569;
  text-decoration: none;
  font-weight: 600;
}
.foot-links a:hover { color: #0f172a; }

/* ?? Vida en pedidos / ofertas ?? */
.banner-need {
  background: linear-gradient(135deg, #881337 0%, #e11d48 42%, #fb7185 100%);
}
.banner-help {
  background: linear-gradient(135deg, #0c4a6e 0%, #0284c7 48%, #38bdf8 100%);
}
.banner-need .kicker { color: #fecdd3; }
.banner-help .kicker { color: #bae6fd; }
.compact-banner { margin-bottom: 1.1rem; }
.compact-banner .banner-art { min-height: 120px; }
.stats.compact { margin-bottom: 1rem; }
.stat.crit-tone { background: linear-gradient(180deg, #fff1f2, #ffe4e6); border-color: #fecdd3; }

.need-art, .help-art { display: grid; place-items: center; }
.pulse-ring {
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  animation: pulse 2.4s ease-out infinite;
}
.pulse-ring.soft { border-color: rgba(255,255,255,.25); }
.pulse-core {
  width: 92px; height: 92px;
  border-radius: 28px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
  z-index: 1;
}
.pulse-core .cat-ico { width: 2.4rem; height: 2.4rem; background: #fff; }
.pulse-core.help { background: rgba(14,165,233,.25); }
.float-mini {
  position: absolute;
  background: rgba(255,255,255,.92);
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
  animation: floaty 5.5s ease-in-out infinite;
}
.fm-1 { top: 12%; left: 8%; }
.fm-2 { top: 28%; right: 6%; animation-delay: .4s; }
.fm-3 { bottom: 18%; left: 22%; animation-delay: .8s; }
@keyframes pulse {
  0% { transform: scale(.75); opacity: .9; }
  100% { transform: scale(1.35); opacity: 0; }
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.chip-row .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}
.chip-row .chip .cat-ico { width: 1rem; height: 1rem; background: #64748b; }
.chip-row .chip.active,
.chip-row .chip:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.chip-row .chip.active .cat-ico,
.chip-row .chip:hover .cat-ico { background: #fff; }

.aid-grid {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 760px) {
  .aid-grid { grid-template-columns: 1fr 1fr; }
}
.aid-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 32px rgba(15,23,42,.06);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.aid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15,23,42,.12);
  border-color: #cbd5e1;
}
.aid-card.need.urg-critica { border-left: 5px solid #e11d48; }
.aid-card.need.urg-alta { border-left: 5px solid #ea580c; }
.aid-card.need.urg-media { border-left: 5px solid #0284c7; }
.aid-card.help { border-left: 5px solid #0284c7; }
.aid-visual {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  position: relative;
  background: linear-gradient(145deg, #e0f2fe, #eff6ff);
}
.aid-visual.lg {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 22px;
}
.aid-card.cat-alimentos .aid-visual,
.aid-detail.cat-alimentos .aid-visual { background: linear-gradient(145deg, #fde68a, #fef3c7); }
.aid-card.cat-agua .aid-visual { background: linear-gradient(145deg, #7dd3fc, #e0f2fe); }
.aid-card.cat-alojamiento .aid-visual { background: linear-gradient(145deg, #c4b5fd, #ede9fe); }
.aid-card.cat-salud .aid-visual { background: linear-gradient(145deg, #fda4af, #ffe4e6); }
.aid-card.cat-ropa .aid-visual { background: linear-gradient(145deg, #fdba74, #ffedd5); }
.aid-card.cat-aseo .aid-visual { background: linear-gradient(145deg, #86efac, #dcfce7); }
.aid-card.cat-transporte .aid-visual { background: linear-gradient(145deg, #93c5fd, #dbeafe); }
.aid-card.cat-mano_obra .aid-visual { background: linear-gradient(145deg, #fcd34d, #fef9c3); }
.aid-card.cat-mascotas .aid-visual { background: linear-gradient(145deg, #f9a8d4, #fce7f3); }
.aid-card.cat-info .aid-visual,
.aid-card.cat-otro .aid-visual { background: linear-gradient(145deg, #cbd5e1, #f1f5f9); }
.urg-dot {
  position: absolute;
  right: -3px; top: -3px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #0284c7;
  border: 2px solid #fff;
}
.urg-critica .urg-dot { background: #e11d48; }
.urg-alta .urg-dot { background: #ea580c; }
.tipo-badge {
  position: absolute;
  left: 50%;
  bottom: -0.35rem;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.62rem;
  font-weight: 800;
  background: #0f172a;
  color: #fff;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
}
.aid-body { display: grid; gap: 0.25rem; min-width: 0; }
.aid-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.aid-body strong {
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.2;
}
.aid-body em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.86rem;
}
.aid-body p {
  margin: 0.15rem 0 0;
  color: #334155;
  font-size: 0.94rem;
}
.aid-time {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--help-dark);
}

.cat-ico {
  display: inline-block;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  background: #0f172a;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.aid-visual .cat-ico { width: 2rem; height: 2rem; background: #0f172a; }
.pulse-core .cat-ico { background: #fff; }
.cat-ico.cat-alojamiento {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3C/svg%3E");
}
.cat-ico.cat-agua {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3s6 7 6 11a6 6 0 1 1-12 0c0-4 6-11 6-11z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3s6 7 6 11a6 6 0 1 1-12 0c0-4 6-11 6-11z'/%3E%3C/svg%3E");
}
.cat-ico.cat-alimentos {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 11h16v2a6 6 0 0 1-6 6H10a6 6 0 0 1-6-6v-2z'/%3E%3Cpath d='M8 11V5M12 11V3M16 11V6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 11h16v2a6 6 0 0 1-6 6H10a6 6 0 0 1-6-6v-2z'/%3E%3Cpath d='M8 11V5M12 11V3M16 11V6'/%3E%3C/svg%3E");
}
.cat-ico.cat-salud {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-4.4-7-10a4 4 0 0 1 7-2 4 4 0 0 1 7 2c0 5.6-7 10-7 10z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-4.4-7-10a4 4 0 0 1 7-2 4 4 0 0 1 7 2c0 5.6-7 10-7 10z'/%3E%3C/svg%3E");
}
.cat-ico.cat-ropa {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 4h6l3 3 3 2-3 1v10H6V10L3 9l3-2 3-3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 4h6l3 3 3 2-3 1v10H6V10L3 9l3-2 3-3z'/%3E%3C/svg%3E");
}
.cat-ico.cat-aseo {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M8 3h8v4H8z'/%3E%3Cpath d='M10 7v14M14 7v14M6 11h12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M8 3h8v4H8z'/%3E%3Cpath d='M10 7v14M14 7v14M6 11h12'/%3E%3C/svg%3E");
}
.cat-ico.cat-transporte {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='7' width='18' height='10' rx='2'/%3E%3Cpath d='M7 17v2M17 17v2M3 12h18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='7' width='18' height='10' rx='2'/%3E%3Cpath d='M7 17v2M17 17v2M3 12h18'/%3E%3C/svg%3E");
}
.cat-ico.cat-mano_obra {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M14 7l3 3-8 8H6v-3l8-8z'/%3E%3Cpath d='M12 9l3 3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M14 7l3 3-8 8H6v-3l8-8z'/%3E%3Cpath d='M12 9l3 3'/%3E%3C/svg%3E");
}
.cat-ico.cat-mascotas {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='7' cy='8' r='1.5'/%3E%3Ccircle cx='12' cy='6' r='1.5'/%3E%3Ccircle cx='17' cy='8' r='1.5'/%3E%3Ccircle cx='9' cy='12' r='1.5'/%3E%3Cpath d='M8 18c1.5-2 6.5-2 8 0'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='7' cy='8' r='1.5'/%3E%3Ccircle cx='12' cy='6' r='1.5'/%3E%3Ccircle cx='17' cy='8' r='1.5'/%3E%3Ccircle cx='9' cy='12' r='1.5'/%3E%3Cpath d='M8 18c1.5-2 6.5-2 8 0'/%3E%3C/svg%3E");
}
.cat-ico.cat-info, .cat-ico.cat-otro {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8h.01M11 12h1v5h1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8h.01M11 12h1v5h1'/%3E%3C/svg%3E");
}

.empty-rich {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.2rem 1.2rem;
  border-radius: 24px;
  border: 1px dashed #cbd5e1;
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.empty-visual {
  width: 72px; height: 72px;
  margin: 0 auto 0.8rem;
  border-radius: 22px;
  background: linear-gradient(145deg, #fecdd3, #ffe4e6);
}
.empty-visual.help { background: linear-gradient(145deg, #bae6fd, #e0f2fe); }
.empty-rich h2 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.empty-rich p { margin: 0 0 1rem; color: #64748b; }

.form-layout {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .form-layout { grid-template-columns: 1.45fr .7fr; align-items: start; }
}
.side-tips {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 12px 28px rgba(15,23,42,.05);
}
.side-tips h2 { margin: 0 0 0.7rem; font-size: 1.1rem; }
.side-tips ol { margin: 0 0 1rem; padding-left: 1.1rem; color: #334155; }
.side-tips li { margin-bottom: 0.4rem; }
.tip-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.8rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 0.85rem;
}
.tip-card p { margin: 0; font-size: 0.9rem; color: #475569; }
.idea-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.idea-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-weight: 600;
  font-size: 0.9rem;
}

.aid-detail {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 1.2rem 1.25rem 1.35rem;
  box-shadow: 0 16px 36px rgba(15,23,42,.06);
  margin-bottom: 1rem;
}
.aid-detail-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: center;
  margin-bottom: 0.85rem;
}
.aid-detail.need { border-top: 5px solid #e11d48; }
.aid-detail.help { border-top: 5px solid #0284c7; }
.response-card h2 { margin-top: 0; }
.aid-grid.single { grid-template-columns: 1fr; }
.hub-split .aid-grid { margin: 0; }

/* ?? Admin / pol?tica / consentimiento ?? */
.flash.danger { background: #fee2e2; color: #9f1239; border-color: #fecaca; }
.consent-field { margin-top: 0.6rem; }
.consent-label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.4;
}
.consent-label a { font-weight: 800; }
.check-input { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; }
.legal-doc {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: 0 16px 36px rgba(15,23,42,.06);
  display: grid;
  gap: 1.1rem;
}
.legal-doc section h2 { margin: 0 0 0.45rem; font-size: 1.15rem; }
.legal-doc p, .legal-doc li { color: #334155; }
.legal-doc ul, .legal-doc ol { margin: 0.35rem 0 0; padding-left: 1.2rem; }
.empty-rich.wide { margin: 1.5rem 0; }
.admin-shell { display: grid; gap: 1rem; }
.admin-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: end;
}
.admin-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 1.15rem 1.2rem 1.3rem;
  box-shadow: 0 14px 32px rgba(15,23,42,.06);
}
.admin-card.login { max-width: 460px; margin: 1rem auto; }
.admin-card h2 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.module-grid { display: grid; gap: 0.7rem; margin: 1rem 0; }
@media (min-width: 800px) { .module-grid { grid-template-columns: 1fr 1fr; } }
.module-toggle {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
}
.module-toggle.on { border-color: #86efac; background: #f0fdf4; }
.module-toggle.off { border-color: #fecaca; background: #fff1f2; }
.module-toggle strong { display: block; }
.module-toggle em { color: var(--muted); font-style: normal; font-size: 0.8rem; }
.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: .2s;
}
.slider::before {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}
.switch input:checked + .slider { background: #16a34a; }
.switch input:checked + .slider::before { transform: translateX(20px); }
.module-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.module-quick .chip {
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}
.module-quick .chip.active { background: #0f172a; color: #fff; border-color: #0f172a; }
.admin-card .form-grid label.field { display: grid; gap: 0.35rem; font-weight: 700; font-size: 0.86rem; }

/* ?? Medicina Legal tablas oficiales ?? */
.banner-ml {
  background: linear-gradient(135deg, #1e3a8a 0%, #334155 55%, #64748b 100%);
}
.banner-ml .kicker { color: #bfdbfe; }
.ml-stats {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 0 1.1rem;
}
@media (min-width: 800px) {
  .ml-stats { grid-template-columns: repeat(4, 1fr); }
}
.ml-stats.tight { margin-top: 1rem; }
.ml-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
}
.ml-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
  color: #1e3a8a;
}
.ml-stat span {
  display: block;
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 700;
}
.ml-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 1.15rem 1.2rem 1.35rem;
  box-shadow: 0 16px 36px rgba(15,23,42,.06);
}
.ml-panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 0.7rem;
}
.ml-panel-head h2 { margin: 0.15rem 0; }
.ml-resumen {
  color: #334155;
  line-height: 1.55;
  margin: 0 0 1rem;
}
.ml-table-wrap {
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
}
.ml-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.92rem;
}
.ml-table thead th {
  background: #4a6da7;
  color: #fff;
  font-weight: 800;
  text-align: left;
  padding: 0.7rem 0.75rem;
  border: 1px solid #3b5b8f;
}
.ml-table tbody td {
  padding: 0.55rem 0.75rem;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}
.ml-table tbody tr:nth-child(even) { background: #f8fafc; }
.ml-table tbody tr:hover { background: #eef2ff; }
.ml-table td:first-child { text-align: center; width: 3.2rem; font-weight: 700; color: #475569; }
.ml-history { display: grid; gap: 0.7rem; }
@media (min-width: 800px) { .ml-history { grid-template-columns: 1fr 1fr; } }
.ml-hist-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 22px rgba(15,23,42,.04);
}
.ml-hist-card:hover { border-color: #93c5fd; }
.ml-hist-card strong { font-family: var(--display); font-size: 1.05rem; }
.ml-hist-card em { color: var(--muted); font-style: normal; font-size: 0.82rem; }
.ml-hist-card span { color: #334155; font-size: 0.88rem; }

.consent-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  margin-top: 0.5rem;
}
.consent-title {
  margin: 0 0 0.45rem;
  font-weight: 800;
  color: #0f172a;
}
.consent-points {
  margin: 0 0 0.8rem;
  padding-left: 1.1rem;
  color: #475569;
  font-size: 0.9rem;
}
.consent-points li { margin-bottom: 0.3rem; }
.privacy-note {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.9rem;
  display: grid;
  gap: 0.2rem;
}
.privacy-note span { color: #047857; font-size: 0.82rem; }
.offer-what { margin: 0.2rem 0 0; color: #0f172a; font-size: 0.95rem; }
.offer-what b { color: #0369a1; }

/* Formulario de oferta m?s claro */
.form-section {
  margin: 0 0 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #e2e8f0;
}
.form-section:last-of-type { border-bottom: 0; }
.form-section h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}
.section-lead {
  margin: 0 0 0.85rem;
  color: #64748b;
  font-size: 0.92rem;
}
.cat-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
@media (min-width: 700px) {
  .cat-picker { grid-template-columns: repeat(3, 1fr); }
}
.cat-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 0.55rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.cat-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cat-option .cat-ico {
  grid-row: span 1;
  background: #475569;
}
.cat-option strong {
  font-size: 0.86rem;
  line-height: 1.25;
  color: #0f172a;
  font-weight: 700;
}
.cat-option:has(input:checked),
.cat-option:focus-within {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 2px rgba(2,132,199,.2);
}
.cat-option:has(input:checked) .cat-ico { background: #0284c7; }
.offer-examples {
  margin: 0.7rem 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-size: 0.9rem;
  display: grid;
  gap: 0.25rem;
}
.offer-examples b { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; }
.tip-card.good-offer {
  display: grid;
  gap: 0.35rem;
  background: #f0fdf4;
  border-color: #86efac;
}
.tip-card.good-offer p { margin: 0; font-size: 0.88rem; color: #14532d; }

/* Oferta ? formulario con m?s vida */
.offer-hero { min-height: 220px; }
.offer-hero .banner-art { min-height: 200px; }
.offer-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.offer-steps .step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  font-size: 0.78rem;
  font-weight: 700;
}
.offer-steps .step i {
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.2);
  font-style: normal;
  font-size: 0.72rem;
}
.offer-steps .step.on {
  background: #fff;
  color: #0c4a6e;
}
.offer-steps .step.on i { background: #0284c7; color: #fff; }

.offer-layout { align-items: start; }
.offer-form {
  border: 0;
  background:
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 22px 50px rgba(15,23,42,.1);
  padding: 1.25rem 1.2rem 1.4rem;
  border-radius: 26px;
  border: 1px solid #e2e8f0;
}
.step-block {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.05rem 1.05rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 28px rgba(15,23,42,.04);
  border-bottom: 0;
}
.step-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.9rem;
}
.step-badge {
  width: 2.4rem; height: 2.4rem;
  border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(145deg, #0284c7, #0ea5e9);
  box-shadow: 0 10px 20px rgba(2,132,199,.35);
}
.step-block[data-step="2"] .step-badge { background: linear-gradient(145deg, #0f766e, #14b8a6); box-shadow: 0 10px 20px rgba(20,184,166,.3); }
.step-block[data-step="3"] .step-badge { background: linear-gradient(145deg, #1d4ed8, #6366f1); box-shadow: 0 10px 20px rgba(99,102,241,.3); }
.step-block[data-step="4"] .step-badge { background: linear-gradient(145deg, #0f172a, #334155); box-shadow: 0 10px 20px rgba(15,23,42,.25); }

.cat-picker.rich { gap: 0.65rem; }
.cat-option {
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cat-option:hover { transform: translateY(-2px); }
.cat-bubble {
  width: 2.4rem; height: 2.4rem;
  border-radius: 12px;
  display: grid; place-items: center;
  background: #f1f5f9;
}
.cat-option .cat-ico { width: 1.25rem; height: 1.25rem; }
.cat-option.cat-alimentos .cat-bubble { background: #fef3c7; }
.cat-option.cat-agua .cat-bubble { background: #e0f2fe; }
.cat-option.cat-alojamiento .cat-bubble { background: #ede9fe; }
.cat-option.cat-salud .cat-bubble { background: #ffe4e6; }
.cat-option.cat-ropa .cat-bubble { background: #ffedd5; }
.cat-option.cat-aseo .cat-bubble { background: #dcfce7; }
.cat-option.cat-transporte .cat-bubble { background: #dbeafe; }
.cat-option.cat-mano_obra .cat-bubble { background: #fef9c3; }
.cat-option.cat-mascotas .cat-bubble { background: #fce7f3; }
.cat-option:has(input:checked) {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(2,132,199,.18);
}
.offer-examples.rich {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  background: linear-gradient(120deg, #eff6ff, #f0f9ff);
  border-radius: 16px;
  padding: 0.9rem 1rem;
}
.offer-examples .ex-icon {
  width: 3rem; height: 3rem;
  border-radius: 14px;
  display: grid; place-items: center;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
}
.offer-examples .ex-icon .cat-ico { width: 1.5rem; height: 1.5rem; background: #0284c7; }
.field-emphasis .input,
.field-emphasis textarea {
  border-width: 2px;
  border-color: #bae6fd;
  background: #f8fbff;
  min-height: 3rem;
}
.field-emphasis textarea { min-height: 7rem; }
.field-emphasis label {
  font-size: 1rem;
  color: #0c4a6e;
}
.btn-lg { padding: 0.95rem 1.4rem; font-size: 1.02rem; }
.offer-cta {
  position: sticky;
  bottom: 0.6rem;
  background: rgba(248,250,252,.92);
  backdrop-filter: blur(8px);
  padding: 0.75rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 30px rgba(15,23,42,.1);
  z-index: 5;
}

.sticky-preview {
  position: sticky;
  top: 1rem;
  background:
    linear-gradient(165deg, #0c4a6e 0%, #0284c7 55%, #38bdf8 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 22px 44px rgba(2,132,199,.35);
}
.sticky-preview h2 { color: #fff; }
.live-preview {
  background: rgba(255,255,255,.95);
  color: #0f172a;
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  animation: previewIn .35s ease;
}
.live-preview strong {
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.2;
}
.live-preview em { color: #64748b; font-style: normal; font-size: 0.86rem; }
.live-preview p { margin: 0; color: #334155; font-size: 0.92rem; }
.sticky-preview .tip-card {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.25);
  color: #fff;
}
.sticky-preview .tip-card p,
.sticky-preview .good-offer p { color: rgba(255,255,255,.92); }
.sticky-preview .good-offer {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.3);
}
.sticky-preview .cat-ico { background: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
@keyframes previewIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 899px) {
  .sticky-preview { position: static; }
  .offer-cta { border-radius: 18px; }
}

.offer-form .form-section.step-block {
  margin-bottom: 1rem;
  padding-bottom: 1.15rem;
  border-bottom: 0;
}
.step-head .section-lead { margin: 0.15rem 0 0; }
.step-head h2 { margin: 0; }
.cat-picker.rich .cat-option {
  grid-template-columns: 1fr;
  justify-items: start;
  min-height: 4.6rem;
}
.banner-art.help-art { position: relative; overflow: hidden; }

/* Pedir ayuda ? detalle del hogar y medicinas */
.need-steps .step.on { color: #9f1239; }
.need-steps .step.on i { background: #e11d48; color: #fff; }
.need-form .step-badge { background: linear-gradient(145deg, #be123c, #e11d48); box-shadow: 0 10px 20px rgba(225,29,72,.35); }
.need-form .need-step[data-step="2"] .step-badge { background: linear-gradient(145deg, #9f1239, #f43f5e); }
.need-form .need-step[data-step="3"] .step-badge { background: linear-gradient(145deg, #0f766e, #14b8a6); }
.need-form .need-step[data-step="4"] .step-badge { background: linear-gradient(145deg, #0f172a, #334155); }
.household-grid { margin-bottom: 0.6rem; }
@media (min-width: 700px) {
  .form-grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .form-grid.four { grid-template-columns: repeat(4, 1fr); }
}
.household-total {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  font-size: 0.95rem;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.55rem 0 0.2rem;
}
.check-row label { margin: 0; font-weight: 700; color: #334155; }
.med-block {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px dashed #fda4af;
  background: #fff7f8;
}
.med-block.active {
  border-style: solid;
  background: linear-gradient(120deg, #fff1f2, #ffe4e6);
  box-shadow: 0 10px 24px rgba(225,29,72,.08);
}
.med-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin-bottom: 0.7rem;
}
.med-head h3 { margin: 0; font-size: 1.05rem; }
.med-head p { margin: 0.2rem 0 0; color: #64748b; font-size: 0.9rem; }
.med-head .cat-ico { width: 1.6rem; height: 1.6rem; background: #e11d48; }
#med-fields { display: none; }
#med-fields.is-open { display: grid; }
.need-preview {
  background: linear-gradient(165deg, #9f1239 0%, #e11d48 55%, #fb7185 100%);
  box-shadow: 0 22px 44px rgba(225,29,72,.35);
}
.need-cta { border-color: #fecdd3; }
.detail-block {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.detail-block h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.detail-block.med-detail {
  background: #fff1f2;
  border-color: #fecdd3;
}
.household-summary { margin: 0 0 0.75rem; color: #334155; font-weight: 600; }
.need-exact { font-size: 1.15rem; }
.need-exact-line { margin: 0.2rem 0; color: #0f172a; }
.med-pill { background: #ffe4e6; color: #9f1239; }
.form-errors {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
}
/* Pedir ayuda ? hogar ordenado + multi categoría */
.house-block {
  margin: 0 0 1rem;
  padding: 0.9rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.house-label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.counter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
@media (min-width: 720px) {
  .counter-grid { grid-template-columns: repeat(4, 1fr); }
  .counter-grid.two { grid-template-columns: 1fr 1fr; }
}
.counter-card {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  cursor: text;
}
.counter-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.25;
}
.counter-card .input,
.counter-card .counter-input {
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 0.55rem 0.4rem;
}
.toggle-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 0.65rem 0 0;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}
.toggle-card.soft { background: #fff; }
.toggle-card input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: #e11d48;
  flex-shrink: 0;
}
.toggle-card strong {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
}
.toggle-card em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.82rem;
  color: #64748b;
}
.toggle-card:has(input:checked) {
  border-color: #fb7185;
  background: #fff1f2;
}
.picker-caption {
  font-weight: 800;
  margin: 0 0 0.55rem;
  color: #0f172a;
}
.picker-caption span {
  font-weight: 600;
  color: #64748b;
  font-size: 0.88rem;
}
.cat-picker.multi .cat-option {
  position: relative;
  cursor: pointer;
}
.cat-picker.multi .cat-check {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 4px;
  border: 2px solid #cbd5e1;
  background: #fff;
}
.cat-picker.multi .cat-option:has(input:checked) .cat-check {
  border-color: #0284c7;
  background: #0284c7;
  box-shadow: inset 0 0 0 2px #fff;
}
.cat-picker.multi .cat-option:has(input:checked) {
  border-color: #0284c7;
  background: #f0f9ff;
}
.page-need .cat-picker.multi .cat-option:has(input:checked) {
  border-color: #e11d48;
  background: #fff1f2;
  box-shadow: 0 14px 28px rgba(225,29,72,.12);
}
.page-need .cat-picker.multi .cat-option:has(input:checked) .cat-check {
  border-color: #e11d48;
  background: #e11d48;
}

/* Auth + chat in-app */
.nav-logout { display: inline; margin: 0; }
.nav-logout button {
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-layout { max-width: 920px; }
.inbox-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.inbox-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
}
.inbox-item.unread { border-color: #7dd3fc; background: #f0f9ff; }
.inbox-item strong { display: block; }
.inbox-item em { color: #64748b; font-style: normal; font-size: 0.88rem; }
.inbox-item p { margin: 0.35rem 0 0; color: #334155; }
.inbox-meta { text-align: right; display: grid; gap: 0.35rem; align-content: start; }
.chat-shell {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15,23,42,.06);
}
.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: #0f172a;
  color: #fff;
}
.chat-head a { color: #bae6fd; }
.chat-head h1 { margin: 0.15rem 0; font-size: 1.25rem; }
.chat-thread {
  height: min(55vh, 480px);
  overflow-y: auto;
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
  background: linear-gradient(180deg, #f8fafc, #fff);
}
.bubble {
  max-width: 85%;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  background: #f1f5f9;
}
.bubble.mine {
  justify-self: end;
  background: #e0f2fe;
  border-bottom-right-radius: 6px;
}
.bubble.theirs {
  justify-self: start;
  border-bottom-left-radius: 6px;
}
.bubble strong { font-size: 0.78rem; color: #64748b; }
.bubble p { margin: 0.25rem 0; }
.bubble time { font-size: 0.72rem; color: #94a3b8; }
.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  padding: 0.85rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.chat-compose textarea { min-height: 3.2rem; }

/* Arriendos */
.page-rent .banner-help { background: linear-gradient(135deg, #0f766e, #0ea5e9 55%, #38bdf8); }
.rent-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .rent-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .rent-grid { grid-template-columns: repeat(3, 1fr); }
}
.rent-card {
  display: grid;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 28px rgba(15,23,42,.05);
}
.rent-card:hover { border-color: #38bdf8; }
.rent-photo {
  position: relative;
  aspect-ratio: 16/10;
  background: #e2e8f0;
}
.rent-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.rent-photo-empty {
  display: grid; place-items: center; height: 100%;
  color: #64748b; font-weight: 700; background: #f1f5f9;
}
.rent-photo-empty.large { min-height: 220px; border-radius: 16px; margin-bottom: 1rem; }
.rent-badge {
  position: absolute; left: 0.7rem; top: 0.7rem;
  background: rgba(15,23,42,.82); color: #fff;
  font-size: 0.72rem; font-weight: 800;
  padding: 0.3rem 0.55rem; border-radius: 999px;
}
.rol-busca .rent-badge { background: rgba(190,18,60,.9); }
.rent-body { padding: 0.85rem 0.95rem 1rem; display: grid; gap: 0.25rem; }
.rent-body em { color: #64748b; font-style: normal; font-size: 0.86rem; }
.rent-price { margin: 0; font-weight: 800; color: #0f766e; }
.rent-price.big { font-size: 1.45rem; margin: 0.5rem 0; }
.rent-price.big small { font-size: 0.85rem; color: #64748b; font-weight: 600; }
.rent-gallery {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin-bottom: 1rem;
}
.rent-gallery .main { grid-column: 1 / -1; }
.rent-gallery img {
  width: 100%; height: 100%; max-height: 360px;
  object-fit: cover; border-radius: 14px; display: block;
}
.rent-gallery .main img { max-height: 420px; }

/* Password show/hide + auth helpers */
.password-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: center;
}
.password-wrap .input { width: 100%; }
.toggle-pass {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
.toggle-pass:hover { background: #e2e8f0; }
.auth-links {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.92rem;
}
.auth-links a { font-weight: 700; }

/* Home de bienvenida + seguridad */
.welcome-hero {
  display: grid;
  gap: 1.2rem;
  margin: 0 0 1.5rem;
  padding: 1.6rem 1.25rem 1.4rem;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(14,165,233,.35), transparent 50%),
    linear-gradient(145deg, #0f172a 0%, #0c4a6e 55%, #0369a1 100%);
  color: #fff;
  box-shadow: 0 24px 50px rgba(15,23,42,.2);
}
@media (min-width: 900px) {
  .welcome-hero {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: end;
    padding: 2rem 1.75rem;
  }
}
.hero-logo {
  display: block;
  width: min(100%, 340px);
  height: auto;
  margin: 0.45rem 0 0.85rem;
  background: #fff;
  border-radius: 18px;
  padding: 0.55rem 0.7rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.welcome-copy .kicker { color: #bae6fd; }
.welcome-copy h1 {
  margin: 0.2rem 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
}
.welcome-copy .lead { color: #e2e8f0; max-width: 42ch; }
.welcome-note {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  backdrop-filter: blur(8px);
}
.welcome-note b { display: block; margin-bottom: 0.35rem; }
.welcome-note p { margin: 0 0 0.55rem; color: #e2e8f0; font-size: 0.95rem; }
.welcome-note a { color: #fff; font-weight: 800; }

.safety-block {
  margin: 0 0 1.75rem;
  padding: 1.35rem 1.15rem 1.4rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 36px rgba(15,23,42,.05);
}
.safety-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.15rem;
}
@media (min-width: 760px) {
  .safety-grid { grid-template-columns: 1fr 1fr; }
}
.safety-card {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.safety-num {
  display: inline-grid;
  place-items: center;
  width: 1.75rem; height: 1.75rem;
  border-radius: 8px;
  background: #0ea5e9;
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
}
.safety-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.safety-card p { margin: 0; color: #475569; font-size: 0.92rem; }

.disclaimer-box {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
}
.disclaimer-box h3 { margin: 0 0 0.4rem; color: #9a3412; }
.disclaimer-box p { margin: 0 0 0.55rem; }
.disclaimer-box .fine { margin: 0; font-size: 0.86rem; color: #c2410c; }
.disclaimer-box a { color: #9a3412; font-weight: 800; }
.safety-cta { margin-top: 1rem; }

.home-bottom-disclaimer {
  margin: 2rem 0 0.5rem;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.92rem;
}
.home-bottom-disclaimer p { margin: 0; }

/* Quien publica - picker bonito */
.tipo-picker {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 1rem;
}
@media (min-width: 780px) {
  .tipo-picker { grid-template-columns: repeat(3, 1fr); }
}
.tipo-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: center;
  margin: 0;
  padding: 0.85rem 0.9rem;
  min-height: 4.4rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.tipo-option:hover {
  transform: translateY(-2px);
  border-color: #7dd3fc;
  box-shadow: 0 10px 22px rgba(2,132,199,.1);
}
.tipo-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tipo-ico {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e0f2fe;
  flex-shrink: 0;
}
.tipo-ico::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  background: #0284c7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-4.4 0-8 2.2-8 5v1h16v-1c0-2.8-3.6-5-8-5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-4.4 0-8 2.2-8 5v1h16v-1c0-2.8-3.6-5-8-5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tipo-option.tipo-empresa .tipo-ico { background: #fef3c7; }
.tipo-option.tipo-empresa .tipo-ico::before {
  background: #d97706;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 21V9l8-5 8 5v12h-5v-6H9v6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 21V9l8-5 8 5v12h-5v-6H9v6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tipo-option.tipo-fundacion .tipo-ico { background: #ffe4e6; }
.tipo-option.tipo-fundacion .tipo-ico::before {
  background: #e11d48;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 21s-7-4.4-7-10a4 4 0 0 1 7-2.5A4 4 0 0 1 19 11c0 5.6-7 10-7 10z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 21s-7-4.4-7-10a4 4 0 0 1 7-2.5A4 4 0 0 1 19 11c0 5.6-7 10-7 10z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tipo-option.tipo-iglesia .tipo-ico { background: #ede9fe; }
.tipo-option.tipo-iglesia .tipo-ico::before {
  background: #7c3aed;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 2h2v3h3v2h-3v13h-2V7H8V5h3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 2h2v3h3v2h-3v13h-2V7H8V5h3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tipo-option.tipo-entidad .tipo-ico { background: #dcfce7; }
.tipo-option.tipo-entidad .tipo-ico::before {
  background: #059669;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 21h18v-2H3zm2-4h2V9H5zm5 0h2V5h-2zm5 0h2v-6h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 21h18v-2H3zm2-4h2V9H5zm5 0h2V5h-2zm5 0h2v-6h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tipo-option.tipo-colectivo .tipo-ico { background: #e0f2fe; }
.tipo-option.tipo-colectivo .tipo-ico::before {
  background: #0284c7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 11a3 3 0 1 0-3-3 3 3 0 0 0 3 3zM8 11a3 3 0 1 0-3-3 3 3 0 0 0 3 3zm0 2c-2.7 0-8 1.3-8 4v2h10v-2c0-1.2.5-2.2 1.4-3A12 12 0 0 0 8 13zm8 0c-.4 0-.8 0-1.2.1A5 5 0 0 1 18 17v2h6v-2c0-2.7-5.3-4-8-4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 11a3 3 0 1 0-3-3 3 3 0 0 0 3 3zM8 11a3 3 0 1 0-3-3 3 3 0 0 0 3 3zm0 2c-2.7 0-8 1.3-8 4v2h10v-2c0-1.2.5-2.2 1.4-3A12 12 0 0 0 8 13zm8 0c-.4 0-.8 0-1.2.1A5 5 0 0 1 18 17v2h6v-2c0-2.7-5.3-4-8-4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tipo-option strong {
  font-size: 0.9rem;
  line-height: 1.25;
  color: #0f172a;
  font-weight: 750;
}
.tipo-check {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  background: #fff;
}
.tipo-option:has(input:checked) {
  border-color: #0284c7;
  background: linear-gradient(160deg, #f0f9ff, #e0f2fe);
  box-shadow: 0 12px 26px rgba(2,132,199,.16);
  transform: translateY(-2px);
}
.tipo-option:has(input:checked) .tipo-check {
  border-color: #0284c7;
  background: #0284c7;
  box-shadow: inset 0 0 0 2px #fff;
}
.contact-panel,
.org-panel {
  margin-top: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.org-panel.is-on { display: block; }
.org-fields.org-panel { display: none; }
.org-fields.org-panel.is-on { display: block; }
.publisher-block .contact-panel .input,
.publisher-block .org-panel .input {
  background: #fff;
}

/* Publicar arriendo - formulario renovado */
.rent-hero {
  background: linear-gradient(135deg, #0f766e 0%, #0ea5e9 60%, #38bdf8 100%) !important;
}
.page-rent .form-card.rent-form {
  max-width: 820px;
  margin-inline: auto;
  padding: 1.25rem 1.15rem 1.5rem;
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  background:
    radial-gradient(1200px 280px at 10% -10%, rgba(20, 184, 166, 0.12), transparent 55%),
    #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.rent-form .form-section.step-block {
  margin: 0 0 1.15rem;
  padding: 1.05rem 1rem 1.15rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
}
.rent-form .step-head {
  margin-bottom: 0.95rem;
}
.rent-form .step-badge {
  background: linear-gradient(145deg, #0f766e, #14b8a6);
  box-shadow: 0 10px 20px rgba(20, 184, 166, 0.3);
}
.rent-form .rent-step[data-step="2"] .step-badge {
  background: linear-gradient(145deg, #0369a1, #0ea5e9);
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.28);
}
.rent-form .rent-step[data-step="3"] .step-badge {
  background: linear-gradient(145deg, #1d4ed8, #6366f1);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.28);
}
.rent-form .rent-step[data-step="4"] .step-badge {
  background: linear-gradient(145deg, #0f172a, #334155);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}
.rent-form .section-lead {
  margin: 0.15rem 0 0;
  color: #64748b;
  font-size: 0.92rem;
}
.rent-form .form-grid {
  gap: 0.85rem 1rem;
}
.rent-form .field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
}
.rent-form .field .help,
.rent-form .field .helptext {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #64748b;
}
.rent-form .input,
.rent-form select,
.rent-form textarea {
  min-height: 2.75rem;
  border-radius: 12px;
  border-color: #dbe3ee;
  background: #f8fafc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.rent-form .input:focus,
.rent-form select:focus,
.rent-form textarea:focus {
  background: #fff;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}
.rent-form .highlight-fields .field-emphasis .input,
.rent-form .field-emphasis textarea {
  background: #fff;
  border-color: #cbd5e1;
}

.rol-picker {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .rol-picker {
    grid-template-columns: 1fr 1fr;
  }
}
.rol-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
  padding: 1rem 1.05rem;
  min-height: 5.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.rol-option:hover {
  transform: translateY(-2px);
  border-color: #5eead4;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.12);
}
.rol-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rol-ico {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #ccfbf1;
  flex-shrink: 0;
}
.rol-ico::before {
  content: "";
  width: 1.35rem;
  height: 1.35rem;
  background: #0f766e;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 21V9l8-5 8 5v12h-5v-6H9v6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 21V9l8-5 8 5v12h-5v-6H9v6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rol-option.rol-busca .rol-ico {
  background: #ffe4e6;
}
.rol-option.rol-busca .rol-ico::before {
  background: #e11d48;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rol-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding-right: 1.2rem;
}
.rol-copy strong {
  font-size: 1rem;
  color: #0f172a;
  line-height: 1.25;
  font-weight: 750;
}
.rol-copy em {
  font-style: normal;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.35;
}
.rol-check {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  background: #fff;
}
.rol-option:has(input:checked) {
  border-color: #0f766e;
  background: linear-gradient(160deg, #f0fdfa, #ccfbf1);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.16);
}
.rol-option.rol-busca:has(input:checked) {
  border-color: #e11d48;
  background: linear-gradient(160deg, #fff1f2, #ffe4e6);
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.14);
}
.rol-option:has(input:checked) .rol-check {
  border-color: #0f766e;
  background: #0f766e;
  box-shadow: inset 0 0 0 2px #fff;
}
.rol-option.rol-busca:has(input:checked) .rol-check {
  border-color: #e11d48;
  background: #e11d48;
}
.rent-toggles {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.95rem;
}
@media (min-width: 700px) {
  .rent-toggles {
    grid-template-columns: 1fr 1fr;
  }
}
.rent-form .toggle-card {
  min-height: 4.2rem;
  border-radius: 14px;
  border-color: #e2e8f0;
}
.photos-panel {
  margin-bottom: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}
.photos-panel.is-required {
  background: #f0fdfa;
  border-color: #5eead4;
  border-style: solid;
}
.rent-form .offer-cta {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}


/* Historial de ayudas recibidas */
.aid-history-chip {
  display: inline-flex;
  align-items: center;
  margin: 0.35rem 0 0.15rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.aid-history-chip:hover { background: #ccfbf1; border-color: #14b8a6; }
.aid-modal {
  border: 0;
  padding: 0;
  border-radius: 18px;
  max-width: min(92vw, 420px);
  box-shadow: 0 24px 48px rgba(15,23,42,.28);
}
.aid-modal::backdrop { background: rgba(15,23,42,.45); }
.aid-modal-card { margin: 0; padding: 1.15rem 1.2rem 1.25rem; }
.aid-modal-card header h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.aid-modal-card header p { margin: 0 0 0.85rem; color: #64748b; font-size: 0.88rem; }
.aid-modal-list { list-style: none; margin: 0 0 0.85rem; padding: 0; display: grid; gap: 0.55rem; }
.aid-modal-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.aid-modal-list strong { color: #0f172a; }
.aid-modal-list span { color: #334155; font-size: 0.92rem; }
.aid-modal-list em { color: #64748b; font-style: normal; font-size: 0.8rem; }

.help-register-box {
  margin: 0 0 1rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid #99f6e4;
  background: linear-gradient(160deg, #f0fdfa, #fff);
}
.help-register-box h2 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.help-register-list { margin: 0.75rem 0 0; padding-left: 1.1rem; color: #475569; font-size: 0.88rem; }

.rent-card.is-closed { opacity: 0.78; }
.rent-closed-pill { background: #fee2e2; color: #9f1239; }
.rent-card-actions { padding: 0 1rem 0.85rem; }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.85rem; }

.photo-file-input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
  cursor: pointer;
}
.photo-picker-hint {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f766e;
}
.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.photo-preview figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d1fae5;
  background: #fff;
}
.photo-preview img {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: cover;
}
.photo-preview figcaption {
  padding: 0.25rem 0.4rem 0.4rem;
  font-size: 0.68rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

