/* ============================================================
   Manilva · App municipal — sistema de diseño
   Paleta mediterránea: mar, sol y uva moscatel.
   ============================================================ */

:root{
  --azul:        #0c6b8a;
  --azul-vivo:   #0f83a9;
  --azul-suave:  #e2eff5;
  --navy:        #0a2c3d;
  --navy-2:      #0e3a50;
  --sol:         #f0a63c;
  --sol-suave:   #fdf1dd;
  --uva:         #7c4d9b;
  --uva-suave:   #f1e9f7;
  --ok:          #23915a;
  --ok-suave:    #e3f4ea;
  --rojo:        #d9484d;
  --rojo-suave:  #fdeaea;
  --pizarra:     #55707f;

  --bg:          #eef4f7;
  --surface:     #ffffff;
  --surface-2:   #f6fafb;
  --ink:         #102532;
  --ink-2:       #33505f;
  --muted:       #62798a;
  --line:        #dde8ee;
  --line-2:      #cfdfe7;

  --on-brand:    #ffffff;
  --chip-on:     var(--navy);

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  --shadow-1: 0 1px 2px rgba(16,37,50,.05), 0 10px 30px -18px rgba(16,37,50,.25);
  --shadow-2: 0 2px 6px rgba(16,37,50,.07), 0 18px 44px -20px rgba(16,37,50,.33);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --topbar-h: 62px;
  --bottomnav-h: calc(60px + env(safe-area-inset-bottom, 0px));
  --maxw: 1080px;

  color-scheme: light;
}

html[data-theme="dark"]{
  --bg:        #0b1920;
  --surface:   #11232d;
  --surface-2: #16303c;
  --ink:       #e9f2f6;
  --ink-2:     #c0d3dc;
  --muted:     #8aa5b2;
  --line:      #1e3a47;
  --line-2:    #27485a;

  --azul-suave: #123c4e;
  --sol-suave:  #3a2c14;
  --uva-suave:  #2e2038;
  --ok-suave:   #123526;
  --rojo-suave: #3a1b1d;
  --azul:       #2f97b9;
  --azul-vivo:  #46b1d3;
  --chip-on:    #dff0f7;

  --shadow-1: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px -18px rgba(0,0,0,.6);
  --shadow-2: 0 2px 6px rgba(0,0,0,.4), 0 18px 44px -20px rgba(0,0,0,.7);

  color-scheme: dark;
}

*{ box-sizing:border-box; }
[hidden]{ display:none !important; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--ink);
  line-height:1.55;
  padding-top:var(--topbar-h);
  padding-bottom:var(--bottomnav-h);
  min-height:100vh;
}
img{ max-width:100%; display:block; }
a{ color:var(--azul); text-decoration:none; }
button{ font-family:inherit; }
:focus-visible{ outline:3px solid color-mix(in srgb, var(--azul) 55%, transparent); outline-offset:2px; border-radius:6px; }

.i{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; }

/* ============ Barra superior ============ */
.topbar{
  position:fixed; inset:0 0 auto 0; z-index:60;
  height:var(--topbar-h);
  display:flex; align-items:center; gap:14px;
  padding:0 max(14px, env(safe-area-inset-left)) 0 max(14px, env(safe-area-inset-right));
  background:color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter:saturate(1.4) blur(14px);
  backdrop-filter:saturate(1.4) blur(14px);
  border-bottom:1px solid var(--line);
}
.brand{ display:flex; align-items:center; gap:10px; color:var(--ink); min-width:0; }
.brand__logo{ width:40px; height:40px; flex:none; filter:drop-shadow(0 2px 5px rgba(10,44,61,.28)); }
.brand__text{ display:flex; flex-direction:column; line-height:1.12; }
.brand__text strong{ font-size:17px; font-weight:800; letter-spacing:-.02em; }
.brand__text small{ font-size:11px; color:var(--muted); font-weight:600; letter-spacing:.02em; }

.topnav{ display:none; margin-left:6px; gap:2px; }
.topnav a{
  padding:8px 13px; border-radius:999px; color:var(--ink-2);
  font-weight:600; font-size:14.5px;
}
.topnav a:hover{ background:var(--surface-2); }
.topnav a.is-active{ background:var(--navy); color:#fff; }
html[data-theme="dark"] .topnav a.is-active{ background:var(--azul); }

.topbar__actions{ margin-left:auto; display:flex; align-items:center; gap:8px; }
.weatherchip{
  display:flex; align-items:center; gap:6px;
  background:var(--azul-suave); color:var(--chip-on);
  border-radius:999px; padding:6px 12px 6px 8px;
  font-weight:700; font-size:14px;
}
.weatherchip__icon{ font-size:16px; line-height:1; }
.iconbtn{
  width:40px; height:40px; border-radius:12px;
  display:grid; place-items:center;
  background:transparent; border:1px solid var(--line);
  color:var(--ink-2); cursor:pointer;
}
.iconbtn:hover{ background:var(--surface-2); }

/* ============ Navegación inferior ============ */
.bottomnav{
  position:fixed; inset:auto 0 0 0; z-index:60;
  height:var(--bottomnav-h);
  padding-bottom:env(safe-area-inset-bottom, 0px);
  display:grid; grid-template-columns:repeat(5,1fr);
  background:color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter:saturate(1.4) blur(14px);
  backdrop-filter:saturate(1.4) blur(14px);
  border-top:1px solid var(--line);
}
.bottomnav a{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  color:var(--muted); font-size:10.5px; font-weight:700; letter-spacing:.01em;
}
.bottomnav a .i{ width:23px; height:23px; }
.bottomnav a.is-active{ color:var(--azul); }
.bottomnav a.is-active .i{ stroke-width:2.2; }

/* ============ Contenedor de vistas ============ */
.view{ max-width:var(--maxw); margin:0 auto; padding:16px 16px 40px; }
.view:focus{ outline:none; }

@media (min-width:900px){
  .topnav{ display:flex; }
  .bottomnav{ display:none; }
  body{ padding-bottom:0; }
  .view{ padding:24px 24px 64px; }
}

/* ============ Utilidades y titulares ============ */
.sec{ margin-top:26px; }
.sec__head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:12px; }
.sec__head h2{ margin:0; font-size:19px; font-weight:800; letter-spacing:-.02em; }
.sec__head .more{ font-size:13.5px; font-weight:700; white-space:nowrap; }

.pagehead{ display:flex; align-items:center; gap:10px; margin:4px 0 16px; }
.pagehead .iconbtn{ flex:none; }
.pagehead h1{ margin:0; font-size:24px; font-weight:800; letter-spacing:-.03em; }
.pagehead p{ margin:2px 0 0; }
.pagehead__txt{ min-width:0; }
.pagehead__sub{ color:var(--muted); font-size:14px; margin:0; }

.muted{ color:var(--muted); }
.small{ font-size:13px; }

/* ============ Héroe de portada ============ */
.hero{
  position:relative; border-radius:var(--r-lg); overflow:hidden;
  background:var(--navy); color:#fff;
  box-shadow:var(--shadow-2);
}
.hero__art{ position:absolute; inset:0; width:100%; height:100%; }
.hero__inner{ position:relative; padding:26px 22px 22px; min-height:190px; display:flex; flex-direction:column; justify-content:flex-end; }
.hero__kicker{ font-size:13px; font-weight:700; opacity:.92; letter-spacing:.04em; text-transform:uppercase; }
.hero__title{ margin:4px 0 2px; font-size:clamp(24px, 5.4vw, 34px); font-weight:800; letter-spacing:-.03em; line-height:1.12; }
.hero__sub{ margin:0; opacity:.92; font-size:14.5px; font-weight:500; }
@media (min-width:900px){ .hero__inner{ min-height:230px; padding:34px 30px 28px; } }

/* ============ Accesos rápidos ============ */
.quick{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:16px; }
.quick a{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
  padding:13px 8px 11px; text-align:center; color:var(--ink);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  box-shadow:var(--shadow-1);
  transition:transform .12s ease, box-shadow .12s ease;
}
.quick a:hover{ transform:translateY(-2px); box-shadow:var(--shadow-2); }
.quick a span{ font-size:11.5px; font-weight:700; line-height:1.2; }
.qico{
  width:44px; height:44px; border-radius:14px; display:grid; place-items:center; color:#fff;
}
.qico .i{ width:23px; height:23px; }
.qico--mar{ background:linear-gradient(135deg,#0f83a9,#0a5570); }
.qico--sol{ background:linear-gradient(135deg,#f2b155,#e08b1c); }
.qico--uva{ background:linear-gradient(135deg,#9a6ab8,#6d3f8b); }
.qico--ok{ background:linear-gradient(135deg,#35a86c,#1d7a49); }
.qico--rojo{ background:linear-gradient(135deg,#e4666b,#c23a40); }
.qico--navy{ background:linear-gradient(135deg,#27556f,#0a2c3d); }
.qico--teja{ background:linear-gradient(135deg,#d97e5a,#b25436); }
.qico--gris{ background:linear-gradient(135deg,#6b8798,#42596a); }
@media (min-width:640px){ .quick{ grid-template-columns:repeat(8,1fr); } }

/* ============ Tarjetas de noticia ============ */
.newsgrid{ display:grid; gap:14px; }
@media (min-width:640px){ .newsgrid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:980px){ .newsgrid{ grid-template-columns:repeat(3,1fr); } }

.newscard{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
  overflow:hidden; color:var(--ink); display:flex; flex-direction:column;
  box-shadow:var(--shadow-1);
  transition:transform .12s ease, box-shadow .12s ease;
  cursor:pointer;
}
.newscard:hover{ transform:translateY(-2px); box-shadow:var(--shadow-2); }
.newscard__media{ aspect-ratio:16/9.4; background:var(--surface-2); position:relative; overflow:hidden; }
.newscard__media img{ width:100%; height:100%; object-fit:cover; }
.newscard__media .noimg{
  position:absolute; inset:0; display:grid; place-items:center;
  background:linear-gradient(135deg,var(--azul-suave), var(--surface-2));
  color:var(--azul);
}
.newscard__body{ padding:13px 15px 15px; display:flex; flex-direction:column; gap:6px; flex:1; }
.newscard__meta{ display:flex; gap:8px; align-items:center; font-size:12px; color:var(--muted); font-weight:600; }
.newscard__cat{ color:var(--azul); background:var(--azul-suave); padding:2px 9px; border-radius:999px; font-weight:700; }
.newscard h3{ margin:0; font-size:15.5px; line-height:1.32; font-weight:700; letter-spacing:-.01em; }
.newscard p{ margin:0; font-size:13.5px; color:var(--muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* noticia destacada (primera) */
.newscard--hero h3{ font-size:18px; }
@media (min-width:640px){
  .newscard--hero{ grid-column:1 / -1; flex-direction:row; }
  .newscard--hero .newscard__media{ width:46%; aspect-ratio:auto; min-height:230px; }
  .newscard--hero .newscard__body{ justify-content:center; padding:20px 24px; }
  .newscard--hero h3{ font-size:22px; }
  .newscard--hero p{ -webkit-line-clamp:3; font-size:14.5px; }
}

/* ============ Chips de filtro ============ */
.chips{ display:flex; gap:8px; overflow-x:auto; padding:2px 2px 10px; scrollbar-width:none; }
.chips::-webkit-scrollbar{ display:none; }
.chip{
  border:1px solid var(--line-2); background:var(--surface); color:var(--ink-2);
  padding:7px 14px; border-radius:999px; font-size:13.5px; font-weight:700; white-space:nowrap;
  cursor:pointer;
}
.chip.is-on{ background:var(--navy); border-color:var(--navy); color:#fff; }
html[data-theme="dark"] .chip.is-on{ background:var(--azul); border-color:var(--azul); }

/* ============ Artículo (lector de noticias) ============ */
.article{ max-width:760px; margin:0 auto; }
.article__cover{ border-radius:var(--r-md); overflow:hidden; margin:14px 0; box-shadow:var(--shadow-1); }
.article__cover img{ width:100%; }
.article h1{ font-size:clamp(22px, 4.5vw, 30px); line-height:1.2; letter-spacing:-.02em; margin:10px 0 6px; }
.article__meta{ color:var(--muted); font-size:13.5px; font-weight:600; display:flex; gap:10px; flex-wrap:wrap; }
.article__body{ font-size:16px; line-height:1.72; }
.article__body img{ border-radius:12px; margin:12px 0; height:auto; }
.article__body iframe{ max-width:100%; border-radius:12px; border:0; }
.article__body figure{ margin:14px 0; }
.article__body figcaption{ font-size:13px; color:var(--muted); }
.article__body a{ text-decoration:underline; }
.article__body blockquote{ border-left:4px solid var(--azul); margin:14px 0; padding:4px 0 4px 14px; color:var(--ink-2); }
.article__actions{ display:flex; gap:10px; margin:18px 0 8px; flex-wrap:wrap; }

/* ============ Botones ============ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 18px; border-radius:999px; font-weight:700; font-size:14.5px;
  border:1px solid transparent; cursor:pointer; color:#fff; background:var(--azul);
  transition:filter .12s ease, transform .12s ease;
}
.btn:hover{ filter:brightness(1.06); transform:translateY(-1px); }
.btn--soft{ background:var(--azul-suave); color:var(--chip-on); }
.btn--ghost{ background:transparent; color:var(--ink-2); border-color:var(--line-2); }
.btn--sol{ background:var(--sol); color:#3a2606; }
.btn--block{ width:100%; }
.btn .i{ width:18px; height:18px; }

/* ============ Agenda ============ */
.evlist{ display:grid; gap:12px; }
.evcard{
  display:flex; gap:14px; align-items:flex-start;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
  padding:14px 16px; box-shadow:var(--shadow-1);
}
.evdate{
  flex:none; width:58px; border-radius:14px; overflow:hidden; text-align:center;
  border:1px solid var(--line-2); background:var(--surface);
}
.evdate__m{ background:var(--rojo); color:#fff; font-size:10.5px; font-weight:800; letter-spacing:.06em; padding:3px 0; text-transform:uppercase; }
.evleyenda{
  display:flex; flex-wrap:wrap; gap:6px 16px; margin:0 2px 16px;
  font-size:13px; font-weight:600; color:var(--ink-2);
}
.evleyenda span{ display:inline-flex; align-items:center; gap:7px; }
.evleyenda i{ width:11px; height:11px; border-radius:4px; flex:none; }

.evdate--fiesta .evdate__m{ background:var(--uva); }
.evdate--mercado .evdate__m{ background:var(--ok); }
.evdate--cultura .evdate__m{ background:var(--azul); }
.evdate--deporte .evdate__m{ background:var(--sol); color:#3a2606; }
.evdate--otro .evdate__m{ background:var(--pizarra); }
.evdate__d{ font-size:21px; font-weight:800; padding:3px 0 5px; line-height:1.1; }
.evdate__d--aprox{ font-size:11px; font-weight:700; padding:9px 2px; color:var(--ink-2); letter-spacing:0; }
.evdate__d small{ display:block; font-size:10px; color:var(--muted); font-weight:700; }
.evcard__body{ min-width:0; flex:1; }
.evcard__body h3{ margin:0 0 3px; font-size:15.5px; font-weight:700; letter-spacing:-.01em; }
.evcard__body p{ margin:0; font-size:13.5px; color:var(--muted); }
.evcard__row{ display:flex; align-items:center; gap:6px; margin-top:6px; font-size:12.5px; color:var(--ink-2); font-weight:600; flex-wrap:wrap; }
.evcard__row .i{ width:15px; height:15px; color:var(--muted); }
.evmonth{ margin:20px 0 10px; font-size:13px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }

/* ============ Farmacias ============ */
.guardcard{
  border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-2);
  background:linear-gradient(135deg,#1d7a49,#23915a 55%,#2fa96b); color:#fff;
  padding:22px 20px; position:relative;
}
.guardcard__badge{
  display:inline-flex; align-items:center; gap:7px;
  background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.35);
  padding:5px 12px; border-radius:999px; font-size:12.5px; font-weight:800; letter-spacing:.03em;
}
.guardcard__badge .dot{ width:9px; height:9px; border-radius:50%; background:#b5ffce; box-shadow:0 0 0 4px rgba(181,255,206,.25); }
.guardcard h2{ margin:12px 0 4px; font-size:24px; letter-spacing:-.02em; }
.guardcard p{ margin:2px 0; opacity:.95; font-weight:500; }
.guardcard__cta{ display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }
.guardcard .btn{ background:#fff; color:#14532d; }
.guardcard .btn--o{ background:rgba(255,255,255,.14); color:#fff; border-color:rgba(255,255,255,.4); }
.guardcard__cross{ position:absolute; right:-22px; top:-26px; opacity:.14; }
.guardcard__img{
  position:absolute; right:16px; bottom:16px;
  width:118px; height:118px; object-fit:cover; border-radius:16px;
  border:3px solid rgba(255,255,255,.65); box-shadow:0 8px 22px -8px rgba(0,0,0,.45);
}
.guardcard--foto{ padding-right:150px; }
@media (max-width:479px){
  .guardcard__img{ width:92px; height:92px; right:12px; bottom:12px; }
  .guardcard--foto{ padding-right:116px; }
}

.pharmalist{ display:grid; gap:10px; margin-top:16px; }
@media (min-width:760px){ .pharmalist{ grid-template-columns:repeat(2,1fr); } }
.pharma{
  display:flex; gap:12px; align-items:center;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
  padding:13px 14px; box-shadow:var(--shadow-1);
}
.pharma__ico{ width:42px; height:42px; border-radius:12px; background:var(--ok-suave); color:var(--ok); display:grid; place-items:center; flex:none; }
.pharma--on .pharma__ico{ background:var(--ok); color:#fff; }
.pharma__txt{ min-width:0; flex:1; }
.pharma__txt strong{ display:block; font-size:14.5px; letter-spacing:-.01em; }
.pharma__txt span{ font-size:12.5px; color:var(--muted); }
.pharma__turn{ font-size:11.5px; color:var(--ok); font-weight:800; }
.pharma__call{ flex:none; display:flex; gap:6px; }
.pharma__call a{
  width:38px; height:38px; border-radius:11px; display:grid; place-items:center;
  background:var(--surface-2); border:1px solid var(--line); color:var(--ink-2);
}
.pharma__call a:hover{ background:var(--azul-suave); color:var(--azul); }

/* ============ Teléfonos ============ */
.telsearch{ position:relative; margin-bottom:14px; }
.telsearch .i{ position:absolute; left:13px; top:50%; transform:translateY(-50%); color:var(--muted); width:19px; height:19px; }
.telsearch input{
  width:100%; padding:12px 14px 12px 42px; border-radius:14px;
  border:1px solid var(--line-2); background:var(--surface); color:var(--ink);
  font:inherit; font-size:15px;
}
.telgroup{ margin-top:18px; }
.telgroup h3{ font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:0 0 8px; }
.tellist{ display:grid; gap:8px; }
@media (min-width:760px){ .tellist{ grid-template-columns:repeat(2,1fr); } }
.telrow{
  display:flex; align-items:center; gap:12px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-sm);
  padding:11px 13px; color:var(--ink);
}
.telrow:hover{ border-color:var(--azul); }
.telrow__ico{ width:36px; height:36px; border-radius:10px; display:grid; place-items:center; background:var(--azul-suave); color:var(--azul); flex:none; }
.telrow--sos .telrow__ico{ background:var(--rojo-suave); color:var(--rojo); }
.telrow strong{ font-size:14px; display:block; line-height:1.25; }
.telrow small{ color:var(--muted); font-size:12px; }
.telrow__num{ margin-left:auto; font-weight:800; font-size:14px; color:var(--azul); white-space:nowrap; }

/* ============ Turismo / Playas ============ */
.poigrid{ display:grid; gap:14px; }
@media (min-width:640px){ .poigrid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:980px){ .poigrid{ grid-template-columns:repeat(3,1fr); } }
.poi{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
  overflow:hidden; box-shadow:var(--shadow-1); display:flex; flex-direction:column;
}
.poi__art{ height:118px; position:relative; overflow:hidden; }
.poi__art svg{ width:100%; height:100%; display:block; }
.poi__art img{ width:100%; height:100%; object-fit:cover; display:block; }
.poi__body{ padding:13px 15px 15px; flex:1; display:flex; flex-direction:column; gap:6px; }
.poi__zone{ font-size:11.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--azul); }
.poi h3{ margin:0; font-size:16px; font-weight:800; letter-spacing:-.01em; }
.poi p{ margin:0; font-size:13.5px; color:var(--muted); flex:1; }
.poi__foot{ display:flex; gap:8px; margin-top:8px; flex-wrap:wrap; }
.tag{
  font-size:11.5px; font-weight:700; padding:3px 10px; border-radius:999px;
  background:var(--surface-2); border:1px solid var(--line); color:var(--ink-2);
}

/* ============ Inmobiliaria ============ */
.propfilters{
  display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:6px;
}
@media (min-width:760px){ .propfilters{ grid-template-columns:repeat(4,1fr); } }
.propfilters select{
  width:100%; padding:11px 12px; border-radius:12px; border:1px solid var(--line-2);
  background:var(--surface); color:var(--ink); font:inherit; font-size:14px; font-weight:600;
}
.propgrid{ display:grid; gap:14px; margin-top:12px; }
@media (min-width:640px){ .propgrid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:980px){ .propgrid{ grid-template-columns:repeat(3,1fr); } }
.prop{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
  overflow:hidden; box-shadow:var(--shadow-1); color:var(--ink); display:flex; flex-direction:column;
  transition:transform .12s ease, box-shadow .12s ease;
}
.prop:hover{ transform:translateY(-2px); box-shadow:var(--shadow-2); }
.prop__media{ aspect-ratio:16/10; background:var(--surface-2); position:relative; flex:none; overflow:hidden; }
/* absoluta: si no, una imagen alta (un logo cuadrado) estira la caja y rompe el 16/10 */
.prop__media img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.prop__media .noimg{ position:absolute; inset:0; display:grid; place-items:center; color:var(--muted); background:linear-gradient(135deg,var(--azul-suave),var(--surface-2)); }
.prop__op{
  position:absolute; left:10px; top:10px; font-size:11.5px; font-weight:800; letter-spacing:.04em;
  background:rgba(10,44,61,.85); color:#fff; padding:4px 10px; border-radius:999px;
}
.prop__feat{
  position:absolute; right:10px; top:10px; font-size:11.5px; font-weight:800;
  background:var(--sol); color:#3a2606; padding:4px 10px; border-radius:999px;
}
.prop__body{ padding:13px 15px 15px; display:flex; flex-direction:column; gap:5px; flex:1; }
.prop__price{ font-size:19px; font-weight:800; letter-spacing:-.02em; color:var(--azul); }
.prop__price small{ font-size:12.5px; color:var(--muted); font-weight:600; }
.prop h3{ margin:0; font-size:14.5px; font-weight:700; line-height:1.3; }
.prop__zone{ font-size:12.5px; color:var(--muted); font-weight:600; display:flex; align-items:center; gap:4px; }
.prop__zone .i{ width:14px; height:14px; }

/* ---- Directorio de comercios ---- */
.prop--link{ text-decoration:none; color:inherit; transition:transform .12s ease, box-shadow .12s ease; }
.prop--link:hover{ transform:translateY(-2px); box-shadow:var(--shadow-2); }
.prop__badge{
  position:absolute; top:10px; left:10px; z-index:1;
  background:var(--sol); color:#3a2606; font-size:11px; font-weight:800;
  padding:4px 9px; border-radius:999px; letter-spacing:.02em;
}
.prop__mas{ margin-top:auto; padding-top:6px; color:var(--azul); font-weight:800; font-size:13.5px; display:flex; align-items:center; gap:3px; }
.prop__mas .i{ width:15px; height:15px; }

.buscador{
  display:flex; align-items:center; gap:9px; margin:2px 0 12px;
  background:var(--surface); border:1.5px solid var(--line-2); border-radius:14px; padding:0 13px;
}
.buscador .i{ width:19px; height:19px; color:var(--muted); flex:none; }
.buscador input{
  flex:1; border:0; background:transparent; color:var(--ink);
  font:inherit; font-size:15px; padding:12px 0; outline:none; min-width:0;
}

/* ---- Ficha de comercio ---- */
.fichalogo{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-md);
  padding:20px; display:grid; place-items:center;
}
.fichalogo img{ max-width:190px; max-height:120px; object-fit:contain; }
.fichaacc{ margin:14px 0 4px; display:grid; gap:9px; }
.fichaacc__row{ display:flex; gap:9px; flex-wrap:wrap; }
.fichaacc__row .btn{ flex:1 1 auto; padding:10px 14px; justify-content:center; }
.fichadato{
  display:flex; gap:10px; align-items:flex-start; padding:11px 2px;
  border-bottom:1px solid var(--line); font-size:14.5px; color:var(--ink-2);
}
.fichadato .i{ width:18px; height:18px; color:var(--muted); flex:none; margin-top:1px; }
.fichahoras{ margin-top:6px; border-collapse:collapse; font-size:13.5px; }
.fichahoras td{ padding:2px 14px 2px 0; color:var(--ink-2); }
.fichahoras td:first-child{ font-weight:700; min-width:88px; }
.fichadesc{ margin:14px 2px; color:var(--ink-2); line-height:1.65; }
.prop__specs{ display:flex; gap:12px; margin-top:6px; font-size:12.5px; color:var(--ink-2); font-weight:600; }
.prop__specs span{ display:flex; align-items:center; gap:5px; }
.prop__specs .i{ width:15px; height:15px; color:var(--muted); }

/* ============ Incidencias ============ */
.incihero{
  border-radius:var(--r-lg); overflow:hidden; position:relative; color:#fff;
  background:linear-gradient(135deg,#16336a,#2563eb); box-shadow:var(--shadow-2);
  padding:26px 22px;
}
.incihero h2{ margin:0 0 6px; font-size:23px; letter-spacing:-.02em; }
.incihero p{ margin:0; opacity:.94; font-size:14.5px; max-width:52ch; }
.incisteps{ display:grid; gap:10px; margin:18px 0 6px; }
@media (min-width:760px){ .incisteps{ grid-template-columns:repeat(3,1fr); } }
.incistep{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
  padding:15px 16px; box-shadow:var(--shadow-1); display:flex; gap:12px; align-items:flex-start;
}
.incistep__n{
  flex:none; width:30px; height:30px; border-radius:50%; display:grid; place-items:center;
  background:var(--azul-suave); color:var(--chip-on); font-weight:800; font-size:14px;
}
.incistep strong{ display:block; font-size:14.5px; margin-bottom:2px; }
.incistep p{ margin:0; font-size:13px; color:var(--muted); }
.incilinks{ display:grid; gap:10px; margin-top:14px; }
@media (min-width:760px){ .incilinks{ grid-template-columns:repeat(2,1fr); } }

/* Tarjeta-enlace genérica (lista "Más", incidencias, ayuntamiento…) */
.linkcard{
  display:flex; align-items:center; gap:13px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
  padding:14px 15px; color:var(--ink); box-shadow:var(--shadow-1);
  transition:transform .12s ease, box-shadow .12s ease;
}
.linkcard:hover{ transform:translateY(-2px); box-shadow:var(--shadow-2); }
.linkcard__ico{ width:44px; height:44px; border-radius:13px; display:grid; place-items:center; color:#fff; flex:none; }
.linkcard__txt{ min-width:0; flex:1; }
.linkcard__txt strong{ display:block; font-size:15px; letter-spacing:-.01em; }
.linkcard__txt span{ font-size:12.8px; color:var(--muted); display:block; line-height:1.35; }
.linkcard > .i:last-child{ color:var(--muted); width:19px; height:19px; }

.servgrid{ display:grid; gap:10px; }
@media (min-width:640px){ .servgrid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:980px){ .servgrid{ grid-template-columns:repeat(3,1fr); } }

/* ============ El tiempo ============ */
.wxnow{
  border-radius:var(--r-lg); padding:24px 22px; color:#fff;
  background:linear-gradient(150deg,#0f83a9,#0a2c3d); box-shadow:var(--shadow-2);
  display:flex; align-items:center; gap:20px; flex-wrap:wrap;
}
.wxnow__t{ font-size:52px; font-weight:800; letter-spacing:-.04em; line-height:1; }
.wxnow__icon{ font-size:52px; line-height:1; }
.wxnow__txt p{ margin:0; opacity:.94; font-weight:600; }
.wxdays{ display:grid; gap:8px; margin-top:16px; }
.wxday{
  display:grid; grid-template-columns:1fr auto auto auto; align-items:center; gap:12px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-sm);
  padding:11px 15px;
}
.wxday__name{ font-weight:700; font-size:14px; text-transform:capitalize; }
.wxday__icon{ font-size:20px; }
.wxday__rain{ font-size:12.5px; color:var(--azul); font-weight:700; min-width:44px; text-align:right; }
.wxday__t{ font-size:14px; font-weight:700; min-width:86px; text-align:right; }
.wxday__t small{ color:var(--muted); font-weight:600; }

/* ============ Skeletons / estados ============ */
@keyframes shimmer{ 0%{ background-position:-400px 0 } 100%{ background-position:400px 0 } }
.sk{
  border-radius:var(--r-md); background:var(--surface);
  border:1px solid var(--line); overflow:hidden; position:relative; min-height:90px;
}
.sk::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 6%, transparent), transparent);
  background-size:400px 100%; animation:shimmer 1.2s infinite linear;
}
.sk--card{ min-height:220px; }
.sk--row{ min-height:64px; }

.empty{
  text-align:center; padding:40px 20px; color:var(--muted);
  background:var(--surface); border:1px dashed var(--line-2); border-radius:var(--r-md);
}
.empty .i{ width:34px; height:34px; margin:0 auto 10px; display:block; }
.empty strong{ display:block; color:var(--ink-2); margin-bottom:4px; font-size:15.5px; }
.empty p{ margin:0; font-size:13.5px; }

/* ============ Toast ============ */
.toast{
  position:fixed; left:50%; bottom:calc(var(--bottomnav-h) + 14px); transform:translateX(-50%) translateY(20px);
  background:var(--navy); color:#fff; padding:11px 18px; border-radius:999px;
  font-size:14px; font-weight:600; opacity:0; pointer-events:none; transition:.25s ease; z-index:90;
  max-width:calc(100vw - 40px); text-align:center;
}
.toast.is-on{ opacity:1; transform:translateX(-50%) translateY(0); }
@media (min-width:900px){ .toast{ bottom:24px; } }

/* ============ Footer ============ */
.appfoot{
  margin-top:36px; padding:20px 4px 8px; border-top:1px solid var(--line);
  color:var(--muted); font-size:12.5px; text-align:center;
}
.appfoot a{ font-weight:700; }
.appfoot__links{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-bottom:8px; }
.appfoot__legal{ display:inline-block; margin-top:8px; font-size:11.5px; opacity:.85; max-width:60ch; }

/* cargar más */
.loadmore{ display:flex; justify-content:center; margin-top:18px; }

/* listas de definición reutilizables */
.kv{ display:grid; gap:8px; }
.kv > div{
  display:flex; justify-content:space-between; gap:14px; padding:10px 14px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-sm); font-size:14px;
}
.kv dt{ color:var(--muted); font-weight:600; }
.kv dd{ margin:0; font-weight:700; text-align:right; }

/* ============ Tablón: perdidos y encontrados ============ */
.qico--arena{ background:linear-gradient(135deg,#c9a24b,#96712a); }
.qico--coral{ background:linear-gradient(135deg,#e8756a,#c14a42); }

.lfcta{
  border-radius:var(--r-lg); padding:18px 18px; color:#fff;
  background:linear-gradient(135deg,#27556f,#0a2c3d); box-shadow:var(--shadow-2);
  display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:16px;
}
.lfcta__txt{ flex:1; min-width:200px; }
.lfcta__txt strong{ display:block; font-size:16.5px; letter-spacing:-.01em; }
.lfcta__txt span{ font-size:12.8px; opacity:.85; }
.lfcta .btn{ background:#fff; color:var(--navy); }

.prop__op--perdido{ background:rgba(194,58,64,.92); }
.prop__op--encontrado{ background:rgba(29,122,73,.92); }
.prop__resuelto{
  position:absolute; inset:0; display:grid; place-items:center;
  background:rgba(16,37,50,.55); color:#fff; font-weight:800; letter-spacing:.06em; font-size:15px;
}

/* Formulario */
.lfform{ max-width:640px; }
.field{ margin-bottom:14px; }
.field label{ display:block; font-size:13.5px; font-weight:700; margin-bottom:6px; }
.field label small{ color:var(--muted); font-weight:600; }
.field input[type="text"], .field input[type="date"], .field textarea{
  width:100%; padding:12px 14px; border-radius:13px; border:1.5px solid var(--line-2);
  background:var(--surface); color:var(--ink); font:inherit; font-size:15px;
}
.field textarea{ min-height:96px; resize:vertical; }
.field input:focus, .field textarea:focus{ border-color:var(--azul); outline:none; }
.field .hint{ font-size:12px; color:var(--muted); margin-top:5px; }
.field.is-error input, .field.is-error textarea{ border-color:var(--rojo); }
.field .err{ color:var(--rojo); font-size:12.5px; font-weight:700; margin-top:5px; display:none; }
.field.is-error .err{ display:block; }

.seg{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.seg button{
  padding:13px 10px; border-radius:14px; border:1.5px solid var(--line-2);
  background:var(--surface); color:var(--ink-2); font:inherit; font-weight:700; font-size:14.5px;
  cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px;
}
.seg button.is-on--perdido{ background:var(--rojo-suave); border-color:var(--rojo); color:var(--rojo); }
.seg button.is-on--encontrado{ background:var(--ok-suave); border-color:var(--ok); color:var(--ok); }
.seg button[data-plan]{ flex-direction:column; gap:2px; line-height:1.25; }
.seg button[data-plan] small{ font-size:11.5px; opacity:.8; }

.prop__aviso{
  margin-top:10px; padding-top:9px; border-top:1px dashed var(--line-2);
  font-size:12.5px; color:var(--ink-2); line-height:1.9;
}
.prop__aviso a{
  color:var(--ink-2); text-decoration:underline; text-underline-offset:3px;
  text-decoration-color:var(--line-2); white-space:nowrap;
}
.prop__aviso a:hover{ color:var(--ink); text-decoration-color:currentColor; }

.upzone{
  border:2px dashed var(--line-2); border-radius:var(--r-md); padding:18px;
  text-align:center; cursor:pointer; color:var(--muted); background:var(--surface);
}
.upzone:hover{ border-color:var(--azul); color:var(--azul); }
.upzone .i{ width:26px; height:26px; margin:0 auto 6px; display:block; }
.upgrid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:10px; }
.upthumb{ position:relative; border-radius:12px; overflow:hidden; aspect-ratio:4/3; border:1px solid var(--line); }
.upthumb img{ width:100%; height:100%; object-fit:cover; }
.upthumb button{
  position:absolute; top:6px; right:6px; width:26px; height:26px; border-radius:50%;
  border:0; background:rgba(16,37,50,.75); color:#fff; font-weight:800; cursor:pointer; line-height:1;
}
.honeypot{ position:absolute; left:-5000px; top:-5000px; height:1px; width:1px; overflow:hidden; }

.avisolegal{ font-size:12.5px; color:var(--muted); background:var(--surface-2); border:1px solid var(--line); border-radius:12px; padding:10px 13px; margin:14px 0; }

/* Ficha del anuncio */
.gal{ border-radius:var(--r-md); overflow:hidden; box-shadow:var(--shadow-1); background:var(--surface-2); }
.gal__main{ width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
.gal__thumbs{ display:flex; gap:8px; margin-top:8px; }
.gal__thumbs img{
  width:74px; height:56px; object-fit:cover; border-radius:10px; cursor:pointer;
  border:2px solid transparent;
}
.gal__thumbs img.is-on{ border-color:var(--azul); }

.contactbox{
  background:var(--ok-suave); border:1px solid var(--ok); border-radius:var(--r-md);
  padding:14px 16px; margin-top:8px;
}
.contactbox strong{ font-size:16px; word-break:break-word; }

.codebox{
  background:var(--surface); border:2px dashed var(--azul); border-radius:var(--r-md);
  padding:16px; text-align:center; margin:16px 0;
}
.codebox code{ font-size:24px; font-weight:800; letter-spacing:.12em; color:var(--azul); }
.codebox p{ margin:6px 0 0; font-size:12.5px; color:var(--muted); }

.btn--danger{ background:var(--rojo); }
.btn--ok{ background:var(--ok); }

.lfmeta{ display:flex; flex-wrap:wrap; gap:8px 16px; margin:10px 0; }
.lfmeta span{ display:flex; align-items:center; gap:6px; font-size:13.5px; color:var(--ink-2); font-weight:600; }
.lfmeta .i{ width:16px; height:16px; color:var(--muted); }

/* ============ Empleo: ofertas de empresas ============ */
.jobcard{
  display:flex; align-items:center; gap:13px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
  padding:13px 15px; color:var(--ink); box-shadow:var(--shadow-1);
  transition:transform .12s ease, box-shadow .12s ease;
}
.jobcard:hover{ transform:translateY(-2px); box-shadow:var(--shadow-2); }
.jobcard--off{ opacity:.62; }
.jobcard__logo{
  width:52px; height:52px; border-radius:13px; flex:none; overflow:hidden;
  display:grid; place-items:center; background:var(--azul-suave); color:var(--azul);
  border:1px solid var(--line);
}
.jobcard__logo img{ width:100%; height:100%; object-fit:cover; }
.jobcard__txt{ min-width:0; flex:1; display:flex; flex-direction:column; gap:2px; }
.jobcard__txt strong{ font-size:15px; letter-spacing:-.01em; line-height:1.3; }
.jobcard__txt > span{ font-size:13px; color:var(--muted); }
.jobcard__meta{ display:flex; align-items:center; gap:8px; font-size:12px !important; }
.jobtag{
  font-style:normal; font-weight:800; font-size:11.5px;
  background:var(--azul-suave); color:var(--chip-on);
  padding:2px 9px; border-radius:999px;
}
.jobtag--off{ background:var(--ok-suave); color:var(--ok); }
.jobcard > .i:last-child{ color:var(--muted); width:18px; height:18px; flex:none; }
