/* =====================================================================
   Oléolécar · 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-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 */
.date-range { transition: flex-grow .2s ease; }
/* Buscador del inicio (escritorio): compacto al abrir; al elegir la salida crece un poco para dejar sitio a «Fecha vuelta» */
@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: min(100%, 825px); }
}
.date-range > [data-field="return"] input::placeholder { color: var(--primary-600); font-weight: 700; opacity: 1; }   /* vacío: se lee «Elegir fecha de vuelta» en verde */
.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); }
.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; }

/* Los avisos van en la capa superior del navegador (popover). El estilo por defecto de [popover] pone inset:0 y margin:auto;
   la posición se fija aquí con la misma especificidad, para que no se pierda y el aviso quede centrado arriba. */
#toast-container,
#toast-container[popover] {
  position: fixed; inset: auto; right: auto; bottom: auto;
  top: calc(env(safe-area-inset-top, 0px) + 5.25rem); left: 50%; margin: 0; padding: 0; border: 0;
  transform: translateX(-50%); background: transparent; overflow: visible; color: inherit; 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="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 Notificaciones: 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; }

/* ===== Notificaciones: 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: center; 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; }

/* =====================================================================
   AJUSTES (octubre 2026)
   ===================================================================== */
/* Cabecera en móvil: el logo ya no se solapa con «Publicar» */
@media (max-width: 639px) {
  .site-header { gap: .5rem; }
  .site-header .logo { min-width: 0; flex: 0 1 auto; gap: .5rem; }
  .site-header .logo > div:first-child { width: 2.4rem !important; height: 2.4rem !important; }
  .site-header .brand-name { font-size: clamp(1rem, 5.3vw, 1.4rem) !important; white-space: nowrap; letter-spacing: -.02em; }
  .nav-actions { flex-shrink: 0; gap: 4px; }
  .btn-publicar--mobile { font-size: .76rem; padding: .45rem .7rem; min-height: 38px; }
  .btn-publicar--mobile i { display: none; }
}

/* Carrusel original: sin saltos de layout mientras se anima */
#marquee-container { contain: layout paint; overflow-anchor: none; }
#marquee-track { will-change: transform; backface-visibility: hidden; }
.hero-banner #home-search { contain: layout; }

/* Tarjetas de publicidad apagadas: nunca se ven */
.ad-cta-hc[hidden], [data-ad-cta][hidden] { display: none !important; }

/* ---------- Página «Solicita tu trayecto» ---------- */
.board-head {
  position: relative; overflow: hidden; isolation: isolate;
  border: 0; border-radius: 28px; padding: 1.9rem 2.2rem 3.2rem;
  background: linear-gradient(180deg, var(--tb-c1, #d3f2e1) 0%, var(--tb-c2, #e9f9f0) 58%, #fff 100%);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
}
.board-head::before { /* puntitos suaves */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background: radial-gradient(circle at 1px 1px, rgba(16,185,129,.28) 1.3px, transparent 1.5px) 0 0 / 20px 20px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.board-head__deco { position: absolute; right: -1.2rem; top: -1.6rem; z-index: -1; font-size: 9rem; color: rgba(16,185,129,.13); transform: rotate(-12deg); pointer-events: none; }
.board-head__txt { flex: 1 1 30rem; min-width: 0; }
.board-head__txt .h-page { color: #064e3b; }
.board-head__txt .lead { color: #1f4d3f; margin: .35rem 0 0; font-size: 1.05rem; text-wrap: pretty; }
.board-head__txt .lead:first-of-type { margin-top: .6rem; }
.board-head__cta { box-shadow: 0 12px 24px -12px rgba(16,185,129,.8); }
@media (min-width: 1100px) { .board-head__txt .lead { white-space: nowrap; } }
@media (max-width: 639px) { .board-head { padding: 1.4rem 1.2rem 2.4rem; } .board-head__cta { width: 100%; justify-content: center; } }

/* Buscador + tablón integrados en un único panel con fondo de puntitos */
.board-panel {
  margin-top: -1.4rem; position: relative; padding: 1.1rem 1.1rem 1.4rem; border-radius: 28px;
  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 75%);
  border: 1px solid #fde68a; box-shadow: 0 22px 44px -32px rgba(180,83,9,.5);
}
.board-panel .board-search { margin-top: 0; padding: 0 0 .2rem; background: none; border: 0; border-radius: 0; }
.board-panel .board-search__t { margin-left: .2rem; }
.board-panel__list { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px dashed rgba(180,83,9,.25); }
.board-panel .nb-card { background: none; border: 0; box-shadow: none; padding: 1rem .5rem .6rem; }
@media (max-width: 639px) { .board-panel { padding: .9rem .75rem 1.1rem; border-radius: 22px; } }

/* Móvil: la etiqueta «Sin comisiones…» más separada del título */
@media (max-width: 1023px) {
  .hero-pill { margin-bottom: .9rem; position: relative; top: -.6rem; }
}

/* «Solicita tu trayecto»: banner y panel fundidos en una sola pieza */
.board-head { padding-bottom: 4.2rem; border-bottom-left-radius: 28px; border-bottom-right-radius: 28px; }
.board-panel {
  margin-top: -2.6rem; border-top-color: transparent; padding-top: 1.4rem;
  background:
    radial-gradient(circle at 1px 1px, rgba(180,83,9,.13) 1.2px, transparent 1.3px) 0 0 / 18px 18px,
    linear-gradient(180deg, rgba(255,251,235,0) 0, #fffbeb 3.2rem, #fff 85%);
  box-shadow: none; border-top-left-radius: 28px; border-top-right-radius: 28px;
}
@media (max-width: 639px) { .board-head { padding-bottom: 3.6rem; } .board-panel { margin-top: -2.2rem; } }

/* Fondo de la página «Solicita tu trayecto»: término medio entre la portada (verde oscuro) y «Sevilla se mueve» (crema suave) */
#view-dynamic:is([data-page="board"],[data-page="new-request"]) {
  position: relative; isolation: isolate; padding-bottom: 3.5rem;
  background:
    radial-gradient(60rem 28rem at 88% -6%, rgba(16,185,129,.22), transparent 70%),
    radial-gradient(46rem 24rem at 4% 38%, rgba(163,230,53,.12), transparent 70%),
    linear-gradient(180deg, #b9ddcd 0%, #d9ece2 18%, #f3efe4 48%, #fbf8f3 75%, #fff 100%);
}
#view-dynamic:is([data-page="board"],[data-page="new-request"])::after { /* colinas suaves + ruta punteada, fondo propio de esta página */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: min(30vw, 20rem); z-index: -1; pointer-events: none;
  background: url('../img/fondo-solicitudes-v2.svg') center bottom / 100% 100% no-repeat;
  /* se funde con el blanco por arriba y por abajo: sin cortes */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 50%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 50%, transparent 100%);
}
#view-dynamic:is([data-page="board"],[data-page="new-request"]) > .page { padding-top: 1.6rem; }

/* Móvil: título de la portada más grande */
@media (max-width: 639px) { .hero-title { font-size: clamp(2rem, 8.8vw, 2.9rem); line-height: 1.1; } }

/* ---------- Cielo dinámico de «Solicita tu trayecto» (tiempo y hora de Sevilla) ---------- */
#view-dynamic:is([data-page="board"],[data-page="new-request"])::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
#view-dynamic:is([data-page="board"],[data-page="new-request"]) { transition: background .8s ease; }

/* Soleado: sol en el borde derecho */
#view-dynamic:is([data-page="board"],[data-page="new-request"])[data-sky="sun"]::before {
  opacity: 1;
  background: radial-gradient(circle at 100% 11rem, #fff7c2 0 5.2rem, rgba(255,230,120,.75) 5.3rem, rgba(255,214,80,.28) 9rem, rgba(255,214,80,0) 17rem);
  animation: sky-sun 6s ease-in-out infinite alternate;
}
@keyframes sky-sun { from { filter: brightness(1); } to { filter: brightness(1.08) saturate(1.1); } }

/* Nublado: cielo apagado */
#view-dynamic:is([data-page="board"],[data-page="new-request"])[data-sky="cloud"] {
  background:
    radial-gradient(60rem 28rem at 88% -6%, rgba(255,255,255,.55), transparent 70%),
    linear-gradient(180deg, #b9c9c8 0%, #d6e0de 20%, #eef0ec 50%, #f8f7f3 78%, #fff 100%);
}

/* Lluvia: cielo azul grisáceo y gotas */
#view-dynamic:is([data-page="board"],[data-page="new-request"])[data-sky="rain"] {
  background: linear-gradient(180deg, #7f95a6 0%, #a3b5c2 22%, #cfd9df 52%, #eef1f3 80%, #fff 100%);
}
#view-dynamic:is([data-page="board"],[data-page="new-request"])[data-sky="rain"]::before {
  opacity: 1;
  background:
    linear-gradient(105deg, transparent 0 47%, rgba(255,255,255,.55) 48% 50%, transparent 51%) 0 0 / 34px 110px,
    linear-gradient(105deg, transparent 0 47%, rgba(255,255,255,.35) 48% 49.5%, transparent 51%) 12px 40px / 52px 150px;
  animation: sky-rain .9s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}
@keyframes sky-rain { to { background-position: -14px 110px, -2px 190px; } }

/* Noche: cielo oscuro con estrellas y luna en el borde derecho */
#view-dynamic:is([data-page="board"],[data-page="new-request"])[data-sky="night"] {
  background:
    radial-gradient(1.5px 1.5px at 12% 8%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 27% 22%, #fff, transparent 60%),
    radial-gradient(1px 1px at 41% 11%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 58% 6%, #fff, transparent 60%),
    radial-gradient(1px 1px at 70% 26%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 83% 14%, #fff, transparent 60%),
    radial-gradient(1px 1px at 6% 36%, #fff, transparent 60%), radial-gradient(1px 1px at 92% 40%, #fff, transparent 60%),
    radial-gradient(1px 1px at 18% 52%, #fff, transparent 60%), radial-gradient(1px 1px at 76% 58%, #fff, transparent 60%),
    linear-gradient(180deg, #0b2a2f 0%, #123d44 28%, #2c5a58 52%, #7fa398 72%, #dfe9e4 90%, #fff 100%);
}
#view-dynamic:is([data-page="board"],[data-page="new-request"])[data-sky="night"]::before {
  opacity: 1;
  background: radial-gradient(circle at 100% 10rem, #f4f1d8 0 3.2rem, rgba(244,241,216,.35) 3.4rem, rgba(244,241,216,.12) 7rem, rgba(244,241,216,0) 13rem);
}
#view-dynamic:is([data-page="board"],[data-page="new-request"])[data-sky="night"]::after { filter: brightness(1.8); }
@media (prefers-reduced-motion: reduce) {
  #view-dynamic:is([data-page="board"],[data-page="new-request"])[data-sky="sun"]::before, #view-dynamic:is([data-page="board"],[data-page="new-request"])[data-sky="rain"]::before { animation: none; }
}

/* Banner y panel: una sola pieza (el banner no deja ver el cielo por las esquinas de abajo) */
.board-head { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; box-shadow: none !important; }
.board-panel { box-shadow: none !important; }
.board-panel {
  background:
    radial-gradient(circle at 1px 1px, rgba(180,83,9,.13) 1.2px, transparent 1.3px) 0 0 / 18px 18px,
    linear-gradient(180deg, rgba(255,251,235,0) 0, #fffbeb 2rem, #fff 85%) !important;
  border-left-color: #fde68a; border-right-color: #fde68a;
}
@media (max-width: 639px) { .board-panel { background:
    radial-gradient(circle at 1px 1px, rgba(180,83,9,.13) 1.2px, transparent 1.3px) 0 0 / 18px 18px,
    linear-gradient(180deg, rgba(255,251,235,0) 0, #fffbeb 1.6rem, #fff 85%) !important; } }

/* =====================================================================
   BARRA DE NAVEGACIÓN TRANSPARENTE EN TODAS LAS PÁGINAS
   El fondo de cada página sube por detrás de la barra (como en la portada).
   --hdr-h se ajusta con JS a la altura real de la barra.
   ===================================================================== */
:root { --hdr-h: 5.4rem; }
.site-header.is-solid { background: transparent; border-bottom-color: transparent; }
body:not([data-view="home"]) main > .view { margin-top: calc(var(--hdr-h) * -1); padding-top: var(--hdr-h); }
/* Páginas con cabecera propia: el fondo de la cabecera empieza arriba del todo */
body:not([data-view="home"]) main > #view-publicar,
body:not([data-view="home"]) main > #view-nosotros,
body:not([data-view="home"]) main > #view-dynamic:has(.cat-hero) { padding-top: 0; }
.pub-hero .page { padding-top: calc(var(--hdr-h) + 2.5rem); }
.ab-hero__grid { padding-top: calc(var(--hdr-h) + 3.5rem) !important; }
@media (max-width: 900px) { .ab-hero__grid { padding-top: calc(var(--hdr-h) + 2.4rem) !important; } }
.cat-hero__inner { padding-top: calc(var(--hdr-h) + 1.25rem); }

/* Texto claro sobre fondos oscuros (categorías y modo noche de «Solicita tu trayecto»).
   Solo cuenta la vista visible: #view-dynamic oculto conserva su contenido anterior. */
body:has(#view-dynamic:not([hidden]) .cat-hero) .site-header.is-solid,
body:has(#view-dynamic:not([hidden]):is([data-page="board"],[data-page="new-request"])[data-sky="night"]) .site-header.is-solid { --olc-ink: #ffffff; --olc-acc: #9BD93C; --olc-sun: #FBBF24; }
body:has(#view-dynamic:not([hidden]) .cat-hero) .site-header.is-solid .brand-tagline,
body:has(#view-dynamic:not([hidden]):is([data-page="board"],[data-page="new-request"])[data-sky="night"]) .site-header.is-solid .brand-tagline { color: #e2e8f0; }
body:has(#view-dynamic:not([hidden]) .cat-hero) .site-header.is-solid .hamburger,
body:has(#view-dynamic:not([hidden]):is([data-page="board"],[data-page="new-request"])[data-sky="night"]) .site-header.is-solid .hamburger,
body:has(#view-dynamic:not([hidden]) .cat-hero) .site-header.is-solid .hdr-link,
body:has(#view-dynamic:not([hidden]):is([data-page="board"],[data-page="new-request"])[data-sky="night"]) .site-header.is-solid .hdr-link { color: #fff; }
body:has(#view-dynamic:not([hidden]) .cat-hero) .site-header.is-solid .hdr-link:hover,
body:has(#view-dynamic:not([hidden]):is([data-page="board"],[data-page="new-request"])[data-sky="night"]) .site-header.is-solid .hdr-link:hover { background: rgba(255,255,255,.15); }

/* Sobre las ilustraciones de las categorías (con zonas claras) se oscurece suavemente la franja de la barra
   para que logotipo y menú se lean siempre, sea cual sea el dibujo de detrás */
.site-header.is-solid::before { content: none; }
body:has(#view-dynamic:not([hidden]) .cat-hero) .site-header.is-solid::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 1.6rem); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,22,32,.72) 0%, rgba(6,22,32,.5) 55%, rgba(6,22,32,0) 100%);
}
body:has(#view-dynamic:not([hidden]) .cat-hero) .site-header.is-solid .hdr-link,
body:has(#view-dynamic:not([hidden]) .cat-hero) .site-header.is-solid .brand-name,
body:has(#view-dynamic:not([hidden]) .cat-hero) .site-header.is-solid .brand-tagline { text-shadow: 0 1px 6px rgba(0,0,0,.45); }

/* Categorías: botón «Volver» bien visible (verde del logo, letra negra) */
.cat-hero .back-link, .cat-hero .back-link:hover { background: #10b981; color: #0f172a; border: 0; font-weight: 800; backdrop-filter: none; box-shadow: 0 8px 18px -10px rgba(0,0,0,.6); }
.cat-hero .back-link:hover { background: #34d399; color: #0f172a; }
.cat-hero .back-link i { color: #0f172a; }

/* Solicitudes vacías: el botón sustituye al texto */
.nb-card .nb-actions { margin-top: 1rem; display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; }

/* ---------- Herramientas de accesibilidad ---------- */
.a11y-btn { position: fixed; left: 1rem; bottom: 1rem; z-index: 9000; width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 3px solid #fff; background: #0f766e; color: #fff; font-size: 1.55rem; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(0,0,0,.55); }
.a11y-btn:hover { background: #115e59; }
.a11y-panel { position: fixed; left: 1rem; bottom: 5rem; z-index: 9001; width: min(18.5rem, calc(100vw - 2rem)); max-height: calc(100vh - 7rem); overflow: auto; background: #fff; color: #0f172a; border: 1px solid #e2e8f0; border-radius: 18px; box-shadow: 0 24px 50px -16px rgba(15,23,42,.45); padding: .9rem .9rem .7rem; }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; padding: 0 .2rem .5rem; }
.a11y-head strong { font-size: 1.05rem; line-height: 1.25; font-weight: 800; }
.a11y-x { width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: #f1f5f9; color: #0f172a; cursor: pointer; flex: none; }
.a11y-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.a11y-list button { width: 100%; display: flex; align-items: center; gap: .7rem; text-align: left; padding: .55rem .6rem; border: 0; border-radius: 10px; background: transparent; color: #0f172a; font: inherit; font-weight: 600; cursor: pointer; }
.a11y-list button:hover { background: #f1f5f9; }
.a11y-list button.is-on { background: #d1fae5; box-shadow: inset 0 0 0 2px #10b981; }
.a11y-list i { width: 1.2rem; text-align: center; color: #0f766e; }
.a11y-list small { margin-left: auto; font-weight: 800; color: #475569; }
@media (max-width: 767px) { .a11y-btn { bottom: 5.4rem; width: 2.9rem; height: 2.9rem; font-size: 1.4rem; } .a11y-panel { bottom: 9rem; } }

/* Efectos (se aplican sobre <html>) */
html.a11y-gray { filter: grayscale(1); }
html.a11y-negative { filter: invert(1) hue-rotate(180deg); }
html.a11y-negative img, html.a11y-negative video { filter: invert(1) hue-rotate(180deg); }
html.a11y-contrast body, html.a11y-contrast body *:not(img):not(video):not(svg):not(path):not([class*="fa-"]) { background-color: #000 !important; background-image: none !important; color: #fff !important; border-color: #fff !important; text-shadow: none !important; box-shadow: none !important; }
html.a11y-contrast a, html.a11y-contrast a * { color: #ffeb3b !important; }
html.a11y-contrast button, html.a11y-contrast .btn { outline: 2px solid #fff; }
html.a11y-light body, html.a11y-light body *:not(img):not(video):not(svg):not(path):not([class*="fa-"]) { background-color: #fff !important; background-image: none !important; color: #000 !important; text-shadow: none !important; }
html.a11y-links a, html.a11y-links a * { text-decoration: underline !important; text-underline-offset: .15em; }
html.a11y-font body, html.a11y-font body *:not([class*="fa-"]):not(.fa-solid):not(.fa-regular):not(.fa-brands) { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: .02em; word-spacing: .08em; line-height: 1.6; }
html.a11y-contrast .a11y-btn, html.a11y-light .a11y-btn { border-color: #fff; }

/* =====================================================================
   FONDOS: TU PERFIL · AYUDA · MENSAJES (suaves, a juego con la web)
   ===================================================================== */
#view-dynamic[data-page="profile"], #view-dynamic[data-page="messages"], #view-ayuda { position: relative; isolation: isolate; }

/* Tu perfil: monumentos de Sevilla (Setas, Torre del Oro, Giralda) muy suaves arriba a la derecha */
#view-dynamic[data-page="profile"] { padding-bottom: 3rem; background: radial-gradient(48rem 22rem at 90% 4%, rgba(16,185,129,.16), transparent 70%), linear-gradient(180deg, #e7f6ee 0%, #f4f8f3 34%, #fbf8f3 62%, #fff 100%); }
#view-dynamic[data-page="profile"]::before {
  content: ''; position: absolute; right: 0; top: 0; width: min(62rem, 100%); height: 36rem; z-index: -1; pointer-events: none;
  background: url('../img/fondo-perfil.svg') right bottom / contain no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 30%); mask-composite: intersect;
}
@media (max-width: 700px) { #view-dynamic[data-page="profile"]::before { height: 24rem; opacity: .8; } }

/* Notificaciones: menta suave; las burbujas solo asoman por los laterales, nunca detrás del contenido */
#view-dynamic[data-page="messages"] { padding-bottom: 3rem; background: radial-gradient(44rem 20rem at 8% 0%, rgba(163,230,53,.12), transparent 70%), radial-gradient(48rem 22rem at 95% 8%, rgba(16,185,129,.14), transparent 70%), linear-gradient(180deg, #e8f7f0 0%, #f4faf6 40%, #fbf9f4 72%, #fff 100%); }
#view-dynamic[data-page="messages"]::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
  background: url('../img/fondo-mensajes.svg') 0 0 / 760px auto repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(50% - 42rem), transparent calc(50% - 38rem), transparent calc(50% + 38rem), #000 calc(50% + 42rem), #000 100%), linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(50% - 42rem), transparent calc(50% - 38rem), transparent calc(50% + 38rem), #000 calc(50% + 42rem), #000 100%), linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-composite: intersect;
}

/* Ayuda: siluetas muy sutiles solo en los laterales (navegación, atención, normas, seguridad); se funde con el blanco por abajo */
#view-ayuda { padding-bottom: 3rem; background: radial-gradient(52rem 24rem at 92% 0%, rgba(16,185,129,.12), transparent 70%), linear-gradient(180deg, #ebf7f1 0%, #f5faf7 35%, #fafaf7 70%, #fff 100%); }
#view-ayuda::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background: url('../img/fondo-ayuda.svg') 0 0 / 900px auto repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(50% - 42rem), transparent calc(50% - 38rem), transparent calc(50% + 38rem), #000 calc(50% + 42rem), #000 100%), linear-gradient(180deg, #000 0%, #000 65%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(50% - 42rem), transparent calc(50% - 38rem), transparent calc(50% + 38rem), #000 calc(50% + 42rem), #000 100%), linear-gradient(180deg, #000 0%, #000 65%, transparent 100%);
  mask-composite: intersect;
}

/* =====================================================================
   FONDOS: INICIAR SESIÓN · REGISTRO · RECUPERAR · PANEL DE ADMINISTRADOR
   ===================================================================== */
#view-dynamic[data-page="login"], #view-dynamic[data-page="register"], #view-dynamic[data-page="recover"] {
  position: relative; isolation: isolate; min-height: 100vh;
  background: radial-gradient(46rem 22rem at 92% 0%, rgba(251,146,60,.20), transparent 70%), radial-gradient(40rem 20rem at 4% 40%, rgba(250,204,21,.16), transparent 70%), linear-gradient(180deg, #fdeed3 0%, #fdf6e7 38%, #fffaf2 76%, #fff 100%);
}
#view-dynamic[data-page="login"]::before, #view-dynamic[data-page="register"]::before, #view-dynamic[data-page="recover"]::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .65;
  background: url('../img/fondo-acceso-v2.svg') 0 0 / 760px auto repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(50% - 30rem), transparent calc(50% - 24rem), transparent calc(50% + 24rem), #000 calc(50% + 30rem), #000 100%), linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(50% - 30rem), transparent calc(50% - 24rem), transparent calc(50% + 24rem), #000 calc(50% + 30rem), #000 100%), linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  mask-composite: intersect;
}

/* Panel de administración: fondo sobrio (verde azulado muy suave y cuadrícula de puntos), sin dibujos que distraigan */
#view-dynamic[data-page="admin"], #view-dynamic[data-page="admin-panel"] {
  position: relative; isolation: isolate; padding-bottom: 3rem; min-height: 80vh;
  background: radial-gradient(50rem 24rem at 90% 0%, rgba(99,102,241,.14), transparent 70%), linear-gradient(180deg, #e6ebf7 0%, #f0f3fa 38%, #f8f9fc 72%, #fff 100%);
}
#view-dynamic[data-page="admin"]::before, #view-dynamic[data-page="admin-panel"]::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(67,56,202,.16) 1.2px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

/* Etiqueta «Sin comisiones…»: al pasar el cursor (o enfocarla / tocarla) se expande y explica un poco más */
.hero-pill { transition: transform .35s ease, box-shadow .35s ease, padding .35s ease; cursor: default; outline-offset: 3px; }
.hero-pill .pill-more { display: inline-block; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-width .5s ease, opacity .3s ease .08s; }
.hero-pill:hover, .hero-pill:focus, .hero-pill:focus-within { padding-left: 1.2rem; padding-right: 1.2rem; box-shadow: 0 14px 28px -12px rgba(163,230,53,.65); }
.hero-pill:hover .pill-more, .hero-pill:focus .pill-more, .hero-pill:focus-within .pill-more { max-width: 26rem; opacity: 1; }
@media (max-width: 639px) {
  .hero-pill { flex-wrap: wrap; justify-content: center; text-align: center; }
  .hero-pill { width: fit-content; max-width: 100%; padding-left: .95rem; padding-right: .95rem; }
  .hero-pill .pill-more { flex-basis: 0; width: 0; white-space: normal; max-width: none; max-height: 0; transition: max-height .4s ease, opacity .3s ease .08s; }
  .hero-pill:hover .pill-more, .hero-pill:focus .pill-more, .hero-pill:focus-within .pill-more { flex-basis: 100%; width: auto; max-width: none; max-height: 3.2rem; }
  .hero-pill:hover, .hero-pill:focus { border-radius: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { .hero-pill, .hero-pill .pill-more { transition: none; } }

/* =====================================================================
   FONDO: PUBLICA TU TRAYECTO (verde lima, carretera, coches, gasolina y monedas)
   ===================================================================== */
#view-dynamic[data-page="publish"], #view-dynamic[data-page="published"] {
  position: relative; isolation: isolate; padding-bottom: 3rem;
  background: radial-gradient(46rem 22rem at 6% 2%, rgba(163,230,53,.30), transparent 70%), radial-gradient(48rem 24rem at 96% 6%, rgba(16,185,129,.20), transparent 70%), linear-gradient(180deg, #dff4cf 0%, #e6f6e8 26%, #f2faf4 58%, #fbfdf9 82%, #fff 100%);
}
#view-dynamic[data-page="publish"]::before, #view-dynamic[data-page="published"]::before {
  content: ''; position: absolute; left: 0; right: 0; top: calc(var(--hdr-h) - .6rem); height: min(22vw, 19rem); z-index: -1; pointer-events: none;
  background: url('../img/fondo-publicar.svg') center top / cover no-repeat;
  /* la ilustración se ve a la derecha y se desvanece hacia la izquierda y hacia abajo: no pisa el título */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 64%), linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 64%), linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-composite: intersect;
}
#view-dynamic[data-page="publish"]::after, #view-dynamic[data-page="published"]::after { /* puntitos suaves */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(15,118,110,.14) 1.2px, transparent 1.4px) 0 0 / 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%); mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
}

/* Notificaciones sin nada: texto justificado (no alineado a la izquierda ni centrado) */
.nm-card > p { text-align: justify; text-align-last: center; hyphens: auto; -webkit-hyphens: auto; max-width: 34rem; margin-left: auto; margin-right: auto; }


/* «Pide un trayecto»: mismo fondo y mismo cielo cambiante (tiempo y hora de Sevilla) que «Solicita tu trayecto» */
body:has(#view-dynamic:not([hidden])[data-page="new-request"][data-sky="night"]) #view-dynamic .h-page,
body:has(#view-dynamic:not([hidden])[data-page="new-request"][data-sky="night"]) #view-dynamic .page > .lead { color: #fff; }
body:has(#view-dynamic:not([hidden])[data-page="new-request"][data-sky="rain"]) #view-dynamic .h-page { color: #0f2230; }


/* Centro de cookies: fondo suave de galletitas tipo Oreo */
.cc-box {
  background: url('../img/fondo-cookies.svg') 0 0 / 340px 340px repeat local, linear-gradient(180deg, #fffdfa, #fff) !important;
}
.cc-box > p, .cc-box > div > p { text-shadow: 0 0 6px #fff, 0 0 12px #fff; }


/* Bocadillos de conversación de los vecinos (portada, «Sevilla se mueve mejor…») */
#hv-mart { padding-top: 6.6rem; }
.dlg { position: absolute; left: 0; right: 0; top: 0; height: 6.6rem; z-index: 3; pointer-events: none; }
.dlg-b {
  position: absolute; top: .2rem; max-width: min(21rem, 92%); padding: .6rem .9rem; border-radius: 18px;
  background: #fff; color: #111827; border: 2px solid #1f2937; box-shadow: 0 8px 18px -10px rgba(15,23,42,.45);
  font-weight: 700; font-size: .88rem; line-height: 1.3; text-wrap: balance;
  opacity: 0; transform: translateY(8px) scale(.94); transition: opacity .3s ease, transform .3s ease;
}
.dlg-b.on { opacity: 1; transform: none; }
.dlg-b::after { /* pico del bocadillo, apunta a quien habla */
  content: ''; position: absolute; bottom: -9px; width: 14px; height: 14px; background: #fff;
  border-right: 2px solid #1f2937; border-bottom: 2px solid #1f2937; transform: rotate(45deg);
}
.dlg-b--w { left: 4%; } .dlg-b--w::after { left: 26%; }
.dlg-b--m { right: 4%; } .dlg-b--m::after { right: 12%; }
.dlg-b--lw, .dlg-b--lm { max-width: 44%; text-align: center; font-size: 1rem; background: #fff7d6; }
.dlg-b--lw { left: 8%; } .dlg-b--lw::after { left: 40%; background: #fff7d6; }
.dlg-b--lm { right: 8%; top: 1.2rem; } .dlg-b--lm::after { right: 40%; background: #fff7d6; }
#hv-mart img.is-laugh { animation: dlg-laugh .5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes dlg-laugh { 0%,100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-5px) rotate(-.8deg); } 75% { transform: translateY(-3px) rotate(.8deg); } }
@media (max-width: 420px) { .dlg-b { font-size: .8rem; padding: .5rem .75rem; } }
@media (prefers-reduced-motion: reduce) { .dlg-b { transition: none; } #hv-mart img.is-laugh { animation: none; } }


/* ---------- Panel: contador de visitas ---------- */
.adm-visits { margin-bottom: 1rem; }
.adm-visits__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.adm-visits__head h3 { margin: 0; }
.adm-visits .adm-kpis { margin-top: .8rem; }
.vbars { display: flex; align-items: flex-end; gap: 6px; height: 7.5rem; padding: .4rem .2rem 0; border-bottom: 1px solid var(--line); }
.vbar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.vbar i { display: block; width: 100%; max-width: 26px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #84cc16, #10b981); transform-origin: bottom; animation: vbar-in .7s cubic-bezier(.2,.8,.2,1) both; }
.vbar:nth-child(odd) i { animation-delay: .05s; }
.vbar { position: relative; }
.vbar span { font-size: .66rem; color: var(--muted); font-weight: 700; position: absolute; bottom: -1.25rem; }
.vbars { position: relative; margin-bottom: 1.3rem; }
@keyframes vbar-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.adm-visits__foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-top: .8rem; }
@media (prefers-reduced-motion: reduce) { .vbar i { animation: none; } }

/* ---------- Menú lateral móvil: más vivo y con la sección actual marcada ---------- */
#sidebar-menu {
  background: radial-gradient(18rem 12rem at 100% 0%, rgba(163,230,53,.28), transparent 70%), radial-gradient(16rem 14rem at 0% 100%, rgba(16,185,129,.14), transparent 70%), #fff;
  overflow-y: auto;
}
.side-here { display: inline-flex; align-items: center; gap: .5rem; margin: .9rem 0 .2rem; padding: .35rem .8rem; border-radius: 999px; background: #ecfccb; color: #3f6212; font-size: .78rem; font-weight: 700; }
.side-here[hidden] { display: none; }
.side-here b { font-weight: 800; color: #14532d; }
.side-here__dot { width: 8px; height: 8px; border-radius: 50%; background: #65a30d; position: relative; flex: none; }
.side-here__dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #84cc16; animation: side-ping 1.6s ease-out infinite; }
@keyframes side-ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.side-link { position: relative; border-radius: 14px; padding: .8rem .8rem; margin: .1rem 0; transition: background .2s ease, transform .2s ease, color .2s ease; }
.side-link i { transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.side-link:hover { background: #f7fee7; transform: translateX(4px); }
.side-link:hover i { transform: scale(1.18) rotate(-6deg); }
.side-link:active { transform: scale(.98); }
.side-link.is-active { background: linear-gradient(90deg, #ecfccb, #f7fee7 85%); color: #14532d; box-shadow: inset 0 0 0 1px rgba(132,204,22,.35); }
.side-link.is-active::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 4px; border-radius: 0 4px 4px 0; background: #65a30d; animation: side-bar .45s cubic-bezier(.2,.8,.2,1) .25s both; transform-origin: center; }
.side-link.is-active i { color: #3f6212 !important; animation: side-pop .6s cubic-bezier(.3,1.6,.5,1) .3s both; }
.side-link.is-active::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #65a30d; margin-left: auto; box-shadow: 0 0 0 0 rgba(101,163,13,.55); animation: side-pulse 1.8s ease-out infinite; }
.side-link .count + * { margin-left: .4rem; }
@keyframes side-bar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes side-pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
@keyframes side-pulse { 70% { box-shadow: 0 0 0 9px rgba(101,163,13,0); } 100% { box-shadow: 0 0 0 0 rgba(101,163,13,0); } }
/* entrada escalonada al abrir el menú */
#sidebar-menu:not(.-translate-x-full) .side-link, #sidebar-menu:not(.-translate-x-full) .side-here, #sidebar-menu:not(.-translate-x-full) #sidebar-auth > * {
  animation: side-in .5s cubic-bezier(.2,.8,.2,1) both;
}
#sidebar-menu:not(.-translate-x-full) .side-here { animation-delay: .1s; }
#sidebar-menu:not(.-translate-x-full) nav .side-link:nth-child(1) { animation-delay: .12s; }
#sidebar-menu:not(.-translate-x-full) nav .side-link:nth-child(2) { animation-delay: .17s; }
#sidebar-menu:not(.-translate-x-full) nav .side-link:nth-child(3) { animation-delay: .22s; }
#sidebar-menu:not(.-translate-x-full) nav .side-link:nth-child(4) { animation-delay: .27s; }
#sidebar-menu:not(.-translate-x-full) nav .side-link:nth-child(5) { animation-delay: .32s; }
#sidebar-menu:not(.-translate-x-full) nav .side-link:nth-child(6) { animation-delay: .37s; }
#sidebar-menu:not(.-translate-x-full) nav .side-link:nth-child(7) { animation-delay: .42s; }
#sidebar-menu:not(.-translate-x-full) #sidebar-auth > *:nth-child(1) { animation-delay: .35s; }
#sidebar-menu:not(.-translate-x-full) #sidebar-auth > *:nth-child(2) { animation-delay: .42s; }
#sidebar-menu:not(.-translate-x-full) #sidebar-auth > *:nth-child(3) { animation-delay: .49s; }
@keyframes side-in { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
#sidebar-menu [data-close-sidebar] { transition: transform .3s ease, background .2s ease; border-radius: 50%; }
#sidebar-menu [data-close-sidebar]:hover { transform: rotate(90deg); background: #f1f5f9; }
#sidebar-menu .side-admin.is-active { box-shadow: 0 0 0 2px #f59e0b; }
#sidebar-auth a:first-child { border-radius: 14px; transition: background .2s; }
@media (prefers-reduced-motion: reduce) {
  #sidebar-menu *, #sidebar-menu *::before, #sidebar-menu *::after { animation: none !important; transition: none !important; }
}

/* con el menú móvil abierto, el botón de accesibilidad no tapa los botones de abajo */
body:has(#sidebar-menu:not(.-translate-x-full)) .a11y-btn { opacity: 0; pointer-events: none; transition: opacity .2s; }


/* ---------- «Invítame a un cafelito» (portada, discreto) ---------- */
.cafe { position: relative; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.4rem auto 0; max-width: 56rem; padding: 1rem 1.3rem;
  border-radius: 22px; background: #fbf3e6; border: 1px dashed #d9bf94; color: #5b3a1a; }
.cafe[hidden] { display: none; }
.cafe__cup { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.3rem; color: #92400e; box-shadow: 0 6px 14px -8px rgba(120,70,20,.6); animation: cafe-wobble 5s ease-in-out infinite; }
.cafe__steam { position: absolute; top: -8px; left: 17px; width: 4px; height: 12px; border-radius: 4px; background: rgba(146,64,14,.28); animation: cafe-steam 2.4s ease-in infinite; opacity: 0; }
.cafe__steam--2 { left: 26px; animation-delay: 1.1s; }
@keyframes cafe-steam { 0% { transform: translateY(6px) scaleY(.6); opacity: 0; } 40% { opacity: .9; } 100% { transform: translateY(-8px) scaleY(1.1); opacity: 0; } }
@keyframes cafe-wobble { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-8deg); } 96% { transform: rotate(6deg); } }
.cafe__txt { flex: 1 1 20rem; margin: 0; font-size: .92rem; line-height: 1.45; }
.cafe__txt span { opacity: .85; }
.cafe__btn { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px; background: #fff; color: #92400e; font-weight: 800; font-size: .88rem; border: 1px solid #e3cfae; transition: transform .2s, box-shadow .2s; text-decoration: none; }
.cafe__btn i { color: #e11d48; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.cafe__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -12px rgba(120,70,20,.7); }
.cafe__btn:hover i { transform: scale(1.3); }
.cafe__x { flex: none; background: none; border: 0; color: #8a6a43; font-size: .78rem; text-decoration: underline; cursor: pointer; padding: .2rem; }
@media (max-width: 640px) { .cafe { margin: 1rem 1rem 0; padding: .95rem 1rem; } .cafe__btn { width: 100%; justify-content: center; } .cafe__x { margin: 0 auto; } }
@media (prefers-reduced-motion: reduce) { .cafe__cup, .cafe__steam { animation: none; } }


/* ---------- Carrusel de categorías: más separación y diseños «Arco», «Escaparate» y «Cinta» ---------- */
#cats-original #marquee-track, #cats-original [data-marquee-block] { display: flex; gap: 3.6rem; }
#cats-original #marquee-track > div, #cats-original [data-marquee-block] > a { margin-left: 0 !important; }
@media (min-width: 640px) { #cats-original #marquee-track, #cats-original [data-marquee-block] { gap: 5rem; } }
#cats-original[data-mode] #marquee-track { padding-top: 2.2rem; padding-bottom: 5.5rem; }
#cats-original[data-mode] a[href^="#/categoria/"] { transition: box-shadow .3s ease, filter .3s ease !important; will-change: transform; }
#cats-original[data-mode] a[href^="#/categoria/"]:hover { filter: brightness(1.08); box-shadow: 0 22px 36px -16px rgba(0,0,0,.5); }
#cats-original[data-mode="cinta"] #marquee-container {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
#cats-original[data-mode="cinta"] a[href^="#/categoria/"] { transform: none !important; }
#cats-original[data-mode="cinta"] #marquee-track { padding-top: 1.4rem; padding-bottom: 2.6rem; }
#cats-original[data-mode="coverflow"] #marquee-track { padding-top: 2rem; padding-bottom: 3.2rem; }
#cats-original[data-mode="arco"] a[href^="#/categoria/"] { transform-origin: 50% 60%; }

/* ---------- Cómo funciona (portada): tres tarjetas con margen a los lados y camino punteado ---------- */
.how { background: #fff; padding: 2.6rem 0 .6rem; }
.how-in { max-width: 70rem; margin: 0 auto; padding-inline: clamp(1.25rem, 5vw, 3.5rem); }
.how-title { text-align: center; font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.6rem, 3.4vw, 2rem); color: #0f172a; margin: 0 0 .4rem; }
.how-ex { text-align: center; color: #475569; font-weight: 600; margin: 0 0 2.4rem; }
.how-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.6rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .how-list { grid-template-columns: repeat(3, 1fr); gap: 3.4rem; } }
.how-card { position: relative; background: linear-gradient(180deg, #fbfdf6, #fff); border: 1px solid #e3ecd0; border-radius: 26px; padding: 2.1rem 1.5rem 1.6rem; box-shadow: 0 18px 34px -26px rgba(63,98,18,.55); transition: transform .3s ease, box-shadow .3s ease; text-align: left; }
.how-card:hover { transform: translateY(-5px); box-shadow: 0 26px 40px -24px rgba(63,98,18,.6); }
.how-badge { position: absolute; top: -1.1rem; left: 1.4rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #0f172a; color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 5px #fff, 0 8px 14px -6px rgba(0,0,0,.5); }
.how-ic { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 16px; background: #ecfccb; color: #3f6212; font-size: 1.25rem; margin-bottom: .9rem; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.how-card:hover .how-ic { transform: rotate(-8deg) scale(1.1); }
.how-card h3 { font-weight: 800; font-size: 1.08rem; color: #0f172a; margin: 0 0 .35rem; }
.how-card p { margin: 0; color: #475569; line-height: 1.55; font-size: .96rem; }
/* camino punteado que une los pasos */
.how-card:not(:last-child)::after { content: ''; position: absolute; left: 50%; bottom: -2.4rem; height: 2.2rem; border-left: 3px dotted #a3c46a; transform: translateX(-50%); }
@media (min-width: 820px) {
  .how-card:not(:last-child)::after { left: auto; right: -3rem; top: 50%; bottom: auto; width: 2.6rem; height: 0; border-left: 0; border-top: 3px dotted #a3c46a; transform: none; }
  .how-card:not(:last-child)::before { content: ''; position: absolute; right: -3.1rem; top: calc(50% - 6px); border-left: 8px solid #a3c46a; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
}
@media (prefers-reduced-motion: reduce) { .how-card, .how-ic { transition: none; } }


/* ---------- Botón de idiomas: Español / Andaluz ---------- */
.lang-btn[hidden] { display: none !important; }
.lang-btn { display: inline-flex; align-items: center; gap: .15rem; padding: 3px; border-radius: 999px; border: 1px solid rgba(15,23,42,.12); background: rgba(255,255,255,.92); cursor: pointer; font-weight: 800; font-size: .72rem; line-height: 1; color: #475569; box-shadow: 0 6px 14px -10px rgba(0,0,0,.5); }
.lang-btn span[data-l] { padding: .38rem .6rem; border-radius: 999px; transition: background .25s ease, color .25s ease, transform .25s cubic-bezier(.3,1.6,.5,1); }
.lang-btn span[data-l].on { background: #84cc16; color: #14290a; transform: scale(1.04); }
/* Círculo activo con la bandera de cada idioma, mitad y mitad: ES rojo/amarillo, AND verde/blanco, EN rojo/azul */
.lang-btn span[data-l="es"].on { background: linear-gradient(90deg, #dc2626 50%, #facc15 50%); color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.65), 0 1px 1px rgba(0,0,0,.5); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.lang-btn span[data-l="an"].on { background: linear-gradient(90deg, #16a34a 50%, #ffffff 50%); color: #14532d; text-shadow: 0 0 3px #fff, 0 0 3px #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.lang-btn span[data-l="en"].on { background: linear-gradient(90deg, #dc2626 50%, #2563eb 50%); color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.65), 0 1px 1px rgba(0,0,0,.5); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.lang-btn:hover { box-shadow: 0 8px 16px -8px rgba(0,0,0,.55); }
.lang-btn--hdr { margin-left: .35rem; }
@media (max-width: 1023px) { .lang-btn--hdr { display: none !important; } }
.lang-btn--side { width: 100%; justify-content: space-between; padding: .5rem .6rem .5rem .9rem; border-radius: 16px; font-size: .9rem; color: #1e293b; background: #f7fee7; border-color: #d9eab1; }
.lang-btn--side .lang-btn__lbl { margin-right: auto; margin-left: .5rem; }
.lang-btn--side .lang-btn__seg { display: inline-flex; background: #fff; border-radius: 999px; padding: 3px; border: 1px solid #e2e8f0; }
.lang-btn--side i { color: #4d7c0f; font-size: 1.05rem; }
@media (prefers-reduced-motion: reduce) { .lang-btn span[data-l] { transition: none; } }


/* ---------- Notificaciones: subtítulo legible y «bandeja tranquila» con el dibujo a la derecha ---------- */
.msgx-head p { color: #3b4a43; font-size: 1rem; font-weight: 500; }
.msgx .filter-chip .n { color: #52625b; }
@media (min-width: 760px) {
  .msgx .nm-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 3rem; align-items: center; padding: 34px 40px 28px; }
  .msgx .nm-card .nm-stage { grid-column: 2; grid-row: 1 / span 2; margin: 0; width: 300px; }
  .msgx .nm-card > h3 { grid-column: 1; grid-row: 1; align-self: end; margin: 0; }
  .msgx .nm-card > p { grid-column: 1; grid-row: 2; align-self: start; margin: .5rem auto 0; }
  .msgx .nm-card > .nm-tiles { grid-column: 1 / -1; grid-row: 3; }
}

/* idiomas: tercera pestaña (EN) */
.lang-btn span[data-l] { padding: .38rem .52rem; }
.lang-btn--side { padding: .45rem .5rem .45rem .8rem; }
.lang-btn--side .lang-btn__lbl { margin-left: .4rem; }
.lang-btn--side .lang-btn__seg span[data-l] { padding: .34rem .5rem; }

/* cafelito: centrado a todo el ancho de la rejilla y menos hueco con el pie */
.cafe { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 46rem; justify-content: center; text-align: center; }
.cafe__txt { flex: 1 1 18rem; text-align: left; }
.hv-band:has(#cafe:not([hidden])) { padding-bottom: .5rem; }
.hv-band:has(#cafe:not([hidden])) > .page { padding-bottom: 1.2rem; }

/* ---------- Ayuda: botón de contacto + «Déjanos tu mensaje» ---------- */
.help-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 9000; width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 3px solid #fff; background: linear-gradient(145deg,#0f766e,#0d9488); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(0,0,0,.55); transition: transform .25s cubic-bezier(.3,1.6,.5,1), box-shadow .2s; animation: help-pop .6s cubic-bezier(.3,1.6,.5,1) both; }
.help-fab svg { width: 2rem; height: 2rem; }
.help-fab:hover { transform: scale(1.08) rotate(-4deg); box-shadow: 0 14px 28px -8px rgba(0,0,0,.6); }
.help-fab:focus-visible { outline: 3px solid #84cc16; outline-offset: 3px; }
.help-fab__dot { position: absolute; top: -2px; right: -2px; width: .95rem; height: .95rem; border-radius: 50%; background: #e11d48; border: 2px solid #fff; animation: help-ping 1.6s ease-out infinite; }
.help-fab__dot[hidden] { display: none; }
@keyframes help-pop { from { transform: scale(0) } to { transform: scale(1) } }
@keyframes help-ping { 0% { box-shadow: 0 0 0 0 rgba(225,29,72,.6) } 100% { box-shadow: 0 0 0 .7rem rgba(225,29,72,0) } }
@media (max-width: 767px) { .help-fab { bottom: 5.4rem; width: 3rem; height: 3rem; } .help-fab svg { width: 1.75rem; height: 1.75rem; } }
body:has(#sidebar-menu:not(.-translate-x-full)) .help-fab { opacity: 0; pointer-events: none; transition: opacity .2s; }
@media (prefers-reduced-motion: reduce) { .help-fab, .help-fab__dot { animation: none; } }
.sup-box { max-width: 46rem; }
.sup-form { background: #fff; border: 1px solid #e2e8f0; border-radius: 22px; padding: 1.3rem; box-shadow: 0 14px 30px -24px rgba(15,23,42,.5); display: grid; gap: 1rem; }
.sup-form .btn { justify-self: start; }
.sup-login { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; background: #f0fdfa; border: 1px dashed #5eead4; border-radius: 20px; padding: 1.1rem 1.3rem; }
.sup-login > i { font-size: 1.4rem; color: #0f766e; }
.sup-login > div { flex: 1 1 14rem; } .sup-login p { margin: .15rem 0 0; color: #475569; font-size: .92rem; }
.sup-h3 { margin: 1.8rem 0 .8rem; font-weight: 800; font-size: 1.15rem; }
.sup-list { display: grid; gap: .9rem; }
.sup-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 1rem 1.1rem; display: grid; gap: .6rem; }
.sup-item.is-new { border-color: #f9a8b8; box-shadow: 0 0 0 4px rgba(225,29,72,.08); }
.sup-item header { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.sup-topic { font-weight: 800; font-size: .9rem; } .sup-item time { margin-left: auto; font-size: .78rem; color: #64748b; }
.sup-bubble { padding: .7rem .9rem; border-radius: 16px; font-size: .94rem; line-height: 1.5; white-space: pre-wrap; max-width: 92%; }
.sup-bubble .sup-who { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .02em; opacity: .7; margin-bottom: .15rem; }
.sup-bubble--me { background: #f1f5f9; border-bottom-left-radius: 4px; justify-self: start; }
.sup-bubble--team { background: #ecfdf5; border: 1px solid #a7f3d0; border-bottom-right-radius: 4px; justify-self: end; color: #064e3b; }
.sup-wait { margin: 0; font-size: .85rem; color: #64748b; }
/* panel */
.sup-adm { display: grid; gap: .9rem; }
.sup-adm article { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 1rem 1.1rem; display: grid; gap: .6rem; }
.sup-adm article.is-open { border-color: #fcd34d; background: #fffdf5; }
.sup-adm .sup-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .84rem; color: #475569; }
.sup-adm .sup-meta strong { color: #0f172a; font-size: .95rem; }
.sup-adm textarea { width: 100%; }
.adm-tab .adm-badge { display: inline-grid; place-items: center; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; margin-left: .3rem; border-radius: 999px; background: #e11d48; color: #fff; font-size: .68rem; font-weight: 800; }

/* ---------- Ingresos: plazas, paquetes, afiliación, patrocinio ---------- */
.ad-slots { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 800; color: #166534; background: #dcfce7; border-radius: 999px; padding: .25rem .65rem; }
.ad-slots--full { color: #9f1239; background: #ffe4e6; }
.ad-slots--views { color: #334155; background: #e2e8f0; }
.ad-gold__offer { margin: .6rem 0 0; padding: .5rem .7rem; border-radius: 12px; background: rgba(246,216,120,.16); border: 1px dashed rgba(246,216,120,.55); font-size: .86rem; line-height: 1.4; color: #fff3c4; }
.ad-gold__offer i { color: #f6d878; }
.ad-gold__btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.ad-gold__btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; background: #f6d878; color: #3b2a05 !important; font-weight: 800; font-size: .84rem; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.ad-gold__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 16px -10px rgba(0,0,0,.7); }
.ad-gold--premium { box-shadow: 0 0 0 2px #f6d878, 0 18px 36px -18px rgba(214,166,58,.9); }
.ad-prem { flex: none; width: 15rem; padding: 1rem; border-radius: 24px; border: 2px solid #e9c25a; background: linear-gradient(160deg, #fff8e1, #fde9a8); color: #3b2a05; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; text-decoration: none; box-shadow: 0 14px 28px -20px rgba(120,80,0,.8); transform: rotate(-1.5deg); transition: transform .3s; }
.ad-prem:hover { transform: rotate(0) translateY(-3px); }
.ad-prem__b { font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: #3b2a05; color: #f6d878; border-radius: 999px; padding: .2rem .6rem; margin-bottom: .3rem; }
.ad-prem b { font-size: 1.05rem; line-height: 1.2; } .ad-prem small { font-size: .78rem; opacity: .8; }
.cat-sponsor { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); font-size: .9rem; }
.cat-sponsor a { color: #fff; } .cat-sponsor__b { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .85; } .cat-sponsor__t { opacity: .9; }
.aff { margin: 1.6rem 0 .4rem; }
.aff__head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; } .aff__head h2 { font-size: 1.2rem; font-weight: 800; }
.aff__b { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #475569; background: #f1f5f9; border: 1px solid #cbd5e1; padding: .2rem .6rem; border-radius: 999px; }
.aff__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .8rem; margin-top: .8rem; }
.aff-card { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: 18px; background: #fff; border: 1px solid #e2e8f0; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.aff-card:hover { transform: translateY(-2px); border-color: #84cc16; box-shadow: 0 14px 26px -20px rgba(15,23,42,.6); }
.aff-card__ic { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 14px; display: grid; place-items: center; background: #ecfccb; color: #3f6212; font-size: 1.1rem; }
.aff-card__tx { flex: 1; display: grid; } .aff-card__tx small { color: #64748b; font-size: .8rem; line-height: 1.3; }
.aff-card__go { flex: none; font-size: .78rem; font-weight: 800; color: #3f6212; }
.aff__note { margin: .7rem 0 0; font-size: .76rem; color: #64748b; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 1rem; margin: 1rem 0 .5rem; }
.pk { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 22px; padding: 1.3rem; }
.pk h3 { font-weight: 800; font-size: 1.15rem; } .pk__p { font-size: 1.8rem; font-weight: 800; margin: .3rem 0 .8rem; } .pk__p small { font-size: .78rem; font-weight: 600; color: #64748b; margin-left: .2rem; }
.pk ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .9rem; } .pk li i { color: #16a34a; margin-right: .35rem; } .pk li.off { color: #94a3b8; } .pk li.off i { color: #cbd5e1; }
.pk--hl { border: 2px solid #84cc16; box-shadow: 0 18px 34px -24px rgba(77,124,15,.8); }
.pk--pr { background: linear-gradient(160deg, #fffaf0, #fdf0c8); border-color: #e9c25a; }
.pk__tag { position: absolute; top: -.7rem; right: 1rem; background: #84cc16; color: #14290a; font-size: .7rem; font-weight: 800; padding: .2rem .7rem; border-radius: 999px; }
.adv-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .7rem; margin: 1rem 0 .5rem; }
.adv-slot { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: .8rem 1rem; display: grid; gap: .2rem; }
.adv-slot .ok { color: #166534; font-weight: 800; font-size: .85rem; } .adv-slot .no { color: #9f1239; font-weight: 800; font-size: .85rem; } .adv-slot small { color: #64748b; }

/* Entrar con Google */
.btn-google { background: #fff; color: #1f2937; border: 1px solid #cbd5e1; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; font-weight: 700; }
.btn-google:hover { background: #f8fafc; border-color: #94a3b8; box-shadow: 0 8px 18px -14px rgba(15,23,42,.6); }
.google-note { margin: .6rem 0 0; font-size: .76rem; line-height: 1.45; color: #64748b; text-align: center; }

/* Solicitudes de la portada: el panel se ajusta a su contenido (sin hueco vacío cuando no hay solicitudes) */
.hv-grid { align-items: start; }
.hv-panel { flex: 0 0 auto; }

/* Pedidos de publicidad y aviso de negocios en la búsqueda */
.pk__btn { margin-top: .9rem; width: 100%; justify-content: center; }
.ord-inv { margin: .75rem 0; border: 1px solid var(--line, #e2e8f0); border-radius: 14px; padding: .6rem .9rem; background: #f8fafc; }
.ord-inv summary { cursor: pointer; font-weight: 700; font-size: .9rem; }
.ord-pay { border: 1px solid #d1fae5; background: #ecfdf5; border-radius: 14px; padding: .8rem 1rem; margin: .7rem 0; }
.ord-pay strong { display: block; margin-bottom: .25rem; }
.ord-code { background: #f1f5f9; border-radius: 8px; padding: .1rem .5rem; letter-spacing: .06em; }
.res-biz { margin-top: 1.5rem; border: 1px dashed #cbd5e1; border-radius: 18px; padding: .9rem 1.1rem; background: #fff; }
.res-biz__h { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.res-biz__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .6rem; }
.res-biz__it { display: block; border: 1px solid #e2e8f0; border-radius: 12px; padding: .6rem .8rem; text-decoration: none; color: inherit; background: #f8fafc; }
.res-biz__it b { display: block; } .res-biz__it small { color: #64748b; }
.res-biz__more { display: inline-block; margin-top: .6rem; font-size: .85rem; font-weight: 700; color: #047857; text-decoration: none; }
.res-biz--empty { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.res-biz--empty p { margin: .15rem 0 0; }


/* Cabecera: dos botones claros, «Ofrecer plazas» (conductor, amarillo) y «Pedir un viaje» (pasajero, verde) */
.btn-publicar--ofrecer, .btn-publicar--pedir { align-items: center; gap: .4rem; border: 0; color: #0f172a; box-shadow: 0 6px 14px -8px rgba(0,0,0,.45); }
.btn-publicar--ofrecer { background-color: #fbbf24; }
.btn-publicar--ofrecer:hover { background-color: #f59e0b; }
.btn-publicar--pedir { background-color: #10b981; color: #fff; }
.btn-publicar--pedir:hover { background-color: #059669; }
.btn-publicar--mobile { background: #fbbf24; }

/* «Cómo funciona»: icono y título en la misma fila, texto debajo, tarjetas más compactas */
.how-card { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; padding: 1.9rem 1.4rem 1.3rem; }
.how-card .how-ic { grid-column: 1; grid-row: 1; margin-bottom: 0; }
.how-card h3 { grid-column: 2; grid-row: 1; margin: 0; }
.how-card p { grid-column: 1 / -1; grid-row: 2; margin-top: .8rem; }
@media (min-width: 820px) { .how-list { gap: 3rem; } }
.hv-panel-bottom[hidden] { display: none; }


/* Todos los botones «Ofrecer plazas» (conductor) con el mismo amarillo */
.btn-ofrecer, a.btn-ofrecer, button.btn-ofrecer { background: #fbbf24 !important; background-image: none !important; color: #0f172a !important; border-color: #fbbf24 !important; }
.btn-ofrecer:hover, a.btn-ofrecer:hover, button.btn-ofrecer:hover { background: #f59e0b !important; border-color: #f59e0b !important; color: #0f172a !important; }

/* «¿Necesitas que te lleven?»: siempre en una sola línea, el tamaño se ajusta al ancho de su columna */
.hv-head { container-type: inline-size; }
.hv-title { white-space: nowrap; font-size: clamp(1.3rem, 7vw, 2.9rem); }
@supports (font-size: 1cqw) { .hv-title { font-size: min(2.9rem, 7.2cqw); } }

/* La ilustración va arriba (móvil y escritorio), sin marco, y el texto de «Moverte en compañía» queda en su propia tarjeta debajo */
@media all {
  .hv-manifest { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; overflow: visible; gap: 0; border-radius: 0; }
  .hv-manifest .hv-mart { order: -1; margin: 0 0 -6px; z-index: 0; }
  .hv-manifest .hv-blob { display: none; }
  .hv-manifest .hv-mtext { position: relative; z-index: 1; }
  .hv-manifest .hv-mtext { background-color: #f7f1e8; border: 1px solid rgba(228,217,199,.9); border-radius: 26px; padding: 26px 22px 28px; box-shadow: 0 24px 50px -34px rgba(120,90,40,.5); }
}

/* Personas más pequeñas, encima de la tarjeta de texto */
@media all {
  .hv-manifest .hv-mart { margin: 0 !important; min-height: 0; padding-top: 4.6rem !important; }
  .hv-manifest .hv-mart img { max-width: 250px; max-height: 190px; margin-bottom: 0; }
  .hv-manifest .hv-mart .hv-float { transform: scale(.8); }
  .hv-manifest .hv-mtext { margin-top: 0; }
}

/* «Descubre cuánto ahorras…»: una sola línea en pantallas grandes */
@media (min-width: 1024px) { .pub-title { max-width: none !important; white-space: nowrap; font-size: min(2.4rem, 3.1vw); } }

/* Buscador estable en móvil: el dibujo animado del fondo se repinta en cada fotograma; si el buscador y el título
   están en la misma capa, el navegador los repinta también y se ven «temblar». Cada cosa va en su propia capa. */
.hero-banner > div.z-0 { will-change: transform; transform: translateZ(0); contain: strict; }
.hero-banner > div.z-0 > img { backface-visibility: hidden; transform: translateZ(0); }
.hero-banner > div.z-10 { will-change: transform; transform: translateZ(0); backface-visibility: hidden; isolation: isolate; }
#home-search, #home-search .search-bar { backface-visibility: hidden; -webkit-font-smoothing: antialiased; }
#home-search { transform: translateZ(0); }
@media (max-width: 639px) { .hero-banner { overscroll-behavior-y: none; } }

/* Acceso y registro: el campo enfocado lleva un borde gris suave; el foco visual queda en el botón principal */
.auth-page .input:focus, .auth-page .input-lg:focus { border-color: #cbd5e1; box-shadow: 0 0 0 4px rgba(148, 163, 184, .18); outline: none; }

/* «Continuar con Google»: borde verde */
.btn-google { border: 2px solid #10b981 !important; }
.btn-google:hover { border-color: #059669 !important; background: #f0fdf9; }

/* Fondos difuminados por abajo: sin corte duro con el blanco */
.pub-hero, .ab-hero { position: relative; border-bottom: 0; }
.pub-hero::after, .ab-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff); pointer-events: none; z-index: 2; }
.ab-hero::after { height: 130px; }
/* Franjas grises de «Ofrecer plazas»: difuminadas por arriba y por abajo */
#view-publicar section.bg-slate-50 { background: linear-gradient(180deg, #fff 0, #f8fafc 70px, #f8fafc calc(100% - 70px), #fff 100%); border-color: transparent; }
/* Franja «Tres pasos» y similares de Nosotros */
.ab-band { border-block: 0; background: linear-gradient(180deg, #fff 0, var(--ab-cream) 90px, var(--ab-cream-2) calc(100% - 90px), #fff 100%); }
.pub-hero::after { height: 56px; z-index: 0; }
.pub-hero > .page { position: relative; z-index: 1; }
.ab-hero::after { height: 100px; }
.ab-hero__text { position: relative; z-index: 3; }

/* iOS Safari: evita el zoom automático al enfocar campos (<16px) y el doble toque */
@media (max-width: 1024px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]),
  select, textarea,
  .input-group input, .input-group select, .input-group textarea { font-size: 16px !important; }
}
html, body, a, button, label, summary, [role=button] { touch-action: manipulation; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Título de portada con provincias vecinas */
.hero-title { text-wrap: balance; }
@media (min-width: 1024px) { .hero-title { font-size: 3.6rem; } }
@media (min-width: 1440px) { .hero-title { font-size: 4.1rem; } }
.hero-sub { margin: .15rem auto 0; font-weight: 800; color: #fff; letter-spacing: .02em; font-size: clamp(1rem, 4.2vw, 1.5rem); -webkit-text-stroke: .05em rgba(8, 28, 24, .9); paint-order: stroke fill; text-shadow: 0 2px 0 rgba(8, 28, 24, .55), 0 4px 14px rgba(8, 28, 24, .6); }
.hero-sub i { font-style: normal; color: #b6f03c; margin: 0 .25em; }
.cat-prov{margin-top:.6rem}.cat-prov[hidden],.cat-filters[hidden]{display:none!important}.cat-chip--prov i{font-size:.8em;margin-right:.2em;opacity:.7}

/* Título de portada: siempre 2 líneas («Comparte coche en» / «Sevilla y provincias vecinas»), sin pasar a una tercera */
.hero-wrap { container-type: inline-size; }
.hero-title { text-wrap: nowrap; }
.hero-title .hero-l1, .hero-title .hero-accent { display: block; white-space: nowrap; }
.hero-title .hero-l1 { font-size: min(4.4rem, 9.5cqw); line-height: 1.08; }
.hero-title .hero-accent { font-size: min(4.4rem, 6.9cqw); line-height: 1.12; }
@supports not (font-size: 1cqw) {
  .hero-title .hero-l1 { font-size: clamp(1.7rem, 8vw, 4rem); }
  .hero-title .hero-accent { font-size: clamp(1.2rem, 5.9vw, 3.6rem); }
}

/* Inglés: «Seville and neighbouring provinces» es más largo que en español, así que puede pasar a una línea más en pantallas pequeñas */
html[data-lang="en"] .hero-title { text-wrap: balance; }
html[data-lang="en"] .hero-title .hero-accent { white-space: nowrap; }

/* ---------------------------------------------------------------------
   Viajes recurrentes y vuelta (ofrecer plazas / pedir viaje / mensajes)
   --------------------------------------------------------------------- */
.rec-box { margin-top: .9rem; padding: .95rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.rec-box .check-row b { color: var(--ink); }
.rec-sub { display: block; margin-top: .15rem; font-size: .8rem; font-weight: 500; color: var(--muted); line-height: 1.4; }
.check-row .rec-sub { display: block; }
.rec-panel { margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.rec-days { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.rec-day {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1.5px solid var(--line); background: #fff;
  font-weight: 800; font-size: .88rem; color: var(--ink-2); cursor: pointer; display: grid; place-items: center;
  transition: background .15s, border-color .15s, color .15s;
}
.rec-day:hover { border-color: var(--primary); }
.rec-day.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.rec-day.is-first { cursor: default; box-shadow: 0 0 0 3px rgba(16, 185, 129, .22); }
.rec-day:focus-visible { outline: 3px solid rgba(16, 185, 129, .45); outline-offset: 2px; }
.rec-panel .filter-chip { padding: .4rem .8rem; font-size: .82rem; }
.rec-panel .filter-chip[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .rec-day { transition: none; } }

/* ===== Seguridad: verificación, PIN, SOS, seguimiento y pestaña del panel ===== */
.sec-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; margin-bottom: 1rem; border: 1px solid var(--line, #e2e8f0); }
.sec-card.is-ok { background: #f0fdf4; border-color: #bbf7d0; }
.sec-card.is-pending { background: #fffbeb; border-color: #fde68a; }
.sec-card.is-pending .sec-card__icon { background: #fef3c7; color: #b45309; }
.sec-card__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #ecfdf5; color: #059669; font-size: 1.2rem; flex-shrink: 0; }
.sec-step { padding: 1.2rem; margin-bottom: 1rem; }
.sec-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #10b981; color: #fff; font-size: .85rem; margin-right: .4rem; }
.sec-files { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sec-drop { display: grid; place-items: center; min-height: 140px; border: 2px dashed #cbd5e1; border-radius: 16px; background: #f8fafc; cursor: pointer; overflow: hidden; position: relative; text-align: center; padding: .6rem; }
.sec-drop:hover, .sec-drop:focus-within { border-color: #10b981; background: #f0fdf4; }
.sec-drop img { max-width: 100%; max-height: 180px; border-radius: 10px; margin-top: .4rem; }
.sec-drop__txt { font-weight: 700; color: #334155; }
.pin-big { font: 800 3.4rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .5rem; text-align: center; padding: 1.1rem .5rem; margin: .6rem 0 1rem; background: #f0fdf4; border: 2px solid #86efac; border-radius: 18px; color: #065f46; }
.pin-input { font: 800 1.8rem/1 ui-monospace, Menlo, monospace; letter-spacing: .6rem; text-align: center; }
.track-card { padding: 1.3rem; }
.track-head { display: flex; justify-content: space-between; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .8rem; }
.track-route { font-size: 1.25rem; margin-bottom: .2rem; }
.track-data { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: 1rem 0; }
.track-data dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }
.track-data dd { margin: 0; font-weight: 700; }
.track-plate { font-family: ui-monospace, Menlo, monospace; letter-spacing: .1rem; }
.alert-ok { background: #ecfdf5; color: #065f46; }
.sec-review { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; margin: .8rem 0; }
.sec-review figure { margin: 0; } .sec-review img { width: 100%; border-radius: 10px; border: 1px solid #e2e8f0; } .sec-review figcaption { font-size: .8rem; color: #64748b; text-align: center; }
.adm-subtabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1rem 0; }
.adm-subtab { border: 1px solid #e2e8f0; background: #fff; border-radius: 999px; padding: .4rem .9rem; font-weight: 700; cursor: pointer; }
.adm-subtab.on { background: #0f172a; color: #fff; border-color: #0f172a; }
.adm-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: #e11d48; color: #fff; font-size: .72rem; text-align: center; }
.adm-switches { display: grid; gap: .4rem; margin-bottom: 1rem; }
.chat-list { height: min(46vh, 320px); overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; padding: .6rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; margin: .6rem 0; }
.chat-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 85%; }
.chat-msg.is-me { align-self: flex-end; align-items: flex-end; }
.chat-bubble { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px 14px 14px 4px; padding: .5rem .75rem; word-break: break-word; }
.chat-msg.is-me .chat-bubble { background: #10b981; border-color: #10b981; color: #fff; border-radius: 14px 14px 4px 14px; }
.chat-msg small { color: #94a3b8; font-size: .7rem; margin: 0 .3rem; }
.chat-form { display: flex; gap: .5rem; }
.track-map { margin-top: .9rem; } .track-map iframe { width: 100%; height: 260px; border: 1px solid #e2e8f0; border-radius: 14px; }
.track-map.is-old iframe { filter: grayscale(.8); opacity: .8; }

/* ---------- Instalar app (PWA) ---------- */
.btn-install { width: 100%; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1rem; border-radius: .9rem; border: 2px solid #10b981; background: #ecfdf5; color: #047857; font-weight: 800; font-size: .9rem; cursor: pointer; }
.btn-install:hover { background: #d1fae5; }
.btn-install[hidden] { display: none !important; }
.pwa-steps { margin: .75rem 0 1rem 1.2rem; display: grid; gap: .5rem; }

/* ===== Ofrecer plazas: hero oscuro con panel de ahorro ===== */
.pub-hero--dark { background: radial-gradient(120% 120% at 70% 0%, #0f4a5c 0%, #0a2f40 45%, #061c29 100%); color: #fff; position: relative; overflow: hidden; }
.pub-hero--dark::after { display: none; }
.pub-hero--dark .page { padding-top: calc(var(--hdr-h) + 1.5rem); padding-bottom: 2.5rem; position: relative; }
.ph-net { position: absolute; right: 2%; top: calc(var(--hdr-h) - 20px); width: 22rem; max-width: 40%; opacity: .55; pointer-events: none; }
.ph-title { position: relative; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.1; font-size: clamp(1.6rem, 3.6vw, 2.6rem); margin: 0 0 1.5rem; max-width: 40rem; }
.ph-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.ph-panel { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 1rem 1.1rem 1.1rem; backdrop-filter: blur(6px); position: relative; z-index: 3; }
.ph-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 1rem; align-items: end; }
.ph-picker { padding: 0; }
.ph-picker .search-bar--form { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.ph-picker .search-bar--form .input-group { margin: 0; }
.ph-panel label { color: rgba(255,255,255,.75); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.ph-picker input { background: rgba(255,255,255,.08) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.22) !important; border-radius: 8px; font-weight: 600; }
.ph-picker input::placeholder { color: rgba(255,255,255,.5); }
.ph-picker .location-menu, .ph-picker [role=listbox] { color: var(--ink); }
.ph-pax-ctl { display: flex; align-items: center; gap: .6rem; margin-top: .35rem; }
.ph-step { display: inline-flex; align-items: center; gap: .4rem; }
.ph-step button { background: none; border: 0; color: #fff; font-size: 1.2rem; font-weight: 700; cursor: pointer; width: 26px; height: 30px; }
.ph-step output { min-width: 1.2rem; text-align: center; font-weight: 700; }
.ph-pax input[type=range] { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 5px; background: rgba(255,255,255,.25); border-radius: 99px; accent-color: #2dd4bf; }
.ph-pax input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #2dd4bf; border: 2px solid #fff; }
.ph-pax input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #2dd4bf; border: 2px solid #fff; }
.ph-sv-title { margin: .9rem 0 .4rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.75); }
.ph-stats { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr auto; gap: 1rem; align-items: end; }
.ph-stat span { display: block; font-size: .66rem; color: rgba(255,255,255,.7); line-height: 1.25; margin-bottom: .2rem; }
.ph-stat strong { font-size: 1.25rem; font-weight: 800; }
.ph-stat .ph-big { font-size: 1.9rem; letter-spacing: -.02em; }
.ph-cta { align-self: center; border: 1.5px solid #5eead4; color: #fff; border-radius: 999px; padding: .5rem 1.1rem; font-weight: 700; font-size: .8rem; text-transform: uppercase; text-decoration: none; box-shadow: 0 0 14px rgba(45,212,191,.45); white-space: nowrap; }
.ph-cta:hover { background: rgba(45,212,191,.2); }
.ph-map-wrap { position: relative; margin-top: .5rem; }
.ph-map { width: 100%; height: auto; display: block; }
.ph-tag { position: absolute; font-weight: 800; font-size: .8rem; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); max-width: 9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-tag--o { left: 3%; bottom: 0; }
.ph-tag--d { right: 2%; top: 4%; }
.ph-photo { margin: 0; position: relative; z-index: 2; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); align-self: stretch; }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .ph-stage { grid-template-columns: 1fr; }
  .ph-row { grid-template-columns: 1fr; }
  .ph-stats { grid-template-columns: 1fr 1fr; }
  .ph-cta { grid-column: 1 / -1; text-align: center; }
  .ph-photo { max-height: 18rem; }
  .ph-net { opacity: .3; }
}
@media (prefers-reduced-motion: reduce) { .ph-map animateMotion { display: none; } }
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body:has(#view-publicar:not([hidden])) .site-header.is-solid { --olc-ink: #ffffff; --olc-acc: #9BD93C; --olc-sun: #FBBF24; }
body:has(#view-publicar:not([hidden])) .site-header.is-solid .hdr-link,
body:has(#view-publicar:not([hidden])) .site-header.is-solid .hamburger { color: #fff; }
body:has(#view-publicar:not([hidden])) .site-header.is-solid .brand-tagline { color: #e2e8f0; }
body:has(#view-publicar:not([hidden])) .site-header.is-solid .hdr-link:hover { background: rgba(255,255,255,.15); }
.ph-picker .search-bar--form .input-group { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 8px; padding: .4rem .7rem; }
.ph-picker .search-bar--form .input-group:focus-within { border-color: #5eead4; box-shadow: 0 0 0 3px rgba(45,212,191,.25); }
.ph-picker .search-bar--form .input-group label { color: rgba(255,255,255,.75); font-size: .68rem; text-transform: uppercase; }
.ph-picker .search-bar--form .input-group input { background: transparent !important; border: 0 !important; color: #fff !important; padding: 0; }
.ph-picker .search-bar--form .input-group input::placeholder { color: rgba(255,255,255,.55); opacity: 1; }
.pub-hero--dark::after { display: block; height: 140px; z-index: 1; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 55%, #fff 100%); }
.pub-hero--dark .page { padding-bottom: 5rem; z-index: 2; }
/* v29: fondo más suave, botón naranja, sin "Ofrecer plazas" en el menú estando en esa pantalla */
.pub-hero--dark { background: radial-gradient(120% 120% at 70% 0%, #2a8a9c 0%, #1f6f86 45%, #17566b 100%); }
.pub-hero--dark .ph-panel { background: rgba(255,255,255,.12); }
a.ph-cta.btn-ofrecer { border: 0 !important; box-shadow: 0 6px 18px -6px rgba(245,158,11,.7); }
body:has(#view-publicar:not([hidden])) .site-header .btn-ofrecer { display: none !important; }
.nav-actions a.nav-here { display: none !important; }
/* v31: botón fijo solo al bajar; panel más sólido con letras oscuras */
.fixed-cta--late { opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .25s, transform .25s; }
.fixed-cta--late.is-on { opacity: 1; transform: none; }
.fixed-cta--late:not(.is-on) .btn { pointer-events: none; }
.pub-hero--dark .ph-panel { background: rgba(255,255,255,.96); border: 1px solid #fff; backdrop-filter: none; box-shadow: 0 18px 40px -20px rgba(0,0,0,.45); color: #0f172a; }
.pub-hero--dark .ph-panel label, .pub-hero--dark .ph-sv-title, .pub-hero--dark .ph-stat span { color: #475569; }
.pub-hero--dark .ph-stat strong, .pub-hero--dark .ph-step button, .pub-hero--dark .ph-step output { color: #0f172a; }
.ph-picker .search-bar--form .input-group { background: #f1f5f9; border: 1px solid #cbd5e1; }
.ph-picker .search-bar--form .input-group:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.ph-picker .search-bar--form .input-group label { color: #475569; }
.ph-picker .search-bar--form .input-group input { color: #0f172a !important; }
.ph-picker .search-bar--form .input-group input::placeholder { color: #64748b; }
.pub-hero--dark .ph-pax input[type=range] { background: #cbd5e1; accent-color: var(--primary); }
.pub-hero--dark .ph-pax input[type=range]::-webkit-slider-thumb { background: var(--primary); }
.pub-hero--dark .ph-pax input[type=range]::-moz-range-thumb { background: var(--primary); }
.pub-hero--dark { background: linear-gradient(225deg, #336e68 0%, #176057 50%, #0a5a51 100%); }

.ph-stats { grid-template-columns: 1.5fr 1fr 1fr auto; }
@media (max-width: 900px) { .ph-stats { grid-template-columns: 1fr 1fr; } }
/* v36: ilustración con opacidad en pantalla grande y oculta en pequeña */
.ph-photo img { opacity: .92; }  /* menos oscura */
@media (max-width: 900px) { .ph-photo { display: none; } .ph-stage { grid-template-columns: 1fr; } }
/* v37: tipografía igual que el resto de la web (mismas mayúsculas, pesos y tamaños) */
.ph-title { text-transform: none; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.pub-hero--dark .ph-panel label, .ph-picker .search-bar--form .input-group label { text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 600; }
.ph-sv-title { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 800; color: var(--ink); }
.ph-stat span { font-size: .78rem; font-weight: 600; }
.ph-stat strong { font-weight: 800; }
.ph-picker input { font-size: 1rem; font-weight: 700; }
a.ph-cta.btn-ofrecer { text-transform: none; font-size: 1rem; font-weight: 800; padding: .7rem 1.4rem; letter-spacing: 0; }
.ph-tag { font-weight: 800; }
.ph-net { width: 8.5rem; max-width: 30%; right: 5%; top: calc(var(--hdr-h) - 10px); }
/* v38: cabecera del tablón en el verde lima de "Sevilla" */
.board-head { background: linear-gradient(180deg, #a3e635 0%, #b0ec48 55%, #cdf67f 100%); }
.board-head::before { background: radial-gradient(circle at 1px 1px, rgba(54,83,20,.25) 1.3px, transparent 1.5px) 0 0 / 20px 20px; }
.board-head__deco { color: rgba(54,83,20,.16); }
.board-head__txt .h-page { color: #1a2e05; }
.board-head__txt .lead { color: #2f4a0b; }
.board-head { background: linear-gradient(180deg, #c3eb7c 0%, #d0f092 55%, #e3f7bb 100%); }


/* =====================================================================
   Mejoras UX móvil (v40)
   ===================================================================== */
/* Cabecera: «Ofrecer plazas» pasa a ser un círculo blanco con «+» */
@media (max-width: 1023px) {
  .nav-actions a.btn-publicar--mobile {
    width: 40px; height: 40px; min-height: 40px; padding: 0; gap: 0;
    justify-content: center; align-items: center; border-radius: 50%;
    background: #fff !important; border-color: #fff !important; color: #0f172a !important;
    box-shadow: 0 6px 14px -8px rgba(0,0,0,.5);
  }
  .nav-actions a.btn-publicar--mobile:hover { background: #f1f5f9 !important; border-color: #f1f5f9 !important; }
  .nav-actions a.btn-publicar--mobile svg { display: block; }
}

@media (max-width: 639px) {
  /* Título de portada: ocupa todo el ancho del buscador (mismo margen) */
  .hero-title .hero-l1 { font-size: 10.6cqw; }
  .hero-title .hero-accent { font-size: 7.7cqw; }
  /* Provincias: algo más grandes, pero con más margen que el título y el buscador */
  .hero-sub { font-size: clamp(1rem, 4.6vw, 1.5rem); }

  /* Cómo funciona: +1 punto de texto */
  .how-ex { font-size: calc(1rem + 1px); }
  .how-card h3 { font-size: calc(1.08rem + 1px); }
  .how-card p { font-size: calc(.96rem + 1px); }

  /* ¿Necesitas que te lleven? un poco más grande */
  .hv-title { font-size: min(3.3rem, 8cqw); }
  @supports not (font-size: 1cqw) { .hv-title { font-size: clamp(1.5rem, 8vw, 2.4rem); } }

  /* Ventajas: +1 punto de texto */
  .hv-adv h3 { font-size: calc(clamp(.95rem, 3.6vw, 1.2rem) + 1px); }
  .hv-adv p { font-size: calc(clamp(.8rem, 3vw, .98rem) + 1px); }

  /* Pie de página: letra más grande y enlaces más juntos */
  #site-footer { font-size: .8rem; }
  #site-footer h4 { font-size: .9rem; }
  #site-footer ul { font-size: .9rem; }
  #site-footer ul.space-y-2 > * + * { margin-top: .05rem; }
  #site-footer ul a, #site-footer ul button { min-height: 28px; font-size: .9rem; }
  #site-footer nav { font-size: .8rem; row-gap: 0; }
  #site-footer nav a, #site-footer nav button { min-height: 30px; }
  #site-footer .text-\[11px\] { font-size: .8rem; }
}
.pwa-li:has(> [hidden]) { display: none; }
#site-footer ul button[data-pwa-install] { background: none; border: 0; padding: 0; cursor: pointer; }

/* Carrusel de tarjetas: solo se desplaza hacia los lados (nunca arriba/abajo) */
#marquee-container, .hc-a, .hc-b { overflow-y: hidden; overscroll-behavior-x: contain; }

/* ===== v41: lupa en cabecera + pantalla «Ofrecer plazas» en móvil ===== */
.hdr-search { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: #fff; border-radius: 50%; }
.hdr-search:hover, .hdr-search:active { background: rgba(255,255,255,.15); }
@media (min-width: 1024px) { .hdr-search { display: none; } }

@media (max-width: 639px) {
  /* Títulos de sección: +1 punto en toda la web */
  .h-section { font-size: calc(clamp(1.2rem, 2.2vw, 1.5rem) + 1px); }
  #main h3.font-extrabold { font-size: calc(1.125rem + 1px); }
  .how-title { font-size: calc(clamp(1.6rem, 3.4vw, 2rem) + 1px); }
}

@media (max-width: 900px) {
  /* Panel de ofrecer plazas: desde / a dónde en líneas separadas, plazas junto a la distancia */
  .ph-panel { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; row-gap: .5rem; align-items: end; }
  .ph-row, .ph-stats { display: contents; }
  .ph-picker { grid-column: 1 / -1; order: 1; }
  .ph-picker .search-bar--form { grid-template-columns: 1fr; gap: .5rem; }
  .ph-sv-title { grid-column: 1 / -1; order: 2; margin: .5rem 0 0; font-size: calc(.9rem + 1px); }
  .ph-stat:nth-of-type(1) { order: 3; } .ph-stat:nth-of-type(2) { order: 4; } .ph-stat:nth-of-type(3) { order: 5; }
  .ph-pax { order: 6; }
  .ph-cta { order: 7; grid-column: 1 / -1; margin-top: .4rem; }
  #pubcalc-result { order: 8; }
  .ph-stat span { font-size: calc(.78rem + 1px); }
  .ph-stat strong { font-size: calc(1.25rem + 1px); }
  .ph-stat .ph-big { font-size: calc(1.9rem + 1px); }
  .ph-picker .search-bar--form .input-group label, .pub-hero--dark .ph-panel label { font-size: calc(.8rem + 1px); }
  /* Plazas libres: más pequeño, sin barra, solo − y + */
  .ph-pax input[type=range] { display: none; }
  .ph-pax label { display: block; font-size: .72rem !important; line-height: 1.2; }
  .ph-pax-ctl { margin-top: .15rem; }
  .ph-step { gap: .2rem; background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 999px; padding: 0 .25rem; }
  .ph-step button { width: 32px; height: 32px; font-size: 1.3rem; line-height: 1; }
  .ph-step output { min-width: 1.4rem; font-size: 1rem; }
  /* Menos espacio para que la animación de la ruta se vea en la misma pantalla */
  .pub-hero--dark .page { padding-top: calc(var(--hdr-h) + .6rem); }
  .ph-title { margin-bottom: .9rem; }
  .ph-map-wrap { margin-top: .2rem; }
}

/* ===== v42: títulos en dos líneas / tablón ===== */
.ph-brm { display: none; }
@media (max-width: 639px) {
  .ph-brm { display: inline; }
  .ph-title { font-size: min(2rem, 8.2vw); white-space: nowrap; }
  .board-head__txt .h-page { white-space: nowrap; font-size: min(1.7rem, 7.2vw); }
  /* Línea fina que marca el panel del tablón */
  .board-panel { border: 1px solid #ecd9a0 !important; }
}

/* v43: lupa y «+» idénticos: círculo blanco de 40px, icono negro de 22px */
.nav-actions a.hdr-search, .nav-actions a.btn-publicar--mobile {
  width: 34px; height: 34px; min-width: 34px; min-height: 34px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff !important; border: 0 !important; color: #0f172a !important;
  box-shadow: 0 6px 14px -8px rgba(0,0,0,.5);
}
.nav-actions a.hdr-search:hover, .nav-actions a.btn-publicar--mobile:hover { background: #f1f5f9 !important; }
.nav-actions a.hdr-search svg, .nav-actions a.btn-publicar--mobile svg { width: 18px; height: 18px; display: block; stroke-width: 3; }
@media (min-width: 1024px) { .nav-actions a.hdr-search, .nav-actions a.btn-publicar--mobile { display: none; } }

/* v44: campos Desde/A dónde de «Ofrecer plazas» con fondo blanco */
.pub-hero--dark .ph-picker .search-bar--form .input-group,
.ph-picker .search-bar--form .input-group { background: #fff; border-color: #cbd5e1; }
.ph-picker .search-bar--form .input-group input { background: transparent !important; }

/* v45: título del tablón en una franja verde más oscura, separada del texto con un borde */
.board-head__txt .h-page {
  display: block; background: #a6d93d; border: 1px solid rgba(54,83,20,.4); border-radius: 14px;
  padding: .55rem .9rem; margin: 0 0 .9rem; box-shadow: 0 6px 14px -10px rgba(54,83,20,.6);
}
.board-head__txt .lead { margin-top: 0; padding-top: .1rem; }

/* v46: «Buscar» atenuado sin origen y destino; resultados con solo «Modificar búsqueda» centrado en verde */
.btn-buscar.is-incomplete { opacity: .55; cursor: not-allowed; box-shadow: none; }
.search-bar .error-text { font-size: .8rem; margin-top: .25rem; }
@media (max-width: 768px) {
  .rt-toggle { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  .rt-toggle__act { width: 100%; justify-content: center; font-size: .95rem; padding: .7rem 1rem; border: 1px solid #a7f3d0; }
}

/* v48: pantallas de acceso con escena animada de ruta y coche */
.auth-page { padding-bottom: 1.5rem; }
.auth-scene { margin: 1.8rem -1.25rem -1.5rem; line-height: 0; overflow: hidden; }
.auth-scene svg { width: 100%; height: auto; display: block; }
.as-dash { animation: as-dash 1.2s linear infinite; }
.as-arc { animation: as-dash 2.4s linear infinite reverse; }
@keyframes as-dash { to { stroke-dashoffset: -34; } }
.as-cloud--a { animation: as-cloud 22s linear infinite; }
.as-cloud--b { animation: as-cloud 30s linear infinite reverse; }
@keyframes as-cloud { 0% { transform: translateX(-20px); } 50% { transform: translateX(30px); } 100% { transform: translateX(-20px); } }
@media (prefers-reduced-motion: reduce) { .as-dash, .as-arc, .as-cloud { animation: none; } .as-car animateMotion { display: none; } }
@media (prefers-reduced-motion: reduce) { .as-car { transform: translate(200px,138px); } }

/* v49: pantalla «sin resultados» más grande */
.nr-map { padding: 36px 22px; }
.nr-pin { padding: 14px 16px; }
.nr-pin small { font-size: .78rem; }
.nr-pin strong { font-size: 1.2rem; }
.nr-body { padding: 32px 22px 34px; }
.nr-body h3 { font-size: 1.9rem; line-height: 1.15; }
.nr-body > p { font-size: 1.15rem; line-height: 1.5; margin-top: .7rem; }
.nr-steps { gap: 14px; margin: 26px 0; }
.nr-steps li { padding: 16px; gap: 14px; align-items: center; }
.nr-steps li > span { width: 34px; height: 34px; font-size: 1rem; }
.nr-steps strong { font-size: 1.1rem; }
.nr-steps small { font-size: .95rem; margin-top: 3px; }
.nr-actions .btn { font-size: 1.1rem; padding: .95rem 1.7rem; }

/* v51: título del tablón como banda limpia (sin caja con borde ni sombra) */
.board-head__txt .h-page { border: 0; box-shadow: none; border-radius: 0; background: #a6d93d; }
@media (max-width: 639px) {
  .board-head__txt .h-page {
    margin: -1.4rem -1.2rem 1rem; padding: 1.1rem 1.2rem;
    border-bottom: 1px solid rgba(54,83,20,.28);
  }
}
@media (min-width: 640px) {
  .board-head__txt .h-page { border-radius: 14px; border-bottom: 0; }
}

/* v52: tablón → texto fuera, panel con banda verde y listado, y debajo el filtro de conductor */
.board-v2 .board-intro { margin: .2rem .2rem 1.1rem; font-size: 1.05rem; line-height: 1.55; color: #1f3d36; white-space: normal; text-wrap: pretty; }
.board-v2 .board-card { border-radius: 26px; overflow: hidden; border: 1px solid #e3d9b8; background: #fff; box-shadow: 0 18px 40px -30px rgba(54,83,20,.55); }
.board-v2 .board-head {
  background: #a6d93d !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  padding: 1rem 1.2rem !important; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: nowrap;
}
.board-v2 .board-head::before, .board-v2 .board-head__deco { display: none !important; }
.board-v2 .board-head__txt { flex: 1 1 auto; }
.board-v2 .board-head__txt .h-page { background: none; border: 0; box-shadow: none; border-radius: 0; margin: 0; padding: 0; color: #1a2e05; white-space: nowrap; }
.board-v2 .board-head__cta { flex: none; width: auto; padding: .5rem .9rem; font-size: .9rem; box-shadow: none; }
.board-v2 .board-panel {
  margin: 0; border: 0 !important; border-radius: 0; box-shadow: none !important; padding: 1.1rem .8rem 1.3rem;
  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 85%) !important;
}
.board-v2 .board-panel__list { margin-top: 0; padding-top: 0; border-top: 0; }
.board-v2 > .board-search { margin-top: 1.3rem; padding: 1rem 1.1rem 1.2rem; border-radius: 24px; background: #fffbeb; border: 1px solid #fde68a; box-shadow: 0 14px 30px -24px rgba(180,83,9,.5); }
.board-v2 > .board-search .board-search__t { margin: 0 0 .8rem .2rem; font-size: 1rem; }

/* v56: portada «Coche compartido:» (+1 pt), footer en una línea, «sin resultados» con título en el fondo */
.hero-title .hero-l1, .hero-title .hero-accent { font-size: calc(min(4.4rem, 8.2cqw) + 1pt); }
@media (max-width: 639px) { .hero-title .hero-l1, .hero-title .hero-accent { font-size: calc(8.7cqw + 1pt); } }
@supports not (font-size: 1cqw) { .hero-title .hero-l1, .hero-title .hero-accent { font-size: calc(clamp(1.7rem, 7vw, 4rem) + 1pt); } }
.nr-map .nr-title { margin: 0; text-align: left; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: #0f172a; }
@media (min-width: 640px) { .nr-map .nr-title { font-size: 1.9rem; text-align: center; } }
.nr-card .nr-body > p { text-align: left; margin-left: 0; margin-right: 0; max-width: none; margin-bottom: 1.2rem; }
@media (min-width: 640px) { .nr-card .nr-body > p { text-align: center; margin-left: auto; margin-right: auto; max-width: 34rem; } }
.nr-card .nr-body { padding-top: 20px; }
/* Footer móvil: la columna de la derecha es más ancha para que «Términos y condiciones» quepa en una línea */
@media (max-width: 639px) {
  footer .grid.grid-cols-2 { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 1rem; }
}


/* Tarjeta de la portada «Ofrecer plazas»: ilustración más clara */
.ph-photo { background: #1f6f66; }
.ph-photo img { opacity: .92; filter: brightness(1.04) saturate(1.05); }

/* Centro de cookies: texto bien legible (las galletitas quedan de fondo, muy suaves) */
.cc-box {
  background: linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,.8)), url('../img/fondo-cookies.svg') 0 0 / 340px 340px repeat local, #fff !important;
}
.cc-box > p, .cc-box > div > p { text-shadow: none; }
.cc-box > p { color: #1e293b !important; font-size: .95rem; line-height: 1.6; background: #fff; border-radius: .9rem; padding: .1rem 0; }
.cc-box > div.border { background: #fff; border-color: #cbd5e1 !important; }
.cc-box > div.border p { color: #334155 !important; font-size: .9rem; line-height: 1.55; }
.cc-box > div.border strong { color: #0f172a; }
.cc-box details { color: #334155 !important; }

/* Tablón: buscador del conductor arriba, plegado */
.board-search__toggle { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; background: none; border: 0; padding: 0; margin: 0 !important; cursor: pointer; text-align: left; font: inherit; font-weight: 800; color: #78350f; }
.board-v2 > .board-search { margin-top: 0; margin-bottom: 1rem; padding: .7rem 1.1rem; }
.board-v2 > .board-search .board-search__t { margin: 0; }
.board-search__chev { transition: transform .2s; color: #b45309; }
.board-search.is-open .board-search__chev { transform: rotate(180deg); }
.board-search.is-open { padding-bottom: 1.1rem !important; }
.board-search__body { margin-top: .8rem; }
.board-search__body[hidden] { display: none; }
/* Buscador de solo ida: sin campo de vuelta */
.date-range--oneway > [data-field="return"] { display: none !important; }
.date-range--oneway > .input-group:first-child { border-right: none; }
.date-range--oneway { flex: 1; }
.calendar-popup--oneway .cal-tabs { grid-template-columns: 1fr; }

/* Escena de Inicia sesión / Regístrate: bordes laterales difuminados (sin corte seco) */
.auth-scene {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 100%);
  mask-composite: intersect;
}

/* «Ofrecer plazas»: panel totalmente blanco y campos con el gris claro que tenía el panel */
.pub-hero--dark .ph-panel { background: #fff; }
.pub-hero--dark .ph-picker .search-bar--form .input-group,
.ph-picker .search-bar--form .input-group { background: #f6f8f9; }

/* Tablón: el texto de introducción se lee con cualquier cielo */
.board-v2 .board-intro { text-shadow: 0 1px 2px rgba(255,255,255,.35); }
#view-dynamic[data-page="board"][data-sky="night"] .board-intro { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.55); }
#view-dynamic[data-page="board"][data-sky="rain"] .board-intro { color: #0f2230; }

/* Nuestra filosofía: contenido un poco más arriba */
.ab-hero__grid { padding-top: calc(var(--hdr-h) + 1.6rem) !important; }
@media (max-width: 900px) { .ab-hero__grid { padding-top: calc(var(--hdr-h) + 1.2rem) !important; } }

/* Ofrece tus plazas: «Plazas y aportación» en dos columnas; plazas + «Los llevo gratis» en una línea */
.pub-plazas { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; margin-bottom: .5rem; }
@media (min-width: 720px) { .pub-plazas { grid-template-columns: minmax(14rem, .8fr) 1.4fr; gap: 1.4rem; } }
.pub-plazas .field { margin-bottom: 0; }
.pub-seats-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .6rem 1rem; }
.pub-seats-row__seg { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.pub-seats-row__seg .label { margin-bottom: 0; }
.pub-free { margin: 0 .2rem .55rem 0; white-space: nowrap; }
@media (min-width: 720px) { .pub-seats-row { flex-direction: column; align-items: flex-start; } .pub-free { margin: .3rem 0 0; } }

/* Móvil: fecha y hora no se salen del campo */
.form-grid > .field { min-width: 0; }
.input[type="date"], .input[type="time"] { display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; text-align: left; }
.input[type="date"]::-webkit-date-and-time-value, .input[type="time"]::-webkit-date-and-time-value { text-align: left; min-width: 0; }
.input[type="date"]::-webkit-datetime-edit, .input[type="time"]::-webkit-datetime-edit { padding: 0; }
@media (max-width: 639px) {
  #pub-form .form-grid.cols-2:has(input[type="date"]), #pub-form .form-grid.cols-2:has(input[type="time"]) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 .6rem; }
  #pub-form input[type="date"], #pub-form input[type="time"] { padding-left: .7rem; padding-right: .5rem; font-size: .95rem; }
}
@media (max-width: 719px) {
  .pub-seats-row { flex-wrap: nowrap; gap: .5rem; }
  .pub-free { font-size: .88rem; gap: .4rem; margin-right: 0; }
  .pub-free input { width: 18px; height: 18px; }
}

/* En la cabecera no se muestra el botón de la página en la que ya estás */
body[data-route="tablon-nueva"] .btn-publicar--pedir,
body[data-route="publicar-nuevo"] .btn-publicar--ofrecer,
body[data-route="publicar-nuevo"] .btn-publicar--mobile.btn-ofrecer { display: none !important; }

/* Pantalla «petición publicada»: más aire y jerarquía */
.nr-lead { color: #475569; font-weight: 600; margin: .5rem auto 0; }
.nr-h { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #64748b; margin: 1.6rem 0 -.4rem; }
.nr-ok .alert { text-align: left; margin: 1.2rem 0 0; }
.nr-ok .nr-actions { margin-top: .4rem; }
.nr-links { margin: 1.1rem 0 0; font-size: .9rem; color: #64748b; font-weight: 600; }

/* Resultados: botón para ver todas las fechas de una serie */
.rt-more { display: block; margin: -.2rem 0 1rem auto; padding: .35rem .8rem; font-size: .85rem; font-weight: 700; color: var(--primary-600); background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 999px; cursor: pointer; }
.rt-more:hover { background: #d1fae5; }
.rt-more i { margin-right: 4px; }

/* ---- Persona de confianza (doble consentimiento) ---- */
.fam-note{flex-basis:100%;width:100%;display:flex;gap:.6rem;align-items:flex-start;padding:.65rem .85rem;border-radius:14px;background:#f1f5f9;color:#334155;font-size:.88rem;line-height:1.45;margin-bottom:.4rem}
.fam-note>i{margin-top:.15rem;color:#64748b}
.fam-note.is-ask{background:#fffbeb;color:#78350f}.fam-note.is-ask>i{color:#d97706}
.fam-note.is-ok{background:#ecfdf5;color:#065f46}.fam-note.is-ok>i{color:#059669}
.fam-note.is-bad{background:#fff1f2;color:#9f1239}.fam-note.is-bad>i{color:#e11d48}
.fam-note .btn{margin-left:.35rem;vertical-align:middle}
.fam-state{display:flex;gap:.75rem;flex-wrap:wrap;margin:.75rem 0}
.fam-state>div{flex:1 1 140px;display:flex;flex-direction:column;gap:.3rem;padding:.6rem .8rem;border:1px solid #e2e8f0;border-radius:14px}
.fam-state span:first-child{font-size:.78rem;color:#64748b;font-weight:700}
.fam-ask,.fam-send{margin-top:1rem;padding-top:.9rem;border-top:1px solid #e2e8f0}

/* ---- Sección de seguridad de la portada ---- */
.sfty{padding:4.5rem 1rem 3rem;background:linear-gradient(180deg,#ffffff 0%,#f1fdf8 3.5rem,#ecfdf5 7rem,#ffffff 100%)}
.sfty-in{max-width:68rem;margin:0 auto}
.sfty-kicker{display:inline-flex;gap:.45rem;align-items:center;font-weight:800;font-size:.8rem;letter-spacing:.04em;text-transform:uppercase;color:#047857;margin-bottom:.6rem}
.sfty-title{font-size:clamp(1.55rem,4vw,2.3rem);line-height:1.15;font-weight:800;color:#0f172a;margin:0 0 .6rem}
.sfty-lead{max-width:44rem;color:#475569;font-size:1.02rem;line-height:1.6;margin:0 0 1.5rem}
.sfty-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(15.5rem,1fr));gap:1rem}
.sfty-grid li{background:#fff;border:1px solid #d1fae5;border-radius:20px;padding:1.1rem 1.15rem;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.sfty-ic{display:inline-flex;width:2.5rem;height:2.5rem;align-items:center;justify-content:center;border-radius:12px;background:#d1fae5;color:#047857;font-size:1.05rem;margin-bottom:.6rem}
.sfty-grid h3{font-weight:800;font-size:1.02rem;margin:0 0 .25rem;color:#0f172a}
.sfty-grid p{margin:0;color:#475569;font-size:.92rem;line-height:1.5}
.sfty-cta{margin:1.4rem 0 0}
.chat-warn{margin:.5rem 0 0;padding:.6rem .8rem;border-radius:12px;background:#fff1f2;color:#9f1239;font-size:.88rem;line-height:1.4;font-weight:600}
.chat-warn[hidden]{display:none}

/* Aviso dorado entre los trayectos de la búsqueda (invitación o anuncio real) */
.feed-ad { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .7rem 0; padding: .95rem 1.2rem; overflow: hidden;
  border: 2px solid transparent; border-radius: 18px; color: #4a3406; text-decoration: none;
  background: linear-gradient(135deg, #fffdf6 0%, #fdf4d2 55%, #fbe9a8 100%) padding-box, linear-gradient(135deg, #f6dc86 0%, #c8931e 45%, #f6dc86 70%, #b27c14 100%) border-box;
  box-shadow: 0 12px 26px -16px rgba(178, 124, 20, .6), inset 0 1px 0 #fff; }
.feed-ad::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 28%; pointer-events: none; transform: skewX(-20deg);
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); animation: feedShine 6s ease-in-out infinite; }
@keyframes feedShine { 0%, 62% { left: -40%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .feed-ad::after { display: none; } }
.feed-ad__txt { min-width: 0; flex: 1 1 16rem; }
.feed-ad__tag { display: inline-block; margin-bottom: .3rem; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #3d2a05; background: linear-gradient(135deg, #fbe9a0, #d9a52c); padding: .15rem .55rem; border-radius: 999px; }
.feed-ad strong { display: block; font-size: 1.02rem; line-height: 1.25; color: #3d2a05; }
.feed-ad strong i { color: #b27c14; margin-right: .2rem; }
.feed-ad p { margin: .2rem 0 0; font-size: .86rem; line-height: 1.4; color: #7a5a12; }
.feed-ad__btn { flex: none; display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 800; text-decoration: none; color: #3d2a05;
  background: linear-gradient(135deg, #fbe9a0, #d9a52c); padding: .55rem 1.1rem; border-radius: 999px; box-shadow: 0 6px 14px -8px rgba(122, 90, 18, .8); }
.feed-ad__btn:hover { filter: brightness(1.05); }

/* ===== Aviso de seguridad, vehículo, compartir y estrellas (2026-10) ===== */
.safety-tip { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1rem; padding: .85rem 1rem; border-radius: 16px; background: #ecfdf5; border: 1.5px solid #6ee7b7; color: #064e3b; }
.safety-tip__ico { font-size: 1.35rem; line-height: 1.2; flex: none; }
.safety-tip p { margin: 0; font-size: .92rem; line-height: 1.45; }
.safety-tip strong { font-weight: 800; }
.msg-sub .safety-tip { margin-top: .6rem; }

.veh-card.is-missing { background: #fffbeb; border: 1.5px dashed #f59e0b; border-radius: 16px; padding: 1rem; }
.veh-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; }
.veh-row > div { flex: 1 1 12rem; min-width: 0; }
.veh-plate { display: inline-block; margin-left: .6rem; padding: .1rem .55rem; border: 2px solid #1e293b; border-radius: 6px; font-weight: 800; letter-spacing: .12em; font-size: .85rem; background: #fff; }

.share-preview { margin: .75rem 0; padding: .75rem .9rem; border-radius: 14px; background: #f1f5f9; border: 1px solid #e2e8f0; }
.share-preview span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #64748b; margin-bottom: .25rem; }
.share-preview p { margin: 0; font-size: .9rem; line-height: 1.5; color: #0f172a; word-break: break-word; }
.live-share { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; margin-top: .5rem; }
.live-share .btn { max-width: 100%; white-space: normal; }
.live-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.live-apps .btn { padding-inline: .3rem; font-size: .84rem; min-width: 0; }

.star-rate { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }
.star-rate__s { background: none; border: 0; padding: .2rem; cursor: pointer; font-size: 2rem; line-height: 1; color: #cbd5e1; transition: transform .12s, color .12s; }
.star-rate__s:hover { transform: scale(1.12); }
.star-rate__s.is-on { color: #f59e0b; }
.star-rate__s:focus-visible { outline: 3px solid #10b981; outline-offset: 2px; border-radius: 8px; }
.star-rate__txt { margin-left: .6rem; font-size: .9rem; font-weight: 700; color: #475569; }

.a11y-btn { cursor: grab; user-select: none; -webkit-user-select: none; }
.a11y-btn.is-dragging { cursor: grabbing; transform: scale(1.08); box-shadow: 0 10px 24px -8px rgba(15,23,42,.55); }

/* Título de portada: «Comparte coche en» arriba y «Andalucía» debajo, siempre en 2 líneas.
   En móvil el script de portada ajusta el tamaño para que la 1.ª línea ocupe casi todo el ancho y «Andalucía» un poco más. */
.hero-title .hero-l1, .hero-title .hero-accent { white-space: nowrap !important; }
@media (max-width: 639px) { .hero-wrap { padding-left: 0; padding-right: 0; } .hero-title .hero-l1 { font-size: 9.6cqw; } .hero-title .hero-accent { font-size: 14cqw; } }
