/* =========================================
   TravelBrou — CSS limpio consolidado
   Reemplaza TODO el styles.css
   ========================================= */

:root{
  --purple:#532B8F;
  --purple-2:#6d28d9;
  --purple-soft:rgba(83,43,143,.08);

  --bg:#f3f4f6;
  --card:#ffffff;
  --text:#12131a;
  --muted:#6b7280;
  --line:rgba(17,24,39,.10);

  --green:#16a34a;
  --green-soft:#ecfdf5;
  --red:#dc2626;
  --red-soft:#fef2f2;
  --yellow:#f59e0b;
  --yellow-soft:#fffbeb;
  --blue:#2563eb;
  --blue-soft:#eff6ff;

  --shadow:0 10px 30px rgba(17,24,39,.10);
  --shadow-soft:0 8px 20px rgba(17,24,39,.08);
  --radius:18px;
  --radius-lg:22px;

  --wrap:420px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body.tb{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

.tb-wrap{
  width:100%;
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 14px;
}

.tb-main{
  padding:12px 0 92px;
}

.tb-list-block{ min-height: 10px; }

/* =========================
   HEADER
========================= */

.tb-header{
  background:var(--purple);
  color:#fff;
  padding-top:env(safe-area-inset-top);
}

.tb-header__inner{
  display:flex;
  align-items:center;
  gap:10px;
  padding-top:6px;
  padding-bottom:6px;
}

.tb-logo{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  color:#24c7ff;
  flex:0 0 52px;
}

.tb-greet{
  min-width:0;
  flex:1;
}

.tb-greet__title{
  font-weight:800;
  font-size:13px;
  line-height:1.15;
}

.tb-greet__sub{
  margin-top:6px;
  font-size:11px;
  opacity:.9;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  display:flex;
  align-items:center;
  gap:8px;
}

.tb-ico{ opacity:.95; }

.tb-login-btn{
  margin-left:auto;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  padding:10px 14px;
  border-radius:14px;
  font-weight:900;
  cursor:pointer;
  backdrop-filter:blur(6px);
}

.tb-login-btn:active{ transform:translateY(1px); }

/* =========================
   ROLE PILL / SWITCH
========================= */

.tb-role-pill{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
  user-select:none;
  cursor:pointer;
}

.tb-role-pill--switch{
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
}

.tb-role-switch{
  position:relative;
  width:188px;
  height:54px;
  border-radius:999px;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  padding:4px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 22px rgba(0,0,0,.10);
  overflow:hidden;
  transition:filter .16s ease;
}

.tb-role-pill:hover .tb-role-switch{
  filter:brightness(1.03);
}

.tb-role-switch__thumb{
  position:absolute;
  top:4px;
  left:4px;
  width:calc(50% - 4px);
  height:calc(100% - 8px);
  border-radius:999px;
  background:rgba(255,255,255,.20);
  box-shadow:
    0 8px 18px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.18);
  transition:transform .22s ease;
}

.tb-role-switch.is-driver .tb-role-switch__thumb{
  transform:translateX(100%);
}

.tb-role-switch__opt{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:0 8px;
  font-size:12px;
  font-weight:1000;
  line-height:1.05;
  color:rgba(255,255,255,.60);
  white-space:nowrap;
}

.tb-role-switch.is-passenger .tb-role-switch__opt--passenger{ color:#fff; }
.tb-role-switch.is-driver .tb-role-switch__opt--driver{ color:#fff; }

.tb-role-switch.is-single{ cursor:default; }

@media (max-width:420px){
  .tb-role-switch{
    width:168px;
    height:50px;
  }
  .tb-role-switch__opt{
    font-size:11px;
    padding:0 6px;
  }
}

/* =========================
   GATE
========================= */

.tb-gate{
  position:fixed;
  inset:0;
  z-index:9998;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(17,24,39,.55);
  backdrop-filter:blur(6px);
}

.tb-gate__card{
  width:min(420px,100%);
  background:#fff;
  border-radius:22px;
  padding:18px;
  box-shadow:0 22px 70px rgba(0,0,0,.35);
  border:1px solid rgba(0,0,0,.06);
}

.tb-gate__badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  background:rgba(83,43,143,.10);
  color:var(--purple);
  margin-bottom:10px;
}

.tb-gate__title{
  font-weight:1000;
  font-size:18px;
  margin-bottom:8px;
  color:#111827;
}

.tb-gate__text{
  font-size:13px;
  line-height:1.35;
  color:#374151;
  font-weight:700;
}

.tb-gate__btn{
  width:100%;
  margin-top:14px;
  padding:12px;
  border-radius:14px;
  border:0;
  background:var(--purple);
  color:#fff;
  font-weight:1000;
  cursor:pointer;
}

.tb-gate--loading .tb-gate__card{ text-align:center; }

/* =========================
   PAGE LOADER
========================= */

.tb-page-loader{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(34,211,238,.20), transparent 32%),
    linear-gradient(135deg,#532B8F 0%,#6D28D9 50%,#3B1D73 100%);
  transition:opacity .45s ease, visibility .45s ease;
}

.tb-page-loader.is-hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.tb-page-loader__box{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}

.tb-page-loader__logo{
  width:96px;
  height:96px;
  object-fit:contain;
  animation:tbLogoPulse 1.6s ease-in-out infinite;
  filter:drop-shadow(0 0 18px rgba(34,211,238,.60));
}

.tb-page-loader__text{
  color:#fff;
  font-size:15px;
  font-weight:800;
  letter-spacing:.02em;
  opacity:.92;
}

@keyframes tbLogoPulse{
  0%,100%{
    transform:scale(1);
    opacity:.9;
    filter:drop-shadow(0 0 12px rgba(34,211,238,.45));
  }
  50%{
    transform:scale(1.08);
    opacity:1;
    filter:drop-shadow(0 0 26px rgba(34,211,238,.9));
  }
}

/* =========================
   BANNER
========================= */

.tb-banner{
  margin-top:12px;
  background:var(--purple);
  color:#fff;
  border-radius:var(--radius-lg);
  padding:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  box-shadow:0 16px 30px rgba(83,43,143,.18);
  overflow:hidden;
  position:relative;
}

.tb-banner::before{
  content:"";
  position:absolute;
  inset:-20px -40px auto auto;
  width:180px;
  height:180px;
  background:radial-gradient(circle, rgba(255,255,255,.20), transparent 60%);
  transform:rotate(15deg);
}

.tb-banner__left{ position:relative; z-index:1; }

.tb-banner__title{
  font-weight:900;
  letter-spacing:.6px;
  font-size:14px;
  line-height:1.05;
  text-transform:uppercase;
}

.tb-banner__title span{
  font-size:22px;
  letter-spacing:.4px;
}

.tb-banner__price{
  margin-top:8px;
  font-size:12px;
  opacity:.95;
}

.tb-banner__price strong{
  font-size:18px;
  color:#ffe36d;
}

.tb-banner__right{
  width:140px;
  flex:0 0 140px;
  position:relative;
  z-index:1;
}

.tb-car{
  width:100%;
  height:auto;
  display:block;
}

/* =========================
   QUICK ACTIONS / SEARCH
========================= */

.tb-quick{
  margin-top:12px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.tb-quick__item{
  flex:1 1 calc(50% - 6px);
  min-width:0;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 10px;
  box-shadow:var(--shadow-soft);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
}

.tb-quick__icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(83,43,143,.10);
  font-size:18px;
}

.tb-quick__label{
  font-size:11px;
  font-weight:800;
  color:#111827;
  text-align:center;
}

.tb-search{ margin-top:12px; }

.tb-search__box{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 12px;
  display:flex;
  align-items:center;
  gap:10px;
  box-shadow:var(--shadow-soft);
}

.tb-search__ico{ opacity:.7; }

.tb-search__input{
  border:0;
  outline:none;
  width:100%;
  font-size:13px;
  background:transparent;
}

/* =========================
   TEXT / SECTION
========================= */

.tb-section{ margin-top:14px; }

.tb-section__title{
  font-size:13px;
  font-weight:900;
  color:#6b7280;
  margin:6px 2px 10px;
}

.tb-muted{
  color:var(--muted);
  font-weight:700;
  font-size:12px;
}

.tb-small{
  margin-top:6px;
  font-size:11px;
  color:var(--muted);
  font-weight:700;
}

.tb-box{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
}

/* =========================
   GENERIC CARD
========================= */

.tb-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  box-shadow:var(--shadow);
  display:grid;
  grid-template-columns:72px 1fr auto;
  gap:14px;
  align-items:center;
  margin-bottom:14px;
}

.tb-card--driver{
  background:#f4f0f5;
}

.tb-card__left{
  display:flex;
  align-items:center;
  justify-content:center;
}

.tb-card__mid{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.tb-card__right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
}

.tb-avatar{
  width:72px;
  height:72px;
  min-width:72px;
  flex:0 0 72px;
  border-radius:50%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:900;
  background:var(--av,#532B8F);
  box-shadow:0 8px 16px rgba(0,0,0,.08);
  border:3px solid #fff;
}

.tb-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.tb-avatar[data-bg]{
  background:var(--av,#6b7280);
  color:#fff;
}

.tb-avatar span{
  font-size:16px;
  line-height:1;
}

.tb-verify-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  width:max-content;
  max-width:100%;
  min-height:22px;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
}

.tb-verify-tag--verified{
  background:#DBEAFE;
  color:#1D4ED8;
  border:1px solid #93C5FD;
}

.tb-verify-tag--unverified{
  background:#FEF3C7;
  color:#92400E;
  border:1px solid #FCD34D;
}

.tb-verify-tag__icon{
  width:13px;
  height:13px;
  display:block;
  object-fit:contain;
  flex:0 0 13px;
}

.tb-avatar-verify,
.tb-avatar-verification-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  width:82px;
  flex:0 0 82px;
  min-width:0;
}

.tb-avatar-verify .tb-verify-tag,
.tb-avatar-verification-wrap .tb-verify-tag{
  margin-top:-6px;
  position:relative;
  z-index:2;
  max-width:96px;
  justify-content:center;
}

.tb-profile-verification{
  margin-top:18px;
  padding:14px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(17,24,39,.08);
  box-shadow:0 10px 26px rgba(17,24,39,.06);
}

.tb-profile-verification__title{
  margin:0;
  color:#111827;
  font-size:18px;
  font-weight:1000;
  line-height:1.15;
}

.tb-profile-verification__text{
  margin:8px 0 0;
  color:#6b7280;
  font-size:13px;
  font-weight:800;
  line-height:1.45;
}

.tb-profile-verification__button{
  margin-top:12px;
  width:100%;
  border:0;
  border-radius:14px;
  padding:12px 14px;
  background:#532B8F;
  color:#fff;
  font-weight:1000;
  cursor:pointer;
}

.tb-profile-verification__form{
  display:none;
  margin-top:12px;
}

.tb-profile-verification__form.is-open{
  display:block;
}

.tb-tags{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.tb-tag{
  display:inline-block;
  font-size:11px;
  font-weight:900;
  padding:5px 9px;
  border-radius:10px;
  line-height:1;
}

.tb-tag--passenger{ background:#7c1d1d; color:#fff; }
.tb-tag--driver{ background:#0f766e; color:#fff; }

.tb-chip{
  font-size:11px;
  font-weight:900;
  padding:5px 9px;
  border-radius:10px;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(0,0,0,.06);
}

.tb-chip--offer{
  background:rgba(225,29,72,.10);
  border-color:rgba(225,29,72,.25);
  color:#9f1239;
}

.tb-route{
  display:flex;
  align-items:center;
  gap:6px;
  font-weight:800;
  min-width:0;
  flex-wrap:wrap;
}

.tb-route strong{
  min-width:0;
  white-space:nowrap;
}

.tb-rating{
  margin-top:6px;
  display:flex;
  align-items:center;
  gap:10px;
}

.tb-stars{
  font-size:12px;
  letter-spacing:1px;
  color:#f59e0b;
}

.tb-pricebox{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
}

.tb-price{
  min-width:58px;
  height:32px;
  padding:0 8px;
  border-radius:10px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  font-weight:900;
  font-size:12px;
  line-height:1;
  color:#fff;
  box-shadow:0 10px 18px rgba(0,0,0,.12);
  white-space:nowrap;
}

.tb-price--red{ background:#a11b2b; }
.tb-price--green{ background:#0ea5a4; }

.tb-price--open{
  font-size:10px;
  font-weight:800;
  letter-spacing:.2px;
  background:#374151 !important;
}

.tb-pricebox__sub{
  font-size:10px;
  font-weight:900;
  color:rgba(17,24,39,.65);
  line-height:1;
}

.tb-seat{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:52px;
  height:40px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.65);
  font-weight:800;
}

.tb-seat__ico{ opacity:.9; }
.tb-seat__num{ font-weight:1000; }

/* =========================
   FEED CARD STATES
========================= */

#tb-feed .tb-card{
  grid-template-columns:72px 1fr 86px;
  gap:12px;
  align-items:center;
  padding:14px;
  border-radius:18px;
  overflow:hidden;
}

#tb-feed .tb-card__left{ align-self:start; }
#tb-feed .tb-card__mid{ min-width:0; }
#tb-feed .tb-card__right{
  width:auto;
  align-self:stretch;
  gap:10px;
}

#tb-feed .tb-route{
  align-items:flex-start;
  gap:8px;
}

#tb-feed .tb-route strong{
  overflow:hidden;
  line-height:1.2;
  max-height:calc(1.2em * 2);
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

#tb-feed .tb-cta{
  margin-top:10px;
  width:100%;
  border-radius:14px;
  padding:12px;
}

#tb-feed .tb-cta--sent{
  background:rgba(17,24,39,.10) !important;
  color:#111827 !important;
  opacity:1 !important;
  filter:none !important;
}

#tb-feed .tb-card.tb-card--active{
  border:2px solid rgba(22,163,74,.55) !important;
}

#tb-feed .tb-card.tb-card--closed{
  border:2px solid rgba(107,114,128,.35) !important;
  background:rgba(243,244,246,.85) !important;
  filter:grayscale(1);
  opacity:.92;
}

#tb-feed .tb-card{
  background:#fffae7;
  border:1px solid rgba(0,0,0,.08);
}

#tb-feed .tb-card.tb-card--driver{
  background:#f4f0f5;
}

/* =========================
   REAL FEED CARD
========================= */

#tb-feed .tb-real-feed-card{
  position:relative;
  display:block;
  width:100%;
  margin-bottom:14px;
  padding:13px 14px 13px 18px;
  border-radius:24px;
  background:#fff;
  border:1px solid rgba(15,23,42,.07);
  box-shadow:0 18px 46px rgba(15,23,42,.10);
  overflow:hidden;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

#tb-feed .tb-real-feed-card:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 54px rgba(15,23,42,.14);
}

#tb-feed .tb-real-feed-card:active{
  transform:scale(.995);
}

#tb-feed .tb-real-feed-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 88% 4%, rgba(34,211,238,.13), transparent 36%),
    radial-gradient(circle at 10% 95%, rgba(109,40,217,.10), transparent 34%);
  pointer-events:none;
}

#tb-feed .tb-real-feed-card__accent{
  position:absolute;
  left:0;
  top:16px;
  bottom:16px;
  width:6px;
  border-radius:0 999px 999px 0;
  background:linear-gradient(180deg,#2dd4bf,#14b8a6);
}

#tb-feed .tb-real-feed-card--passenger .tb-real-feed-card__accent{
  background:linear-gradient(180deg,#a855f7,#ec4899);
}

#tb-feed .tb-real-feed-card__main{
  position:relative;
  z-index:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:7px;
}

#tb-feed .tb-real-feed-card__top{
  display:flex;
  align-items:center;
  gap:8px;
}

#tb-feed .tb-real-feed-card__identity{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1 1 auto;
}

#tb-feed .tb-real-feed-card__avatar{
  width:78px;
  height:78px;
  flex:0 0 78px;
  border-radius:50%;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:var(--av,#532B8F);
  color:#fff;
  font-size:20px;
  font-weight:950;
  box-shadow:0 14px 32px rgba(15,23,42,.18);
  border:3px solid #fff;
}

#tb-feed .tb-real-feed-card__avatar img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

#tb-feed .tb-real-feed-card__badges{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  min-width:0;
}

#tb-feed .tb-real-feed-card__badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:23px;
  padding:4px 7px;
  border-radius:999px;
  background:#f8fafc;
  color:#334155;
  border:1px solid rgba(15,23,42,.06);
  font-size:11px;
  line-height:1;
  font-weight:950;
  white-space:nowrap;
}

#tb-feed .tb-real-feed-card__badge img,
#tb-feed .tb-real-feed-card__meta-icon,
#tb-feed .tb-real-feed-card__rating img{
  width:14px;
  height:14px;
  display:block;
  object-fit:contain;
  flex:0 0 14px;
}

#tb-feed .tb-real-feed-card__badge--driver{
  background:rgba(20,184,166,.12);
  color:#0f766e;
}

#tb-feed .tb-real-feed-card__badge--passenger{
  background:rgba(168,85,247,.12);
  color:#6d28d9;
}

#tb-feed .tb-real-feed-card__badge--now{
  background:rgba(254,249,195,.88);
  color:#92400e;
}

#tb-feed .tb-real-feed-card--passenger .tb-real-feed-card__badge--now{
  background:rgba(255,228,230,.95);
  color:#be123c;
}

#tb-feed .tb-real-feed-card__price{
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  max-width:120px;
  padding:7px 9px;
  border-radius:15px;
  background:linear-gradient(135deg,rgba(20,184,166,.16),rgba(34,197,94,.12));
  color:#047857;
  text-align:right;
  box-shadow:0 12px 26px rgba(20,184,166,.14);
}

#tb-feed .tb-real-feed-card--passenger .tb-real-feed-card__price{
  background:linear-gradient(135deg,rgba(168,85,247,.15),rgba(236,72,153,.11));
  color:#86198f;
  box-shadow:0 12px 26px rgba(168,85,247,.14);
}

#tb-feed .tb-real-feed-card__price--open{
  background:linear-gradient(135deg,rgba(245,158,11,.16),rgba(245,158,11,.10));
  color:#92400e;
}

#tb-feed .tb-real-feed-card__price-main{
  font-size:13px;
  line-height:1.05;
  font-weight:950;
}

#tb-feed .tb-real-feed-card__price-sub{
  margin-top:3px;
  font-size:10px;
  line-height:1.1;
  color:#64748b;
  font-weight:850;
}

#tb-feed .tb-real-feed-card__route{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:nowrap;
  min-width:0;
  width:100%;
  overflow:hidden;
  white-space:nowrap;
  margin-top:10px;
  color:#0f172a;
}

#tb-feed .tb-real-feed-card__route-city{
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-width:0;
  font-size:clamp(18px,5vw,24px);
  line-height:1.05;
  font-weight:900;
  color:#0f172a;
  white-space:nowrap;
}

#tb-feed .tb-real-feed-card__route-city--origin{
  flex:0 0 auto;
}

#tb-feed .tb-real-feed-card__route-city--destination{
  flex:1 1 auto;
  overflow:hidden;
}

#tb-feed .tb-real-feed-card__route-city span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

#tb-feed .tb-real-feed-card__route-city--origin span{
  flex:0 0 auto;
}

#tb-feed .tb-real-feed-card__route-city--destination span{
  flex:1 1 auto;
}

#tb-feed .tb-real-feed-card__route-arrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 18px;
  width:18px;
  height:18px;
  background:transparent;
}

#tb-feed .tb-real-feed-card__route-icon{
  width:18px;
  height:18px;
  display:block;
  object-fit:contain;
}

#tb-feed .tb-real-feed-card__route-pin{
  width:16px;
  height:16px;
  flex:0 0 16px;
  display:block;
  object-fit:contain;
}

#tb-feed .tb-real-feed-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}

#tb-feed .tb-real-feed-card__meta-item,
#tb-feed .tb-real-feed-card__rating > div{
  display:inline-flex !important;
  align-items:center !important;
  gap:4px !important;
  min-width:0;
  padding:5px 7px !important;
  border-radius:999px !important;
  background:rgba(248,250,252,.92) !important;
  border:1px solid rgba(15,23,42,.06);
  color:#475569 !important;
  font-size:12px !important;
  font-weight:850 !important;
  line-height:1.15 !important;
  margin-top:0 !important;
  box-shadow:none !important;
}

#tb-feed .tb-real-feed-card__meta-item{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

#tb-feed .tb-real-feed-card__rating{
  width:max-content;
}

#tb-feed .tb-real-feed-card__rating > div{
  background:rgba(255,251,235,.96) !important;
  color:#92400e !important;
}

#tb-feed .tb-real-feed-card__actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  width:100%;
  margin-top:8px;
  align-items:stretch;
}

#tb-feed .tb-real-feed-card__btn,
#tb-feed .tb-real-feed-card__actions .tb-cta{
  width:100%;
  height:50px;
  min-height:50px;
  margin-top:0;
  padding:0 12px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:16px;
  font-size:13px;
  line-height:1;
  font-weight:950;
  text-align:center;
  cursor:pointer;
}

#tb-feed .tb-real-feed-card__btn--ghost{
  background:#f8fafc;
  color:#532B8F;
  border:1px solid rgba(83,43,143,.12);
}

#tb-feed .tb-real-feed-card__actions .tb-cta{
  background:linear-gradient(135deg,#6d28d9,#4f46e5);
  color:#fff;
  box-shadow:0 14px 26px rgba(79,70,229,.22);
}

#tb-feed .tb-real-feed-card--passenger .tb-real-feed-card__actions .tb-cta{
  background:linear-gradient(135deg,#8b5cf6,#ec4899);
  box-shadow:0 14px 26px rgba(168,85,247,.20);
}

#tb-feed .tb-real-feed-card__actions .tb-cta.tb-cta--sent,
#tb-feed .tb-real-feed-card__actions .tb-cta:disabled{
  background:#e5e7eb !important;
  color:#6b7280 !important;
  box-shadow:none;
  cursor:default;
}

#tb-feed .tb-real-feed-card--closed{
  opacity:.76;
  filter:grayscale(.25);
}

#tb-feed .tb-real-feed-card--new{
  border-color:rgba(83,43,143,.18);
  box-shadow:0 20px 52px rgba(83,43,143,.13);
}

@media (max-width:420px){
  #tb-feed .tb-real-feed-card{
    padding:12px 12px 12px 17px;
  }

  #tb-feed .tb-real-feed-card__avatar{
    width:72px;
    height:72px;
    flex-basis:72px;
  }

  #tb-feed .tb-avatar-verify{
    width:78px;
    flex-basis:78px;
  }

  #tb-feed .tb-real-feed-card__badge{
    font-size:10.5px;
  }

  #tb-feed .tb-real-feed-card__meta-item{
    font-size:11.5px;
  }
}

/* =========================
   BOTTOM NAV
========================= */

.tb-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  background:var(--purple);
  padding-bottom:env(safe-area-inset-bottom);
  box-shadow:0 -12px 30px rgba(17,24,39,.18);
  z-index:90;
}

.tb-nav__inner{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  padding:10px 14px 12px;
}

.tb-nav__item{
  flex:1;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  color:rgba(255,255,255,.86);
  text-decoration:none;
  position:relative;
}

.tb-nav__item--active{
  background:rgba(255,255,255,.14);
  color:#fff;
}

.tb-nav__ico{ font-size:20px; }

/* =========================
   FORMS / BUTTONS
========================= */

.tb-cardbox{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  box-shadow:var(--shadow-soft);
}

.tb-form{ display:flex; flex-direction:column; gap:12px; }
.tb-form-row{ display:flex; flex-direction:column; gap:6px; }

.tb-label{
  font-size:12px;
  font-weight:900;
  color:#111827;
}

.tb-input{
  width:100%;
  border:1px solid rgba(17,24,39,.14);
  background:#fff;
  border-radius:14px;
  padding:12px;
  font-size:14px;
  outline:none;
}

.tb-input:focus{
  border-color:rgba(83,43,143,.55);
  box-shadow:0 0 0 3px rgba(83,43,143,.14);
}

.tb-help{
  font-size:11px;
  color:var(--muted);
  font-weight:700;
}

.tb-grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.tb-when{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.tb-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(17,24,39,.12);
  background:rgba(83,43,143,.06);
  font-weight:900;
  font-size:12px;
  cursor:pointer;
  user-select:none;
}

.tb-pill input{ accent-color:var(--purple); }

.tb-preview{
  margin-top:4px;
  border-radius:16px;
  border:1px dashed rgba(17,24,39,.20);
  padding:12px;
  background:rgba(243,244,246,.55);
}

.tb-preview__title{
  font-weight:1000;
  font-size:12px;
  color:#111827;
  margin-bottom:8px;
}

.tb-preview__row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  color:#111827;
  padding:4px 0;
}

.tb-actions{
  display:flex;
  gap:10px;
  margin-top:6px;
}

.tb-btn{
  flex:1;
  border:0;
  cursor:pointer;
  font-weight:1000;
  padding:12px 14px;
  border-radius:14px;
}

.tb-btn--primary{
  background:var(--purple);
  color:#fff;
  box-shadow:0 14px 26px rgba(83,43,143,.18);
}

.tb-btn--primary:active{ transform:translateY(1px); }

.tb-btn--ghost{
  background:rgba(17,24,39,.06);
  color:#111827;
  border:1px solid rgba(17,24,39,.10);
}

.tb-form-msg{
  margin-top:4px;
  font-size:12px;
  font-weight:800;
  color:#b91c1c;
}

/* =========================
   VEHICLE SELECTOR
========================= */

.tb-veh{
  display:flex;
  gap:14px;
  margin:6px 0 14px;
}

.tb-veh__card{
  flex:1;
  border:0;
  cursor:pointer;
  border-radius:16px;
  background:#f3f4f6;
  border:1px solid rgba(17,24,39,.10);
  padding:12px;
  box-shadow:var(--shadow-soft);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.tb-veh__img{
  width:56px;
  height:56px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-size:28px;
  background:rgba(17,24,39,.06);
}

.tb-veh__label{
  font-weight:1000;
  font-size:13px;
  color:#111827;
}

.tb-veh__card--active{
  background:rgba(83,43,143,.14);
  border-color:rgba(83,43,143,.30);
}

.tb-veh__card--active .tb-veh__img{
  background:var(--purple);
  color:#fff;
}

/* =========================
   CTA / MODAL
========================= */

.tb-cta{
  margin-top:10px;
  width:100%;
  border:0;
  border-radius:12px;
  padding:10px 12px;
  font-weight:900;
  cursor:pointer;
  background:#532B8F;
  color:#fff;
  box-shadow:0 10px 20px rgba(83,43,143,.20);
}

.tb-cta:hover{ filter:brightness(1.05); }
.tb-cta:active{ transform:scale(.99); }

.tb-cta--sent{
  opacity:1;
  cursor:not-allowed;
  background:rgba(17,24,39,.10) !important;
  color:#111827 !important;
  filter:none !important;
}

.tb-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  padding:16px;
  background:rgba(17,24,39,.55);
  backdrop-filter:blur(6px);
}

.tb-modal__card{
  width:min(420px,100%);
  max-height:90vh;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  background:#fff;
  border-radius:22px;
  padding:16px;
  box-shadow:0 22px 70px rgba(0,0,0,.35);
  border:1px solid rgba(0,0,0,.06);
}

.tb-modal__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
  position:sticky;
  top:0;
  z-index:2;
  background:#fff;
  padding-bottom:8px;
}

.tb-modal__title{
  font-weight:1000;
  font-size:16px;
}

.tb-modal__x{
  border:0;
  background:transparent;
  font-size:20px;
  cursor:pointer;
}

.tb-modal__hint{
  font-size:12px;
  color:#374151;
  font-weight:700;
  background:rgba(83,43,143,.08);
  border:1px solid rgba(83,43,143,.14);
  padding:10px 12px;
  border-radius:14px;
  margin-bottom:12px;
}

.tb-modal__row{ margin-bottom:12px; }

.tb-modal__price{
  margin-top:10px;
  display:flex;
  gap:10px;
  align-items:center;
}

.tb-modal__price .tb-input{ flex:1; }

.tb-input-icon{
  position:relative;
  display:flex;
  align-items:center;
}

.tb-icon-btn{
  position:absolute;
  left:10px;
  border:0;
  background:transparent;
  font-size:18px;
  cursor:pointer;
  opacity:.7;
}

.tb-icon-btn:hover{ opacity:1; }

.tb-input--with-icon{ padding-left:38px !important; }

.tb-loc{
  display:flex;
  align-items:center;
  gap:10px;
}

.tb-loc__btn{
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(17,24,39,.12);
  background:rgba(83,43,143,.08);
  cursor:pointer;
  font-size:18px;
  display:grid;
  place-items:center;
  flex:0 0 44px;
}

.tb-loc__btn:active{ transform:translateY(1px); }
.tb-loc__btn:disabled{ opacity:.6; cursor:not-allowed; }
.tb-loc__input{ flex:1; }

/* =========================
   MATCH BOARDING PASS
========================= */

.tb-match-pass{
  background:#fff;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 14px 34px rgba(17,24,39,.10);
  border:1px solid rgba(17,24,39,.08);
}

.tb-match-pass__top{
  background:linear-gradient(135deg,#532B8F 0%,#6d28d9 100%);
  color:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:14px 18px;
}

.tb-match-pass__brand{
  font-weight:900;
  font-size:14px;
  letter-spacing:.08em;
}

.tb-match-pass__type{
  font-weight:900;
  font-size:12px;
  letter-spacing:.08em;
  opacity:.95;
}

.tb-match-pass__body{
  display:grid;
  grid-template-columns:1fr 128px;
  min-height:220px;
}

.tb-match-pass__main{
  padding:18px 18px 20px;
  background:#fff;
}

.tb-match-pass__route{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:18px;
}

.tb-match-pass__city{
  font-size:28px;
  font-weight:900;
  line-height:1;
  color:#111827;
  text-transform:uppercase;
}

.tb-match-pass__arrow{
  font-size:20px;
  font-weight:900;
  color:#F59E0B;
}

.tb-match-pass__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px 14px;
}

.tb-match-pass__label{
  font-size:11px;
  font-weight:800;
  color:#6b7280;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:4px;
}

.tb-match-pass__value{
  font-size:16px;
  font-weight:900;
  color:#111827;
}

.tb-match-pass__stub{
  position:relative;
  padding:16px 12px;
  background:#fafafa;
  border-left:2px dashed rgba(82,43,143,.24);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.tb-match-pass__stub::before,
.tb-match-pass__stub::after{
  content:"";
  position:absolute;
  left:-11px;
  width:20px;
  height:20px;
  background:#ececec;
  border-radius:999px;
}

.tb-match-pass__stub::before{ top:-10px; }
.tb-match-pass__stub::after{ bottom:-10px; }

.tb-match-pass__stub-label{
  font-size:11px;
  font-weight:900;
  color:#6b7280;
  letter-spacing:.10em;
}

.tb-match-pass__stub-code{
  font-size:14px;
  font-weight:900;
  color:#532B8F;
  text-align:center;
}

.tb-match-pass__qr{
  width:84px;
  height:84px;
  display:grid;
  place-items:center;
  background:#fff;
  border-radius:14px;
  border:1px solid rgba(17,24,39,.08);
  overflow:hidden;
}

.tb-match-pass__btn{
  border:0;
  background:#111827;
  color:#fff;
  font-weight:900;
  font-size:12px;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  width:100%;
}

/* =========================
   MATCH STATUS
========================= */

.tb-trip-status{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 15px;
  border-radius:16px;
  font-size:14px;
  font-weight:800;
  line-height:1.3;
  border:1px solid rgba(17,24,39,.06);
  background:#f8fafc;
  margin-bottom:16px;
}

.tb-trip-status__icon{
  width:30px;
  height:30px;
  min-width:30px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-size:15px;
  line-height:1;
  background:#fff;
  box-shadow:0 4px 10px rgba(17,24,39,.08);
}

.tb-trip-status--default{
  background:#f5f3ff;
  color:#532B8F;
  border-color:rgba(83,43,143,.10);
}
.tb-trip-status--default .tb-trip-status__icon{ color:#532B8F; }

.tb-trip-status--live{
  background:#ecfdf5;
  color:#166534;
  border-color:rgba(34,197,94,.14);
}
.tb-trip-status--live .tb-trip-status__icon{ color:#16a34a; }

.tb-trip-status--eta{
  background:#fffbeb;
  color:#92400e;
  border-color:rgba(245,158,11,.18);
}
.tb-trip-status--eta .tb-trip-status__icon{ color:#d97706; }

.tb-trip-status--info{
  background:#eff6ff;
  color:#1d4ed8;
  border-color:rgba(59,130,246,.16);
}
.tb-trip-status--info .tb-trip-status__icon{ color:#2563eb; }

.tb-trip-status--done{
  background:#ecfdf5;
  color:#065f46;
  border-color:rgba(16,185,129,.18);
}
.tb-trip-status--done .tb-trip-status__icon{ color:#059669; }

.tb-trip-status--cancelled{
  background:#fef2f2;
  color:#991b1b;
  border-color:rgba(239,68,68,.18);
}
.tb-trip-status--cancelled .tb-trip-status__icon{ color:#dc2626; }

/* =========================
   MATCH ACTIONS
========================= */


/* =========================
   NOTIFICATION BELL
========================= */

#tb-bell-dot{
  animation:tbBellPulse 2.4s infinite ease-in-out;
  transform-origin:center;
}

@keyframes tbBellPulse{
  0%{ transform:scale(1); opacity:1; }
  50%{ transform:scale(1.3); opacity:.7; }
  100%{ transform:scale(1); opacity:1; }
}

.tb-bell-shake{
  animation:tbBellShake .35s ease;
}

@keyframes tbBellShake{
  0%{ transform:rotate(0deg); }
  25%{ transform:rotate(-12deg); }
  50%{ transform:rotate(12deg); }
  75%{ transform:rotate(-8deg); }
  100%{ transform:rotate(0deg); }
}

/* =========================
   ANIMATIONS
========================= */

.tb-card--new{
  animation:tbPop .55s ease-out, tbGlow 1.4s ease-in-out 2;
  outline:2px solid rgba(83,43,143,.18);
  position:relative;
  overflow:hidden;
}

.tb-card--new::after{
  content:"";
  position:absolute;
  top:-40%;
  left:-60%;
  width:60%;
  height:180%;
  transform:rotate(20deg);
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation:tbFlare 1.1s ease-out 1;
  pointer-events:none;
  mix-blend-mode:screen;
  opacity:.9;
}

@keyframes tbFlare{
  0%{ left:-80%; opacity:0; }
  15%{ opacity:.9; }
  100%{ left:140%; opacity:0; }
}

@keyframes tbPop{
  from{ transform:scale(.96); opacity:.55; }
  to{ transform:scale(1); opacity:1; }
}

@keyframes tbGlow{
  0%{ box-shadow:0 10px 30px rgba(17,24,39,.10); }
  50%{ box-shadow:0 18px 44px rgba(83,43,143,.24); }
  100%{ box-shadow:0 10px 30px rgba(17,24,39,.10); }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:560px){
  .tb-match-pass__body{
    grid-template-columns:1fr;
  }

  .tb-match-pass__stub{
    border-left:0;
    border-top:2px dashed rgba(82,43,143,.24);
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:center;
    padding:14px 16px 16px;
  }

  .tb-match-pass__stub::before,
  .tb-match-pass__stub::after{
    left:auto;
    top:-11px;
    bottom:auto;
    width:20px;
    height:20px;
  }

  .tb-match-pass__stub::before{ left:-10px; }
  .tb-match-pass__stub::after{ right:-10px; }

  .tb-match-pass__city{ font-size:22px; }
  .tb-match-pass__qr{ width:74px; height:74px; }
  .tb-match-pass__btn{ width:auto; }
}

@media (max-width:420px){
  .tb-card{
    grid-template-columns:72px 1fr 74px;
    gap:10px;
  }

  #tb-feed .tb-card{
    grid-template-columns:72px 1fr 74px;
    gap:10px;
  }

  .tb-main{
    padding:12px 0 96px;
  }
}

@media (max-width:360px){
  .tb-grid-2{
    grid-template-columns:1fr;
  }
}


/* =========================
   MATCH PANEL — unión visual con ticket
========================= */

.tb-trip-actions-card{
  position: relative;
  border-radius: 22px;
  padding: 16px 14px 14px;
  margin-top: 14px;
  margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(17,24,39,.08);
  border: 1px solid rgba(17,24,39,.08);
  overflow: hidden;
}

/* franja superior para conectar con el ticket */
.tb-trip-actions-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:6px;
}

/* pasajero */
.tb-trip-actions-card--passenger{
  background: linear-gradient(180deg,#fffdf5 0%,#fff9e8 100%);
  border-color: rgba(245,158,11,.14);
}
.tb-trip-actions-card--passenger::before{
  background: linear-gradient(90deg,#f59e0b 0%, #fad883 100%);
}

/* conductor */
.tb-trip-actions-card--driver{
  background: linear-gradient(180deg,#faf7ff 0%,#f1e9ff 100%);
  border-color: rgba(83,43,143,.18);
}
.tb-trip-actions-card--driver::before{
  background: linear-gradient(90deg,#532B8F 0%, #6d28d9 100%);
}

.tb-trip-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.tb-trip-actions__eyebrow{
  display:inline-block;
  align-self:flex-start;
  font-size:10px;
  font-weight:1000;
  letter-spacing:.12em;
  color:#532B8F;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(83,43,143,.12);
  padding:6px 10px;
  border-radius:999px;
  margin-top:2px;
}

.tb-trip-actions__title{
  font-size:17px;
  font-weight:1000;
  color:#111827;
  margin:0;
}

.tb-trip-actions__ticketcode{
  font-size:12px;
  font-weight:900;
  color:#532B8F;
  margin-top:-2px;
}

.tb-trip-actions__sub{
  font-size:12px;
  font-weight:700;
  color:#6b7280;
  margin-top:0;
  margin-bottom:4px;
}

.tb-trip-actions__label{
  font-size:11px;
  font-weight:1000;
  color:#532B8F;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-top:6px;
}

.tb-trip-actions__row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.tb-trip-actions__row--secondary{
  padding-top:10px;
  margin-top:4px;
  border-top:1px dashed rgba(17,24,39,.10);
}

.tb-trip-btn{
  border:0;
  border-radius:12px;
  padding:10px 12px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  line-height:1.1;
  transition:transform .12s ease, opacity .12s ease, box-shadow .12s ease;
  box-shadow:0 4px 10px rgba(17,24,39,.06);
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.tb-trip-btn:hover{
  transform:translateY(-1px);
  opacity:.97;
}

.tb-trip-btn--primary{
  background:#5b2db3;
  color:#fff;
}

.tb-trip-btn--ok{
  background:#16a34a;
  color:#fff;
}

.tb-trip-btn--soft{
  background:#ffffff;
  color:#156b32;
  border:2px solid #156b32;
}

.tb-trip-btn--danger{
  background:#ef4444;
  color:#fff;
}
/* =========================
   MATCH PANEL — orden fino botones
========================= */

.tb-trip-actions__row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.tb-trip-actions__row .tb-trip-btn--ok{
  grid-column:1 / -1;
}

.tb-trip-actions__row--secondary{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding-top:10px;
  margin-top:6px;
  border-top:1px dashed rgba(17,24,39,.10);
}


.tb-trip-btn--ok{
  min-height:46px;
}

@media (max-width: 380px){
  .tb-trip-actions__row,
  .tb-trip-actions__row--secondary{
    grid-template-columns:1fr;
  }
}

.tb-header__bar{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  min-height:84px;
}

/* icono izquierda */
.tb-app-icon{
  width:34px;
  height:34px;
  object-fit:contain;
  display:block;
}

/* logo centrado */
.tb-logo-text{
  width:230px;
  height:76px;
  max-height:76px;
  object-fit:contain;
  display:block;
  margin:0;
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:1;
}

/* =========================
   HERO SLIDES HOME
========================= */

.tb-hero-slider{
  margin-top:12px;
}
.tb-hero-carousel{
  position:relative;
}

.tb-hero-carousel__viewport{
  overflow:hidden;
  border-radius:24px;
}

.tb-hero-carousel__track{
  display:flex;
  transition:transform .45s ease;
  will-change:transform;
}

.tb-hero-carousel__item{
  min-width:100%;
  flex:0 0 100%;
}

.tb-hero-carousel__arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  color:#fff;
  font-size:22px;
  font-weight:900;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index:3;
  backdrop-filter:blur(8px);
  box-shadow:0 8px 18px rgba(0,0,0,.14);
  transition:background .2s ease, transform .2s ease, opacity .2s ease;
}

.tb-hero-carousel__arrow--left{
  left:8px;
}

.tb-hero-carousel__arrow--right{
  right:8px;
}

.tb-hero-carousel__arrow:hover{
  background:rgba(255,255,255,.28);
}

.tb-hero-carousel__arrow:active{
  transform:translateY(-50%) scale(.96);
}

.tb-hero-carousel__dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin-top:10px;
}

.tb-hero-carousel__dot{
  width:8px;
  height:8px;
  border:0;
  border-radius:999px;
  background:rgba(83,43,143,.20);
  cursor:pointer;
  padding:0;
  transition:all .22s ease;
}

.tb-hero-carousel__dot.is-active{
  width:24px;
  background:#532B8F;
}

.tb-hero-slide{
  background: linear-gradient(135deg, #5a2d91 0%, #43206d 100%);
  border-radius:24px;
  padding:14px 16px 12px;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  box-shadow:0 16px 30px rgba(83,43,143,.18);
  overflow:hidden;
  height:170px;
  margin-bottom:0;
}

.tb-hero-slide__content{
  flex:1;
  min-width:0;
}

.tb-hero-slide__title{
  margin:0;
  font-size:24px;
  line-height:1.05;
  font-weight:900;
}

.tb-hero-slide__text{
  margin:10px 0 0;
  font-size:13px;
  line-height:1.32;
  max-width:200px;
  min-height:54px;
  color:rgba(255,255,255,.92);
}

.tb-hero-slide__cta{
  margin-top:10px;
  min-height:40px;
  border:0;
  border-radius:14px;
  background:#ffffff;
  color:#532B8F;
  font-weight:900;
  font-size:13px;
  padding:9px 14px;
  cursor:pointer;
  box-shadow:0 10px 18px rgba(0,0,0,.12);
}

.tb-hero-slide__media{
  width:112px;
  flex:0 0 112px;
  align-self:flex-end;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}

.tb-hero-slide__media img{
  width:100%;
  max-height:112px;
  height:auto;
  display:block;
  border-radius:16px;
  object-fit:contain;
}
/* TARJETA 4 - NO COMISIONES */
.tb-hero-slide:last-child .tb-hero-slide__content{
  flex:1;
  min-width:0;
  padding-right:6px;
}

.tb-hero-slide:last-child .tb-hero-slide__title{
  margin:0 0 6px 0;
  font-size:19px;
  line-height:1.02;
  font-weight:900;
  letter-spacing:-0.3px;
  max-width:180px;
}

.tb-hero-slide:last-child .tb-hero-slide__text{
  margin:6px 0 0;
  font-size:12px;
  line-height:1.2;
  max-width:165px;
  min-height:46px;
  color:rgba(255,255,255,.92);
}

.tb-hero-slide:last-child .tb-hero-slide__cta{
  margin-top:10px;
}

.tb-hero-slide:last-child .tb-hero-slide__media{
  width:160px;
  flex:0 0 160px;
  align-self:flex-end;
  transform: translateY(-10px);
}

.tb-hero-slide:last-child .tb-hero-slide__media img{
  max-height:120px;
  border-radius:14px;
}
/* texto resaltado */
.tb-ganancias{
  color:#FFD84D;
  font-weight:900;
  letter-spacing:.5px;
}

.tb-extra{
  font-weight:600;
}

/* ruta del slide 1 */
.tb-ruta{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:10px;
  white-space:nowrap;
}

.tb-ciudad{
  font-size:16px;
  font-weight:900;
}

.tb-flecha{
  font-size:16px;
  font-weight:900;
}

/* colores de cada slide */
.tb-slide-2{
  background: linear-gradient(135deg,#2E7D6A,#1F5C4D);
}
.tb-slide-driver .tb-hero-slide__content{
  flex:1;
  min-width:0;
  padding-right:6px;
}

.tb-slide-driver .tb-hero-slide__title{
  margin:0 0 6px 0;
  font-size:18px;
  line-height:1;
  font-weight:900;
  letter-spacing:-0.4px;
  white-space:nowrap;
}

.tb-slide-driver .tb-hero-slide__text{
  margin:6px 0 0;
  font-size:11px;
  line-height:1.16;
  max-width:150px;
  min-height:34px;
  color:rgba(255,255,255,.92);
}

.tb-slide-driver .tb-extra{
  font-weight:700;
}

.tb-slide-driver .tb-ganancias{
  display:inline-block;
  margin-top:2px;
}

.tb-slide-driver .tb-hero-slide__cta{
  margin-top:8px;
}

.tb-slide-driver .tb-hero-slide__media{
  width:190px;
  flex:0 0 190px;
  align-self:flex-end;
  transform: translateY(-25px);
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
}

.tb-slide-driver .tb-hero-slide__media img{
  width:100%;
  max-height:140px;
  height:auto;
  display:block;
  object-fit:contain;
}
.tb-slide-compare .tb-hero-slide__content{
  flex:1;
  min-width:0;
  padding-right:8px;
}

.tb-slide-compare .tb-hero-slide__title{
  margin:0 0 6px 0;
  font-size:20px;
  line-height:1.02;
  font-weight:900;
  letter-spacing:-0.2px;
  max-width:200px;
}

.tb-slide-compare .tb-hero-slide__text{
  margin:4px 0 0;
  font-size:12px;
  line-height:1.22;
  max-width:180px;
  min-height:46px;
  color:rgba(255,255,255,.92);
}

.tb-slide-compare .tb-ruta{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:8px;
  white-space:nowrap;
}

.tb-slide-compare .tb-ciudad,
.tb-slide-compare .tb-flecha{
  font-size:13px;
  font-weight:900;
}

.tb-slide-compare .tb-hero-slide__cta{
  margin-top:8px;
}

.tb-slide-compare .tb-hero-slide__media{
  width:126px;
  flex:0 0 126px;
  align-self:center;
  display:flex;
  align-items:center;
  justify-content:center;
}

.tb-slide-compare .tb-hero-slide__media img{
  width:100%;
  max-height:94px;
  display:block;
  border-radius:18px;
  object-fit:cover;
}

.tb-slide-3{
  background: linear-gradient(135deg,#D97706,#92400E);
}
.tb-slide-1{
  background: linear-gradient(135deg, #5a2d91 0%, #43206d 100%);
}

.tb-hero-slide__eyebrow{
  font-size:13px;
  font-weight:500;
  line-height:1;
  color:#ffffff;
  margin-bottom:6px;
}

.tb-hero-slide__title--route{
  font-size:18px;
  line-height:1.02;
  font-weight:1000;
  letter-spacing:-0.2px;
  max-width:150px;
}

.tb-route-arrow{
  display:inline-block;
  font-size:14px;
  font-weight:1000;
  margin:0 3px;
  vertical-align:middle;
}

.tb-slide-1 .tb-hero-slide__cta{
  margin-top:10px;
}

.tb-hero-slide__media--stack{
  position:relative;
  width:160px;
  flex:0 0 160px;
  min-height:160px;
  align-self:center;
  display:block;
}

.tb-hero-stack{
  position:absolute;
  display:block;
  object-fit:cover;
  border-radius:12px;
  box-shadow:0 10px 20px rgba(0,0,0,.16);
}

.tb-hero-stack--top{
  top:4px;
  right:0;
  width:88px;
  height:50px;
  z-index:2;
}

.tb-hero-stack--bottom{
  bottom:0;
  left:8px;
  width:52px;
  height:74px;
  z-index:1;
}
/* móvil pequeño */
@media (max-width:380px){
  .tb-hero-slide{
    padding:13px 13px 11px;
    gap:10px;
    height:170px;
  }
   .tb-slide-driver .tb-hero-slide__title{
    font-size:13px;
  }

  .tb-slide-driver .tb-hero-slide__text{
    font-size:10px;
    line-height:1.12;
    max-width:138px;
    min-height:30px;
  }

    .tb-slide-driver .tb-hero-slide__media{
    width:200px;
    flex:0 0 200px;
  }

  .tb-slide-driver .tb-hero-slide__media img{
    max-height:200x;
  }
    .tb-hero-carousel__arrow{
    width:30px;
    height:30px;
    font-size:20px;
  }

  .tb-hero-carousel__arrow--left{
    left:6px;
  }

  .tb-hero-carousel__arrow--right{
    right:6px;
  }
}
@keyframes tbModalIn {
  from {
    transform: translateY(20px) scale(.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
