@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/manrope-latin-800-normal.woff2") format("woff2"); }

:root {
  /* Identidad compartoviaje.com — "El camino se comparte" */
  --petroleo: #123B45;     /* confianza, seguridad, solidez */
  --petroleo-80: #1B4D59;
  --turquesa: #17B6A4;     /* conexión, comunidad, movimiento */
  --turquesa-dark: #0E8577; /* turquesa con contraste AA para texto sobre claro */
  --turquesa-soft: #E1F4F1;
  --coral: #FF795E;        /* cercanía, energía, ahorro */
  --coral-dark: #E35E43;
  --coral-soft: #FFEAE4;
  --marfil: #F7F5EF;       /* claridad, equilibrio, amplitud */
  --marfil-2: #EEEBE2;
  --tinta: #26343A;        /* legibilidad */
  --text-muted: #5D6B70;
  --danger: #D64545;
  --line: #E3E0D6;
  --shadow-sm: 0 2px 6px rgba(18, 59, 69, 0.06);
  --shadow-md: 0 10px 30px rgba(18, 59, 69, 0.10);
  --shadow-lg: 0 20px 50px rgba(18, 59, 69, 0.18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--marfil);
  color: var(--tinta);
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--turquesa-dark); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--petroleo);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 10px;
}
h1 { font-size: 28px; }
h2 { font-size: 20px; margin-top: 18px; }
h3 { font-size: 16px; }

.serif { font-family: var(--font-display); }
.muted { color: var(--text-muted); }

.label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Buttons */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--petroleo);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 13px 20px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  transition: transform .1s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 6px 16px rgba(18, 59, 69, 0.22);
}
button:hover, .btn:hover { background: var(--petroleo-80); text-decoration: none; }
button:active, .btn:active { transform: translateY(1px); }
button[disabled] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

:is(.btn, button).secondary {
  background: white;
  color: var(--petroleo);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
:is(.btn, button).secondary:hover { background: var(--marfil-2); }

:is(.btn, button).conductor {
  background: var(--turquesa-dark);
  box-shadow: 0 6px 16px rgba(23, 182, 164, 0.3);
}
:is(.btn, button).conductor:hover { background: #0B6E63; }

/* Acción principal de la pantalla (buscar, reservar, pagar) */
:is(.btn, button).accent, .hero-form .submit {
  background: var(--coral);
  box-shadow: 0 6px 16px rgba(255, 121, 94, 0.35);
}
:is(.btn, button).accent:hover, .hero-form .submit:hover { background: var(--coral-dark); }

:is(.btn, button).ghost {
  background: transparent;
  color: var(--text-muted);
  box-shadow: none;
  padding: 10px 14px;
}
:is(.btn, button).ghost:hover { background: rgba(0, 0, 0, 0.04); color: var(--tinta); }

:is(.btn, button).danger { background: var(--danger); box-shadow: 0 6px 16px rgba(214, 69, 69, 0.3); }
:is(.btn, button).danger:hover { background: #B23636; }

:is(.btn, button).block { width: 100%; }

/* Inputs */
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-sans);
  background: white;
  color: var(--tinta);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--turquesa);
  box-shadow: 0 0 0 3px rgba(23, 182, 164, 0.18);
}

label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field { margin-bottom: 14px; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--marfil);
  border-bottom: 1px solid rgba(18, 59, 69, 0.06);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--petroleo); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 34px; height: 34px; flex: none; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--petroleo);
}
.brand-name .accent { color: var(--coral); }
@media (max-width: 460px) {
  .topbar { padding-left: 14px; padding-right: 10px; }
  .brand { gap: 6px; }
  .brand-name { font-size: 15px; }
  .brand-logo { width: 28px; height: 28px; }
  .topbar nav a { padding: 7px 9px; font-size: 13px; }
}
@media (max-width: 400px) { .brand-name .accent { display: none; } }

.topbar nav { display: flex; gap: 4px; }
.topbar nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}
.topbar nav a.active, .topbar nav a:hover { background: white; color: var(--petroleo); box-shadow: var(--shadow-sm); text-decoration: none; }

/* View container */
.view {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 18px 120px;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(18, 59, 69, 0.04);
}
.card.elevated { box-shadow: var(--shadow-md); }

/* Hero — petróleo con lomas turquesa y ruta punteada (pieza de marca) */
.hero {
  background: var(--petroleo);
  color: white;
  padding: 22px 22px 26px;
  border-radius: var(--radius-xl);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  right: 6px; top: 6px;
  width: 150px; height: 58px;
  opacity: .8;
  z-index: -1;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 120'><path d='M10 100 C 70 100, 90 40, 150 46 S 220 20, 240 14' fill='none' stroke='%2317B6A4' stroke-width='3' stroke-linecap='round' stroke-dasharray='9 9' opacity='.75'/><circle cx='10' cy='100' r='7' fill='%2317B6A4'/><circle cx='244' cy='12' r='8' fill='%23FF795E'/></svg>") no-repeat right top / contain;
}
.hero::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0; left: 0;
  height: 70px;
  z-index: -1;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 70' preserveAspectRatio='none'><path d='M140 70 C 210 30, 280 52, 400 12 L 400 70 Z' fill='%2317B6A4' opacity='.22'/><path d='M230 70 C 290 42, 340 58, 400 34 L 400 70 Z' fill='%2317B6A4' opacity='.38'/></svg>") no-repeat bottom / 100% 100%;
}

.hero .greeting { font-size: 14px; color: #9FE3DA; margin: 0 0 4px; font-weight: 600; }
.hero h1 {
  font-family: var(--font-display);
  color: white;
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 18px;
  max-width: 15ch;
  padding-top: 18px;
}
.hero.conductor-hero {
  background: linear-gradient(150deg, var(--petroleo) 0%, #0F5A5C 100%);
}
.hero .kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 4px;
}

.hero-form {
  position: relative;
  background: white;
  border-radius: var(--radius);
  padding: 12px;
  color: var(--tinta);
  box-shadow: var(--shadow-md);
}
.hero-form .field { margin-bottom: 8px; }
.hero-form .field:last-of-type { margin-bottom: 12px; }
.hero-form input { border: 0; background: var(--marfil-2); padding: 12px 14px; }
.hero-form input:focus { background: white; box-shadow: 0 0 0 3px rgba(23, 182, 164, 0.18); }
.hero-form .submit { width: 100%; }

/* Price & serif details */
.price {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--petroleo);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.price .sign { color: var(--coral); margin-right: 2px; }
.price .unit { font-family: var(--font-sans); font-weight: 500; font-size: 12px; color: var(--text-muted); display: block; line-height: 1.2; }

/* Trip card */
.trip-card { cursor: pointer; transition: transform .1s ease, box-shadow .2s ease; }
.trip-card:hover { box-shadow: var(--shadow-md); }
.trip-card:active { transform: scale(0.995); }

.trip-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.trip-route {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--petroleo);
  display: flex;
  align-items: center;
  gap: 6px;
}
.trip-route .arrow { color: var(--coral); }
.trip-meta { color: var(--text-muted); font-size: 13px; margin-top: 3px; }

.trip-driver {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
}
.trip-driver .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--petroleo);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 12px;
  flex-shrink: 0;
}
.trip-driver .avatar.conductor { background: var(--turquesa-dark); }
.rating { color: var(--coral); font-weight: 700; }

/* Popular routes list inside card */
.route-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.route-row:last-child { border-bottom: 0; }
.route-icon {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--turquesa-soft);
  color: var(--turquesa-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.route-info { flex: 1; min-width: 0; }
.route-info .name { font-weight: 700; font-size: 14px; color: var(--petroleo); }
.route-info .sub { font-size: 12px; color: var(--text-muted); }

/* Bottom navigation */
.bottombar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-around;
  background: white;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  z-index: 10;
  box-shadow: 0 -6px 20px rgba(18, 59, 69, 0.06);
}
.bottombar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 12px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}
.bottombar a.active { color: var(--petroleo); }
.bottombar a.active::before { background: var(--turquesa); }
.bottombar a::before {
  content: "";
  display: block;
  width: 22px; height: 22px;
  border-radius: 8px;
  background: var(--text-muted);
  -webkit-mask: var(--icon) center/20px no-repeat;
  mask: var(--icon) center/20px no-repeat;
}
.bottombar a[data-icon="home"]::before { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 3 2 12h3v8h5v-5h4v5h5v-8h3z'/></svg>"); }
.bottombar a[data-icon="search"]::before { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M10 2a8 8 0 1 0 5.293 14.293l4.707 4.707 1.414-1.414-4.707-4.707A8 8 0 0 0 10 2zm0 2a6 6 0 1 1 0 12 6 6 0 0 1 0-12z'/></svg>"); }
.bottombar a[data-icon="plus"]::before { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M11 4h2v7h7v2h-7v7h-2v-7H4v-2h7z'/></svg>"); }
.bottombar a[data-icon="ticket"]::before { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M4 6h16v4a2 2 0 0 0 0 4v4H4v-4a2 2 0 0 0 0-4V6zm4 2v8h2V8H8zm4 0v8h2V8h-2z'/></svg>"); }
.bottombar a[data-icon="user"]::before { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4.4 0-8 2.2-8 5v3h16v-3c0-2.8-3.6-5-8-5z'/></svg>"); }

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(18, 59, 69, 0.06);
  color: var(--text-muted);
}
.badge.ok { background: var(--turquesa-soft); color: var(--turquesa-dark); }
.badge.warn { background: var(--coral-soft); color: #B4472F; }
.badge.danger { background: #FBE4E4; color: #A33232; }
.badge.celeste { background: var(--turquesa-soft); color: var(--turquesa-dark); }
.badge.check::before { content: "✓ "; }

/* Verification list */
.verif-list { display: grid; gap: 10px; }
.verif-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--marfil-2);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.verif-item.ok { color: var(--turquesa-dark); }
.verif-item .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--turquesa);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.verif-item.pending .check { background: var(--coral); }
.verif-item.none .check { background: var(--line); color: var(--text-muted); }
.verif-item.rejected .check { background: var(--danger); }
.verif-item .info { flex: 1; }
.verif-item .info .t { font-weight: 700; color: var(--petroleo); }
.verif-item .info .s { font-size: 12px; color: var(--text-muted); }

/* Layout helpers */
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.row.tight { gap: 6px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.center { text-align: center; }

/* Chat */
.chat-thread {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 58vh;
  overflow-y: auto;
  padding: 6px 4px 12px;
}
.chat-bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: var(--shadow-sm);
}
.chat-bubble.me { align-self: flex-end; background: var(--petroleo); color: white; border-bottom-right-radius: 6px; }
.chat-bubble.them { align-self: flex-start; background: white; color: var(--tinta); border-bottom-left-radius: 6px; }
.chat-notice {
  text-align: center;
  font-size: 11px;
  color: #B4472F;
  background: var(--coral-soft);
  padding: 6px 10px;
  border-radius: 999px;
  margin: 4px auto;
  font-weight: 600;
}

.chat-input {
  display: flex; gap: 8px; align-items: center;
  margin-top: 10px;
}
.chat-input input { border-radius: 999px; background: var(--marfil-2); border: 0; }
.chat-input button { padding: 12px 16px; border-radius: 999px; }

/* Empty / states */
.empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  background: white;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--petroleo);
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .25s ease, opacity .25s ease;
  opacity: 0;
  z-index: 100;
  max-width: 90vw;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Summary card (booking/confirm) */
.summary {
  background: white;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.summary .line {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.summary .line:last-child { border-bottom: 0; font-weight: 700; font-size: 16px; }
.summary .line .k { color: var(--text-muted); }
.summary .line.total .v { font-family: var(--font-display); font-weight: 800; color: var(--petroleo); font-size: 22px; }

/* Stepper */
.stepper { display: flex; gap: 6px; margin-bottom: 14px; }
.stepper .seg { flex: 1; height: 4px; background: var(--line); border-radius: 2px; }
.stepper .seg.active { background: var(--turquesa); }

/* Responsive */
@media (min-width: 900px) {
  .view { max-width: 960px; }
  .row-md { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* Scrollbar, minor */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(18, 59, 69, 0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(18, 59, 69, 0.25); }

/* ---------- v1.0: componentes nuevos ---------- */

/* Áreas seguras (notch / barra de gestos) en apps y PWA instalada */
.topbar { padding-top: max(12px, env(safe-area-inset-top)); }
.view { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }

.person-name { font-family: var(--font-display); font-size: 20px; color: var(--petroleo); font-weight: 800; }
.avatar-img, .avatar-ph { border-radius: 50%; flex-shrink: 0; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; }
.avatar-ph { background: var(--petroleo); color: white; font-family: var(--font-display); font-weight: 800; }
.avatar-btn { position: relative; background: none; border: 0; padding: 0; box-shadow: none; cursor: pointer; border-radius: 50%; }
.avatar-btn:hover { background: none; }
.avatar-edit { position: absolute; right: -2px; bottom: -2px; background: white; color: var(--petroleo); border-radius: 50%; width: 22px; height: 22px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }

.modal-overlay { position: fixed; inset: 0; background: rgba(18, 59, 69, 0.45); display: flex; align-items: flex-end; justify-content: center; z-index: 100; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); animation: fade .15s ease; }
.modal { background: white; border-radius: var(--radius-lg); padding: 20px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.modal h2 { margin: 0 0 8px; }
.modal p { margin: 0 0 14px; font-size: 14px; line-height: 1.45; }
@media (min-width: 600px) { .modal-overlay { align-items: center; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--turquesa-dark); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }
.tab { background: white; color: var(--text-muted); border: 1px solid var(--line); box-shadow: none; padding: 8px 14px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.tab.active { background: var(--petroleo); color: white; border-color: var(--petroleo); }

.qty { display: flex; align-items: center; gap: 12px; }
.qty .btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 20px; flex: none; }
.qty-n { font-family: var(--font-display); font-size: 22px; font-weight: 800; min-width: 20px; text-align: center; }

.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--turquesa-dark); }

.doc-btn { width: 100%; background: var(--marfil-2); border: 2px dashed var(--line); box-shadow: none; padding: 0; border-radius: var(--radius); color: var(--tinta); }
.doc-btn:hover { background: var(--marfil); }
.doc-preview { min-height: 110px; display: flex; align-items: center; justify-content: center; padding: 10px; border-radius: var(--radius); overflow: hidden; position: relative; }
.doc-preview img { max-width: 100%; max-height: 200px; border-radius: 10px; }
.doc-preview.uploading::after { content: "Subiendo..."; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.75); font-weight: 700; }
.doc-preview.done::after { content: "✓"; position: absolute; top: 8px; right: 8px; background: var(--turquesa); color: white; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.doc-grid .doc-preview { background: var(--marfil-2); }

.card.notice { background: var(--coral-soft); border-color: #FFCFC3; }
.card.highlight { box-shadow: 0 0 0 2px var(--turquesa), var(--shadow-md); }
.todo-row { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--radius-sm); background: var(--marfil-2); color: var(--tinta); text-decoration: none; font-weight: 600; }

.thread-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; color: var(--tinta); text-decoration: none; border-bottom: 1px solid var(--line); }
.thread-row:last-child { border-bottom: 0; }
.unread-row { background: var(--turquesa-soft); }
.unread { font-weight: 700; color: var(--petroleo); }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot-count { background: var(--danger); color: white; border-radius: 999px; font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; }
.bell { position: relative; font-size: 18px; }
.bell .dot-count { position: absolute; top: 0; right: 0; transform: translate(30%, -20%); }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: white; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); }
.stat-v { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--petroleo); }
.stat-k { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

.stars { display: flex; justify-content: center; gap: 6px; }
.stars button { background: none; box-shadow: none; padding: 0 2px; font-size: 40px; color: #D9D5CA; line-height: 1; }
.stars button.on { color: var(--coral); }
.stars button:hover { background: none; }

.chat-card { display: flex; flex-direction: column; }
.chat-thread { min-height: 45vh; max-height: 60vh; }
.chat-bubble.failed { opacity: .5; }
.chat-bubble.failed::after { content: " ⚠"; }

details summary { cursor: pointer; font-size: 14px; }
button:disabled, .btn:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--turquesa); outline-offset: 2px; }
.check-row, .check-row span { text-transform: none; letter-spacing: normal; font-weight: 500; color: var(--tinta); font-size: 14px; }
.badge { white-space: nowrap; }
.chat-empty { margin: auto; }

/* ---------- Identidad compartoviaje.com ---------- */
.values { display: grid; gap: 14px; }
.value-row { display: flex; gap: 12px; align-items: flex-start; }
.value-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--turquesa-soft); color: var(--turquesa-dark); display: inline-flex; align-items: center; justify-content: center; }
.value-icon svg { width: 24px; height: 24px; }
.value-t { font-family: var(--font-display); font-weight: 800; color: var(--petroleo); font-size: 15px; }
.value-s { font-size: 13px; color: var(--text-muted); margin-top: 1px; }
.hero h1 + .hero-form { margin-top: 0; }
.tagline { font-family: var(--font-display); font-weight: 600; font-style: italic; color: var(--petroleo); }
