/* =====================================================================
   ConectaSevilla · styles.css
   Estilos propios. Tailwind (CDN) se sigue usando para utilidades sueltas.
   ===================================================================== */

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #f1f5f9;
  --soft: #f8fafc;
  --primary: #10b981;
  --primary-600: #059669;
  --primary-50: #ecfdf5;
  --lime: #a3e635;
  --lime-600: #65a30d;
  --amber: #f59e0b;
  --amber-50: #fffbeb;
  --rose: #e11d48;
  --rose-50: #fff1f2;
  --wa: #059669;
  --radius: 20px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --primary-color: var(--primary);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(16, 185, 129, .45); outline-offset: 2px; border-radius: 8px; }

/* ---------------------------------------------------------------------
   CABECERA
   --------------------------------------------------------------------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: transparent;
  position: relative;
  z-index: 30;
  transition: background .2s, border-color .2s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: #fff; border-bottom-color: var(--line); }
.site-header.is-solid .brand-name { color: var(--ink); }
.site-header.is-solid .brand-on { color: var(--lime-600); }
.site-header.is-solid .brand-tagline { color: var(--muted); }
.site-header.is-solid .hamburger { color: var(--ink); }
.site-header.is-solid .hdr-link { color: var(--ink-2); }
.site-header.is-solid .hdr-link:hover { background: var(--line-2); }
@media (max-width: 640px) { .site-header { padding: .85rem 1rem; } }

.logo { font-weight: bold; font-size: 1.2rem; text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 12px; position: relative; }

.hdr-link {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  color: #fff; text-decoration: none; transition: background .2s; position: relative;
}
.hdr-link:hover { background: rgba(255, 255, 255, .15); }

.btn-publicar {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
  color: #1a1a1a;
  transition: background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-publicar:hover { background-color: #f5f5f5; }

.user-menu-wrapper { position: relative; }

.icon-btn {
  background: #e0e0e0;
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0; overflow: hidden; position: relative;
}
.icon-btn svg { width: 24px; height: 24px; fill: #666; }
.icon-btn .avatar { width: 40px; height: 40px; font-size: .95rem; }

.badge-dot {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--rose); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

/* Submenú usuario */
.dropdown-menu {
  display: none;
  position: absolute; right: 0; top: 50px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
  width: 240px;
  overflow: hidden;
  z-index: 100;
  flex-direction: column;
  padding: 8px 0;
}
.dropdown-menu.active { display: flex; }
.dropdown-head { padding: 10px 20px 12px; border-bottom: 1px solid #eee; margin-bottom: 4px; }
.dropdown-head strong { display: block; font-size: .95rem; }
.dropdown-head span { display: block; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-item {
  padding: 12px 20px;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: none; border: 0; width: 100%; text-align: left; font-size: .95rem;
}
.dropdown-item:hover { background-color: #f5f5f5; }
.dropdown-item .count { background: var(--rose); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 800; }
.dropdown-divider { height: 1px; background-color: #eee; margin: 4px 0; }

/* Menú lateral */
#sidebar-overlay { transition: opacity .3s ease-in-out; }
#sidebar-menu { transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
.side-link {
  width: 100%; padding: .85rem .5rem; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  color: #1e293b; text-decoration: none;
}
.side-link:hover { color: #000; }
.side-link .count { background: var(--rose); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 8px; font-weight: 800; }

/* ---------------------------------------------------------------------
   BUSCADOR (diseño original del index nuevo)
   --------------------------------------------------------------------- */
.search-bar {
  background: white;
  border-radius: 30px;
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
  position: relative;
}
.search-bar--page { border: 1px solid var(--line); box-shadow: 0 6px 20px -10px rgba(15, 23, 42, .25); }

.input-group {
  flex: 1;
  position: relative;
  padding: 8px 16px;
  border-right: 1px solid #eee;
  text-align: left;
  min-width: 0;
}
.input-group:last-of-type { border-right: none; }
.input-group label {
  display: block;
  font-size: .75rem;
  font-weight: bold;
  color: #555;
  margin-bottom: 2px;
  text-align: left;
}
.input-group input {
  width: 100%;
  border: none; outline: none;
  font-size: .95rem;
  background: transparent;
  color: #1e293b;
  text-align: left;
  font-weight: 600;
  text-overflow: ellipsis;
}
.input-group input[readonly] { cursor: pointer; }
.input-group input::placeholder { color: #1e293b; opacity: .9; font-weight: 600; }

.btn-buscar {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0 24px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-buscar:hover { background-color: var(--primary-600); }

.popup-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px); left: 0;
  width: 100%;
  min-width: 260px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
  z-index: 50;
  max-height: 290px;
  overflow-y: auto;
  padding: 8px 0;
  text-align: left;
}
.popup-menu.active { display: block; }

.location-option {
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  font-size: .9rem;
  color: #333;
  text-align: left;
  width: 100%;
  background: none; border: 0;
}
.location-option:hover, .location-option:focus-visible { background-color: #f5f5f5; }
.location-option svg { width: 18px; height: 18px; fill: #555; flex-shrink: 0; }
.location-option i { color: #94a3b8; width: 16px; text-align: center; }
.location-option.is-empty { color: var(--muted); cursor: default; font-size: .85rem; }
.location-option.is-empty:hover { background: none; }

/* Calendario */
.calendar-popup {
  display: none;
  position: absolute;
  top: calc(100% + 8px); left: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
  padding: 16px;
  z-index: 50;
  width: 300px;
  color: #333;
}
.calendar-popup.active { display: block; }
.calendar-header {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: bold; margin-bottom: 12px;
}
.cal-nav {
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--line-2);
  cursor: pointer; color: var(--ink-2); display: grid; place-items: center;
}
.cal-nav:hover { background: var(--line); }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: .82rem;
}
.calendar-day-header { font-weight: bold; color: #777; padding-bottom: 4px; font-size: .72rem; }
.calendar-day {
  padding: 7px 0; cursor: pointer; border-radius: 50%;
  border: 0; background: none; font: inherit; color: inherit;
}
.calendar-day:hover { background-color: #eee; }
.calendar-day.today { box-shadow: inset 0 0 0 1.5px var(--primary); }
.calendar-day.selected { background-color: var(--primary); color: white; }
.calendar-day:disabled { color: #cbd5e1; cursor: not-allowed; background: none; }
.calendar-foot { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.calendar-foot button { background: none; border: 0; font-weight: 700; color: var(--primary-600); cursor: pointer; font-size: .85rem; }

.description-text { margin-top: 24px; text-align: center; font-size: 1.05rem; color: #2b2b2b; line-height: 1.5; font-weight: 500; }

/* Hero: el calendario puede sobresalir hacia abajo sin cortarse */
.hero-banner { overflow-x: clip; overflow-y: visible; }

/* Campos de fecha (salida + vuelta) con un único calendario */
.date-range { flex: 1.5; display: flex; position: relative; min-width: 0; }
.date-range > .input-group { flex: 1; }
.date-range > .input-group:first-child { border-right: 1px solid #eee; }
/* La vuelta solo aparece tras elegir la salida, como botón «Elegir fecha de vuelta» */
.date-range:not(.has-date) > [data-field="return"] { display: none; }
.date-range:not(.has-date) > .input-group:first-child { border-right: none; }
.date-range:not(.has-date) { flex: 1; }   /* sin vuelta, la salida ocupa lo mismo que origen/destino (sin hueco) */
.date-range { transition: flex-grow .2s ease; }
/* Buscador del inicio (escritorio): más compacto sin vuelta, y se ensancha al elegir la salida */
@media (min-width: 769px) {
  #home-search .search-bar, #results-search .search-bar { width: min(100%, 700px); margin-left: auto; margin-right: auto; transition: width .25s ease; }
  #home-search .search-bar.has-date, #results-search .search-bar.has-date { width: 100%; }
}
.date-range > [data-field="return"] input::placeholder { color: var(--primary-600); font-weight: 700; }
.date-range > [data-field="return"] input:placeholder-shown { cursor: pointer; }
.date-range > .input-group:last-of-type { border-right: none; }
.calendar-popup--range { width: max-content; max-width: calc(100vw - 24px); left: auto; right: 0; padding: 10px 14px 8px; border-radius: 14px; }
.cal-tabs { display: flex; gap: 6px; margin-bottom: 4px; }
.cal-tab { flex: 1; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 3px 10px; cursor: pointer; }
.cal-tab small { display: block; font-size: .6rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .03em; }
.cal-tab strong { font-size: .78rem; color: #0f172a; }
.cal-tab.on { border-color: var(--primary); background: #ecfdf5; }
.cal-hint { font-size: .7rem; color: #64748b; margin: 0 0 4px; font-weight: 600; }
.cal-months { display: flex; gap: 18px; align-items: flex-start; }
.cal-month { width: 212px; }
.calendar-popup--range .calendar-header { margin-bottom: 4px; font-size: .82rem; }
.calendar-popup--range .cal-nav, .cal-nav-spacer { width: 24px; height: 24px; font-size: .7rem; }
.calendar-popup--range .calendar-days { gap: 1px; font-size: .74rem; }
.calendar-popup--range .calendar-day { padding: 4px 0; }
.calendar-popup--range .calendar-day-header { font-size: .64rem; padding-bottom: 2px; }
.calendar-popup--range .calendar-foot { margin-top: 6px; padding-top: 6px; }
.calendar-popup--range .calendar-foot button { font-size: .75rem; }
.calendar-foot .btn-oneway { background: #fffbeb; color: #b45309; border: 1.5px solid #f59e0b; border-radius: 999px; padding: 3px 14px; }
.calendar-foot .btn-oneway:hover { background: #fef3c7; }
.calendar-foot .btn-oneway.on { background: #f59e0b; color: #fff; }
.calendar-day.in-range { background: #d1fae5; border-radius: 0; }
.calendar-day.is-start.is-end { border-radius: 50%; }
.calendar-day.is-start:not(.is-end) { border-radius: 50% 0 0 50%; }
.calendar-day.is-end:not(.is-start) { border-radius: 0 50% 50% 0; }
.calendar-day.selected:hover { background-color: var(--primary-600); }
.calendar-foot { gap: 12px; }

/* Origen/destino: las opciones se ven enteras, en una sola línea */
.popup-menu { width: max-content; min-width: 100%; max-width: min(560px, calc(100vw - 24px)); }
.place-opt, .place-opt .place-txt { white-space: nowrap; }
.place-opt .place-txt strong, .place-opt .place-txt small { overflow: visible; text-overflow: clip; white-space: nowrap; }
.place-opt .place-txt { min-width: max-content; }
@media (min-width: 769px) {
  .search-bar > .input-group[data-field] { transition: flex-grow .2s ease; }
  .search-bar > .input-group:focus-within { flex-grow: 1.7; }
}

@media (max-width: 768px) {
  .date-range { flex-direction: column; }
  .date-range > .input-group:first-child { border-right: none; }
  /* Móvil: el calendario va en el flujo, justo debajo del campo que se edita (sin flotar al final) */
  .calendar-popup--range { position: static; width: 100%; max-width: none; margin: 4px 0 8px; box-shadow: none; border: 1px solid var(--line); background: #f8fafc; }
  .calendar-popup--range .cal-tabs, .calendar-popup--range .cal-hint { display: none; }
  .calendar-popup--range .calendar-day { padding: 8px 0; }
  .calendar-popup--range .calendar-days { font-size: .9rem; }
  .cal-months { flex-direction: column; gap: 14px; }
  .cal-month { width: 100%; }
  .calendar-foot { flex-wrap: wrap; }
  .popup-menu { max-width: none; }
  .place-opt { font-size: .85rem; }
  .search-bar {
    flex-direction: column;
    border-radius: 24px;
    padding: 12px 16px;
    gap: 0;
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
  }
  .input-group { border-right: none; border-bottom: 1px solid #e2e8f0; padding: 16px 8px; }
  .input-group:last-of-type { border-bottom: none; margin-bottom: 8px; }
  /* Etiquetas ocultas solo a la vista (los lectores de pantalla las siguen leyendo) */
  .input-group label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .input-group input { font-size: 1.05rem; }
  .input-group input::placeholder { opacity: 1; }
  .btn-buscar { padding: 14px 24px; }
  .popup-menu, .calendar-popup { width: 100%; left: 0; min-width: 0; }
  .popup-menu { overflow-x: auto; }
}

/* Animaciones del diseño original */
@keyframes salirEntrar {
  0% { transform: translateX(0); opacity: 1; }
  40% { transform: translateX(120%); opacity: 0; }
  41% { transform: translateX(-120%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
.animacion-rueda:hover { animation: salirEntrar .8s cubic-bezier(.4, 0, .2, 1) forwards; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.bg-lemon-pastel {
  background-color: #fcf8ee;
  background-image: radial-gradient(#f0e6cb 1px, transparent 1px);
  background-size: 24px 24px;
}
@keyframes float-slow { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes float-reverse { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(8px) rotate(-3deg); } }
.animate-float { animation: float-slow 4s ease-in-out infinite; }
.animate-float-rev { animation: float-reverse 5s ease-in-out infinite; }

/* ---------------------------------------------------------------------
   VISTAS Y MAQUETACIÓN
   --------------------------------------------------------------------- */
#view-home { margin-top: -5rem; }

.page { max-width: 72rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.page-medium { max-width: 72rem; }
.page-narrow { max-width: 72rem; }
.page-tight { padding-top: 1.25rem; }

.h-page { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.h-section { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.h-card { font-size: 1.05rem; font-weight: 800; }
.lead { color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.back-link {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--ink-2); font-weight: 700; font-size: .92rem; text-decoration: none;
  background: none; border: 0; cursor: pointer; padding: .25rem 0; margin-bottom: 1rem;
}
.back-link:hover { color: var(--ink); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card-soft { background: var(--soft); border-color: var(--line-2); }
.card + .card { margin-top: 1rem; }

.divider { height: 1px; background: var(--line); margin: 1rem 0; border: 0; }

/* ---------------------------------------------------------------------
   BOTONES
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .95rem; line-height: 1.2;
  padding: .8rem 1.35rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none; pointer-events: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: var(--soft); border-color: #cbd5e1; }
.btn-soft { background: var(--line-2); color: var(--ink); }
.btn-soft:hover { background: var(--line); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #d97706; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #047857; }
.btn-danger { background: var(--rose); color: #fff; }
.btn-danger:hover { background: #be123c; }
.btn-danger-soft { background: #fff; color: #be123c; border-color: #fecdd3; }
.btn-danger-soft:hover { background: var(--rose-50); }
.btn-sm { padding: .5rem .95rem; font-size: .84rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link { color: var(--primary-600); font-weight: 700; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; font-size: inherit; }
.link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------
   FORMULARIOS
   --------------------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.label { display: block; font-size: .88rem; font-weight: 700; color: var(--ink-2); margin-bottom: .4rem; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.counter { font-size: .75rem; color: #64748b; font-weight: 700; }
.input, .select, .textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(225, 29, 72, .1); }
.input-lg { font-size: 1.15rem; padding: 1rem 1.1rem; font-weight: 600; }
.textarea { resize: vertical; min-height: 88px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: .35rem; line-height: 1.45; }
.error-text { font-size: .85rem; color: #be123c; margin-top: .4rem; font-weight: 600; display: flex; gap: .4rem; align-items: flex-start; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 3.2rem; }
.eye-btn {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: none;
  color: var(--muted); cursor: pointer; display: grid; place-items: center; font-size: 1.05rem;
}
.eye-btn:hover { background: var(--line-2); color: var(--ink); }
.check-row { display: flex; align-items: flex-start; gap: .65rem; font-size: .92rem; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.check-row input { width: 20px; height: 20px; accent-color: var(--primary); flex-shrink: 0; margin-top: 1px; cursor: pointer; }
.form-grid { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.seg { display: inline-flex; background: var(--line-2); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button {
  border: 0; background: none; padding: .55rem 1.1rem; border-radius: 999px;
  font-weight: 700; color: var(--ink-2); cursor: pointer; font-size: .95rem;
}
.seg button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .15); }

.stepper { display: inline-flex; align-items: center; gap: 1rem; }
.stepper button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; font-size: 1.1rem; color: var(--primary-600); cursor: pointer;
}
.stepper button:disabled { color: #cbd5e1; cursor: not-allowed; }
.stepper output { font-size: 1.6rem; font-weight: 800; min-width: 2ch; text-align: center; }

.section-block { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.section-block:first-of-type { border-top: 0; padding-top: .25rem; }
.section-block > h2 { font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem; }

/* ---------------------------------------------------------------------
   CHIPS, PÍLDORAS Y AVATARES
   --------------------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .7rem; border-radius: 999px;
  font-size: .76rem; font-weight: 700; line-height: 1.2;
  background: var(--line-2); color: var(--ink-2); white-space: nowrap;
}
.chip-green { background: var(--primary-50); color: #047857; }
.chip-lime { background: #ecfccb; color: #3f6212; }
.chip-amber { background: #fef3c7; color: #92400e; }
.chip-rose { background: #ffe4e6; color: #9f1239; }
.chip-sky { background: #e0f2fe; color: #075985; }
.chip-dark { background: var(--ink); color: #fff; }

.filter-chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: 2px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 700; font-size: .9rem; color: var(--ink-2); background: #fff;
  text-decoration: none; white-space: nowrap;
}
.filter-chip:hover { border-color: #cbd5e1; }
.filter-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-chip .n { font-size: .75rem; opacity: .7; }

.avatar {
  position: relative; display: inline-grid; place-items: center; flex-shrink: 0;
  border-radius: 50%; overflow: hidden; background: #e2e8f0; color: var(--ink-2);
  font-weight: 800; width: 44px; height: 44px; font-size: 1rem;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-xs { width: 28px; height: 28px; font-size: .75rem; }
.avatar-sm { width: 36px; height: 36px; font-size: .85rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.4rem; }
.avatar-xl { width: 104px; height: 104px; font-size: 2.2rem; }
.avatar.tone-amber { background: #fef3c7; color: #92400e; }
.avatar.tone-green { background: var(--primary-50); color: #047857; }

.rep { display: inline-flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.rep-up { color: #059669; }
.rep-down { color: #e11d48; }
.rep-empty { color: var(--muted); font-weight: 600; font-size: .8rem; }

/* ---------------------------------------------------------------------
   RESULTADOS: TARJETA DE VIAJE (estilo lista)
   --------------------------------------------------------------------- */
.results-top { background: var(--soft); border-bottom: 1px solid var(--line); }
.results-top .page { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.date-group { font-weight: 800; font-size: 1rem; margin: 1.75rem 0 .75rem; color: var(--ink); }
.date-group:first-child { margin-top: .5rem; }

.trip-card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s;
  margin-bottom: .9rem; overflow: hidden;
}
.trip-card:hover { border-color: #cbd5e1; box-shadow: var(--shadow); }
.trip-card.is-full { opacity: .6; }
.trip-card__body { display: flex; gap: 1rem; padding: 1.1rem 1.25rem .9rem; }
.trip-card__route { flex: 1; min-width: 0; }
.tc-line-row { display: flex; align-items: center; gap: .6rem; }
.tc-time { font-weight: 800; font-size: 1.15rem; }
.tc-line { flex: 1; position: relative; height: 2px; background: var(--ink); margin: 0 .2rem; }
.tc-line::before, .tc-line::after {
  content: ''; position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--ink); background: #fff; transform: translateY(-50%);
}
.tc-line::before { left: -6px; }
.tc-line::after { right: -6px; }
.tc-line span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #fff; padding: 0 .5rem; font-size: .78rem; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.tc-places { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .55rem; }
.tc-places > div:last-child { text-align: right; }
.tc-place { font-weight: 700; font-size: .98rem; line-height: 1.3; display: block; }
.tc-sub { font-size: .8rem; color: var(--muted); display: block; margin-top: .15rem; line-height: 1.3; overflow-wrap: anywhere; }
.trip-card__price { text-align: right; flex-shrink: 0; }
.price { font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.price sup { font-size: .55em; top: -.7em; margin-left: 1px; }
.price-free { font-weight: 800; font-size: 1.25rem; color: #047857; }
.price-note { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; margin-top: .3rem; }
.trip-card__foot {
  display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
  padding: .75rem 1.25rem; border-top: 1px solid var(--line-2);
}
.trip-card__foot .fa-car-side { color: var(--muted); font-size: 1.15rem; }
.tc-driver { font-weight: 700; font-size: .92rem; }
.tc-chips { margin-left: auto; display: flex; gap: .4rem; flex-wrap: wrap; }
@media (max-width: 560px) {
  .trip-card__body { padding: 1rem 1rem .8rem; }
  .trip-card__foot { padding: .7rem 1rem; }
  .tc-chips { margin-left: 0; width: 100%; }
  .price { font-size: 1.35rem; }
}


/* ---------------------------------------------------------------------
   RESULTADOS: LÍNEA DE TIEMPO (ruta · hilo · conductor)
   --------------------------------------------------------------------- */
.rt { position: relative; display: flex; flex-direction: column; gap: 0; margin-bottom: 1rem; }
.rt::before { content: ''; position: absolute; left: 50%; top: 14px; bottom: 14px; width: 4px; margin-left: -2px; background: #cbd5e1; border-radius: 2px; }
.rt-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; text-decoration: none; color: inherit; padding: .35rem 0; }
.rt-row.is-full { opacity: .6; }
.rt-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .75rem .9rem; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.rt-row:hover .rt-card { border-color: #cbd5e1; box-shadow: var(--shadow); }
.rt-node { justify-self: center; width: 16px; height: 16px; border-radius: 50%; background: #94a3b8; border: 3px solid #fff; position: relative; z-index: 1; }
.rt-row.is-first .rt-node { width: 38px; height: 38px; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-size: .95rem; border-width: 4px; box-shadow: 0 0 0 1px #d1fae5; }
.rt-row.is-first .rt-trip { background: #ecfdf5; border: 2px solid var(--primary); position: relative; }
.rt-row.is-first .rt-trip::after { content: ''; position: absolute; right: -9px; top: 50%; width: 14px; height: 14px; background: #ecfdf5; border-top: 2px solid var(--primary); border-right: 2px solid var(--primary); transform: translateY(-50%) rotate(45deg); }
.rt-gap { position: relative; z-index: 1; text-align: center; padding: .15rem 0; }
.rt-gap span { display: inline-block; background: #1e293b; color: #fff; font-size: .72rem; font-weight: 700; padding: .15rem .6rem; border-radius: 8px; }
.rt-time { font-weight: 800; font-size: 1rem; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.rt-time small { font-size: .72rem; color: var(--muted); font-weight: 700; }
.rt-labels { display: flex; justify-content: space-between; font-size: .72rem; font-weight: 700; color: var(--ink-2); margin-top: .2rem; }
.rt-route { display: flex; align-items: center; justify-content: space-between; gap: .4rem; font-size: .95rem; line-height: 1.25; }
.rt-route b { font-weight: 800; min-width: 0; overflow-wrap: break-word; }
.rt-route b:last-child { text-align: right; }
.rt-route i { flex: 1; text-align: center; color: var(--muted); font-size: .8rem; }
.rt-points { display: flex; justify-content: space-between; gap: .75rem; margin-top: .3rem; }
.rt-sub { font-size: .72rem; color: var(--muted); line-height: 1.25; overflow-wrap: anywhere; min-width: 0; }
.rt-sub:last-child { text-align: right; }
.rt-driver__top { display: flex; align-items: center; gap: .6rem; }
.rt-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.rt-who strong { font-size: .92rem; line-height: 1.2; overflow-wrap: anywhere; }
.rt-who .rep, .rt-who .rep-empty { font-size: .75rem; }
.rt-price { text-align: right; flex-shrink: 0; }
.rt-price .price { font-size: 1.15rem; }
.rt-price .price-note { font-size: .68rem; margin-top: .15rem; }
.rt-driver__foot { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; padding-top: .5rem; border-top: 1px solid var(--line-2); }
.rt-driver__foot:empty { display: none; }
.rt-seats { font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-right: auto; }
.rt-seats i { color: var(--muted); margin-right: .2rem; }
@media (max-width: 560px) {
  .rt-row { grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr); }
  .rt-card { padding: .6rem .65rem; border-radius: 14px; }
  .rt-route { font-size: .76rem; gap: .15rem; }
  .rt-route i { display: none; }
  .rt-card { padding: .55rem .5rem; }
  .rt-who strong { font-size: .82rem; }
  .rt-driver__top { flex-wrap: wrap; }
  .rt-driver__top .avatar { width: 32px; height: 32px; font-size: .8rem; }
  .rt-price { width: 100%; text-align: left; display: flex; align-items: baseline; gap: .3rem; }
  .rt-price .price-note { margin-top: 0; display: inline; }
  .rt-row.is-first .rt-node { width: 30px; height: 30px; font-size: .8rem; }
}

.skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.empty-state { text-align: center; padding: 2.5rem 1rem; }
.empty-state .empty-icon {
  width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 1rem;
  display: grid; place-items: center; font-size: 1.8rem;
  background: var(--primary-50); color: var(--primary-600);
}
.empty-state .empty-icon.amber { background: #fef3c7; color: #b45309; }
.empty-state h2 { font-weight: 800; font-size: 1.3rem; margin-bottom: .5rem; }
.empty-state p { color: var(--muted); max-width: 30rem; margin: 0 auto 1.25rem; line-height: 1.6; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }

/* ---------------------------------------------------------------------
   DETALLE DEL VIAJE
   --------------------------------------------------------------------- */
.detail-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .detail-aside { position: sticky; top: 1.25rem; } }

.tl { display: grid; grid-template-columns: auto 22px 1fr; column-gap: .9rem; }
.tl-time { font-weight: 800; font-size: 1.05rem; padding-top: 1px; min-width: 3.2rem; }
.tl-track { position: relative; display: flex; justify-content: center; }
.tl-track::before {
  content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--ink);
  background: #fff; margin-top: 5px; position: relative; z-index: 1;
}
.tl-track.has-line::after { content: ''; position: absolute; top: 18px; bottom: -6px; width: 3px; background: var(--ink); border-radius: 2px; }
.tl-body { padding-bottom: 1.4rem; min-width: 0; }
.tl-body:last-child { padding-bottom: 0; }
.tl-place { font-weight: 800; font-size: 1.05rem; line-height: 1.3; }
.tl-sub { color: var(--ink-2); font-size: .9rem; margin-top: .15rem; }
.tl-meta { color: var(--muted); font-size: .82rem; font-weight: 600; margin-top: .25rem; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; padding: .75rem 0; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.info-list li + li { border-top: 1px solid var(--line-2); }
.info-list i { color: var(--muted); width: 20px; text-align: center; margin-top: 3px; flex-shrink: 0; }
.quote { background: var(--soft); border-radius: 14px; padding: .9rem 1rem; color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.quote strong { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .2rem; }

.driver-row { display: flex; align-items: center; gap: .9rem; }
.driver-row .name { font-weight: 800; font-size: 1.05rem; }

.mobile-book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #fff; border-top: 1px solid var(--line);
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 1024px) { .mobile-book-bar { display: none; } }
@media (max-width: 1023px) { .has-mobile-bar { padding-bottom: 6rem; } }

/* ---------------------------------------------------------------------
   PANTALLAS DE ÉXITO Y LISTAS DE OPCIONES
   --------------------------------------------------------------------- */
.success-icon {
  width: 84px; height: 84px; border-radius: 50%; margin: .5rem auto 1.25rem;
  display: grid; place-items: center; font-size: 2.2rem;
  background: var(--primary-50); color: var(--primary-600);
  animation: pop .45s cubic-bezier(.2, .9, .3, 1.3) both;
}
.success-icon.amber { background: #fef3c7; color: #b45309; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.option-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.option-row {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem;
  text-decoration: none; color: inherit; background: #fff; border: 0; width: 100%; text-align: left; cursor: pointer;
}
.option-row + .option-row { border-top: 1px solid var(--line-2); }
.option-row:hover { background: var(--soft); }
.option-row .opt-icon {
  width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--line-2); color: var(--ink-2); font-size: 1.05rem;
}
.option-row .opt-icon.green { background: var(--primary-50); color: var(--primary-600); }
.option-row .opt-icon.amber { background: #fef3c7; color: #b45309; }
.option-row .opt-text { flex: 1; min-width: 0; }
.option-row strong { display: block; font-size: .98rem; }
.option-row small { display: block; color: var(--muted); font-size: .85rem; margin-top: .1rem; line-height: 1.4; }
.option-row .fa-chevron-right { color: #94a3b8; }

/* ---------------------------------------------------------------------
   ACCESO / REGISTRO
   --------------------------------------------------------------------- */
.auth-page { max-width: 30rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.auth-page h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: .6rem; }
.reg-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.reg-back { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); flex-shrink: 0; }
.reg-back:hover { background: var(--soft); }
.progress { flex: 1; height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .35s ease; }
.reg-step-label { font-size: .8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.dob-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: .75rem; }
.dob-row .input { text-align: center; }
.pw-rules { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .35rem; }
.pw-rules li { font-size: .88rem; color: var(--muted); display: flex; gap: .55rem; align-items: center; }
.pw-rules li i { width: 16px; text-align: center; }
.pw-rules li.ok { color: #047857; font-weight: 600; }
.alert { border-radius: 14px; padding: .9rem 1rem; font-size: .92rem; line-height: 1.5; display: flex; gap: .65rem; align-items: flex-start; }
.alert i { margin-top: 3px; }
.alert-rose { background: var(--rose-50); color: #9f1239; }
.alert-amber { background: var(--amber-50); color: #92400e; }
.alert-green { background: var(--primary-50); color: #065f46; }
.alert-soft { background: var(--soft); color: var(--ink-2); }
.or-line { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .85rem; margin: 1.5rem 0; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------------------------------------------------------------------
   MENSAJES
   --------------------------------------------------------------------- */
.msg-section { margin-top: 2rem; }
.msg-section > h2 { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; margin-bottom: .8rem; }
.msg-section > h2 .n { font-size: .8rem; color: var(--muted); font-weight: 700; }
.msg {
  display: flex; gap: .9rem; padding: 1.1rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem;
}
.msg.is-highlight { border-color: #fcd34d; background: #fffdf5; }
.msg.is-muted { background: var(--soft); }
.msg-body { flex: 1; min-width: 0; }
.msg-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.msg-top strong { font-size: .98rem; }
.msg-when { font-size: .8rem; color: var(--muted); font-weight: 600; }
.msg-route { font-weight: 800; margin-top: .3rem; font-size: 1rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.msg-route i { color: var(--muted); font-size: .8rem; }
.msg-text { color: var(--ink-2); font-size: .92rem; line-height: 1.55; margin-top: .35rem; }
.msg-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.msg-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.msg-sub { margin-top: .9rem; border-top: 1px solid var(--line-2); padding-top: .4rem; }
.passenger-row { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem 0; }
.passenger-row + .passenger-row { border-top: 1px dashed var(--line); }
.passenger-row .p-name { font-weight: 700; font-size: .93rem; }
.passenger-row .p-meta { font-size: .82rem; color: var(--muted); }
.history { margin-top: .5rem; }
.history > summary {
  cursor: pointer; list-style: none; font-weight: 700; color: var(--ink-2); font-size: .9rem;
  padding: .6rem 0; display: flex; align-items: center; gap: .5rem;
}
.history > summary::-webkit-details-marker { display: none; }
.history > summary i { transition: transform .2s; font-size: .75rem; }
.history[open] > summary i { transform: rotate(90deg); }

/* ---------------------------------------------------------------------
   TABLÓN
   --------------------------------------------------------------------- */
.req-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .req-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .req-grid { grid-template-columns: repeat(3, 1fr); } }
.req-card {
  display: flex; flex-direction: column; gap: .8rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s;
}
.req-card:hover { border-color: #fcd34d; box-shadow: var(--shadow); }
.req-card.is-own { border-color: #fcd34d; }
.req-top { display: flex; align-items: center; gap: .7rem; }
.req-top .who { flex: 1; min-width: 0; }
.req-top .who strong { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-route { font-weight: 800; font-size: 1.05rem; line-height: 1.35; }
.req-route i { color: var(--amber); font-size: .8rem; margin: 0 .3rem; }
.req-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.req-meta i { color: var(--amber); margin-right: .3rem; }
.req-notes { font-size: .88rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.req-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-2); padding-top: .75rem; margin-top: auto; font-size: .88rem; }
.req-foot .amount { font-weight: 800; }

.fuel-box { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; }
.fuel-box .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .2rem 0; font-size: .92rem; }
.fuel-box .row strong { font-size: 1.05rem; }
.fuel-box .big strong { font-size: 1.4rem; color: #047857; }
.fuel-box .foot { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .6rem; line-height: 1.5; }

.board-head {
 background-color: #f4f2ed;
  border: 1px solid #e6e2d8; border-radius: 28px; padding: 1.6rem 2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
}

/* ---------------------------------------------------------------------
   PUBLICAR (landing tipo calculadora)
   --------------------------------------------------------------------- */
.pub-hero { background: #ecfdf5; }
.pub-hero .page { padding-top: 2.5rem; padding-bottom: 3.5rem; }
.calc-card { background: #fff; border: 2px solid var(--primary); border-radius: 24px; overflow: visible; max-width: 26rem; width: 100%; }
.calc-row { padding: .85rem 1.25rem; border-bottom: 1px solid var(--line-2); }
.calc-row label { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.calc-row select { width: 100%; border: 0; font-size: 1.02rem; font-weight: 700; color: var(--ink); background: transparent; padding: .15rem 0; cursor: pointer; font-family: inherit; }
.calc-row select:focus { outline: none; }
.calc-result { padding: 1.1rem 1.25rem 1.3rem; font-size: 1.15rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.calc-result b { color: var(--primary-600); }
.calc-cta { border-radius: 0 0 22px 22px; display: block; text-align: center; background: var(--primary); color: #fff; font-weight: 800; padding: 1.1rem; text-decoration: none; font-size: 1.05rem; }
.calc-cta:hover { background: var(--primary-600); }
.pillar { text-align: left; }
.pillar .pillar-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1rem; }
.pillar h3 { font-weight: 800; font-size: 1.2rem; margin-bottom: .45rem; }
.pillar p { color: var(--ink-2); line-height: 1.6; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }

.fixed-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: center;
  padding: .85rem 1rem calc(.85rem + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(255, 255, 255, .98) 60%, rgba(255, 255, 255, 0));
  pointer-events: none;
}
.fixed-cta .btn { pointer-events: auto; box-shadow: 0 10px 25px -8px rgba(16, 185, 129, .6); min-width: 240px; }
body[data-view="publicar"] #site-footer { padding-bottom: 84px; }

/* ---------------------------------------------------------------------
   AYUDA
   --------------------------------------------------------------------- */
.help-nav { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
.help-section { scroll-margin-top: 1.5rem; padding-top: 2.5rem; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.faq details + details { margin-top: .6rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 1.1rem; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i.chev { color: #94a3b8; transition: transform .2s; }
.faq details[open] summary i.chev { transform: rotate(180deg); }
.faq .faq-body { padding: 0 1.1rem 1.1rem; color: var(--ink-2); line-height: 1.65; font-size: .95rem; }
.faq .faq-body p + p { margin-top: .6rem; }
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.tips li { display: flex; gap: .75rem; color: var(--ink-2); line-height: 1.55; font-size: .95rem; }
.tips li i { color: var(--primary-600); margin-top: 4px; width: 18px; text-align: center; flex-shrink: 0; }
.service-card { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; padding: 1.1rem .75rem; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .88rem; background: #fff; }
.service-card:hover { border-color: #cbd5e1; background: var(--soft); }
.service-card i { font-size: 1.5rem; }
.calc-dark { background: var(--ink); color: #fff; border-radius: 24px; padding: 1.5rem; }
.calc-dark input[type=range] { width: 100%; accent-color: var(--lime); }
.calc-dark .seg { background: rgba(255, 255, 255, .1); }
.calc-dark .seg button { color: rgba(255, 255, 255, .8); }
.calc-dark .seg button.is-active { background: var(--lime); color: var(--ink); }

/* ---------------------------------------------------------------------
   PERFIL
   --------------------------------------------------------------------- */
.profile-head { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.photo-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.save-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; color: var(--muted); }
.save-status.ok { color: #047857; }
.save-status.err { color: #be123c; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: .45rem; margin-top: .75rem; }
.icon-grid button { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-2); font-size: 1.05rem; }
.icon-grid button.is-active { border-color: var(--primary); background: var(--primary-50); color: var(--primary-600); }
.rep-box { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.rep-box > div { background: var(--soft); border-radius: 16px; padding: .9rem 1rem; }
.rep-box small { display: block; font-size: .78rem; color: var(--muted); font-weight: 700; margin-bottom: .3rem; }

/* ---------------------------------------------------------------------
   DIÁLOGO, AVISOS (TOAST) Y CARGA
   --------------------------------------------------------------------- */
#app-dialog {
  border: 0; padding: 0; border-radius: 24px; width: min(92vw, 30rem);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, .45); color: var(--ink);
}
#app-dialog::backdrop { background: rgba(15, 23, 42, .5); backdrop-filter: blur(3px); }
.dlg-body { padding: 1.5rem; max-height: 85vh; overflow-y: auto; }
.dlg-body h3 { font-weight: 800; font-size: 1.25rem; line-height: 1.3; margin-bottom: .5rem; }
.dlg-body p { color: var(--ink-2); line-height: 1.6; }
.dlg-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.4rem; flex-wrap: wrap; }
.dlg-actions .btn { flex: 1 1 auto; }
.review-q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line-2); font-weight: 600; font-size: .95rem; }
.pill-toggle { display: inline-flex; gap: .4rem; }
.pill-toggle button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .4rem .9rem; font-weight: 700; cursor: pointer; font-size: .85rem; }
.pill-toggle button.yes.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pill-toggle button.no.is-active { background: var(--rose); border-color: var(--rose); color: #fff; }

#toast-container {
  /* Debajo de la cabecera, para no tapar el logo ni el botón «Publicar» */
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 5.25rem); left: 50%; transform: translateX(-50%); z-index: 9999;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  pointer-events: none; width: max-content; max-width: 92vw;
}
.toast {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 12px 30px -10px rgba(15, 23, 42, .35);
  border-radius: 16px; padding: .8rem 1.1rem; font-size: .92rem; font-weight: 600;
  display: flex; align-items: center; gap: .65rem; pointer-events: auto;
  animation: toastIn .25s ease-out both; transition: opacity .3s, transform .3s; max-width: 92vw;
}
.toast i { font-size: 1.05rem; }
.toast.success i { color: var(--primary-600); }
.toast.info i { color: #0284c7; }
.toast.warning i { color: #d97706; }
.toast.error i { color: var(--rose); }
@keyframes toastIn { from { transform: translateY(-12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.loader { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: 4rem 1rem; color: var(--muted); font-weight: 600; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pantallas de acceso: sin pie de página para no distraer */
body[data-view="entrar"] #site-footer,
body[data-view="registro"] #site-footer,
body[data-view="recuperar"] #site-footer,
body[data-view="reservar"] #site-footer { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Buscador de lugares */
.place-picker { position: relative; width: 100%; }
.place-picker > input { width: 100%; }
.place-menu { min-width: 280px; max-height: 320px; }
.place-opt { align-items: center; }
.place-opt i { font-size: 1rem; }
.place-opt .place-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }

/* ---------------------------------------------------------------------
   Selector de ruta dentro de formularios («Solicita»): mismo buscador, con etiquetas
   --------------------------------------------------------------------- */
.search-bar--form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem;
  background: transparent; box-shadow: none; border-radius: 0; padding: 0;
}
.search-bar--form .input-group { border: 1px solid var(--line); border-radius: 14px; padding: .55rem .95rem; background: #fff; margin-bottom: .9rem; }
.search-bar--form .input-group:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(16, 185, 129, .12); }
.search-bar--form .input-group label { display: block; font-size: .78rem; margin-bottom: .1rem; }
.search-bar--form .input-group input { font-size: 1rem; }
.search-bar--form .input-group input::placeholder { color: #94a3b8; font-weight: 500; }
.search-bar--form .input-group.has-error, .search-bar--form .input-group:has(.is-invalid) { border-color: var(--rose); }
.search-bar--form .date-range { grid-column: 1 / -1; flex: none; gap: 0 1rem; }
.search-bar--form .date-range > .input-group { border-right: 1px solid var(--line); }
.search-bar--form .date-range:not(.has-date) > .input-group:first-child { max-width: calc(50% - .5rem); }
.search-bar--form .date-range > [data-field="return"] input::placeholder { color: var(--primary-600); font-weight: 700; }
.search-bar--form .error-text { margin-top: .3rem; }
@media (min-width: 769px) { .search-bar--form .calendar-popup--range { left: 0; right: auto; top: calc(100% - .5rem); } }
@media (max-width: 768px) {
  .search-bar--form { display: flex; flex-direction: column; padding: 0; }
  .search-bar--form .input-group { padding: .6rem .9rem; }
  .search-bar--form .input-group:last-of-type { margin-bottom: .9rem; }
  .search-bar--form .date-range { flex-direction: column; }
  .search-bar--form .date-range:not(.has-date) > .input-group:first-child { max-width: none; }
  .search-bar--form .input-group label { display: block; }
}

/* ---------------------------------------------------------------------
   PÁGINAS DE CATEGORÍA (citas médicas, universidad…): fondo propio + anuncios dorados + directorio
   --------------------------------------------------------------------- */
/* Cabecera con fondo ilustrado propio de cada categoría (--cat-1 / --cat-2 vienen de categories.js) */
.cat-hero { --cat-1: #0b3d3b; --cat-2: #1f7a72; position: relative; overflow: hidden; isolation: isolate; background: var(--cat-1); color: #fff; min-height: 25rem; display: flex; }
.cat-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right bottom; z-index: -2; }
.cat-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--cat-1) 0%, var(--cat-1) 26%, var(--cat-2) 44%, transparent 74%); opacity: .96; }
.cat-hero__inner { position: relative; width: 100%; padding-top: 1.25rem; padding-bottom: 6.5rem; }
.cat-hero__text { margin-top: 1.4rem; max-width: 33rem; }
.cat-hero .back-link { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); padding: .4rem .9rem; border-radius: 999px; }
.cat-hero .back-link:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.cat-hero .h-page { color: #fff; font-size: clamp(2rem, 4.6vw, 3rem); text-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.cat-hero .lead { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.cat-kicker { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4); padding: .28rem .75rem; border-radius: 999px; margin-bottom: .8rem; backdrop-filter: blur(6px); }
@media (max-width: 760px) {
  .cat-hero { min-height: 28rem; }
  .cat-hero::after { background: linear-gradient(180deg, var(--cat-1) 0%, var(--cat-1) 38%, transparent 92%); }
  .cat-hero__inner { padding-bottom: 7rem; }
}

.cat-page { --cat-1: #0b3d3b; --cat-2: #1f7a72; padding-top: 0; padding-bottom: 3rem; }
.cat-section { margin-top: 2.2rem; }
.cat-section__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.cat-section__head h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; }
.cat-count { min-width: 1.9rem; text-align: center; font-size: .8rem; font-weight: 800; color: var(--cat-1); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; }
.cat-intro { margin-bottom: 1rem; max-width: 46rem; }
.cat-find { margin-top: 2rem; font-size: 1.3rem; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; }
.cat-search { position: relative; margin-top: .8rem; }
.cat-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.cat-search input { width: 100%; max-width: 32rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .8rem 1rem .8rem 2.6rem; font-size: 1rem; outline: none; }
.cat-search input:focus { border-color: var(--cat-2); box-shadow: 0 0 0 4px rgba(15, 23, 42, .08); }
.cat-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.cat-chip { border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-size: .88rem; font-weight: 700; border-radius: 999px; padding: .42rem .95rem; cursor: pointer; transition: all .15s; }
.cat-chip:hover { border-color: var(--cat-2); color: var(--cat-1); }
.cat-chip.on { background: var(--cat-1); border-color: var(--cat-1); color: #fff; }
.cat-notice { margin-top: 2rem; padding: .9rem 1.1rem; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); font-size: .88rem; display: flex; gap: .6rem; align-items: flex-start; }
.cat-empty { padding: 1rem 0; }

/* Franja de consejos: cristal esmerilado sobre el borde de la cabecera */
.tip-row { position: relative; z-index: 3; display: grid; gap: 0; margin-top: -3.6rem; padding: .35rem; border-radius: 24px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .35); }
@media (min-width: 820px) { .tip-row { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } .tip-card + .tip-card { border-left: 1px solid rgba(15, 23, 42, .1); } }
@media (max-width: 819px) { .tip-card + .tip-card { border-top: 1px solid rgba(15, 23, 42, .1); } }
.tip-card { display: flex; gap: .8rem; padding: .9rem 1.1rem; }
.tip-card > i { width: 2.4rem; height: 2.4rem; flex: none; border-radius: 12px; background: var(--cat-1); color: #fff; display: flex; align-items: center; justify-content: center; }
.tip-card strong { font-size: .95rem; }
.tip-card p { font-size: .85rem; color: var(--ink-2); margin-top: .1rem; line-height: 1.45; }
.tip-card .link { color: var(--cat-1); font-weight: 800; }

.dir-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); }
.dir-grid--ads { margin-bottom: 1rem; }
.dir-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; transition: box-shadow .15s, border-color .15s, transform .15s; }
.dir-card:hover { border-color: #cbd5e1; box-shadow: var(--shadow); transform: translateY(-2px); }
.dir-card[hidden], .town-chip[hidden] { display: none; }
.dir-card header h3 { font-size: 1.05rem; font-weight: 800; line-height: 1.25; }
.dir-town { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--muted); font-weight: 600; margin-top: .15rem; }
.dir-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .02em; padding: .2rem .6rem; border-radius: 999px; background: #eef1f5; color: var(--ink-2); }
.tag--public { background: #2563eb; color: #fff; }
.tag--private { background: #16a34a; color: #fff; }
.tag--mixed { background: #0d9488; color: #fff; }
.tag--urgent { background: #fee2e2; color: #b91c1c; }
.dir-info { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .88rem; color: var(--ink-2); }
.dir-info li { display: flex; gap: .55rem; align-items: flex-start; }
.dir-info li > i { width: 1rem; margin-top: .2rem; color: #94a3b8; text-align: center; flex: none; }
.dir-info a { color: var(--primary-600); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.dir-info a:hover { text-decoration: underline; }
.dir-note { font-size: .82rem; color: var(--muted); line-height: 1.45; }

.town-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.town-chip { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none; transition: all .15s; }
.town-chip i { color: var(--cat-2); font-size: .8rem; }
.town-chip:hover { border-color: var(--cat-2); background: #fff; box-shadow: var(--shadow); }

/* Anuncios pagados: tarjeta dorada, siempre antes que el resto de tarjetas */
.ad-gold { position: relative; display: flex; flex-direction: column; overflow: hidden; color: #f4e5b6; border: 3px solid transparent; border-radius: 22px;
  background: linear-gradient(150deg, #1d2738 0%, #0e1521 100%) padding-box, linear-gradient(135deg, #fbe9a0 0%, #c8931e 45%, #f6dc86 70%, #b27c14 100%) border-box;
  box-shadow: 0 16px 34px -16px rgba(180, 130, 20, .7), inset 0 0 0 1px rgba(255, 236, 170, .15); }
.ad-gold__badge { position: absolute; top: .75rem; right: .75rem; z-index: 2; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #3d2a05; background: linear-gradient(135deg, #fbe9a0, #d9a52c); padding: .2rem .6rem; border-radius: 999px; }
.ad-gold__img { height: 7.5rem; background: #0e1521; position: relative; }
.ad-gold__img img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.ad-gold__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, #101826 100%); }
.ad-gold__body { padding: 1.15rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.ad-gold:not(:has(.ad-gold__img)) .ad-gold__body { padding-top: 2.4rem; }
.ad-gold h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; color: #f6d878; }
.ad-gold__town { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 700; color: #d9b25a; }
.ad-gold__tagline { font-weight: 700; font-size: .9rem; color: #f0dc9c; }
.ad-gold__desc { font-size: .86rem; line-height: 1.5; color: #d8cba4; }
.ad-gold .dir-info { color: #ecdcae; }
.ad-gold .dir-info li > i { color: #d4a63a; }
.ad-gold .dir-info a { color: #ffe08a; }

/* Tarjeta «Publicidad · ¿Tu negocio por aquí?» */
.ad-cta-card { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; padding: 1.2rem 1.25rem; border-radius: 20px; border: 1.5px dashed #aebfd3; background: linear-gradient(180deg, #f1f6fc 0%, #e4edf7 100%); }
.ad-cta-card__badge { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #475569; background: #fff; border: 1px solid #cbd5e1; padding: .2rem .6rem; border-radius: 999px; }
.ad-cta-card h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.25; }
.ad-cta-card p { font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.ad-cta-card .btn { margin-top: auto; }
.dir-infobox { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1.1rem; margin-bottom: 1rem; }

/* ---------------------------------------------------------------------
   PANEL DE ADMINISTRACIÓN
   --------------------------------------------------------------------- */
.adm { max-width: 78rem; }
.adm-head { margin-bottom: 1rem; }
.adm-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.adm-tab { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; border: 1px solid transparent; }
.adm-tab:hover { background: var(--soft); }
.adm-tab.on { background: var(--ink); color: #fff; }
.adm-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.25rem; }
.adm-card h3 { font-weight: 800; font-size: 1.05rem; margin-bottom: .7rem; display: flex; align-items: center; gap: .5rem; }
.adm-card h3 i { color: var(--primary); }
.adm-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; background: linear-gradient(135deg, #ecfdf5, #fff); }
.adm-hero h2 { font-weight: 800; font-size: 1.2rem; }
.adm-kpis { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin-bottom: 1rem; }
.adm-kpi { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.15rem; display: flex; flex-direction: column; gap: .15rem; }
.adm-kpi span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.adm-kpi strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.adm-kpi small { color: var(--muted); font-size: .78rem; }
.adm-kpi.warn { border-color: #fcd34d; background: #fffbeb; }
.adm-two { display: grid; gap: 1rem; }
@media (min-width: 900px) { .adm-two { grid-template-columns: 1fr 1fr; } }
.adm-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .6rem 0; border-top: 1px solid var(--line-2); }
.adm-row:first-of-type { border-top: 0; }
.adm-row small, .adm-table small { display: block; color: var(--muted); font-size: .78rem; }
.adm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.adm-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.adm-filters .select, .adm-filters .input { width: auto; min-width: 10rem; }
.adm-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.adm-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.adm-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .75rem 1rem; background: var(--soft); white-space: nowrap; }
.adm-table td { padding: .75rem 1rem; border-top: 1px solid var(--line-2); vertical-align: middle; }
.adm-table tfoot td { background: var(--soft); border-top: 2px solid var(--line); }
.adm-table tr.is-void td { opacity: .5; text-decoration: line-through; }
.adm-table td.adm-actions { justify-content: flex-end; white-space: nowrap; }
@media (max-width: 760px) {
  .adm-table thead { display: none; }
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; }
  .adm-table tr { padding: .6rem .2rem; border-top: 1px solid var(--line); }
  .adm-table td { border: 0; padding: .25rem 1rem; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  .adm-table td::before { content: attr(data-l); font-weight: 700; color: var(--muted); font-size: .78rem; text-align: left; }
  .adm-table td.adm-actions { justify-content: flex-start; }
  .adm-table td.adm-actions::before { content: none; }
  .adm-table tfoot td:nth-child(n+2) { display: none; }
}
.adm-switch { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; font-weight: 800; }
.adm-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.adm-switch .track { width: 3.2rem; height: 1.8rem; background: #cbd5e1; border-radius: 999px; position: relative; transition: background .2s; flex: none; }
.adm-switch .thumb { position: absolute; top: .2rem; left: .2rem; width: 1.4rem; height: 1.4rem; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: transform .2s; }
.adm-switch input:checked + .track { background: var(--primary); }
.adm-switch input:checked + .track .thumb { transform: translateX(1.4rem); }
.adm-switch input:focus-visible + .track { box-shadow: 0 0 0 4px rgba(16, 185, 129, .25); }
.adm-form .adm-fs { border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem .2rem; margin-bottom: 1rem; }
.adm-form .adm-fs h4 { font-weight: 800; font-size: .95rem; margin-bottom: .7rem; }
.adm-form .textarea { min-height: 4.5rem; }
#app-dialog .adm-form .form-grid { gap: 0 .9rem; }
.adm-two { margin-top: 1rem; }


/* ---------- «Sin trayectos»: ruta cortada ---------- */
.nr-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 22px 44px -28px rgba(15, 23, 42, .4); }
.nr-map { padding: 30px 24px; background:
  linear-gradient(rgba(16,185,129,.07) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, rgba(16,185,129,.07) 1px, transparent 1px) 0 0 / 28px 28px,
  radial-gradient(circle at 15% 0%, #d1fae5, transparent 55%), radial-gradient(circle at 100% 100%, #e0f2fe, transparent 55%), #f8fafc; }
.nr-route { display: flex; align-items: center; gap: 12px; max-width: 640px; margin: 0 auto; }
.nr-pin { flex: 0 1 36%; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; box-shadow: 0 8px 18px -12px rgba(15,23,42,.45); }
.nr-pin small { display: block; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--primary-600); }
.nr-pin--end small { color: #0369a1; }
.nr-pin strong { display: block; font-size: 1rem; color: #0f172a; overflow-wrap: anywhere; line-height: 1.25; }
.nr-line { flex: 1; position: relative; height: 40px; min-width: 40px; }
.nr-line::before, .nr-line::after { content: ""; position: absolute; top: 50%; border-top: 3px dashed #86efac; width: 34%; }
.nr-line::before { left: 0; }
.nr-line::after { right: 0; border-color: #cbd5e1; }
.nr-gap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px dashed #cbd5e1; color: #94a3b8; display: grid; place-items: center; font-size: .95rem; }
.nr-body { padding: 26px 24px 28px; text-align: center; }
.nr-body h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: #0f172a; }
.nr-body > p { color: #475569; font-weight: 500; max-width: 34rem; margin: .4rem auto 0; }
.nr-steps { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: left; }
.nr-steps li { display: flex; gap: 10px; align-items: flex-start; background: #f8fafc; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.nr-steps li > span { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.nr-steps strong { display: block; font-size: .88rem; color: #0f172a; line-height: 1.25; }
.nr-steps small { display: block; font-size: .76rem; color: #64748b; margin-top: 2px; }
.nr-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (max-width: 640px) {
  .nr-route { flex-direction: column; align-items: stretch; gap: 0; }
  .nr-pin { flex: none; }
  .nr-line { flex: none; height: 56px; min-width: 0; }
  .nr-line::before, .nr-line::after { top: 0; left: 50%; width: 0; height: 34%; border-top: 0; border-left: 3px dashed #86efac; }
  .nr-line::after { top: auto; bottom: 0; border-left-color: #cbd5e1; }
  .nr-steps { grid-template-columns: 1fr; }
}

/* ---------- «Sin mensajes»: bandeja con burbujas ---------- */
.nm-card { background: linear-gradient(180deg, #ecfdf5 0%, #fff 46%); border: 1px solid #bbf7d0; border-radius: 28px; padding: 30px 22px 26px; text-align: center; box-shadow: 0 22px 44px -30px rgba(5, 150, 105, .55); }
.nm-stage { display: grid; gap: 10px; max-width: 320px; margin: 0 auto 22px; }
.nm-bubble { display: flex; align-items: center; gap: 8px; max-width: 86%; }
.nm-in { justify-self: start; }
.nm-out { justify-self: end; }
.nm-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: #fff; color: #64748b; border: 1px solid var(--line); }
.nm-out .nm-av { background: var(--primary); color: #fff; border-color: var(--primary); }
.nm-lines { display: grid; gap: 6px; padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: #fff; border: 1px solid var(--line); min-width: 140px; box-shadow: 0 6px 14px -10px rgba(15,23,42,.4); }
.nm-out .nm-lines { border-radius: 18px 18px 6px 18px; background: var(--primary); border-color: var(--primary); }
.nm-lines i { display: block; height: 7px; border-radius: 4px; background: #e2e8f0; }
.nm-lines i:last-child { width: 62%; }
.nm-out .nm-lines i { background: rgba(255,255,255,.55); }
.nm-dots { display: flex; gap: 5px; padding: 15px 18px; border-radius: 18px 18px 18px 6px; background: #fff; border: 1px solid var(--line); }
.nm-dots b { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: nm-dot 1.2s infinite ease-in-out; }
.nm-dots b:nth-child(2) { animation-delay: .15s; }
.nm-dots b:nth-child(3) { animation-delay: .3s; }
@keyframes nm-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nm-dots b { animation: none; } }
.nm-card h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: #0f172a; }
.nm-card > p { color: #475569; font-weight: 500; max-width: 31rem; margin: .4rem auto 0; }
.nm-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.nm-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.nm-tile:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 12px 22px -14px rgba(5,150,105,.6); }
.nm-tile > span { width: 42px; height: 42px; border-radius: 14px; background: #d1fae5; color: var(--primary-600); display: grid; place-items: center; font-size: 1.05rem; margin-bottom: 6px; }
.nm-tile strong { font-size: .92rem; color: #0f172a; }
.nm-tile small { font-size: .76rem; color: #64748b; }
@media (max-width: 560px) { .nm-tiles { grid-template-columns: 1fr; } }

/* Calculadora de «Publicar»: el buscador principal dentro de la tarjeta */
.calc-picker { padding: .9rem 1rem 0; }
.calc-picker .search-bar--form { display: block; }
.calc-picker .search-bar--form .input-group { margin-bottom: .7rem; }
.calc-picker .search-bar--form .input-group input { font-weight: 700; }
.calc-row { padding-top: .35rem; border-top: 0; }


/* ---------- «Sin solicitudes»: corcho con notas ---------- */
.nb-card { background: radial-gradient(circle at 1px 1px, rgba(180,83,9,.13) 1.2px, transparent 1.3px) 0 0 / 18px 18px, linear-gradient(180deg, #fffbeb, #fff 70%); border: 1px solid #fde68a; border-radius: 28px; padding: 30px 22px 28px; text-align: center; box-shadow: 0 22px 44px -30px rgba(180, 83, 9, .5); }
.nb-board { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 0 auto 24px; max-width: 520px; }
.nb-note { position: relative; flex: 1; max-width: 150px; min-height: 112px; background: #fff; border: 1px solid #f1e3b3; border-radius: 6px; padding: 20px 12px 12px; box-shadow: 0 10px 18px -12px rgba(120, 53, 15, .55); }
.nb-a { transform: rotate(-4deg); }
.nb-b { transform: rotate(3.5deg); }
.nb-me { transform: translateY(-6px) rotate(-1deg); background: #ecfdf5; border: 2px dashed var(--primary); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; animation: nb-float 3.2s ease-in-out infinite; }
.nb-me strong { font-size: .88rem; color: var(--primary-600); }
.nb-plus { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 1rem; }
@keyframes nb-float { 0%, 100% { transform: translateY(-6px) rotate(-1deg); } 50% { transform: translateY(-11px) rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { .nb-me { animation: none; } }
.nb-pin { position: absolute; top: -7px; left: 50%; margin-left: -7px; width: 14px; height: 14px; border-radius: 50%; background: #ef4444; box-shadow: inset -2px -2px 0 rgba(0,0,0,.18), 0 3px 4px rgba(0,0,0,.25); }
.nb-me .nb-pin { background: #f59e0b; }
.nb-route { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.nb-route i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; flex: none; }
.nb-route i:last-child { background: #94a3b8; }
.nb-route u { flex: 1; border-top: 2px dashed #cbd5e1; }
.nb-lines { display: grid; gap: 6px; }
.nb-lines b { display: block; height: 6px; border-radius: 3px; background: #e2e8f0; }
.nb-lines b:last-child { width: 60%; }
.nb-chip { display: block; width: 46px; height: 14px; border-radius: 999px; background: #fef3c7; margin-top: 12px; }
.nb-card h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: #0f172a; }
.nb-card > p { color: #475569; font-weight: 500; max-width: 31rem; margin: .4rem auto 0; }
.nb-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
@media (max-width: 480px) { .nb-board { gap: 8px; } .nb-note { padding: 18px 8px 10px; min-height: 100px; } .nb-me strong { font-size: .78rem; } }


/* ---------- «Solicitud publicada» (reutiliza la tarjeta de ruta) ---------- */
.nr-body h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: #0f172a; line-height: 1.15; }
.nr-ok .nr-line::before, .nr-ok .nr-line::after { border-top-style: solid; border-color: var(--primary); width: 36%; }
.nr-ok .nr-gap { background: var(--primary); border: 0; color: #fff; box-shadow: 0 0 0 6px rgba(16, 185, 129, .18); animation: nr-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes nr-pop { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nr-ok .nr-gap { animation: none; } }
@media (max-width: 640px) { .nr-ok .nr-line::before, .nr-ok .nr-line::after { border-top: 0; border-left: 3px solid var(--primary); width: 0; } }
.nr-badge { display: inline-flex; align-items: center; gap: 6px; background: #d1fae5; color: var(--primary-600); font-weight: 800; font-size: .78rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.nr-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.nr-chips span { background: #f1f5f9; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .85rem; font-weight: 700; color: #334155; }
.nr-chips i { color: #d97706; margin-right: 4px; }
.nr-note { margin: 4px 0 20px; font-size: .82rem; color: #64748b; font-weight: 600; }
.nm-tiles--2 { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
@media (max-width: 480px) { .nm-tiles--2 { grid-template-columns: 1fr; } }


/* ---------- Tu solicitud en Mensajes: ticket ---------- */
.rq-card { position: relative; background: #fff; border: 1px solid #fde68a; border-radius: 22px; padding: 16px 18px 16px; margin-bottom: .8rem; overflow: hidden; box-shadow: 0 14px 28px -22px rgba(180, 83, 9, .55); background-image: linear-gradient(180deg, #fffbeb, #fff 55%); }
.rq-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, #f59e0b, #fbbf24); }
.rq-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.rq-status { display: inline-flex; align-items: center; gap: 8px; background: #fef3c7; color: #92400e; font-weight: 800; font-size: .78rem; padding: 4px 12px; border-radius: 999px; }
.rq-status b { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 0 rgba(245, 158, 11, .6); animation: rq-ping 1.8s infinite; }
@keyframes rq-ping { 70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
@media (prefers-reduced-motion: reduce) { .rq-status b { animation: none; } }
.rq-own { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.rq-route { display: flex; align-items: center; gap: 10px; }
.rq-pin { flex: 0 1 38%; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; box-shadow: 0 6px 14px -10px rgba(15, 23, 42, .45); }
.rq-pin small { display: block; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--primary-600); }
.rq-pin--end small { color: #0369a1; }
.rq-pin strong { display: block; font-size: .98rem; color: #0f172a; overflow-wrap: anywhere; line-height: 1.2; }
.rq-line { flex: 1; position: relative; height: 30px; min-width: 40px; }
.rq-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 3px dashed #fcd34d; }
.rq-line i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid #fcd34d; color: #d97706; display: grid; place-items: center; font-size: .75rem; }
.rq-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rq-chips span { background: #f8fafc; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: .8rem; font-weight: 700; color: #334155; }
.rq-chips i { color: #d97706; margin-right: 4px; }
.rq-text { margin: 12px 0 0; font-size: .88rem; color: #64748b; font-weight: 500; }
.rq-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 520px) {
  .rq-route { flex-direction: column; align-items: stretch; gap: 0; }
  .rq-pin { flex: none; }
  .rq-line { flex: none; height: 38px; min-width: 0; }
  .rq-line::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 3px dashed #fcd34d; }
}

.nr-pin em { display: block; font-style: normal; font-size: .78rem; color: #64748b; margin-top: 2px; overflow-wrap: anywhere; }
.nr-chips .nr-price { background: #ecfdf5; border-color: #a7f3d0; color: var(--primary-600); }
.nr-chips .nr-price * { font-size: inherit; line-height: 1.2; }
.nr-chips .nr-price { padding: 0; border: 0; background: none; }
.nr-chips .nr-price > * { background: #ecfdf5; border: 1px solid #a7f3d0; color: var(--primary-600); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 800; }

/* ---------- Panel: usuarios, contenido, estadísticas, pueblos y avisos ---------- */
.am-warn { color: #b45309; font-weight: 700; font-size: .72rem; }
.am-up { color: var(--primary-600); font-weight: 700; margin-right: .5rem; white-space: nowrap; }
.am-down { color: #be123c; font-weight: 700; white-space: nowrap; }
.adm-table tr.am-susp td { background: #fff1f2; }
.adm-table tr.am-past td { opacity: .6; }
.am-total { margin-left: auto; font-weight: 600; font-size: .75rem; color: var(--muted); }
.am-card-grid { display: grid; gap: .55rem; margin-top: .8rem; }
.am-kv { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .8rem; background: var(--soft); border-radius: 12px; font-size: .9rem; }
.am-kv span { color: var(--muted); font-weight: 600; flex: none; }
.am-kv strong { text-align: right; overflow-wrap: anywhere; }
.am-flat { max-height: 26rem; overflow: auto; margin-top: .4rem; }
.am-grid2 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .am-grid2 { grid-template-columns: 1fr 1fr; } }
.am-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 150px; padding-top: 18px; }
.am-bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.am-bar i { display: block; width: 100%; max-width: 26px; border-radius: 6px 6px 2px 2px; background: var(--c, #10b981); min-height: 2px; }
.am-bar em { font-style: normal; font-size: .62rem; color: var(--muted); margin-top: 4px; text-transform: capitalize; }
.am-bar .am-val { position: absolute; top: -16px; font-size: .68rem; font-weight: 800; color: #334155; }
.am-bars.tone-green { --c: #10b981; } .am-bars.tone-blue { --c: #0ea5e9; } .am-bars.tone-amber { --c: #f59e0b; } .am-bars.tone-slate { --c: #64748b; }
.am-bar { height: calc(100% - 18px); margin-top: 18px; }
.am-hbar { margin-bottom: .7rem; }
.am-hbar > div { display: flex; justify-content: space-between; gap: .8rem; font-size: .88rem; font-weight: 600; margin-bottom: 3px; }
.am-hbar i { display: block; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #10b981, #34d399); min-width: 6px; }

/* Aviso general */
.site-banner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem .9rem; padding: .6rem 2.6rem .6rem 1rem; font-size: .88rem; font-weight: 600; text-align: center; position: relative; }
.site-banner.is-preview { border-radius: 12px; padding-right: 1rem; }
.site-banner .sb-link { text-decoration: underline; font-weight: 800; color: inherit; white-space: nowrap; }
.site-banner .sb-close { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .08); color: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.site-banner .sb-close:hover { background: rgba(0, 0, 0, .16); }
.site-banner.tone-info { background: #e0f2fe; color: #075985; }
.site-banner.tone-ok { background: #d1fae5; color: #065f46; }
.site-banner.tone-warn { background: #fef3c7; color: #92400e; }
.site-banner.tone-alert { background: #ffe4e6; color: #9f1239; }


/* ---------- Tablón: tarjetas de solicitud (bc-*) ---------- */
.req-grid { grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)) !important; }
.bc { display: flex; flex-direction: column; gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.1rem 1.1rem .9rem; box-shadow: 0 6px 18px -14px rgba(15, 23, 42, .5); transition: box-shadow .15s, transform .15s, border-color .15s; }
.bc:hover { box-shadow: 0 16px 28px -18px rgba(15, 23, 42, .55); transform: translateY(-2px); }
.bc.is-own { border-color: #fcd34d; }
.bc-top { display: flex; align-items: center; gap: .6rem; }
.bc-rep { min-width: 0; line-height: 1.2; }
.bc-stars { display: block; color: #f5b301; font-size: .8rem; letter-spacing: 1px; white-space: nowrap; }
.bc-stars.is-empty { color: #cbd5e1; }
.bc-rep small { font-size: .74rem; color: #475569; font-weight: 600; }
.bc-rep small b { font-weight: 800; color: #0f172a; }
.bc-own { margin-left: auto; align-self: flex-start; background: #fde9a8; color: #7c4a03; font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.bc-name { font-size: 1.05rem; font-weight: 800; color: #0f172a; line-height: 1.2; overflow-wrap: anywhere; }
.bc-route { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; background: #efece4; border-radius: 12px; padding: .5rem .75rem; font-weight: 800; font-size: .95rem; color: #1e293b; }
.bc-route i { color: #64748b; font-size: .75rem; }
.bc-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.bc-chips span { display: inline-flex; align-items: center; gap: .35rem; background: #f1efe9; border-radius: 9px; padding: .3rem .6rem; font-size: .8rem; font-weight: 700; color: #334155; }
.bc-chips i { color: #8a6d3b; font-size: .78rem; }
.bc-notes { display: flex; gap: .5rem; align-items: flex-start; font-size: .86rem; color: #475569; line-height: 1.45; margin: 0; min-height: 2.5em; }
.bc-notes i { color: #475569; margin-top: .2rem; font-size: .85rem; }
.bc-notes span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.bc-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-top: 1px solid var(--line-2); padding-top: .8rem; margin-top: auto; flex-wrap: wrap; }
.bc-price { font-size: .8rem; color: #64748b; font-weight: 600; }
.bc-price b { font-size: .95rem; color: #0f172a; font-weight: 800; }
.bc-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 800; font-size: .85rem; padding: .55rem 1rem; border-radius: 999px; text-decoration: none; white-space: nowrap; transition: background .15s; }
.bc-btn:hover { background: var(--primary-600); }
.bc-btn--soft { background: #f1f5f9; color: #0f172a; border: 1px solid var(--line); }
.bc-btn--soft:hover { background: #e2e8f0; }
.bc-see { text-align: center; border-top: 1px solid var(--line-2); padding-top: .6rem; font-size: .85rem; font-weight: 700; color: #334155; text-decoration: none; }
.bc-see:hover { color: var(--primary-600); }
.bc-top { flex-wrap: wrap; row-gap: .4rem; }
.bc-rep small { white-space: nowrap; }
.bc-own { margin-left: auto; }

/* ===== Mensajes: panel de gestión (mc-*) ===== */
.msg-section > h2 { font-size: 1.2rem; }
.msg-section > h2 .n { background: #ecfdf5; color: var(--primary-600); border-radius: 999px; padding: 1px 10px; font-size: .8rem; }
.msg.mc { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; box-shadow: 0 14px 30px -24px rgba(15,23,42,.45); }
.msg.mc .msg-top { gap: .6rem; }
.msg.mc .mc-side { margin-left: auto; font-weight: 700; font-size: .85rem; color: #334155; }
.msg.mc .msg-route { flex-wrap: nowrap; gap: 1rem; }
.mc-routetext { flex: 0 1 auto; min-width: 0; }
.mc-progress { flex: 1; display: flex; align-items: center; gap: .6rem; min-width: 90px; }
.mc-progress i { flex: 1; height: 8px; border-radius: 99px; background: #e5e7eb; overflow: hidden; }
.mc-progress b { display: block; height: 100%; background: var(--primary-600, #059669); border-radius: 99px; }
.mc-progress em { font-style: normal; font-size: .8rem; font-weight: 700; color: #64748b; }
.msg.mc .msg-actions { align-items: center; }
.mc-ghost { background: none; border: 0; font: inherit; font-weight: 700; font-size: .88rem; color: #475569; cursor: pointer; padding: .4rem .6rem; border-radius: 10px; display: inline-flex; gap: .4rem; align-items: center; }
.mc-ghost:hover { background: #f1f5f9; color: #b91c1c; }
.mc-empty { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 200px 26px 22px; min-height: 90px; box-shadow: 0 14px 30px -24px rgba(15,23,42,.45); }
.mc-empty p { margin: 0; color: #475569; font-weight: 600; }
.mc-empty .link { color: var(--primary-600); font-weight: 800; }
.mc-art { position: absolute; right: 14px; bottom: 0; width: 170px; height: auto; }
@media (max-width: 560px) {
  .mc-empty { padding-right: 22px; padding-bottom: 110px; }
  .mc-art { left: 50%; right: auto; transform: translateX(-50%); width: 150px; }
  .msg.mc .msg-route { flex-wrap: wrap; }
  .msg.mc .mc-side { margin-left: 0; width: 100%; }
}
/* Solicitud: acentos verdes */
.rq-card { border-color: #bbf7d0; background-image: linear-gradient(180deg, #f0fdf4, #fff 55%); box-shadow: 0 14px 28px -22px rgba(5,150,105,.5); }
.rq-card::before { background: linear-gradient(180deg, #10b981, #34d399); }
.rq-status { background: #dcfce7; color: #166534; }
.rq-status b { background: #10b981; }
.rq-line::before { border-top-color: #6ee7b7; }
.rq-line i { border-color: #6ee7b7; color: #059669; }
.rq-chips i { color: #059669; }
.rq-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.rq-bottom .rq-actions { margin-top: 12px; align-items: center; }

/* ===== Tu perfil (pf-*) ===== */
.pf-card { border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 14px 30px -26px rgba(15,23,42,.4); padding: 22px; }
.pf-card .h-card { font-weight: 800; }
.pf-avatar-wrap { position: relative; flex: none; }
.pf-avatar-wrap .avatar-xl { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--primary-600, #059669); }
.pf-dot { position: absolute; right: 6px; bottom: 6px; width: 20px; height: 20px; border-radius: 50%; background: #22c55e; border: 3px solid #fff; }
.pf-card .input { border: 2px solid #10b981; border-radius: 14px; padding: .8rem 1rem; background: #fff; }
.pf-card .input:focus { box-shadow: 0 0 0 4px rgba(16,185,129,.18); outline: 0; }
.pf-card .label { font-weight: 700; color: #0f172a; }
.pf-sum { list-style: none; cursor: pointer; color: var(--primary-600, #059669); font-weight: 800; font-size: .92rem; display: inline-flex; align-items: center; gap: .5rem; }
.pf-sum::-webkit-details-marker { display: none; }
.pf-tri { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .2s; }
details[open] > .pf-sum .pf-tri { transform: rotate(90deg); }
.rep-box { margin-top: .2rem; gap: 1rem; }
.pf-rep { background: #f6f7f9; border-radius: 18px; padding: 14px 16px; }
.pf-rep-top { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; font-weight: 700; color: #0f172a; }
.pf-rep-main { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.pf-rep-main strong { font-size: 1.05rem; color: #0f172a; }
.pf-bigstar { font-size: 2.2rem; color: #d6d3cd; }
.pf-bigstar.on { color: #f59e0b; }
.pf-stars { display: flex; align-items: center; gap: 2px; font-size: .75rem; color: #d1d5db; }
.pf-stars .on { color: #f59e0b; }
.pf-stars span { margin-left: 8px; color: #475569; font-size: .85rem; font-weight: 600; }
.pf-car { position: relative; overflow: hidden; }
.pf-carart { position: absolute; right: 18px; bottom: 14px; width: 200px; color: #eef0f3; pointer-events: none; }
.pf-car > * { position: relative; }
.pf-car .pf-carart { position: absolute; }
.pf-amen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pf-amen button { border: 2px solid #d1fae5; background: #fff; color: #475569; border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.pf-amen button.is-on { background: #059669; border-color: #059669; color: #fff; }
.pf-strong { font-size: 1.05rem; }
.pf-outline { background: #fff; border: 2px solid #10b981; color: #047857; font-weight: 800; border-radius: 999px; padding: 10px 22px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; font-size: .95rem; }
.pf-outline:hover { background: #ecfdf5; }
.pf-danger { background: #fef2f2; border-color: #fca5a5; }
.pf-dtitle { color: #9f1239; font-size: 1.05rem; display: inline-flex; gap: 8px; align-items: center; }
.pf-danger .btn { border-radius: 999px; padding: 10px 22px; font-weight: 800; }
@media (max-width: 560px) { .rep-box { grid-template-columns: 1fr; } .pf-carart { width: 130px; opacity: .8; } }

/* ===== Guía y ayuda (hc-*) ===== */
#view-ayuda .help-nav { background: #eef1f5; border-radius: 999px; padding: 6px; gap: 4px; flex-wrap: nowrap; }
#view-ayuda .help-nav .filter-chip { border: 0; background: transparent; white-space: nowrap; color: #334155; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
#view-ayuda .help-nav .filter-chip i { color: #64748b; }
#view-ayuda .help-nav .filter-chip.is-active { background: #fff; color: #0f172a; box-shadow: 0 2px 8px -2px rgba(15,23,42,.2); }
#view-ayuda .h-section { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; }
.hc-calc { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 28px; align-items: center; background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 18px 40px -26px rgba(15,23,42,.45); }
.hc-label { display: block; font-weight: 800; color: #0f172a; margin-bottom: 14px; }
.hc-range { position: relative; padding-bottom: 6px; }
.hc-range input[type=range] { width: 100%; accent-color: #0d9488; height: 6px; }
.hc-bubble { display: inline-block; margin-top: 10px; background: #0d9488; color: #fff; font-weight: 800; font-size: .85rem; padding: 4px 14px; border-radius: 8px; position: relative; left: 50%; transform: translateX(-50%); }
.hc-ends { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; color: #475569; margin-top: -26px; }
.hc-seg { display: inline-flex; background: #eef1f5; border-radius: 999px; padding: 5px; gap: 4px; }
.hc-seg button { border: 0; background: transparent; border-radius: 999px; padding: 9px 18px; font: inherit; font-weight: 800; color: #475569; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.hc-seg button.is-active { background: #0d9488; color: #fff; box-shadow: 0 6px 14px -6px rgba(13,148,136,.7); }
.hc-result { background: #eef4f6; border-radius: 18px; padding: 20px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.hc-rtitle { font-weight: 800; font-size: .9rem; color: #0f172a; }
.hc-rnum { font-size: 2.4rem; font-weight: 900; color: #0d9488; line-height: 1.1; }
.hc-rfoot { font-size: .78rem; color: #475569; line-height: 1.45; }
#view-ayuda .tips.tg { grid-template-columns: repeat(3, 1fr); gap: 12px; }
#view-ayuda .tips.tg li { background: #fff; border: 1px solid var(--line-2); border-radius: 16px; padding: 14px 16px; box-shadow: 0 10px 22px -18px rgba(15,23,42,.4); flex-direction: column; gap: 6px; font-size: .88rem; }
#view-ayuda .tips.tg li i { color: #0d9488; font-size: 1.05rem; margin: 0; width: auto; text-align: left; }
#view-ayuda .tips.tg li b { display: block; color: #0f172a; font-size: .98rem; margin-bottom: 2px; }
#view-ayuda .tips.tg li span { display: block; }
#view-ayuda .faq details { border-radius: 18px; box-shadow: 0 10px 22px -20px rgba(15,23,42,.4); }
@media (max-width: 900px) {
  .hc-calc { grid-template-columns: 1fr; padding: 22px; }
  #view-ayuda .tips.tg { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { #view-ayuda .tips.tg { grid-template-columns: 1fr; } }

/* ===== Portada: tablón de vecinos y manifiesto (hv-*) ===== */
.hv-section { margin: 3rem 0 0; }
.hv-head { max-width: 40rem; margin-bottom: 1.4rem; }
.hv-pill { display: inline-flex; align-items: center; gap: 6px; background: #fdf1e0; border: 1px solid #f3dcb8; color: #7a4b12; font-weight: 700; font-size: .78rem; padding: 5px 14px; border-radius: 999px; }
.hv-title { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: .7rem 0 .5rem; color: #0f172a; }
.hv-lead { color: #334155; line-height: 1.6; }
.hv-panel { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 22px; box-shadow: 0 24px 50px -34px rgba(15,23,42,.5); }
.hv-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hv-panel-top h3 { font-size: 1.35rem; font-weight: 800; color: #0f172a; }
.hv-panel-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hv-btn { display: inline-flex; align-items: center; gap: 8px; background: #047857; color: #fff; font-weight: 800; font-size: .95rem; padding: 11px 20px; border-radius: 12px; text-decoration: none; box-shadow: 0 10px 20px -12px rgba(4,120,87,.8); transition: background .15s, transform .15s; }
.hv-btn:hover { background: #065f46; transform: translateY(-1px); }
.hv-btn--sm { padding: 10px 18px; }
.hv-link { color: #047857; font-weight: 800; text-decoration: none; }
.hv-link:hover { text-decoration: underline; }
.hv-manifest-wrap { margin-bottom: 4rem; }
.hv-manifest { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 38px; box-shadow: 0 24px 50px -34px rgba(15,23,42,.5); }
.hv-mtext h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; color: #0f172a; margin-bottom: 1rem; }
.hv-mtext p { color: #334155; line-height: 1.65; margin-bottom: .9rem; }
.hv-mtext .hv-btn { margin-top: .4rem; }
.hv-mart { position: relative; display: flex; justify-content: center; }
.hv-mart img { width: 100%; max-width: 380px; max-height: 300px; height: auto; object-fit: contain; }
.hv-float { position: absolute; width: 46px; height: 46px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 22px -10px rgba(15,23,42,.4); display: grid; place-items: center; color: #047857; font-size: 1.2rem; }
.hv-float--a { left: 0; top: 40%; transform: rotate(-8deg); }
.hv-float--b { right: 2%; top: 4%; transform: rotate(8deg); color: #ea580c; }
.hv-go { position: absolute; right: 4%; bottom: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #ea580c; box-shadow: 0 10px 22px -10px rgba(15,23,42,.4); }
.hv-go b { font-size: .65rem; color: #475569; }
@media (max-width: 820px) { .hv-manifest { grid-template-columns: 1fr; padding: 26px 22px; } .hv-panel { padding: 16px; } }

/* Fondo interior crema de las tarjetas de portada */
.hv-panel, .hv-manifest { background: linear-gradient(160deg, #f8f5f0 0%, #f1eadf 55%, #ebe2d3 100%); border-color: #e4d9c7; box-shadow: 0 22px 48px -30px rgba(120, 90, 40, .45), inset 0 1px 0 rgba(255,255,255,.8); }
.hv-manifest { background: linear-gradient(170deg, #fbf8f3 0%, #f3ece1 60%, #ecdfcb 100%); }
.hv-panel .bc { border-color: #e9dfcd; }
.hv-float, .hv-go { background: #fbf6ee; border-color: #e4d9c7; }
.hv-pill { background: #f7e9d0; }

/* ===== Banda integrada (sustituye a las dos cajas) ===== */
.hv-section { margin: 0; }
.hv-band { margin: 2.5rem 0 0; padding: 3.5rem 0 4rem; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #f6f0e6 14%, #f1e8da 60%, #f6f0e6 88%, rgba(255,255,255,0) 100%); }
.hv-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: stretch; }
.hv-left { display: flex; flex-direction: column; min-width: 0; }
.hv-head { margin-bottom: 1.2rem; }
.hv-panel { flex: 1; background: rgba(255,255,255,.78); backdrop-filter: blur(4px); border: 1px solid rgba(228,217,199,.9); border-radius: 30px 30px 30px 8px; box-shadow: 0 24px 50px -34px rgba(120,90,40,.5); }
.hv-panel .req-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 560px) { .hv-panel .req-grid { grid-template-columns: 1fr !important; } }
.hv-manifest { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; background: rgba(255,255,255,.55); border: 1px solid rgba(228,217,199,.9); border-radius: 30px 30px 8px 30px; padding: 34px 34px 0; overflow: hidden; box-shadow: 0 24px 50px -34px rgba(120,90,40,.5); }
.hv-mtext h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.hv-mart { position: relative; margin: 0 -34px; display: flex; justify-content: center; align-items: flex-end; min-height: 250px; }
.hv-mart img { position: relative; z-index: 1; width: 100%; max-width: 360px; max-height: 280px; margin-bottom: -2px; }
.hv-blob { position: absolute; left: 8%; right: 8%; bottom: -60px; height: 220px; border-radius: 50% 50% 0 0; background: radial-gradient(ellipse at 50% 100%, #ead9bb 0%, rgba(234,217,187,0) 70%); }
.hv-float--a { left: 12%; top: 30%; } .hv-float--b { right: 10%; top: 4%; } .hv-go { right: 12%; bottom: 10px; z-index: 2; }
@media (max-width: 960px) { .hv-grid { grid-template-columns: 1fr; } .hv-manifest { padding: 26px 22px 0; } .hv-mart { margin: 0 -22px; } .hv-panel { border-radius: 26px; } .hv-manifest { border-radius: 26px; } }

/* Menos aire entre secciones de la portada */
.hv-band { margin-top: 0; padding: 1.6rem 0 1.8rem; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #f6f0e6 10%, #f1e8da 60%, #f6f0e6 92%, rgba(255,255,255,0) 100%); }
.hv-head { margin-bottom: .9rem; }
.hv-title { margin: .5rem 0 .35rem; }
.hv-band { padding: 2.6rem 0 3rem; }
.hv-head { margin-bottom: 1.1rem; }

/* ---------------------------------------------------------------------
   MENSAJES · diseño limpio y moderno (tarjetas blancas, sombra suave, verde profundo)
   Todo va bajo .msgx para no tocar el resto de pantallas.
   --------------------------------------------------------------------- */
.msgx {
  --t: #12794a; --t-d: #0d6339; --t-50: #f2faf5; --t-100: #e0f3e8; --t-line: #d3eadc;
  --mx-ink: #0c1f17; --mx-text: #2b3a33; --mx-soft: #6b7a73; --mx-line: #e6eae8; --mx-chip: #f1f3f2;
  --mx-amber-50: #fdf1c9; --mx-amber: #e8a50b;
  padding-top: 2rem; padding-bottom: 4rem;
}
.msgx-head h1 { color: var(--mx-ink); }
.msgx-head p { margin: .35rem 0 1.25rem; color: var(--mx-soft); font-size: .95rem; max-width: 42rem; }

/* Pestañas: píldoras sueltas, la activa en oscuro */
.msgx .filter-chips { display: flex; gap: .6rem; flex-wrap: wrap; overflow: visible; padding: 0; }
.msgx .filter-chip { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid #d9dfdc; background: #fff; color: var(--mx-ink); font-size: .9rem; font-weight: 700; padding: .5rem 1rem; border-radius: 999px; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.msgx .filter-chip i { display: none; }
.msgx .filter-chip .n { opacity: 1; color: var(--mx-soft); font-weight: 600; font-size: .85rem; }
.msgx .filter-chip:hover { border-color: #b9c4bf; transform: translateY(-1px); }
.msgx .filter-chip.is-active { background: #0c1f17; border-color: #0c1f17; color: #fff; }
.msgx .filter-chip.is-active .n { color: rgba(255,255,255,.7); }
.msgx .filter-chip:focus-visible { outline: 3px solid rgba(18,121,74,.35); outline-offset: 2px; }

/* Panel: sin caja extra, las tarjetas van directamente sobre blanco */
.msgx-panel { margin-top: .4rem; }
.msgx .msg-section { margin-top: 1.7rem; }
.msgx .msg-section > h2 { display: flex; align-items: center; gap: .55rem; font-size: 1.2rem; font-weight: 800; letter-spacing: -.015em; color: var(--mx-ink); margin-bottom: .7rem; }
.msgx .msg-section > h2::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--t); box-shadow: 0 0 0 4px var(--t-100); }
.msgx .msg-section > h2 .n { background: none; padding: 0; border-radius: 0; font-size: .95rem; font-weight: 600; color: var(--mx-soft); }

/* Tarjetas */
.msgx .msg.mc { gap: .9rem; padding: 1rem 1.2rem; border-radius: 20px; border: 1px solid var(--t-line); margin-bottom: .75rem; background: linear-gradient(180deg, #fff 0%, var(--t-50) 100%);
  box-shadow: 0 1px 2px rgba(12,31,23,.04), 0 12px 28px -16px rgba(12,31,23,.22); transition: box-shadow .2s, transform .2s; }
.msgx .msg.mc:hover { box-shadow: 0 1px 2px rgba(12,31,23,.05), 0 18px 36px -16px rgba(12,31,23,.28); }
.msgx .msg.is-highlight { border-color: var(--t); }
.msgx .msg.is-muted { background: #fafbfa; border-color: var(--mx-line); box-shadow: none; }
.msgx .msg-top { gap: .6rem; }
.msgx .msg-top strong { font-size: 1rem; font-weight: 600; color: var(--mx-ink); }
.msgx .msg-when { color: var(--mx-text); font-size: .85rem; font-weight: 500; }
.msgx .msg.mc .mc-side { color: var(--mx-ink); font-weight: 600; font-size: .85rem; }
.msgx .msg-route { margin-top: .3rem; font-size: 1.02rem; font-weight: 800; color: var(--mx-ink); }
.msgx .msg-route i { color: var(--mx-soft); }
.msgx .msg-text { margin-top: .35rem; color: var(--mx-text); font-size: .92rem; }
.msgx .msg-sub { border-top-color: var(--mx-line); }
.msgx .passenger-row + .passenger-row { border-top-color: var(--mx-line); }

/* Icono redondo verde / avatar */
.msgx .msg > .avatar { width: 44px; height: 44px; font-size: 1rem; align-self: flex-start; box-shadow: none; }
.msgx .msg > .avatar.tone-green { background: var(--t-100); color: var(--t); }
.msgx .msg:has(.chip-green) > .avatar:not(.tone-green) { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #7cc9a0; overflow: visible; }
.msgx .msg:has(.chip-green) > .avatar:not(.tone-green)::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border-radius: 50%; background: #22b573; border: 2px solid #fff; z-index: 2; }

/* Píldoras de estado e información */
.msgx .chip { background: rgba(255,255,255,.8); color: var(--mx-text); border: 1px solid var(--t-line); font-weight: 600; font-size: .8rem; box-shadow: none; padding: .25rem .7rem; }
.msgx .chip i { color: var(--mx-soft); }
.msgx .chip-green { background: var(--t-100); color: var(--t-d); font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.msgx .chip-green::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--t); }
.msgx .chip-amber { background: var(--mx-amber-50); color: #7a4d00; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.msgx .chip-amber::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mx-amber); }
.msgx .chip-rose { background: #fde8ea; color: #9b1c33; font-weight: 700; }
.msgx .chip-dark { background: #0c1f17; color: #fff; font-weight: 700; }

/* Barra de ocupación */
.msgx .mc-progress i { height: 8px; background: #e5e8e7; }
.msgx .mc-progress i { background: var(--t-100); }
.msgx .mc-progress b { background: var(--t); box-shadow: none; }
.msgx .mc-progress em { color: var(--mx-ink); font-weight: 700; }

/* Botones */
.msgx .btn { border-radius: 999px; font-weight: 700; }
.msgx .btn-sm { padding: .5rem 1.05rem; font-size: .88rem; }
.msgx .btn-primary, .msgx .btn-wa { background: var(--t); color: #fff; border: 0; box-shadow: none; }
.msgx .btn-primary:hover, .msgx .btn-wa:hover { background: var(--t-d); transform: none; }
.msgx .btn-light, .msgx .btn-soft { background: #fff; color: var(--mx-ink); border: 1px solid #d9dfdc; box-shadow: none; }
.msgx .btn-light:hover, .msgx .btn-soft:hover { background: #f5f7f6; border-color: #b9c4bf; }
.msgx .btn-danger-soft { background: #fff; color: #b4233f; border: 1px solid #f3c6cd; }
.msgx .btn-danger-soft:hover { background: #fff3f5; }
.msgx .mc-ghost { color: var(--mx-ink); font-weight: 600; font-size: .88rem; border-radius: 999px; }
.msgx .mc-ghost:hover { background: #f1f3f2; color: #b4233f; }
.msgx .history > summary { color: var(--mx-text); font-weight: 700; }
.msgx .hint { color: var(--mx-soft); }

/* Estado vacío: tarjeta fina con la ilustración que asoma por encima */
.msgx .mc-empty { position: relative; display: flex; align-items: center; min-height: 3.8rem; overflow: visible; padding: 1rem 210px 1rem 1.2rem; border-radius: 20px; border: 1px solid var(--t-line); background: linear-gradient(180deg, #fff 0%, var(--t-50) 100%);
  box-shadow: 0 1px 2px rgba(12,31,23,.04), 0 12px 28px -16px rgba(12,31,23,.22); margin-top: 1.9rem; }
.msgx .mc-empty p { color: var(--mx-ink); font-size: .95rem; font-weight: 500; }
.msgx .mc-empty .link { color: var(--t-d); font-weight: 800; text-decoration: none; }
.msgx .mc-empty .link:hover { text-decoration: underline; }
.msgx .mc-art { position: absolute; right: 1.2rem; bottom: 0; width: 180px; height: auto; max-height: none; }
.msgx .mc-empty:not(:has(.mc-art)) { margin-top: 0; padding-right: 1.45rem; }
@media (max-width: 640px) { .msgx .mc-empty { display: block; margin-top: 7.5rem; padding: 1.15rem 1.2rem; } .msgx .mc-art { left: 50%; right: auto; transform: translateX(-50%); width: 190px; bottom: calc(100% - 1px); } }

/* Tu solicitud publicada (Buscando conductor) */
.msgx .rq-card { border-radius: 20px; border: 1px solid var(--t-line); background: linear-gradient(180deg, #fff 0%, var(--t-50) 100%); padding: 1rem 1.2rem; box-shadow: 0 1px 2px rgba(12,31,23,.04), 0 12px 28px -16px rgba(12,31,23,.22); }
.msgx .rq-card::before { display: none; }
.msgx .rq-status { background: var(--mx-amber-50); color: #7a4d00; font-weight: 700; font-size: .9rem; padding: .35rem .9rem; }
.msgx .rq-status b { background: var(--mx-amber); }
.msgx .rq-own { color: var(--mx-soft); letter-spacing: .08em; }
.msgx .rq-pin { border: 1px solid var(--t-line); background: #fff; border-radius: 14px; box-shadow: none; padding: .45rem .8rem; }
.msgx .rq-pin small { color: var(--t-d); }
.msgx .rq-pin--end small { color: var(--t-d); }
.msgx .rq-pin strong { font-size: 1rem; font-weight: 800; color: var(--mx-ink); }
.msgx .rq-line::before { border-top: 2px dashed var(--t); }
@media (max-width: 520px) { .msgx .rq-line::before { border-top: 0; border-left: 2px dashed var(--t); } }
.msgx .rq-line i { border: 2px solid var(--t); color: var(--t); }
.msgx .rq-chips span { background: #fff; border: 1px solid var(--t-line); color: var(--mx-ink); font-weight: 600; padding: .3rem .85rem; }
.msgx .rq-chips i { color: var(--mx-ink); }
.msgx .rq-text { color: var(--mx-soft); }

/* Un color por sección */
.msgx .tone-blue  { --t: #2563eb; --t-d: #1d4ed8; --t-50: #f2f7ff; --t-100: #dfeafe; --t-line: #cfdffa; }
.msgx .tone-green { --t: #12794a; --t-d: #0d6339; --t-50: #f2faf5; --t-100: #dff3e7; --t-line: #cfe8d9; }
.msgx .tone-amber { --t: #c2680a; --t-d: #a05306; --t-50: #fff8ec; --t-100: #fdebc8; --t-line: #f2dcb2; }
.msgx .tone-rose  { --t: #d1345b; --t-d: #b02548; --t-50: #fff5f7; --t-100: #fde1e7; --t-line: #f6ccd6; }

/* Bandeja vacía */
.msgx .nm-card { border-radius: 24px; border: 1px solid var(--mx-line); background: #fff; box-shadow: 0 1px 2px rgba(12,31,23,.04), 0 18px 36px -22px rgba(12,31,23,.25); }
.msgx .nm-card h3 { font-weight: 800; letter-spacing: -.02em; color: var(--mx-ink); }
.msgx .nm-tile { border-radius: 18px; border-color: var(--mx-line); }
.msgx .nm-tile:hover { border-color: var(--t); }
.msgx .nm-tile > span { background: var(--t-50); color: var(--t); }
.msgx .nm-out .nm-av, .msgx .nm-out .nm-lines { background: var(--t); border-color: var(--t); }

/* ---------------------------------------------------------------------
   GUÍA Y AYUDA · pantalla ancha (como Solicitudes), tarjetas blancas sobre fondo azul pálido
   --------------------------------------------------------------------- */
#view-ayuda { background: linear-gradient(180deg, #edf2f8 0%, #f4f7fb 38%, #f8fafc 100%); min-height: 60vh; }
.help-page { padding-top: 2.25rem; padding-bottom: 5rem; }
.help-head { margin-bottom: 1.4rem; }
.help-kicker { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #0f766e; background: #fff; border: 1px solid #cfe7e4; padding: .28rem .8rem; border-radius: 999px; box-shadow: 0 6px 14px -10px rgba(13,148,136,.6); }
.help-head .h-page { margin-top: .7rem; font-size: clamp(2.1rem, 4.6vw, 3rem); letter-spacing: -.025em; }
.help-head .lead { margin-top: .4rem; font-size: 1.12rem; color: #475569; }

/* Pestañas: cápsula gris azulada, scroll sin barra, pegada arriba al desplazar */
#view-ayuda .help-nav { position: sticky; top: .75rem; z-index: 20; display: flex; width: 100%; gap: .25rem; padding: .4rem; border-radius: 999px; overflow-x: auto; scrollbar-width: none;
  background: rgba(226, 232, 240, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 14px 30px -22px rgba(15,23,42,.5); }
#view-ayuda .help-nav::-webkit-scrollbar { display: none; }
#view-ayuda .help-nav .filter-chip { flex: 1 1 auto; justify-content: center; font-size: .98rem; padding: .62rem 1.1rem; border-radius: 999px; transition: background .2s, box-shadow .2s; }
#view-ayuda .help-nav .filter-chip:hover { background: rgba(255,255,255,.6); }
#view-ayuda .help-nav .filter-chip.is-active { background: #fff; color: #0f172a; box-shadow: 0 6px 14px -8px rgba(15,23,42,.45); }
#view-ayuda .help-nav .filter-chip.is-active i { color: #0d9488; }

#view-ayuda .help-section { padding-top: 3rem; scroll-margin-top: 5rem; }
#view-ayuda .h-section { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.02em; }
#view-ayuda .help-section > p.muted { font-size: 1.02rem; color: #475569; max-width: 46rem; }

/* Calculadora */
#view-ayuda .hc-calc { gap: 2.2rem; padding: 2rem 2.2rem; border-radius: 26px; border: 1px solid #e6edf4; box-shadow: 0 24px 50px -34px rgba(15,23,42,.45); }
.hc-range input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, #0d9488 var(--p, 40%), #dbe3ec var(--p, 40%)); }
.hc-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #0d9488; box-shadow: 0 4px 10px -2px rgba(13,148,136,.6); }
.hc-range input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #0d9488; box-shadow: 0 4px 10px -2px rgba(13,148,136,.6); }
.hc-range input[type=range]:focus-visible { box-shadow: 0 0 0 4px rgba(13,148,136,.22); }
.hc-bubble { left: 0; transform: translateX(-50%); transition: left .05s linear; }
.hc-bubble::before { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; background: #0d9488; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.hc-ends { margin-top: -30px; }
.hc-result { border-radius: 20px; background: linear-gradient(180deg, #eef6f7, #e6f0f3); border: 1px solid #dbe9ee; }

/* Consejos: tarjetas con icono + título en línea y texto debajo */
#view-ayuda .tips.tg { grid-template-columns: repeat(3, 1fr); gap: 14px; }
#view-ayuda .tips.tg li { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 8px; align-content: start; padding: 18px 20px; border-radius: 20px; background: #fff; border: 1px solid #e8eef4;
  box-shadow: 0 14px 28px -22px rgba(15,23,42,.45); transition: transform .18s, box-shadow .18s, border-color .18s; font-size: .95rem; line-height: 1.55; }
#view-ayuda .tips.tg li:hover { transform: translateY(-2px); border-color: #cfe7e4; box-shadow: 0 20px 34px -22px rgba(13,148,136,.5); }
#view-ayuda .tips.tg li i { grid-row: 1; grid-column: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; margin: 0; font-size: 1.05rem; color: #0d9488; background: linear-gradient(160deg, #e6f6f3, #d3efe9); text-align: center; }
#view-ayuda .tips.tg li b { grid-row: 1; grid-column: 2; margin: 0; font-size: 1.04rem; line-height: 1.3; color: #0f172a; }
#view-ayuda .tips.tg li span { grid-row: 2; grid-column: 1 / -1; color: #475569; }
/* última tarjeta suelta: ocupa todo el ancho */
#view-ayuda .tips.tg li:last-child:nth-child(3n+1) { grid-column: 1 / -1; grid-template-columns: auto auto 1fr; align-items: center; }
#view-ayuda .tips.tg li:last-child:nth-child(3n+1) span { grid-row: 1; grid-column: 3; }
@media (max-width: 900px) {
  #view-ayuda .tips.tg { grid-template-columns: 1fr 1fr; }
  #view-ayuda .tips.tg li:last-child:nth-child(3n+1) { grid-column: auto; grid-template-columns: auto 1fr; }
  #view-ayuda .tips.tg li:last-child:nth-child(3n+1) span { grid-row: 2; grid-column: 1 / -1; }
  #view-ayuda .tips.tg li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  #view-ayuda .tips.tg { grid-template-columns: 1fr; }
  #view-ayuda .hc-calc { padding: 1.4rem 1.2rem; }
  #view-ayuda .help-nav .filter-chip { flex: 0 0 auto; }
}

/* Puntos de encuentro y teléfonos */
#view-ayuda #puntos-encuentro .card-soft { background: #fff; border: 1px solid #e8eef4; border-radius: 22px; padding: 1.4rem 1.5rem; box-shadow: 0 14px 28px -22px rgba(15,23,42,.45); }
#view-ayuda #puntos-encuentro .tips li { font-size: .95rem; }
#view-ayuda #puntos-encuentro .tips li i { color: #0d9488; }

/* Preguntas y normas */
#view-ayuda .faq details { background: #fff; border: 1px solid #e8eef4; border-radius: 20px; transition: box-shadow .2s, border-color .2s; }
#view-ayuda .faq details:hover { border-color: #cfe7e4; }
#view-ayuda .faq details[open] { box-shadow: 0 18px 34px -24px rgba(13,148,136,.45); border-color: #bfe0dc; }
#view-ayuda .faq summary { padding: 1.15rem 1.4rem; font-size: 1.02rem; }
#view-ayuda .faq summary i.chev { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #f1f5f9; color: #64748b; font-size: .8rem; }
#view-ayuda .faq details[open] summary i.chev { background: #d9f1ed; color: #0d9488; }
#view-ayuda .faq .faq-body { padding: 0 1.4rem 1.3rem; }

/* ---------------------------------------------------------------------
   NOSOTROS · filosofía y beneficios (ab-*)  — misma paleta crema y esmeralda de la portada
   --------------------------------------------------------------------- */
.ab { --ab-green: #047857; --ab-green-d: #065f46; --ab-cream: #f6f0e6; --ab-cream-2: #f1e8da; --ab-line: #e4d9c7; --ab-ink: #0f172a; --ab-text: #334155; background: #fff; }
.ab .page { padding-top: 0; padding-bottom: 0; }
.ab-btn { display: inline-flex; align-items: center; gap: .55rem; background: var(--ab-green); color: #fff; font-weight: 800; font-size: .98rem; padding: .85rem 1.4rem; border-radius: 14px; text-decoration: none; border: 2px solid var(--ab-green); box-shadow: 0 14px 24px -14px rgba(4,120,87,.85); transition: transform .15s, background .15s, box-shadow .15s; }
.ab-btn:hover { background: var(--ab-green-d); border-color: var(--ab-green-d); transform: translateY(-2px); }
.ab-btn--ghost { background: #fff; color: var(--ab-green); box-shadow: none; }
.ab-btn--ghost:hover { background: #ecfdf5; color: var(--ab-green-d); }
.ab-btn--light { background: #fff; color: var(--ab-green-d); border-color: #fff; box-shadow: 0 14px 26px -14px rgba(0,0,0,.5); }
.ab-btn--light:hover { background: #f0fdf4; border-color: #f0fdf4; }
.ab-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); box-shadow: none; }
.ab-btn--outline:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.ab-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.ab-cta--center { justify-content: center; }

/* Portada */
.ab-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fbf8f3 0%, var(--ab-cream) 55%, var(--ab-cream-2) 100%); border-bottom: 1px solid var(--ab-line); }
.ab-hero::before { content: ""; position: absolute; right: -8rem; top: -8rem; width: 30rem; height: 30rem; border-radius: 50%; background: radial-gradient(circle, rgba(16,185,129,.16), transparent 68%); }
.ab-hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; padding-top: 3.5rem !important; padding-bottom: 0 !important; }
.ab-kicker { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9f1239; background: #fff; border: 1px solid #f6d3da; padding: .32rem .85rem; border-radius: 999px; box-shadow: 0 8px 16px -12px rgba(159,18,57,.5); }
.ab-hero h1 { margin: 1rem 0 1rem; font-size: clamp(2.3rem, 5.2vw, 3.8rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; color: var(--ab-ink); }
.ab-hero h1 em { font-style: normal; color: var(--ab-green); background: linear-gradient(transparent 68%, rgba(16,185,129,.25) 68%); }
.ab-lead { font-size: 1.14rem; line-height: 1.7; color: var(--ab-text); max-width: 36rem; }
.ab-lead strong { color: var(--ab-ink); }
.ab-pills { list-style: none; margin: 1.6rem 0 0; padding: 0 0 3rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.ab-pills li { display: inline-flex; align-items: center; gap: .45rem; font-size: .86rem; font-weight: 700; color: #3f3a2e; background: rgba(255,255,255,.75); border: 1px solid var(--ab-line); padding: .4rem .85rem; border-radius: 999px; }
.ab-pills i { color: var(--ab-green); }
.ab-hero__art { position: relative; align-self: end; display: flex; justify-content: center; }
.ab-hero__art img { position: relative; z-index: 1; width: min(100%, 31rem); height: auto; display: block; }
.ab-hero__blob { position: absolute; left: 4%; right: 4%; bottom: 0; height: 70%; border-radius: 50% 50% 0 0; background: radial-gradient(ellipse at 50% 100%, #ead9bb 0%, rgba(234,217,187,0) 70%); }
.ab-hero__art .hv-float { z-index: 2; }
.ab-hero__art .hv-float--a { left: 6%; top: 34%; }
.ab-hero__art .hv-float--b { right: 10%; top: 8%; }

/* Tres ideas */
.ab-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: -1.6rem !important; position: relative; z-index: 3; }
.ab-trio__item { background: #fff; border: 1px solid var(--ab-line); border-radius: 22px; padding: 1.3rem 1.4rem; box-shadow: 0 22px 40px -28px rgba(120,90,40,.55); }
.ab-trio__item > span { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 14px; background: #d1fae5; color: var(--ab-green); font-size: 1.15rem; margin-bottom: .7rem; }
.ab-trio__item h2 { font-size: 1.2rem; font-weight: 800; color: var(--ab-ink); }
.ab-trio__item p { margin-top: .3rem; color: var(--ab-text); line-height: 1.55; font-size: .95rem; }

/* Secciones */
.ab-section { padding-top: 4.5rem !important; padding-bottom: 0 !important; }
.ab-head { max-width: 42rem; margin-bottom: 2rem; }
.ab-eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ab-green); }
.ab-eyebrow--light { color: #6ee7b7; }
.ab-head h2 { margin-top: .4rem; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; color: var(--ab-ink); }
.ab-head p { margin-top: .7rem; font-size: 1.05rem; line-height: 1.65; color: var(--ab-text); }

/* Beneficios */
.ab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.ab-card { background: #fff; border: 1px solid #e8edf2; border-radius: 24px; padding: 1.6rem; box-shadow: 0 18px 34px -28px rgba(15,23,42,.5); transition: transform .2s, box-shadow .2s, border-color .2s; }
.ab-card:hover { transform: translateY(-4px); border-color: #a7f3d0; box-shadow: 0 26px 44px -26px rgba(4,120,87,.45); }
.ab-ico { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 16px; background: linear-gradient(160deg, #d1fae5, #a7f3d0); color: var(--ab-green-d); font-size: 1.2rem; margin-bottom: 1rem; }
.ab-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--ab-ink); }
.ab-card p { margin-top: .45rem; color: var(--ab-text); line-height: 1.6; font-size: .96rem; }

/* Cómo funciona */
.ab-band { margin-top: 4.5rem; padding-bottom: 4.5rem; background: linear-gradient(180deg, var(--ab-cream) 0%, var(--ab-cream-2) 100%); border-block: 1px solid var(--ab-line); }
.ab-band .ab-section { padding-top: 4rem !important; }
.ab-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: none; position: relative; }
.ab-steps li { position: relative; background: rgba(255,255,255,.7); border: 1px solid var(--ab-line); border-radius: 24px; padding: 1.8rem 1.6rem 1.6rem; }
.ab-steps li:not(:last-child)::after { content: "\f061"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: -1.3rem; top: 50%; transform: translateY(-50%); z-index: 2; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; background: #fff; color: var(--ab-green); border: 1px solid var(--ab-line); border-radius: 50%; font-size: .8rem; box-shadow: 0 8px 16px -10px rgba(0,0,0,.4); }
.ab-num { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--ab-green); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem; box-shadow: 0 10px 18px -10px rgba(4,120,87,.9); }
.ab-steps h3 { font-size: 1.2rem; font-weight: 800; color: var(--ab-ink); }
.ab-steps p { margin-top: .4rem; color: var(--ab-text); line-height: 1.6; }

/* Principios */
.ab-values { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.4rem; padding: 2.8rem; border-radius: 32px; color: #fff; background: radial-gradient(circle at 12% 0%, #0f8a68 0%, #065f46 45%, #064e3b 100%); box-shadow: 0 34px 60px -38px rgba(4,78,59,.9); }
.ab-values__intro h2 { margin-top: .4rem; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.ab-values__intro p { margin-top: .8rem; color: #d1fae5; line-height: 1.65; }
.ab-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.3rem; color: #fff; font-weight: 800; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.4); padding-bottom: 2px; }
.ab-link:hover { border-bottom-color: #fff; }
.ab-values__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.ab-values__list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: 20px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); }
.ab-values__list i { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 14px; background: rgba(255,255,255,.16); color: #a7f3d0; font-size: 1.05rem; }
.ab-values__list strong { display: block; font-size: 1.05rem; }
.ab-values__list span { display: block; margin-top: .15rem; color: #d1fae5; line-height: 1.55; font-size: .94rem; }

/* Para quién */
.ab-who__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.ab-who__item { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; background: #fff; border: 1px solid #e8edf2; border-radius: 20px; padding: 1rem 1.2rem; text-decoration: none; color: var(--ab-ink); box-shadow: 0 14px 28px -24px rgba(15,23,42,.5); transition: transform .18s, border-color .18s, box-shadow .18s; }
.ab-who__item:hover { transform: translateY(-3px); border-color: #a7f3d0; box-shadow: 0 22px 36px -24px rgba(4,120,87,.5); }
.ab-who__item i { grid-row: 1 / 3; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 15px; background: #ecfdf5; color: var(--ab-green); font-size: 1.15rem; }
.ab-who__item strong { font-size: 1.05rem; font-weight: 800; }
.ab-who__item span { font-size: .86rem; color: #64748b; }

/* Cierre */
.ab-final { padding-top: 4.5rem !important; padding-bottom: 5rem !important; }
.ab-final__card { text-align: center; padding: 3.2rem 1.5rem; border-radius: 32px; color: #fff; background: radial-gradient(circle at 80% 0%, #10b981 0%, #047857 50%, #065f46 100%); box-shadow: 0 34px 60px -38px rgba(4,120,87,.9); }
.ab-final__card h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.ab-final__card p { margin: .6rem auto 0; max-width: 32rem; font-size: 1.1rem; line-height: 1.6; color: #d1fae5; }

@media (max-width: 960px) {
  .ab-hero__grid { grid-template-columns: 1fr; padding-top: 2.4rem !important; gap: 0; }
  .ab-pills { padding-bottom: 1.5rem; }
  .ab-hero__art img { width: min(100%, 24rem); }
  .ab-trio, .ab-grid, .ab-who__grid { grid-template-columns: 1fr 1fr; }
  .ab-steps { grid-template-columns: 1fr; }
  .ab-steps li:not(:last-child)::after { right: auto; left: 2.6rem; top: auto; bottom: -1.3rem; transform: rotate(90deg); }
  .ab-values { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
}
@media (max-width: 600px) {
  .ab-trio, .ab-grid, .ab-who__grid { grid-template-columns: 1fr; }
  .ab-trio { margin-top: -1rem !important; }
  .ab-section { padding-top: 3.2rem !important; }
  .ab-band { margin-top: 3.2rem; padding-bottom: 3.2rem; }
  .ab-cta .ab-btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .ab-hero__text > *, .ab-hero__art { animation: ab-rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .ab-hero__text > *:nth-child(2) { animation-delay: .08s; } .ab-hero__text > *:nth-child(3) { animation-delay: .16s; } .ab-hero__text > *:nth-child(4) { animation-delay: .24s; } .ab-hero__text > *:nth-child(5) { animation-delay: .32s; } .ab-hero__art { animation-delay: .2s; }
}
@keyframes ab-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }


/* ===== Auditoría UX: correcciones ===== */
/* Mes del calendario: «Octubre de 2026» (antes salía «Octubre De 2026») */
.calendar-header > span:first-letter { text-transform: uppercase; }

/* Botón «Publicar» siempre visible en móvil (antes solo estaba dentro del menú) */
.btn-publicar--mobile {
  display: inline-flex; align-items: center; gap: .35rem;
  background: #a3e635; color: #0f172a; font-weight: 800; font-size: .82rem;
  padding: .5rem .85rem; border-radius: 999px; line-height: 1; white-space: nowrap;
  box-shadow: 0 6px 14px -8px rgba(0,0,0,.5);
}
.btn-publicar--mobile:active { transform: scale(.97); }
@media (min-width: 1024px) { .btn-publicar--mobile { display: none; } }

/* Título del hero: se ajusta en pantallas pequeñas sin desbordar */
.hero-title { font-size: clamp(1.7rem, 7.4vw, 3rem); line-height: 1.12; text-wrap: balance; }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }

/* Banner de cookies compacto en móvil: ya no tapa los botones principales */
@media (max-width: 639px) {
  #cc-banner { padding: .5rem; }
  #cc-banner > div { padding: .85rem !important; gap: .6rem !important; border-radius: 1.1rem !important; }
  #cc-banner .cc-text { font-size: .78rem; line-height: 1.35; }
  #cc-banner .cc-actions { flex-direction: row !important; flex-wrap: wrap; gap: .45rem !important; }
  #cc-banner .cc-actions button { flex: 1 1 0; padding: .6rem .5rem; min-height: 44px; }
  #cc-banner .cc-actions [data-cc=config] { flex-basis: 100%; min-height: 36px; border: 0; background: transparent; text-decoration: underline; padding: .2rem; }
}

/* Botón de cerrar del aviso de bienvenida */
.dlg-x { position: absolute; top: .6rem; right: .6rem; width: 40px; height: 40px; border-radius: 999px; color: #64748b; display: grid; place-items: center; }
.dlg-x:hover { background: #f1f5f9; color: #0f172a; }

/* Zonas táctiles mínimas (44px) en controles pequeños de móvil */
@media (max-width: 767px) {
  .cal-nav, .filter-chip, .hdr-link { min-height: 40px; }
  .cal-nav { min-width: 40px; }
  .calendar-day { min-height: 40px; }
}
#app-dialog .dlg-body { position: relative; }

.btn-publicar--mobile { min-height: 40px; padding: .5rem .9rem; }
@media (max-width: 359px) {
  .site-header .logo { gap: .5rem; }
  .site-header .logo > div:first-child { width: 2.25rem !important; height: 2.25rem !important; }
  .site-header .brand-name { font-size: 1.2rem !important; }
  .nav-actions { gap: 6px; }
  .btn-publicar--mobile i { display: none; }
  .btn-publicar--mobile { padding: .5rem .7rem; }
}
/* Enlaces del pie: zona táctil cómoda en móvil */
@media (max-width: 767px) {
  #site-footer ul a { display: inline-flex; align-items: center; min-height: 32px; }
  #site-footer nav a, #site-footer nav button { display: inline-flex; align-items: center; min-height: 36px; }
}

/* Errores de validación acumulados: también en casillas */
.check-row.is-invalid { color: #be123c; }
.check-row.is-invalid input { outline: 2px solid #f43f5e; outline-offset: 2px; }
.check-row + .error-text { margin-top: .35rem; margin-bottom: .6rem; }


/* ---------------------------------------------------------------------
   TARJETAS DE CATEGORÍAS DE LA PORTADA (diseños A, B, C y D · se eligen en Panel → Ajustes)
   --------------------------------------------------------------------- */
.hcats { max-width: 72rem; margin: 0 auto; padding: .5rem 1rem 1rem; }
.hc a { display: block; color: inherit; text-decoration: none; }
.hc a:focus-visible { outline: 3px solid #10b981; outline-offset: 3px; }
.hc img { display: block; }
.hc b { display: block; line-height: 1.2; }
/* A · limpia */
.hc-a { display: flex; gap: 1.1rem; overflow-x: auto; padding: .4rem .25rem 1rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.hc-a .hc-card { flex: 0 0 15.5rem; scroll-snap-align: start; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: transform .2s, box-shadow .2s; }
.hc-a .hc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -12px rgba(15,23,42,.25); }
.hc-a .hc-im { aspect-ratio: 4/3; background: #f1f5f9; }
.hc-a .hc-im img { width: 100%; height: 100%; object-fit: cover; }
.hc-a .hc-tx { padding: .9rem 1rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.hc-a b { font-size: 1rem; color: #0f172a; } .hc-a small { color: #64748b; font-size: .82rem; }
.hc-a .hc-go { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #ecfdf5; color: #047857; display: grid; place-items: center; font-weight: 800; }
/* B · foto completa */
.hc-b { display: flex; gap: 1rem; overflow-x: auto; padding: .3rem .15rem .8rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.hc-b .hc-card { position: relative; flex: 0 0 14.4rem; aspect-ratio: 3/4; border-radius: 24px; overflow: hidden; scroll-snap-align: start; color: #fff; transition: transform .25s; }
.hc-b .hc-card:hover { transform: scale(1.02); }
.hc-b .hc-im, .hc-b .hc-im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc-b .hc-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,20,30,.9) 0%, rgba(8,20,30,.4) 45%, rgba(8,20,30,0) 70%); }
.hc-b .hc-tx { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; z-index: 2; }
.hc-b b { font-size: 1.1rem; } .hc-b small { opacity: .9; font-size: .82rem; }
.hc-b .hc-go { display: inline-block; margin-top: .6rem; font-size: .75rem; font-weight: 800; background: #a3e635; color: #0f172a; padding: .4rem .8rem; border-radius: 99px; }
/* C · cuadrícula con iconos */
.hc-c { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.hc-c .hc-card { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1rem; border: 1px solid #e2e8f0; border-radius: 18px; background: #f8fafc; transition: background .2s, border-color .2s, box-shadow .2s; }
.hc-c .hc-card:hover { background: #fff; border-color: #10b981; box-shadow: 0 10px 24px -14px rgba(16,185,129,.6); }
.hc-c .hc-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.hc-c b { font-size: .95rem; color: #0f172a; } .hc-c small { color: #64748b; font-size: .82rem; }
.hc-c .hc-go { display: none; }
@media (min-width: 700px) { .hc-c { grid-template-columns: repeat(3, 1fr); gap: .9rem; } .hc-c .hc-card { flex-direction: row; align-items: center; } }
/* D · color de cada categoría */
.hc-d { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.hc-d .hc-card { position: relative; border-radius: 22px; overflow: hidden; color: #fff; display: flex; flex-direction: column; min-height: 12.5rem; background: linear-gradient(150deg, var(--c1), var(--c2)); transition: transform .2s, box-shadow .2s; }
.hc-d .hc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -16px rgba(0,0,0,.5); }
.hc-d .hc-tx { padding: .9rem .9rem 0; padding-right: 3rem; }
.hc-d b { font-size: .98rem; } .hc-d small { opacity: .85; font-size: .78rem; display: block; margin-top: .15rem; }
.hc-d .hc-im { margin-top: auto; display: flex; justify-content: flex-end; padding-left: 2.2rem; }
.hc-d .hc-im img { width: 78%; height: 7.4rem; object-fit: cover; border-radius: 18px 0 0 0; box-shadow: -6px -6px 24px rgba(0,0,0,.25); }
.hc-d .hc-go { position: absolute; top: .8rem; right: .8rem; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 800; backdrop-filter: blur(4px); }
@media (min-width: 700px) { .hc-d { grid-template-columns: repeat(3, 1fr); gap: 1rem; } .hc-d .hc-card { min-height: 14.4rem; } .hc-d b { font-size: 1.12rem; } .hc-d .hc-tx { padding: 1.1rem 1.1rem 0; padding-right: 3.2rem; } .hc-d .hc-im img { height: 8.1rem; } }
@media (prefers-reduced-motion: reduce) { .hc a { transition: none !important; } .hc a:hover { transform: none !important; } }


/* ---------------------------------------------------------------------
   PUBLICIDAD: carrusel de portada y página «Anunciarse»
   --------------------------------------------------------------------- */
.hads { background: #fffbeb; border-block: 1px solid #fde68a; padding: 1.6rem 0 1.4rem; }
.hads-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.hads-head h2 { font-size: 1.3rem; font-weight: 800; color: #0f172a; }
.hads-head .muted { font-size: .85rem; color: #64748b; }
.hads-more { font-size: .85rem; font-weight: 800; color: #92400e; text-decoration: underline; }
.hads-track { display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .3rem .1rem 1rem; scrollbar-width: thin; }
.hads-card { position: relative; flex: 0 0 16.5rem; scroll-snap-align: start; background: #fff; border: 1px solid #fde68a; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(120,53,15,.06); }
.hads-badge { position: absolute; top: .6rem; left: .6rem; z-index: 2; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: #fef3c7; color: #78350f; padding: .18rem .55rem; border-radius: 99px; }
.hads-media { height: 6.2rem; background: linear-gradient(135deg, #fde68a, #f59e0b); display: grid; place-items: center; overflow: hidden; }
.hads-media img { width: 100%; height: 100%; object-fit: cover; }
.hads-media span { font-size: 2.4rem; font-weight: 800; color: #fff; }
.hads-body { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.hads-body h3 { font-weight: 800; font-size: 1rem; color: #0f172a; }
.hads-meta { font-size: .78rem; color: #64748b; }
.hads-tag { font-size: .85rem; color: #334155; }
.hads-actions { margin-top: auto; padding-top: .5rem; display: flex; gap: .9rem; flex-wrap: wrap; }
.hads-link { font-size: .82rem; font-weight: 800; color: #047857; text-decoration: underline; }
.hads-card--cta { padding: 2.2rem 1rem 1rem; gap: .35rem; background: linear-gradient(150deg, #0f766e, #065f46); border-color: transparent; color: #fff; }
.hads-card--cta .hads-badge { background: rgba(255,255,255,.2); color: #fff; }
.hads-card--cta h3 { font-weight: 800; font-size: 1.1rem; }
.hads-card--cta p { font-size: .85rem; opacity: .92; }
.hads-cta-ic { font-size: 1.6rem; }
.hads-link--solid { margin-top: auto; align-self: flex-start; background: #fff; color: #065f46; padding: .45rem .8rem; border-radius: 99px; text-decoration: none; }
.hads a:focus-visible, .hads-track:focus-visible { outline: 3px solid #10b981; outline-offset: 3px; }
.adv .lead { color: #475569; }
.adv-price { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1.2rem 0; padding: 1rem 1.2rem; border-radius: 18px; background: #ecfdf5; border: 1px solid #a7f3d0; }
.adv-price small { display: block; color: #047857; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.adv-price strong { font-size: 1.25rem; color: #064e3b; }
.adv-h { font-size: 1.25rem; font-weight: 800; margin: 1.8rem 0 .8rem; color: #0f172a; }
.adv-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .adv-grid { grid-template-columns: 1fr 1fr; } }
.adv-item { display: flex; gap: .8rem; padding: 1rem; border: 1px solid #e2e8f0; border-radius: 16px; background: #f8fafc; }
.adv-item > i { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #d1fae5; color: #047857; }
.adv-item p, .adv-steps p { color: #64748b; font-size: .88rem; margin-top: .15rem; }
.adv-steps { list-style: none; padding: 0; display: grid; gap: .8rem; }
.adv-steps li { display: flex; gap: .8rem; align-items: flex-start; }
.adv-steps li > span { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #0f766e; color: #fff; font-weight: 800; display: grid; place-items: center; }
.adv-pay { padding: 1rem 1.2rem; border: 1px solid #fde68a; background: #fffbeb; border-radius: 16px; margin-bottom: 1rem; }
.adv-pay ul { list-style: none; padding: 0; margin-top: .7rem; display: grid; gap: .4rem; font-size: .9rem; color: #475569; }
.adv-pay li i { color: #b45309; margin-right: .4rem; }

/* Carrusel en color: mismo carrusel «Original» pero con el color de cada categoría y texto blanco (se activa en Panel → Ajustes) */
#cats-original.cats-color a[href^="#/categoria/"] { color: #fff; border-color: rgba(255,255,255,.14); box-shadow: 0 14px 28px -14px rgba(0,0,0,.45); background: linear-gradient(150deg, #0b3d3b, #1f7a72); }
#cats-original.cats-color a[href$="/universidad"] { background: linear-gradient(150deg, #172a6b, #3b5bb5); }
#cats-original.cats-color a[href$="/citas-medicas"] { background: linear-gradient(150deg, #0b3d3b, #1f7a72); }
#cats-original.cats-color a[href$="/eventos"] { background: linear-gradient(150deg, #2a1252, #6a3aa8); }
#cats-original.cats-color a[href$="/trabajo"] { background: linear-gradient(150deg, #1b3555, #2f6aa0); }
#cats-original.cats-color a[href$="/pueblos"] { background: linear-gradient(150deg, #34501a, #5b8a2c); }
#cats-original.cats-color a[href$="/aeropuerto"] { background: linear-gradient(150deg, #0a3d5f, #1d7fb0); }
#cats-original.cats-color a[href^="#/categoria/"] h3 { color: #fff; }
#cats-original.cats-color a[href^="#/categoria/"] p { color: #fff; opacity: .92; }
#cats-original.cats-color a[href^="#/categoria/"] > div { background: rgba(255,255,255,.12); }

/* ---------------------------------------------------------------------
   PUBLICIDAD · nuevo diseño: banda azul acero suave que se funde con el blanco (arriba y abajo)
   y tarjetas más grandes. También la página «Anunciarse» en formato amplio.
   --------------------------------------------------------------------- */
.hads { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #e6eef7 12%, #d7e4f1 55%, #e6eef7 90%, rgba(255,255,255,0) 100%); border-block: 0; padding: 3rem 0 3.2rem; }
.hads-head h2 { font-size: 1.6rem; letter-spacing: -.02em; color: #0f2a44; }
.hads-head .muted { color: #4b647d; font-size: .92rem; }
.hads-more { color: #1e4f80; font-size: .9rem; }
.hads-track { gap: 1.1rem; padding: .5rem .2rem 1.4rem; }
.hads-card { flex: 0 0 19rem; border: 1px solid #c3d4e6; border-radius: 24px; box-shadow: 0 18px 34px -24px rgba(30,79,128,.55); transition: transform .2s, box-shadow .2s; }
.hads-card:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -24px rgba(30,79,128,.6); }
.hads-badge { background: rgba(255,255,255,.92); color: #1e4f80; box-shadow: 0 4px 10px -6px rgba(15,42,68,.5); }
.hads-media { height: 8.4rem; background: linear-gradient(135deg, #6f93b8, #2f5f8f); }
.hads-body { padding: 1.05rem 1.2rem 1.25rem; gap: .35rem; }
.hads-body h3 { font-size: 1.15rem; color: #0f2a44; }
.hads-meta { font-size: .84rem; color: #587089; }
.hads-tag { font-size: .92rem; color: #334155; }
.hads-link { color: #1e4f80; font-size: .88rem; }
.hads-card--cta { padding: 2.6rem 1.3rem 1.3rem; gap: .5rem; background: linear-gradient(150deg, #2b5683, #17365a); }
.hads-card--cta h3 { font-size: 1.3rem; color: #fff; }
.hads-card--cta p { font-size: .92rem; }
.hads-card--cta .hads-badge { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
.hads-link--solid { color: #17365a; font-size: .9rem; padding: .55rem 1rem; }
.hads a:focus-visible, .hads-track:focus-visible { outline-color: #2f6aa0; }

.page.adv { max-width: 72rem; padding-top: 2.5rem; }
.adv .h-page { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.08; max-width: 52rem; }
.adv .lead { font-size: 1.2rem; line-height: 1.65; max-width: 48rem; }
.adv-price { padding: 1.5rem 1.8rem; border-radius: 22px; margin: 1.8rem 0; }
.adv-price small { font-size: .85rem; }
.adv-price strong { font-size: 1.8rem; }
.adv-h { font-size: 1.7rem; margin: 2.8rem 0 1.1rem; letter-spacing: -.02em; }
.adv-grid { gap: 1.1rem; }
@media (min-width: 640px) { .adv-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .adv-grid { grid-template-columns: repeat(3, 1fr); } }
.adv-item { padding: 1.4rem; border-radius: 22px; gap: 1rem; }
.adv-item > i { width: 52px; height: 52px; font-size: 1.25rem; border-radius: 16px; }
.adv-item strong { font-size: 1.1rem; }
.adv-item p, .adv-steps p { font-size: 1rem; line-height: 1.55; margin-top: .3rem; }
.adv-steps { gap: 1.1rem; }
.adv-steps li { gap: 1rem; font-size: 1.05rem; }
.adv-steps li > span { width: 42px; height: 42px; font-size: 1.1rem; }
.adv-pay { padding: 1.5rem 1.8rem; border-radius: 22px; }
.adv-pay ul { font-size: 1.02rem; gap: .6rem; }

/* Botón de la tarjeta «¿Tu negocio por aquí?» dentro de las categorías */
.ad-cta-card__btn { margin-top: auto; align-self: flex-start; text-decoration: none; }

/* Resultados: en móvil el buscador va recogido y se abre con «Modificar» */
.rt-toggle { display: none; }
@media (max-width: 768px) {
  .results-top .page { padding-top: .8rem; padding-bottom: .8rem; }
  .rt-toggle { display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: .7rem .9rem; box-shadow: 0 6px 18px -12px rgba(15,23,42,.35); cursor: pointer; }
  .rt-toggle__txt { display: flex; flex-direction: column; min-width: 0; }
  .rt-toggle__txt strong { font-size: .98rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rt-toggle__txt small { font-size: .82rem; color: #64748b; margin-top: .1rem; }
  .rt-toggle__act { flex: none; display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 800; color: #047857; background: #ecfdf5; border-radius: 999px; padding: .4rem .75rem; }
  .results-top:not(.rt-open) #results-search { display: none; }
  .results-top.rt-open #results-search { margin-top: .7rem; }
}

/* Tarjetas de «vacío» (sin resultados, solicitud no publicada, sin sesión…): mismo diseño que «Nadie sale por aquí todavía» */
.empty-state.es-card { padding: 0; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 22px 44px -28px rgba(15, 23, 42, .4); max-width: 44rem; margin: 0 auto; }
.es-top { padding: 2rem 1.5rem; display: flex; justify-content: center; background:
  linear-gradient(rgba(16,185,129,.07) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, rgba(16,185,129,.07) 1px, transparent 1px) 0 0 / 28px 28px,
  radial-gradient(circle at 15% 0%, #d1fae5, transparent 55%), radial-gradient(circle at 100% 100%, #e0f2fe, transparent 55%), #f8fafc; }
.es-amber .es-top { background:
  linear-gradient(rgba(245,158,11,.08) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, rgba(245,158,11,.08) 1px, transparent 1px) 0 0 / 28px 28px,
  radial-gradient(circle at 15% 0%, #fef3c7, transparent 55%), radial-gradient(circle at 100% 100%, #ffedd5, transparent 55%), #fffbeb; }
.es-top .empty-icon { margin: 0; box-shadow: 0 12px 24px -14px rgba(15,23,42,.5); border: 1px solid rgba(255,255,255,.8); }
.es-body { padding: 1.6rem 1.5rem 1.9rem; }
.es-body h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: #0f172a; margin-bottom: .4rem; }
.es-body p { margin-bottom: 1.4rem; font-weight: 500; color: #475569; }
.card:has(> .es-card) { padding: 0; border: 0; background: transparent; box-shadow: none; }
@media (max-width: 480px) { .es-top { padding: 1.5rem 1rem; } .es-body h2 { font-size: 1.3rem; } }

/* Carrusel de la portada: margen vertical suficiente para que las tarjetas inclinadas no se corten por abajo ni por arriba */
#marquee-container { padding-top: .5rem; padding-bottom: 1rem; }
#marquee-track { padding-top: 2.5rem; padding-bottom: 5.5rem; }
@media (max-width: 639px) { #marquee-track { padding-top: 2rem; padding-bottom: 4rem; } }

/* Bandas de la portada sin fondo por defecto; el color lo elige el administrador en Panel → Ajustes */
.hads, .hv-band { background: none; border-block: 0; }

/* Menos hueco blanco entre carrusel, «Negocios de tu zona» y «Vecinos que buscan coche» */
#cats-original { padding-bottom: 0; }
#marquee-container { padding-bottom: 0; }
#marquee-track { padding-bottom: 3.6rem; }
@media (max-width: 639px) { #marquee-track { padding-bottom: 3rem; } }
.hads { padding: 1.4rem 0 1.2rem; }
.hads-head { margin-bottom: .6rem; }
.hads-track { padding-bottom: .9rem; }
.hv-band { padding: 1.4rem 0 2rem; }
@media (max-width: 639px) { .hv-band { padding: 1rem 0 1.5rem; } }

/* Publicidad de la portada · estilo dorado premium (sustituye al azul) */
.hads-head h2 { color: #3b2a07; }
.hads-head .muted { color: #7a6334; }
.hads-more { color: #8a5a00; }
.hads-card { border: 1.5px solid transparent; background: linear-gradient(#fffdf6, #fffdf6) padding-box, linear-gradient(135deg, #f6dc86 0%, #c8931e 45%, #f3d77a 70%, #b27c14 100%) border-box; box-shadow: 0 18px 34px -22px rgba(138,90,0,.55); }
.hads-card:hover { box-shadow: 0 26px 44px -22px rgba(138,90,0,.65); }
.hads-badge { background: linear-gradient(135deg, #fbe9a0, #d9a52c); color: #3d2a05; box-shadow: 0 4px 10px -6px rgba(61,42,5,.6); }
.hads-media { background: linear-gradient(135deg, #f6dc86, #c8931e); }
.hads-body h3 { color: #2b1d04; }
.hads-meta { color: #7a6334; }
.hads-tag { color: #4a3b1c; }
.hads-link { color: #8a5a00; }
.hads-card--cta { background: linear-gradient(150deg, #1d2738 0%, #0e1521 100%) padding-box, linear-gradient(135deg, #fbe9a0 0%, #c8931e 45%, #f6dc86 70%, #b27c14 100%) border-box; color: #f4e5b6; }
.hads-card--cta .hads-badge { background: linear-gradient(135deg, #fbe9a0, #d9a52c); color: #3d2a05; }
.hads-card--cta h3 { color: #f6d878; }
.hads-card--cta p { color: #e6d6a2; opacity: 1; }
.hads-cta-ic { color: #f0c75a; }
.hads-link--solid { background: linear-gradient(135deg, #fbe9a0, #d9a52c 60%, #c8931e); color: #2b1d04; box-shadow: 0 10px 20px -12px rgba(200,147,30,.9); white-space: nowrap; }
.hads a:focus-visible, .hads-track:focus-visible { outline-color: #c8931e; }

/* Título del hero legible sobre la ilustración (sobre todo en pantallas grandes) */
.hero-title { position: relative; letter-spacing: -.02em; -webkit-text-stroke: .075em rgba(8, 28, 24, .9); paint-order: stroke fill; text-shadow: 0 3px 0 rgba(8, 28, 24, .55), 0 6px 26px rgba(0, 0, 0, .55); }
.hero-title::before { content: ""; position: absolute; z-index: -1; left: -6%; right: -6%; top: -18%; bottom: -22%; background: radial-gradient(ellipse at center, rgba(8, 28, 24, .62) 0%, rgba(8, 28, 24, .38) 45%, rgba(8, 28, 24, 0) 72%); pointer-events: none; }
.hero-accent { display: inline-block; color: #b6f03c; }
@media (min-width: 1024px) { .hero-title { font-size: 4.25rem; line-height: 1.08; } }
@media (min-width: 1440px) { .hero-title { font-size: 4.9rem; } }
@media (max-width: 639px) { .hero-title { -webkit-text-stroke-width: .06em; } }

/* Tarjeta de publicidad dentro del carrusel de categorías: dorado suave, icono y texto en negro */
.ad-cta-hc { position: relative; background: linear-gradient(150deg, #fdf0c4 0%, #f6dc86 100%) !important; border-color: #e6c25a !important; color: #111 !important; box-shadow: 0 14px 28px -16px rgba(138,90,0,.55); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .35rem; }
.ad-cta-hc[hidden] { display: none !important; }
.ad-cta-hc h3, .ad-cta-hc b, .ad-cta-hc p, .ad-cta-hc small { color: #111 !important; opacity: 1 !important; }
.ad-cta-hc__ic { font-size: 2rem; color: #111; margin: .5rem 0 .2rem; }
.ad-cta-hc__badge { position: absolute; top: .7rem; left: .7rem; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.65); color: #111; padding: .15rem .55rem; border-radius: 99px; }
.ad-cta-hc__btn { margin-top: .6rem; background: #111; color: #f6dc86; font-weight: 800; font-size: .8rem; padding: .45rem .9rem; border-radius: 99px; }
.hc a.ad-cta-hc { padding: 2.4rem 1rem 1rem; }
.hc-b .ad-cta-hc::after { display: none; }
.hc-a .ad-cta-hc { flex-direction: column; }
.hc small { display: block; }

/* Banner «¿No te encaja ninguno?»: siempre separado de los resultados y con aire por debajo */
.results-fit { margin-top: 7rem !important; margin-bottom: 3rem !important; }
#results-body { padding-bottom: 3rem; }

/* Tarjetas informativas que rellenan la primera fila del tablón cuando hay pocas solicitudes */
.req-info { display: none; border: 1.5px dashed #fcd34d; border-radius: 22px; background: #fffbeb; padding: 1.2rem 1.3rem; flex-direction: column; gap: .35rem; }
@media (min-width: 640px) { .req-info { display: flex; } }
.req-info__ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #fef3c7; color: #b45309; font-size: 1.2rem; margin-bottom: .4rem; }
.req-info h3 { font-weight: 800; font-size: 1.05rem; color: #0f172a; }
.req-info p { color: #64748b; font-size: .92rem; line-height: 1.5; }

/* Buscador de solicitudes (para conductores): tono amarillo suave para distinguirlo del buscador de trayectos */
.board-search { margin-top: 1.2rem; padding: 1rem 1.1rem 1.1rem; border-radius: 28px; background: #fef6d8; border: 1px solid #f6e3a0; }
.board-search__t { font-weight: 800; font-size: .95rem; color: #78350f; margin: 0 0 .7rem .4rem; }
.board-search__t i { margin-right: .35rem; color: #b45309; }
.board-search .search-bar--page { background: #fffdf3; border-color: #f0d98a; box-shadow: 0 6px 18px -12px rgba(146,100,0,.45); }
.board-search .btn-buscar { background: #f5b92b; color: #3b2a07; }
.board-search .btn-buscar:hover { background: #e9a812; }
.board-search .input-group:focus-within { background: #fff7d6; }
