:root {
  --taxi-green: #007a33;
  --taxi-green-dark: #005623;
  --taxi-green-soft: rgba(0, 122, 51, 0.12);
  --card-bg: rgba(255, 255, 255, 0.98);
  --capsule-bg: #f8fafc;
  --text-main: #0f172a;
  --text-sub: #475569;
  --strong-blue: #0066ff;
  --strong-blue-bg: rgba(0, 102, 255, 0.1);
  --star-gold: #f59e0b;
  --like-red: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    sans-serif;
}

h1,
h2,
h3,
.driver-name-val,
.stat-value,
.slot-number-pill {
  font-family: "Outfit", sans-serif;
}

body {
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: 70px;
  overflow-x: hidden;
  background-color: #0b1120;
}

/* FONDO NÍTIDO */
.valles-bg-slider {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #0b1120;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: vallesClearSlide 21s infinite ease-in-out;
  filter: contrast(1.08) saturate(1.15);
}

.slide-1 {
  background-image: url("fondo1.jpg");
  animation-delay: 0s;
}
.slide-2 {
  background-image: url("fondo2.jpg");
  animation-delay: 7s;
}
.slide-3 {
  background-image: url("fondo3.jpg");
  animation-delay: 14s;
}

@keyframes vallesClearSlide {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  6%,
  33% {
    opacity: 1;
    transform: scale(1.04);
  }
  40%,
  100% {
    opacity: 0;
    transform: scale(1.07);
  }
}

.bg-subtle-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
}

/* BARRA SUPERIOR BLANCA LIMPIA */
.top-bar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  padding: 12px 16px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 2px solid #e2e8f0;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--taxi-green-dark);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 800;
}

.live-dot {
  width: 9px;
  height: 9px;
  background: var(--taxi-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 122, 51, 0.22);
}

/* CONTENEDOR PRINCIPAL CENTRADO */
.main-container {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-container > section {
  width: 100%;
}

/* ANIMACIONES */
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* CONVOCATORIA */
.compact-convocatoria {
  background: linear-gradient(
    135deg,
    rgba(11, 17, 32, 0.96) 0%,
    rgba(4, 38, 18, 0.96) 100%
  );
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 22px 20px;
  margin-bottom: 22px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 6px solid #22c55e;
  color: #ffffff;
}

.conv-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.cta-mini-tag {
  background: #22c55e;
  color: #052e16;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 6px;
}

.compact-convocatoria h2 {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 4px;
}

.conv-sub-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.btn-cta-compact {
  background: #22c55e;
  color: #052e16;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

.compact-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.benefit-chip {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.benefit-chip.full-width-chip {
  grid-column: span 2;
}

.chip-check {
  width: 20px;
  height: 20px;
  background: var(--strong-blue);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* VIDEO */
.middle-video-box {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  background: rgba(11, 17, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.promo-video-player {
  width: 100%;
  display: block;
  max-height: 260px;
  object-fit: cover;
}

.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.title-glass-pill {
  background: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(12px);
  padding: 14px 18px;
  border-radius: 12px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.title-glass-pill h1 {
  font-size: 1.35rem;
  font-weight: 900;
}

.title-glass-pill p {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-top: 2px;
}

.slots-badge {
  background: rgba(11, 17, 32, 0.9);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  text-align: center;
}

.slots-badge strong {
  color: #4ade80;
  font-weight: 900;
}

/* TARJETAS PRO */
.cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.taxi-pro-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  border-left: 8px solid var(--taxi-green);
  width: 100%;
}

.taxi-pro-card.empty-template-card {
  border-left: 8px solid #64748b;
  background: rgba(255, 255, 255, 0.94);
}

.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.badges-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.slot-number-pill {
  background: #0b1120;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.82rem;
  padding: 5px 10px;
  border-radius: 6px;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--strong-blue-bg);
  color: #003da6;
  border: 1px solid rgba(0, 102, 255, 0.25);
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 0.82rem;
}

.monthly-pill {
  background: rgba(0, 122, 51, 0.08);
  color: var(--taxi-green);
  border: 1px solid rgba(0, 122, 51, 0.2);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}

.check-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.card-middle-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.driver-avatar-box {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.driver-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty-avatar-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  padding: 6px;
}

.empty-avatar-placeholder span {
  font-size: 2rem;
  margin-bottom: 2px;
}

.driver-info-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.conductor-block {
  background: var(--capsule-bg);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.field-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  font-weight: 800;
  margin-bottom: 2px;
}

.driver-name-val {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
}

.driver-name-val.unassigned-text {
  color: #94a3b8;
  font-style: italic;
  font-weight: 600;
  font-size: 0.9rem;
}

.stats-capsules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.stat-capsule {
  background: var(--capsule-bg);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-value {
  font-size: 1rem;
  font-weight: 900;
  color: var(--taxi-green);
}

.stat-value.gold-rating {
  color: #d97706;
}

.stat-subtext {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 700;
  margin-top: 1px;
}

.card-bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.buttons-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.action-btn {
  width: 100%;
  padding: 13px 14px;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.btn-wa-primary {
  background: var(--taxi-green);
  color: #ffffff;
}

.btn-call-secondary {
  background: #0b1120;
  color: #ffffff;
}

.btn-claim-slot {
  background: rgba(0, 122, 51, 0.12);
  color: var(--taxi-green-dark);
}

.btn-like-pill {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  width: 100%;
}

.btn-like-pill.liked {
  background: #fef2f2;
  border-color: #fca5a5;
  color: var(--like-red);
}

.heart-icon {
  font-size: 1.1rem;
}

/* INSIGNIA INFERIOR RECUPERADA Y VISIBLE EN MÓVIL */
.third-check-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--strong-blue-bg);
  border: 1px solid rgba(0, 102, 255, 0.3);
  padding: 8px;
  border-radius: 10px;
  margin-top: 4px;
}

.third-check-box .check-svg {
  width: 28px;
  height: 28px;
}

/* COMENTARIOS */
.mercado-reviews-section {
  margin-top: 32px;
  background: transparent;
  padding: 12px 0;
  width: 100%;
}

.reviews-section-header {
  margin-bottom: 18px;
  color: #ffffff;
  padding: 0 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.reviews-section-header h3 {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 2px;
}

.reviews-section-header p {
  font-size: 0.82rem;
  color: #e2e8f0;
}

.row-track-container {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  margin-bottom: 14px;
  position: relative;
  cursor: pointer;
  scrollbar-width: none;
}

.row-track-container::-webkit-scrollbar {
  display: none;
}

.scrolling-row {
  display: flex;
  gap: 14px;
  width: max-content;
}

.scroll-left {
  animation: scrollRowLeft 68s linear infinite;
}
.scroll-right {
  animation: scrollRowRight 68s linear infinite;
}

.row-track-container.paused .scrolling-row {
  animation-play-state: paused;
}

@keyframes scrollRowLeft {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes scrollRowRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

.meli-review-card {
  width: 280px;
  min-width: 280px;
  height: 180px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.meli-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.meli-stars-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
}

.star-rating-visual {
  position: relative;
  font-size: 0.75rem;
  color: #cbd5e1;
  letter-spacing: 1px;
}

.star-rating-visual .star-fill {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  color: var(--star-gold);
}

.meli-rating-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: #b45309;
}

.meli-meta {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 600;
}

.meli-author {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.meli-comment-text {
  font-size: 0.75rem;
  color: #334155;
  line-height: 1.35;
  overflow: visible;
}

.meli-footer-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
}

.meli-helpful-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

/* ESCÁNER APERTURA 40 LUGARES */
.upcoming-40-pro {
  margin-top: 32px;
  background: linear-gradient(
    145deg,
    rgba(11, 17, 32, 0.96) 0%,
    rgba(15, 28, 46, 0.96) 100%
  );
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 28px 20px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--strong-blue);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.cyber-scanner-hub {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
}
.ring-outer {
  inset: 0;
  border: 3px dashed rgba(56, 189, 248, 0.55);
  animation: rotateClockwise 10s linear infinite;
}
.ring-middle {
  inset: 10px;
  border: 4px solid transparent;
  border-top-color: #0066ff;
  border-bottom-color: #22c55e;
  animation: rotateCounter 2.2s linear infinite;
}
.ring-inner {
  inset: 20px;
  border: 3px solid transparent;
  border-left-color: #38bdf8;
  border-right-color: #f59e0b;
  animation: rotateClockwise 1.5s linear infinite;
}

.scanner-beam {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(0, 102, 255, 0.4),
    transparent 65%
  );
  animation: rotateClockwise 2s linear infinite;
}

.scanner-core {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.7);
}

@keyframes rotateClockwise {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes rotateCounter {
  0% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.telemetry-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 18px;
  margin-bottom: 14px;
}

.telemetry-bars span {
  width: 4px;
  background: #38bdf8;
  border-radius: 3px;
  animation: equalizerBounce 1s infinite ease-in-out alternate;
}

.telemetry-bars span:nth-child(1) {
  animation-delay: 0.1s;
}
.telemetry-bars span:nth-child(2) {
  animation-delay: 0.3s;
  background: #22c55e;
}
.telemetry-bars span:nth-child(3) {
  animation-delay: 0.5s;
}
.telemetry-bars span:nth-child(4) {
  animation-delay: 0.2s;
  background: #22c55e;
}
.telemetry-bars span:nth-child(5) {
  animation-delay: 0.4s;
}
.telemetry-bars span:nth-child(6) {
  animation-delay: 0.15s;
  background: #22c55e;
}
.telemetry-bars span:nth-child(7) {
  animation-delay: 0.35s;
}
.telemetry-bars span:nth-child(8) {
  animation-delay: 0.25s;
  background: #22c55e;
}

@keyframes equalizerBounce {
  0% {
    height: 4px;
    opacity: 0.4;
  }
  100% {
    height: 18px;
    opacity: 1;
  }
}

.phase-tag {
  background: rgba(0, 102, 255, 0.25);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
}

.upcoming-pro-content h3 {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.upcoming-pro-content p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 0 auto 16px auto;
  line-height: 1.4;
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  margin: 0 auto 18px auto;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg, #0066ff, #22c55e, #38bdf8);
  border-radius: 8px;
  animation: loadingSweep 2.4s infinite ease-in-out;
}

@keyframes loadingSweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(240%);
  }
}

.btn-upcoming-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, #0066ff, #1d4ed8);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 13px 20px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.45);
  width: 100%;
}

@media (min-width: 768px) {
  .stats-capsules-grid {
    grid-template-columns: 1.35fr 1fr 1fr;
  }
  .card-bottom-actions {
    flex-direction: row;
    align-items: center;
  }
  .buttons-row {
    flex-direction: row;
  }
  .action-btn {
    width: auto;
  }
  .btn-like-pill {
    width: auto;
  }
  .compact-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .benefit-chip.full-width-chip {
    grid-column: span 2;
  }
}
