/* FarmaciaTurno.cl — design system */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0c1222;
  --ink-2: #1c2a3a;
  --ink-3: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-2: #f1f5f9;
  --surface: #ffffff;
  --bg: #f0f4f8;
  --bg-soft: #eef7f2;

  --brand: #0f766e;
  --brand-h: #0d5f59;
  --brand-deep: #042f2e;
  --brand-mid: #14b8a6;
  --brand-lite: #ccfbf1;
  --brand-glow: #2dd4bf;
  --brand-bd: #99f6e4;

  --accent: #f59e0b;
  --accent-bg: #fffbeb;
  --indigo: #4f46e5;
  --indigo-bg: #eef2ff;
  --indigo-bd: #c7d2fe;

  --amber: #d97706;
  --amber-bg: #fffbeb;
  --amber-bd: #fde68a;
  --red-bg: #fef2f2;
  --red-bd: #fecaca;
  --red-text: #991b1b;

  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --sh: 0 1px 2px rgba(12,18,34,.04), 0 4px 16px rgba(12,18,34,.06);
  --sh2: 0 10px 40px rgba(12,18,34,.10);
  --sh3: 0 20px 60px rgba(4,47,46,.18);
  --ease: cubic-bezier(.22,1,.36,1);
  --max: 1120px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--brand); }
strong { font-weight: 700; }

/* ── Header / Navbar (única en todo el sitio) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #042f2e;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.hdr-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.brand-text { line-height: 1.15; }
.brand-name {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.3px;
}
.brand-sub {
  display: block;
  color: rgba(255,255,255,.5);
  font-size: .65rem;
  font-weight: 500;
  margin-top: 2px;
}

/* Contenedor menú + badge (desktop: fila a la derecha) */
.hdr-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hdr-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.hdr-nav a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.hdr-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.hdr-nav a.active {
  color: #fff;
  background: rgba(45, 212, 191, .18);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: #ecfdf5;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(45, 212, 191, .15);
  border: 1px solid rgba(45, 212, 191, .4);
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2dd4bf;
  flex-shrink: 0;
  animation: ripple 2s ease-out infinite;
}
@keyframes ripple {
  0% { box-shadow: 0 0 0 0 rgba(45,212,191,.55); }
  70% { box-shadow: 0 0 0 8px rgba(45,212,191,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,212,191,0); }
}

/* Botón hamburguesa (solo móvil) */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Móvil */
@media (max-width: 860px) {
  .brand-sub { display: none; }
  .nav-toggle { display: flex; }
  .hdr-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #042f2e;
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 12px 16px 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
  }
  .hdr-menu.is-open { display: flex; }
  .hdr-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .hdr-nav a {
    padding: 12px 14px;
    font-size: .9rem;
  }
  .live-badge {
    margin-top: 10px;
    align-self: flex-start;
  }
  .site-header { position: sticky; }
  .hdr-inner { position: relative; }
}

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 10% 15%, rgba(20,184,166,.32) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 90% 0%, rgba(45,212,191,.16) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 60% 100%, rgba(15,118,110,.3) 0%, transparent 50%),
    linear-gradient(160deg, #042f2e 0%, #0f4c47 45%, #031f1e 100%);
  color: #fff;
  padding: 40px 20px 100px;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .55;
}
.hero-inner {
  max-width: var(--max); margin: 0 auto; position: relative; z-index: 1;
  text-align: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
  padding: 5px 12px 5px 7px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .35px;
  color: var(--brand-glow); text-transform: uppercase; margin-bottom: 16px;
}
.hero-kicker span {
  background: var(--brand-glow); color: var(--brand-deep);
  font-size: .62rem; padding: 2px 7px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.65rem);
  font-weight: 800; letter-spacing: -.55px; line-height: 1.14;
  margin-bottom: 14px; max-width: 780px; margin-left: auto; margin-right: auto;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #5eead4, #2dd4bf);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: 1.05rem; color: rgba(255,255,255,.7);
  max-width: 560px; margin: 0 auto 22px; line-height: 1.65; font-weight: 450;
}
.hero-stats {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
}
.hero-stat-chip {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 10px 18px; min-width: 100px;
}
.hero-stat-chip strong {
  display: block; font-size: 1.15rem; font-weight: 800; color: #fff;
  letter-spacing: -.3px;
}
.hero-stat-chip span {
  font-size: .68rem; color: rgba(255,255,255,.5); font-weight: 600;
  text-transform: uppercase; letter-spacing: .4px;
}

/* ── Search console (new style) ── */
.search-zone {
  max-width: var(--max); margin: -64px auto 0; padding: 0 20px 28px;
  position: relative; z-index: 5;
  scroll-margin-top: 80px;
}
.search-console {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--sh3), 0 0 0 1px rgba(15,118,110,.08);
  overflow: hidden;
}
.sc-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #042f2e 0%, #0f5c56 100%);
  color: #fff;
}
.sc-modes {
  display: inline-flex;
  background: rgba(0,0,0,.25);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  border: 1px solid rgba(255,255,255,.1);
}
.sc-mode {
  border: none; background: transparent;
  color: rgba(255,255,255,.65);
  font-family: inherit; font-size: .8rem; font-weight: 700;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  transition: all .2s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.sc-mode:hover { color: #fff; }
.sc-mode.active {
  background: #fff; color: var(--brand-deep);
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.sc-meta {
  font-size: .72rem; font-weight: 600; color: rgba(255,255,255,.55);
  display: flex; align-items: center; gap: 8px;
}
.sc-meta .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-glow);
  box-shadow: 0 0 8px var(--brand-glow);
}

/* Search form body */
.sc-body { padding: 22px 20px 20px; }
.sc-hint {
  font-size: .84rem; color: var(--muted); margin-bottom: 16px;
  font-weight: 500; text-align: center;
}
.sc-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
@media (max-width: 720px) {
  .sc-form { grid-template-columns: 1fr; }
  .sc-mode { padding: 8px 12px; font-size: .74rem; }
}
.sc-field label {
  display: block; font-size: .68rem; font-weight: 800;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: .55px; margin-bottom: 6px;
}
.sc-field select, .sc-field .sc-select-like {
  width: 100%;
  background: var(--line-2);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 13px 38px 13px 14px;
  font-size: .92rem; font-family: inherit; color: var(--ink);
  cursor: pointer; font-weight: 600;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%230f766e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  background-color: var(--line-2);
}
.sc-field select:hover { background-color: #e8eef4; }
.sc-field select:focus {
  outline: none; border-color: var(--brand);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(15,118,110,.12);
}
.sc-field select:disabled {
  opacity: .55; cursor: not-allowed;
}
.sc-submit {
  border: none; border-radius: 14px;
  padding: 13px 26px;
  font-family: inherit; font-size: .92rem; font-weight: 800;
  color: #fff; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, #14b8a6, #0f766e);
  box-shadow: 0 4px 14px rgba(15,118,110,.35), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .15s, box-shadow .15s, filter .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px;
}
.sc-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15,118,110,.4);
  filter: brightness(1.05);
}
.sc-submit:disabled {
  background: #cbd5e1; box-shadow: none; cursor: not-allowed; color: #64748b;
}
.sc-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px; margin-top: 16px; padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.sc-geo {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-family: inherit; font-size: .82rem; font-weight: 700;
  color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .15s;
}
.sc-geo:hover, .sc-geo.active {
  border-color: var(--brand-bd);
  background: var(--brand-lite);
  color: var(--brand-deep);
}
.sc-geo:disabled { opacity: .6; cursor: not-allowed; }
.sc-note {
  font-size: .76rem; color: var(--muted); font-weight: 500;
}
.sc-stats {
  display: flex; justify-content: center; gap: 0;
  margin-top: 14px;
  background: var(--bg-soft);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--brand-bd);
}
.sc-stat {
  flex: 1; text-align: center; padding: 12px 8px;
}
.sc-stat:not(:last-child) { border-right: 1px solid var(--brand-bd); }
.sc-stat strong {
  display: block; font-size: 1.2rem; font-weight: 800;
  color: var(--brand-deep); letter-spacing: -.3px;
}
.sc-stat span {
  font-size: .62rem; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
}

/* Cercana panel extras */
.sc-radius {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 12px;
  font-size: .84rem; color: var(--ink-2); font-weight: 600;
}
.sc-radius select {
  border: 2px solid var(--line); border-radius: 10px;
  padding: 7px 30px 7px 10px; background: #fff;
  font-family: inherit; font-size: .84rem; font-weight: 700;
  color: var(--ink); -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%230f766e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center; background-size: 14px;
}

/* Results area */
.results-wrap {
  max-width: var(--max); margin: 0 auto; padding: 0 20px 40px;
}
.results {
  min-height: 120px;
  display: flex; flex-direction: column; gap: 14px;
}
.welcome {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh);
  padding: 40px 28px; text-align: center;
}
.welcome-ico {
  width: 60px; height: 60px; margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--brand-lite), #99f6e4);
  border: 1px solid var(--brand-bd);
  display: grid; place-items: center; font-size: 1.7rem;
  box-shadow: var(--sh);
}
.welcome-title {
  font-size: 1.2rem; font-weight: 800; margin-bottom: 8px;
  color: var(--ink); letter-spacing: -.3px;
}
.welcome-desc {
  font-size: .9rem; color: var(--muted); max-width: 420px;
  margin: 0 auto; line-height: 1.7; font-weight: 500;
}
.welcome-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 26px; text-align: left;
}
@media (max-width: 600px) { .welcome-steps { grid-template-columns: 1fr; } }
.welcome-step {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px;
}
.welcome-step b {
  display: flex; align-items: center; gap: 7px;
  font-size: .8rem; color: var(--brand-deep); margin-bottom: 4px;
}
.welcome-step b i {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-style: normal;
  font-size: .7rem; font-weight: 800;
}
.welcome-step span { font-size: .76rem; color: var(--muted); line-height: 1.45; }

.alert {
  display: flex; align-items: flex-start; gap: 10px; border-radius: 12px;
  padding: 12px 15px; font-size: .85rem; line-height: 1.5; font-weight: 500;
}
.alert-info, .alert-success {
  background: var(--brand-lite); border: 1px solid var(--brand-bd); color: var(--brand-deep);
}
.alert-warn { background: var(--amber-bg); border: 1px solid var(--amber-bd); color: #92400e; }
.alert-error { background: var(--red-bg); border: 1px solid var(--red-bd); color: var(--red-text); }

.res-hdr {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.res-title { font-size: 1.08rem; font-weight: 800; color: var(--ink); letter-spacing: -.2px; }
.res-sub { font-size: .78rem; color: var(--muted); margin-top: 3px; font-weight: 500; }
.badge-turno, .badge-cercana {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: .74rem; font-weight: 700;
}
.badge-turno {
  background: var(--brand-lite); color: var(--brand-deep);
  border: 1px solid var(--brand-bd);
}
.badge-cercana {
  background: var(--indigo-bg); color: #3730a3; border: 1px solid var(--indigo-bd);
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; display: inline-block;
}

.map-wrap {
  border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh);
}
#map { height: 360px; width: 100%; }
.leaflet-popup-content-wrapper {
  border-radius: 12px !important; box-shadow: var(--sh2) !important; padding: 0 !important;
}
.leaflet-popup-content { margin: 0 !important; }
.pu { padding: 12px 14px; min-width: 180px; }
.pu-name { font-weight: 800; font-size: .85rem; color: var(--ink); margin-bottom: 3px; }
.pu-addr { font-size: .76rem; color: var(--muted); }
.pu-hrs { font-size: .74rem; color: var(--brand); margin-top: 4px; font-weight: 600; }

.cards-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
@media (max-width: 400px) {
  .cards-list { grid-template-columns: 1fr; }
}

.ph-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh); overflow: hidden;
  transition: box-shadow .2s var(--ease), border-color .2s, transform .2s var(--ease);
  display: flex; flex-direction: column;
}
.ph-card:hover {
  box-shadow: var(--sh2); border-color: #b8d4cc;
  transform: translateY(-2px);
}
.ph-card.nearest {
  border-color: var(--brand-bd);
  box-shadow: 0 0 0 1px var(--brand-bd), var(--sh);
  border-top: 3px solid var(--brand);
}
.ph-card.nearest-near { border-top: 3px solid var(--indigo); }

.ph-head {
  padding: 15px 16px 12px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.ph-name { font-size: .92rem; font-weight: 800; color: var(--ink); line-height: 1.3; letter-spacing: -.2px; }
.ph-commune { font-size: .74rem; color: var(--muted); margin-top: 3px; font-weight: 500; }
.ph-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: .67rem; font-weight: 700;
}
.tag-green { background: var(--brand-lite); color: var(--brand-deep); border: 1px solid var(--brand-bd); }
.tag-blue { background: var(--indigo-bg); color: #3730a3; border: 1px solid var(--indigo-bd); }
.tag-star { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-bd); }

.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: .68rem; font-weight: 800; white-space: nowrap;
}
.pill-on {
  background: linear-gradient(180deg, #ecfdf5, var(--brand-lite));
  color: var(--brand-deep); border: 1px solid var(--brand-bd);
}
.pill-near {
  background: var(--indigo-bg); color: #3730a3; border: 1px solid var(--indigo-bd);
}

.ph-body { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ph-row {
  display: flex; gap: 10px; font-size: .83rem; color: var(--ink-2);
  align-items: flex-start; font-weight: 500;
}
.ph-ico { width: 16px; flex-shrink: 0; color: var(--muted-2); margin-top: 1px; }
.ph-row a { color: var(--brand); text-decoration: none; font-weight: 600; }
.ph-row a:hover { color: var(--brand-h); text-decoration: underline; }

.ph-foot {
  padding: 11px 14px; background: #f8fafc;
  border-top: 1px solid var(--line-2);
  display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto;
}
.act-btn {
  flex: 1; min-width: 80px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 10px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: .74rem; font-weight: 700; font-family: inherit;
  color: var(--ink-2); cursor: pointer; text-decoration: none;
  transition: all .15s;
}
.act-btn:hover { background: var(--line-2); }
.act-btn.primary-act { background: var(--ink); color: #fff; border-color: var(--ink); }
.act-btn.primary-act:hover { background: var(--ink-2); }
.act-btn.green-act {
  background: linear-gradient(180deg, var(--brand-mid), var(--brand));
  color: #fff; border-color: var(--brand);
}
.act-btn.green-act:hover { filter: brightness(1.05); }

.spin {
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%;
  animation: _spin .65s linear infinite; display: inline-block;
}
@keyframes _spin { to { transform: rotate(360deg); } }

.no-results {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 44px 24px; text-align: center;
}
.no-results-ico { font-size: 2.4rem; margin-bottom: 12px; opacity: .5; }
.no-results-title { font-size: 1rem; font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.no-results-desc { font-size: .85rem; color: var(--muted); line-height: 1.6; max-width: 360px; margin: 0 auto; }

/* ── Ad slots (Google AdSense) ── */
.ad-slot {
  max-width: var(--max); margin: 0 auto 28px; padding: 0 20px;
  text-align: center;
}
.ad-box {
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}
/* Espacios vacíos no ocupan hueco; al pegar código AdSense con .adsbygoogle se muestran */
.ad-box:empty { display: none; }
.ad-box:not(:empty).ad-leader { min-height: 100px; }
.ad-box:not(:empty).ad-rect { min-height: 250px; }
.ad-box:not(:empty).ad-infeed { min-height: 120px; }
.ad-box .adsbygoogle { display: block; }
.ad-label {
  font-size: .62rem; opacity: .55; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px;
  margin-bottom: 6px; font-weight: 600;
}

/* ── Content sections ── */
.section {
  max-width: var(--max); margin: 0 auto; padding: 52px 20px;
}
.section-head {
  text-align: center; max-width: 640px; margin: 0 auto 32px;
}
.section-kicker {
  display: inline-block; font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .7px;
  color: var(--brand); margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800; letter-spacing: -.4px;
  color: var(--ink); margin-bottom: 10px; line-height: 1.25;
}
.section-head p {
  font-size: .95rem; color: var(--muted); line-height: 1.65; font-weight: 500;
}

.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 720px) { .how-grid { grid-template-columns: 1fr; } }
.how-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 18px;
  box-shadow: var(--sh);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.how-card:hover { transform: translateY(-3px); box-shadow: var(--sh2); }
.how-num {
  font-size: 2.2rem; font-weight: 800; letter-spacing: -1px;
  color: var(--brand-bd); line-height: 1; margin-bottom: 8px;
}
.how-card h3 {
  font-size: .98rem; font-weight: 800; color: var(--ink);
  margin-bottom: 8px; letter-spacing: -.2px;
}
.how-card p { font-size: .86rem; color: var(--muted); line-height: 1.6; font-weight: 500; }

.band {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.city-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px;
  transition: border-color .15s, box-shadow .15s;
}
.city-card:hover { border-color: var(--brand-bd); box-shadow: var(--sh); }
.city-card h3 {
  font-size: .88rem; font-weight: 800; color: var(--ink);
  margin-bottom: 6px; display: flex; align-items: center; gap: 7px;
}
.city-card h3 span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex-shrink: 0;
}
.city-card p {
  font-size: .8rem; color: var(--muted); line-height: 1.55; font-weight: 500;
}

/* Article / long content */
.prose {
  max-width: 720px; margin: 0 auto;
  font-size: .95rem; color: var(--ink-2); line-height: 1.8; font-weight: 500;
}
.prose h2 {
  font-size: 1.25rem; font-weight: 800; color: var(--ink);
  margin: 32px 0 12px; letter-spacing: -.3px;
}
.prose h3 {
  font-size: 1.05rem; font-weight: 800; color: var(--ink);
  margin: 24px 0 10px;
}
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol {
  margin: 0 0 16px 1.2em;
}
.prose li { margin-bottom: 8px; }
.prose a { font-weight: 600; }
.prose .callout {
  background: var(--brand-lite); border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0; padding: 14px 16px;
  margin: 20px 0; color: var(--brand-deep);
}

.tips-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  max-width: 900px; margin: 0 auto;
}
@media (max-width: 640px) { .tips-grid { grid-template-columns: 1fr; } }
.tip-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px; box-shadow: var(--sh);
}
.tip-card h3 {
  font-size: .95rem; font-weight: 800; color: var(--ink);
  margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.tip-card p { font-size: .86rem; color: var(--muted); line-height: 1.6; font-weight: 500; }

/* FAQ */
.faq-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 52px 20px;
}
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-inner > h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800; color: var(--ink); letter-spacing: -.3px;
  margin-bottom: 8px; text-align: center;
}
.faq-lead {
  text-align: center; color: var(--muted); font-size: .92rem;
  margin-bottom: 26px; font-weight: 500;
}
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.faq-item:hover { border-color: var(--brand-bd); }
.faq-item[open] {
  border-color: var(--brand-bd);
  background: var(--surface);
  box-shadow: var(--sh);
}
.faq-item summary {
  padding: 15px 18px; font-size: .9rem; font-weight: 700;
  color: var(--ink); cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.15rem; color: var(--brand);
  flex-shrink: 0; font-weight: 500;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand-lite); display: grid; place-items: center;
}
.faq-item[open] summary::after {
  content: '−'; background: var(--brand); color: #fff;
}
.faq-item p {
  padding: 0 18px 16px; font-size: .86rem;
  color: var(--muted); line-height: 1.7; font-weight: 500;
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(160deg, #042f2e, #0f5c56);
  color: #fff; padding: 48px 20px 40px; text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; letter-spacing: -.4px; margin-bottom: 10px;
}
.page-hero p {
  color: rgba(255,255,255,.7); max-width: 520px; margin: 0 auto;
  font-size: .95rem;
}
.page-body {
  max-width: 760px; margin: 0 auto; padding: 40px 20px 64px;
}
.page-body.wide { max-width: var(--max); }

/* Footer */
.site-footer {
  background: var(--brand-deep);
  padding: 40px 20px 24px;
  color: rgba(255,255,255,.55);
}
.footer-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px; margin-bottom: 28px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.footer-brand img { height: 34px; width: auto; }
.footer-brand strong { color: #fff; font-size: .95rem; font-weight: 800; }
.footer-about {
  font-size: .82rem; line-height: 1.65; max-width: 300px; font-weight: 500;
}
.footer-col h4 {
  color: #fff; font-size: .75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,.55); text-decoration: none;
  font-size: .82rem; font-weight: 500; margin-bottom: 8px;
  transition: color .15s;
}
.footer-col a:hover { color: var(--brand-glow); }
.footer-bottom {
  max-width: var(--max); margin: 0 auto;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  font-size: .74rem; font-weight: 500;
}
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer a:hover { color: var(--brand-glow); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #c5d0d8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
