/* =============================================
   Negocios en Línea — Public Frontend CSS
   Mobile-first, no external dependencies
   ============================================= */

:root {
  --navy:        #1a2744;
  --navy-light:  #263357;
  --brand:       #1457a8;
  --brand-light: #e8f2fb;
  --brand-mid:   #3b82c4;
  --orange:      #c94200;
  --orange-dark: #a33500;
  --green:       #1a7a40;
  --green-bg:    #e6f4ec;
  --ground:      #f0f4f9;
  --card:        #ffffff;
  --text:        #1a2744;
  --text-muted:  #6b7a9a;
  --border:      #dce5f2;
  --shadow-sm:   0 1px 4px rgba(26,39,68,.08);
  --shadow-md:   0 4px 16px rgba(26,39,68,.12);
  --shadow-lg:   0 8px 32px rgba(26,39,68,.16);
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 999px;
  --font-body:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-w:       1200px;
  --px:          16px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--ground);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
.section { padding: 40px 0; }
.section-lg { padding: 64px 0; }

/* ── Public Nav ── */
.pub-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.pub-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 16px;
}
.pub-nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.pub-nav__logo:hover { text-decoration: none; color: #fff; }
.pub-nav__logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-mid);
  display: inline-block;
  flex-shrink: 0;
}
.pub-nav__links {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.pub-nav__links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.pub-nav__links a:hover,
.pub-nav__links a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}
.pub-nav__links .soon {
  opacity: .5;
  cursor: default;
  pointer-events: none;
}
.pub-nav__cta {
  background: var(--orange);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.pub-nav__cta:hover { background: var(--orange-dark); color: #fff; text-decoration: none; }
.pub-nav__acceder {
  display: none;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.55);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
}
.pub-nav__acceder:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
@media (min-width: 768px) { .pub-nav__acceder { display: inline-flex; align-items: center; } }
.pub-nav__menu-btn {
  background: none;
  border: none;
  color: #fff;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.pub-nav__menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
.pub-nav__mobile {
  display: none;
  background: var(--navy-light);
  padding: 12px 0;
}
.pub-nav__mobile.open { display: block; }
.pub-nav__mobile a {
  display: block;
  color: rgba(255,255,255,.85);
  padding: 10px 20px;
  font-size: .95rem;
}
.pub-nav__mobile a:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.06); }
.pub-nav__mobile .soon { opacity: .45; pointer-events: none; }

@media (min-width: 768px) {
  .pub-nav__links { display: flex; }
  .pub-nav__menu-btn { display: none; }
}

/* ── Hero ── */
.pub-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1c3870 60%, #1457a8 100%);
  padding: 52px 0 72px;
  text-align: center;
  position: relative;
}
.pub-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--ground);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.pub-hero__eyebrow {
  color: rgba(255,255,255,.65);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pub-hero__title {
  color: #fff;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.pub-hero__sub {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  margin-bottom: 32px;
}

/* ── Search Bar ── */
.pub-search {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 700px;
  margin: 0 auto;
}
.pub-search__input-wrap {
  position: relative;
  flex: 1;
}
.pub-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.pub-search__input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 12px 11px 38px;
  font-size: 1rem;
  outline: none;
  transition: border-color .15s;
  background: var(--ground);
}
.pub-search__input:focus { border-color: var(--brand); background: #fff; }
.pub-search__selects {
  display: flex;
  gap: 8px;
}
.pub-search__selects select {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  font-size: .9rem;
  background: var(--ground);
  outline: none;
  cursor: pointer;
  color: var(--text);
}
.pub-search__selects select:focus { border-color: var(--brand); background: #fff; }
.pub-search__btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  transition: background .15s;
  width: 100%;
}
.pub-search__btn:hover { background: var(--navy); }

@media (min-width: 600px) {
  .pub-search {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
  }
  .pub-search__input-wrap { flex: 1 1 100%; }
  .pub-search__selects { flex: 1 1 auto; }
  .pub-search__btn { width: auto; }
}

@media (min-width: 768px) {
  .pub-search__input-wrap { flex: 1; }
}

/* ── Section titles ── */
.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.section-sub {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 24px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.section-header .ver-mas {
  font-size: .85rem;
  color: var(--brand);
  font-weight: 500;
}

/* ── Category Tiles ── */
.rubros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.rubro-tile {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 8px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}
.rubro-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-mid);
  color: var(--brand);
  text-decoration: none;
}
.rubro-tile__icon {
  width: 44px;
  height: 44px;
  background: var(--brand-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--brand);
  transition: background .15s;
}
.rubro-tile:hover .rubro-tile__icon {
  background: var(--brand);
  color: #fff;
}
.rubro-tile__name {
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
.rubro-tile__count {
  font-size: .72rem;
  color: var(--text-muted);
  background: var(--ground);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* ── Negocio Cards ── */
.negocios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 480px) {
  .negocios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .negocios-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .negocios-grid { grid-template-columns: repeat(4, 1fr); }
}

.neg-card {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.neg-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.neg-card__img {
  height: 140px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 10px;
}
.neg-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.neg-card__img-placeholder {
  font-size: 2.5rem;
  color: var(--brand-mid);
  opacity: .6;
}
.neg-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.neg-card__nombre {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.3;
}
.neg-card__cat {
  font-size: .78rem;
  color: var(--brand);
  font-weight: 500;
}
.neg-card__loc {
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}
.neg-card__desc {
  font-size: .82rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  flex: 1;
}
.neg-card__footer {
  padding: 10px 14px 14px;
  display: flex;
  gap: 6px;
}

/* ── Buttons ── */
.btn-primary {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 600;
  transition: background .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover { background: var(--navy); color: #fff; text-decoration: none; }

.btn-secondary {
  background: var(--ground);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 500;
  transition: background .15s, border-color .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-secondary:hover { background: var(--border); text-decoration: none; color: var(--text); }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: .9rem;
  font-weight: 700;
  transition: background .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-whatsapp:hover { background: #1fad54; color: #fff; text-decoration: none; }

.btn-call {
  background: var(--brand-light);
  color: var(--brand);
  border: 1.5px solid var(--brand-mid);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: .9rem;
  font-weight: 700;
  transition: background .15s, color .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.btn-call:hover { background: var(--brand); color: #fff; text-decoration: none; }

.btn-map {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-map:hover { background: var(--ground); color: var(--text); text-decoration: none; }

.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, #e05400 100%);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  color: #fff;
}
.cta-banner__title {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.cta-banner__sub {
  opacity: .9;
  margin-bottom: 24px;
  font-size: .95rem;
}
.cta-banner__btn {
  background: #fff;
  color: var(--orange);
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  transition: transform .15s, box-shadow .15s;
}
.cta-banner__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  text-decoration: none;
  color: var(--orange-dark);
}

/* ── Placeholder sections (próximamente) ── */
.prox-card {
  background: var(--card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
}
.prox-card__icon { font-size: 2.5rem; margin-bottom: 12px; }
.prox-card__title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.prox-card__badge {
  display: inline-block;
  background: var(--ground);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  margin-top: 8px;
}

/* ── Ficha page ── */
.ficha-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 24px 0;
}
@media (min-width: 900px) {
  .ficha-layout { grid-template-columns: 1fr 340px; align-items: start; }
}

.ficha-main {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
}
.ficha-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
.ficha-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--brand-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  overflow: hidden;
}
.ficha-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ficha-header__info { flex: 1; min-width: 0; }
.ficha-nombre {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  word-break: break-word;
}
.ficha-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 600;
}
.badge-cat { background: var(--brand-light); color: var(--brand); }
.badge-loc { background: var(--ground); color: var(--text-muted); border: 1px solid var(--border); }
.badge-activo { background: var(--green-bg); color: var(--green); }

/* Acciones principales */
.ficha-actions {
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

/* Secciones de la ficha */
.ficha-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.ficha-section:last-child { border-bottom: none; }
.ficha-section__title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.ficha-desc {
  color: var(--text);
  line-height: 1.7;
  font-size: .95rem;
  white-space: pre-line;
}

/* Contact list */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
}
.contact-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--ground);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-val { color: var(--text); }
.contact-val a { color: var(--brand); font-weight: 500; }

/* Social */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: .85rem;
  color: var(--text);
  font-weight: 500;
  transition: border-color .15s, background .15s;
}
.social-link:hover { border-color: var(--brand); background: var(--brand-light); text-decoration: none; color: var(--brand); }

/* Sidebar */
.ficha-sidebar {}
.ficha-sidebar-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 14px;
}
.ficha-sidebar-card__title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Placeholder futuro */
.ficha-prox {
  background: var(--ground);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}
.ficha-prox__badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

/* ── Directorio / listados ── */
.filtros-bar {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.filtros-bar label { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.filtros-bar select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: .9rem;
  background: var(--ground);
  color: var(--text);
  cursor: pointer;
  outline: none;
}
.filtros-bar select:focus { border-color: var(--brand); }

.resultados-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.resultados-count {
  font-size: .85rem;
  color: var(--text-muted);
}
.resultados-count strong { color: var(--text); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: .85rem;
  font-weight: 500;
  transition: background .15s, border-color .15s;
}
.page-link:hover { background: var(--brand-light); border-color: var(--brand); color: var(--brand); text-decoration: none; }
.page-link.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.page-link.disabled { opacity: .4; pointer-events: none; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--text-muted);
  padding: 12px 0 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--brand); }
.breadcrumb__sep { color: var(--border); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state__icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state__title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state__sub { font-size: .9rem; margin-bottom: 20px; }

/* Zonas grid */
.zonas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.zona-chip {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  transition: border-color .15s, background .15s;
}
.zona-chip:hover { border-color: var(--brand); background: var(--brand-light); color: var(--brand); text-decoration: none; }
.zona-chip__count {
  font-size: .75rem;
  background: var(--ground);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

/* ── Footer ── */
.pub-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 40px 0 24px;
  margin-top: 60px;
}
.pub-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
@media (min-width: 600px) {
  .pub-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
.pub-footer__brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.pub-footer__tagline { font-size: .85rem; line-height: 1.5; }
.pub-footer__col-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  margin-bottom: 12px;
}
.pub-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pub-footer__links a {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  transition: color .15s;
}
.pub-footer__links a:hover { color: #fff; text-decoration: none; }
.pub-footer__links .soon { opacity: .4; pointer-events: none; cursor: default; }
.pub-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.pub-footer__bottom a { color: rgba(255,255,255,.5); }
.pub-footer__bottom a:hover { color: rgba(255,255,255,.8); }

/* ── Utilities ── */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; }

/* ── Page title (for listing pages) ── */
.page-hero {
  background: var(--navy);
  padding: 32px 0 40px;
  position: relative;
  margin-bottom: -24px;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 28px;
  background: var(--ground);
  clip-path: ellipse(60% 100% at 50% 100%);
  pointer-events: none;
}
.farm-filters {
  position: relative;
  z-index: 1;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.6); }
.page-hero .breadcrumb { color: rgba(255,255,255,.45); }
.page-hero .breadcrumb__sep { color: rgba(255,255,255,.25); }
.page-hero__title {
  color: #fff;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-top: 10px;
  line-height: 1.2;
}
.page-hero__sub {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  margin-top: 6px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Print ── */
@media print {
  .pub-nav, .pub-footer, .ficha-actions, .cta-banner { display: none; }
}

/* ══════════════════════════════════════════════════════════
   FARMACIAS DE TURNO
══════════════════════════════════════════════════════════ */

/* Cruz verde en nav — selector inline en header_public.php */

/* Filtros */
.farm-filters {
  background: #fff;
  border-bottom: 1px solid #e5e9f0;
  padding: 14px 0;
}
.farm-filters__form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.farm-filters__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.farm-filters__group label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.farm-filter-input {
  border: 1.5px solid #d0d8e8;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: .9rem;
  color: var(--navy);
  background: #f8fafd;
  outline: none;
  transition: border-color .15s;
}
.farm-filter-input:focus { border-color: var(--green); background: #fff; }

.btn-farm-filter {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
}
.btn-farm-filter:hover { background: #145e30; }
.farm-cross-sm { font-size: 1rem; }

.btn-farm-reset {
  font-size: .85rem;
  color: var(--brand);
  text-decoration: underline;
  align-self: center;
}
.btn-farm-reset:hover { color: var(--navy); }

/* Resultados */
.farm-results {
  padding: 32px 0 64px;
}
.farm-count {
  font-size: .88rem;
  color: #6a7a96;
  margin-bottom: 20px;
}

/* Grid de cards */
.farm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.farm-card {
  background: #fff;
  border: 1.5px solid #e5e9f0;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .15s, border-color .15s;
  position: relative;
}
.farm-card:hover {
  box-shadow: 0 4px 18px rgba(26,122,64,.12);
  border-color: #b2d8c0;
}
.farm-card__cross {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 1.3rem;
  color: var(--green);
  opacity: .5;
  line-height: 1;
}
.farm-card__body {
  padding: 18px 18px 14px;
}
.farm-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
  padding-right: 28px;
}
.farm-card__zona {
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 10px;
}
.farm-card__dir,
.farm-card__turno {
  font-size: .84rem;
  color: #5a6a88;
  margin: 0 0 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.farm-card__dir svg,
.farm-card__turno svg { flex-shrink: 0; margin-top: 2px; }

.farm-card__footer {
  border-top: 1px solid #e9edf5;
  padding: 10px 14px;
  display: flex;
  gap: 8px;
}
.farm-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 5px;
  text-decoration: none;
  transition: background .15s;
}
.farm-btn--tel {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid #b2d8c0;
}
.farm-btn--tel:hover { background: #c9ead6; }
.farm-btn--wa {
  background: #e8f5e9;
  color: #1a7a40;
  border: 1px solid #a5d6a7;
}
.farm-btn--wa:hover { background: #c8e6c9; }

/* Cruz decorativa grande */
.farm-cross { font-size: 2rem; color: var(--green); margin-right: 6px; vertical-align: middle; }

/* Estado vacío */
.farm-empty {
  text-align: center;
  padding: 60px 20px;
  color: #6a7a96;
}
.farm-cross--empty {
  display: block;
  font-size: 3rem;
  opacity: .3;
  margin-bottom: 16px;
}
.farm-empty p { font-size: 1rem; margin-bottom: 16px; }

/* Responsive */
@media (max-width: 600px) {
  .farm-filters__form { flex-direction: column; align-items: stretch; }
  .btn-farm-filter, .btn-farm-reset { width: 100%; justify-content: center; text-align: center; }
  .farm-grid { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════
   EMPLEO — Etapa 7
   ════════════════════════════════════════════════ */

/* Hero */
.emp-hero { background:linear-gradient(135deg,#1457a8 0%,#0d3d7a 100%); color:#fff; padding:3rem 1.5rem 2.5rem; text-align:center; }
.emp-hero__title { font-size:clamp(1.6rem,4vw,2.4rem); font-weight:800; margin-bottom:.75rem; line-height:1.2; }
.emp-hero__sub { font-size:1.05rem; opacity:.9; max-width:520px; margin:0 auto 1.75rem; }

/* CTA buttons en hero */
.btn-emp-cta { display:inline-block; background:#1a7a40; color:#fff; font-weight:700; padding:12px 28px; border-radius:10px; text-decoration:none; font-size:1rem; transition:background .2s; }
.btn-emp-cta:hover { background:#135c30; color:#fff; }
.btn-emp-token { display:inline-block; color:rgba(255,255,255,.8); font-size:.9rem; text-decoration:underline; margin-left:16px; }
.btn-emp-token:hover { color:#fff; }

/* Barra de filtros */
.emp-filters-bar { background:#f4f7fb; border-bottom:1px solid #dde3ee; padding:1rem 0; position:sticky; top:0; z-index:90; }
.emp-filters { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem; }

/* Tabs tipo */
.emp-tab-group { display:flex; gap:4px; }
.emp-tab { display:inline-block; padding:.35rem .85rem; border-radius:100px; font-size:.85rem; font-weight:600; text-decoration:none; color:#6b7280; background:#fff; border:1.5px solid #d1d5db; transition:all .2s; }
.emp-tab:hover { border-color:#1457a8; color:#1457a8; }
.emp-tab--active { background:#1457a8; color:#fff !important; border-color:#1457a8; }
.emp-tab--busco.emp-tab--active { background:#1457a8; }
.emp-tab--ofrezco.emp-tab--active { background:#1a7a40; border-color:#1a7a40; }

.emp-filter-select,.emp-filter-input { padding:.45rem .8rem; border:1.5px solid #d1d5db; border-radius:8px; font-size:.9rem; background:#fff; color:#1a1a2e; height:38px; }
.emp-filter-select:focus,.emp-filter-input:focus { outline:none; border-color:#1457a8; }
.emp-filter-btn { background:#1457a8; color:#fff; border:none; border-radius:8px; padding:.45rem 1.1rem; font-weight:700; font-size:.9rem; cursor:pointer; height:38px; }
.emp-filter-btn:hover { background:#0d3d7a; }
.emp-filter-clear { color:#6b7280; font-size:.88rem; text-decoration:underline; white-space:nowrap; }

/* Resultados */
.emp-resultados { padding:2rem 0 3rem; }
.emp-total { font-size:.88rem; color:#6b7280; margin-bottom:1.25rem; }

/* Grid de avisos */
.emp-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:1.25rem; }

/* Tarjeta de aviso */
.emp-card { background:#fff; border-radius:14px; box-shadow:0 2px 12px rgba(20,87,168,.09); padding:1.25rem 1.25rem 1rem; display:flex; flex-direction:column; border-top:4px solid #dde3ee; transition:box-shadow .2s,transform .2s; }
.emp-card:hover { box-shadow:0 6px 24px rgba(20,87,168,.16); transform:translateY(-2px); }
.emp-card--busco { border-top-color:#1457a8; }
.emp-card--ofrezco { border-top-color:#1a7a40; }

.emp-card__head { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; margin-bottom:.65rem; }
.emp-card__badge { font-size:.72rem; font-weight:700; padding:.2rem .65rem; border-radius:100px; color:#fff; }
.emp-card__badge--busco { background:#1457a8; }
.emp-card__badge--ofrezco { background:#1a7a40; }
.emp-card__rubro { font-size:.75rem; background:#f0f4ff; color:#1457a8; padding:.15rem .6rem; border-radius:100px; font-weight:600; }

.emp-card__titulo { font-size:1.02rem; font-weight:700; color:#1a1a2e; margin-bottom:.5rem; line-height:1.35; }
.emp-card__titulo a { color:inherit; text-decoration:none; }
.emp-card__titulo a:hover { color:#1457a8; }

.emp-card__desc { font-size:.87rem; color:#4a5568; line-height:1.55; flex:1; margin-bottom:.85rem; }

.emp-card__meta { display:flex; flex-wrap:wrap; gap:.4rem .85rem; font-size:.8rem; color:#6b7280; margin-bottom:.85rem; }
.emp-card__loc svg { margin-right:2px; }
.emp-card__modalidad { background:#f0f4ff; color:#1457a8; padding:.15rem .55rem; border-radius:5px; font-size:.75rem; font-weight:600; }
.emp-card__fecha { margin-left:auto; }

.emp-card__footer { display:flex; align-items:center; justify-content:space-between; border-top:1px solid #f0f0f0; padding-top:.75rem; gap:.5rem; flex-wrap:wrap; }
.emp-card__contacto { font-size:.8rem; color:#4a5568; max-width:60%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.emp-card__ver { font-size:.83rem; font-weight:700; color:#1457a8; text-decoration:none; white-space:nowrap; }
.emp-card__ver:hover { text-decoration:underline; }

/* Empty state */
.emp-empty { text-align:center; padding:3.5rem 1rem; color:#6b7280; }
.emp-empty p { font-size:1rem; margin:1rem 0 1.5rem; }

/* Paginación */
.emp-paginacion { display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; margin-top:2.5rem; }
.emp-pag-link { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:8px; font-weight:700; font-size:.9rem; text-decoration:none; color:#1457a8; background:#fff; border:1.5px solid #d1d5db; transition:all .2s; }
.emp-pag-link:hover { background:#e8f0fb; border-color:#1457a8; }
.emp-pag-link--active { background:#1457a8; color:#fff; border-color:#1457a8; }

@media(max-width:640px){
  .emp-filters { flex-direction:column; align-items:stretch; }
  .emp-tab-group { width:100%; }
  .emp-tab { flex:1; text-align:center; }
  .emp-filter-select,.emp-filter-input,.emp-filter-btn { width:100%; }
  .emp-grid { grid-template-columns:1fr; }
}

/* ── Horario widget (ficha pública) ── */
.contact-item-top { align-items: flex-start; }
.hor-widget { flex: 1; min-width: 0; }

.hor-details { font-size: .875rem; }
.hor-details[open] .hor-toggle-txt::after { content: ' ▴'; }
.hor-details:not([open]) .hor-toggle-txt::after { content: ' ▾'; }

.hor-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  user-select: none;
  outline: none;
}
.hor-summary::-webkit-details-marker { display: none; }

.hor-hoy-wrap { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.hor-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hor-badge {
  font-size: .75rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 8px;
}
.hor-abierto { background: var(--green-bg); color: var(--green); }
.hor-cerrado { background: #fde8e8; color: #b91c1c; }

.hor-horas {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}

.hor-toggle-txt {
  font-size: .8125rem;
  color: var(--brand);
  font-weight: 500;
  margin-left: 4px;
  white-space: nowrap;
}

.hor-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 16px;
  padding: 10px 12px;
  background: #f6f8fb;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.hor-fila {
  display: contents;
}

.hor-fila-dia {
  font-size: .8125rem;
  color: var(--text-muted);
  padding: 3px 0;
}

.hor-fila-hrs {
  font-size: .8125rem;
  color: var(--text);
  font-weight: 500;
  padding: 3px 0;
}

.hor-fila-cerrado { color: var(--text-muted); font-weight: 400; }

.hor-fila-hoy .hor-fila-dia,
.hor-fila-hoy .hor-fila-hrs {
  font-weight: 700;
  color: var(--brand);
}

/* ═══════════════════════════════════════════════════
   EMPLEO — Selector de intención (Etapa 7 UX refactor)
═══════════════════════════════════════════════════ */

/* Barra de intención */
.emp-intent-bar { background:#fff; border-bottom:1px solid #e5e9f2; padding:1.75rem 0 1.25rem; }
.emp-intent-pregunta { text-align:center; font-size:.88rem; font-weight:700; color:#6b7280; text-transform:uppercase; letter-spacing:.06em; margin-bottom:1rem; }

.emp-intent-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; max-width:680px; margin:0 auto; }

.emp-intent-card {
  display:flex; flex-direction:column; align-items:center; text-align:center;
  padding:1.4rem 1.25rem 1.25rem;
  border:2px solid #e5e9f2; border-radius:14px;
  text-decoration:none; color:inherit;
  background:#fafbfd;
  transition:border-color .2s, background .2s, box-shadow .2s, transform .15s;
  cursor:pointer;
}
.emp-intent-card:hover {
  border-color:#1457a8; background:#f0f5ff;
  box-shadow:0 4px 20px rgba(20,87,168,.12);
  transform:translateY(-2px);
  text-decoration:none; color:inherit;
}
.emp-intent-card--active.emp-intent-card--trabajar {
  border-color:#1457a8; background:#e8f0fb;
  box-shadow:0 4px 20px rgba(20,87,168,.15);
}
.emp-intent-card--active.emp-intent-card--personal {
  border-color:#1a7a40; background:#e6f4ec;
  box-shadow:0 4px 20px rgba(26,122,64,.15);
}
.emp-intent-icon { font-size:2.25rem; margin-bottom:.65rem; line-height:1; }
.emp-intent-label { font-size:1.05rem; font-weight:800; color:#1a1a2e; margin-bottom:.4rem; }
.emp-intent-card--active.emp-intent-card--trabajar .emp-intent-label { color:#1457a8; }
.emp-intent-card--active.emp-intent-card--personal .emp-intent-label { color:#1a7a40; }
.emp-intent-desc { font-size:.83rem; color:#6b7280; line-height:1.5; }

.emp-intent-todos { text-align:center; margin-top:.85rem; font-size:.85rem; }
.emp-intent-todos a { color:#9ca3af; text-decoration:underline; }
.emp-intent-todos a:hover { color:#6b7280; }
/* Paso 2: barra compacta cuando ya hay selección */
.emp-seleccion-bar { background:#fff; border-bottom:1px solid #e5e9f2; padding:.6rem 0; }
.emp-seleccion-wrap { display:flex; align-items:center; gap:.6rem; }
.emp-seleccion-icono { font-size:1.1rem; line-height:1; }
.emp-seleccion-label { font-size:.9rem; font-weight:700; color:#1a1a2e; }
.emp-seleccion-cambiar { font-size:.82rem; color:#9ca3af; text-decoration:underline; margin-left:.25rem; }
.emp-seleccion-cambiar:hover { color:#6b7280; }

/* Filtros + CTA en la misma barra */
.emp-filters-wrap { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; justify-content:space-between; }
.emp-filters { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem; flex:1; }
.emp-cta-bar { display:flex; align-items:center; gap:.75rem; white-space:nowrap; flex-shrink:0; }

/* Variante compacta del botón CTA */
.btn-emp-cta--sm { font-size:.88rem; padding:8px 18px; }
.btn-emp-token--dark { color:#6b7280; margin-left:0; }
.btn-emp-token--dark:hover { color:#1a1a2e; }

/* Encabezado contextual de resultados */
.emp-contexto { padding:1.75rem 0 .25rem; }
.emp-contexto__titulo { font-size:1.15rem; font-weight:800; color:#1a1a2e; margin-bottom:.3rem; }
.emp-contexto__sub { font-size:.88rem; color:#6b7280; }

/* Mobile */
@media(max-width:600px) {
  .emp-intent-grid { grid-template-columns:1fr; }
  .emp-filters-wrap { flex-direction:column; align-items:stretch; }
  .emp-filters { flex-direction:column; align-items:stretch; }
  .emp-filter-select,.emp-filter-input,.emp-filter-btn { width:100%; }
  .emp-cta-bar { flex-direction:column; align-items:stretch; text-align:center; }
  .emp-cta-bar .btn-emp-cta { display:block; text-align:center; }
}
