:root {
  --primary: #F16A6A;
  --primary-hover: #E35252;
  --text-dark: #000000;
  --text-light: #555555;
  --bg-color: #F8F9FA;
  --bg-white: #FFFFFF;
  --accent-glow: rgba(180, 200, 255, 0.4);
  --border-color: #E2E8F0;
  --border-radius: 999px; /* stadium/pill shape */
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

.text-accent {
  color: var(--primary);
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

/* Navbar */
.navbar {
  background-color: var(--bg-white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn.pill {
  border-radius: var(--border-radius);
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 16px rgba(241, 106, 106, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(241, 106, 106, 0.4);
}

.btn-secondary {
  background-color: var(--text-dark);
  color: #fff;
}

.btn-secondary:hover {
  background-color: #333;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
  padding: 12px 26px;
}

.btn-outline:hover {
  background-color: var(--text-dark);
  color: #fff;
}

.btn-large {
  padding: 16px 32px;
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 80px 0 140px 0;
  background-color: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.pill-badge {
  display: inline-block;
  background: var(--bg-color);
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.hero-title {
  font-size: 4rem;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-image-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img {
  width: 100%;
  max-width: 600px;
  position: relative;
  z-index: 2;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(255,255,255,0) 70%);
  z-index: 1;
}

/* Generic Utilities */
.bg-light {
  background-color: var(--bg-color);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Grid layout */
.grid {
  display: grid;
  gap: 30px;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  transition: var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
}

.glow-accent {
  box-shadow: 0 0 20px var(--accent-glow);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Steps (Como Funciona) */
.steps-container {
  max-width: 800px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
}

.step-number {
  width: 48px;
  height: 48px;
  background-color: var(--text-dark);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-light);
}

/* CTA & Booking Widget */
.booking-section-inline {
  position: relative;
  margin-top: -60px;
  z-index: 10;
  padding-bottom: 80px;
}

.booking-widget {
  background: var(--bg-white);
  border-radius: 32px;
  padding: 60px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.15);
  max-width: 900px;
  margin: 0 auto;
}

.booking-header {
  text-align: center;
  margin-bottom: 40px;
}

.booking-header h2 {
  font-size: 2.25rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.booking-header p {
  color: var(--text-light);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.input-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.input-group input, .input-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-color);
  color: var(--text-dark);
}

.input-group input:focus, .input-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Ticket Design */
.quote-result {
  margin-top: 40px;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ticket {
  background: #FFF;
  border: 2px dashed var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.ticket-header {
  background: var(--bg-color);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--border-color);
}

.route-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.city {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dark);
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-line {
  color: var(--primary);
}

.badge {
  background: var(--primary);
  color: #FFF;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ticket-body {
  padding: 32px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFF;
}

.detail-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-col .label {
  color: var(--text-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-col strong {
  font-size: 1.25rem;
}

.total-col strong {
  font-size: 2rem;
  color: var(--primary);
}

.ticket-footer {
  background: var(--bg-color);
  padding: 20px 24px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .ticket-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .ticket-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .ticket-footer {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .booking-widget {
    padding: 30px 20px;
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  background-color: var(--bg-white);
}

.footer .logo {
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-title {
    font-size: 3rem;
  }
  .nav-links {
    display: none;
  }
}

/* ─────────────────────────────────────────────
   MODAL OVERLAY BASE
───────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: modalFadeIn 0.4s ease both;
}

.modal-overlay.modal-hidden {
  animation: modalFadeOut 0.3s ease both;
  pointer-events: none;
}

@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalFadeOut { from { opacity: 1; } to { opacity: 0; } }

.modal-card {
  position: relative;
  background: var(--bg-white);
  border-radius: 28px;
  width: 100%;
  max-width: 1000px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 40px 100px rgba(0,0,0,0.3);
  animation: cardSlideIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  padding: 40px 44px 28px;
}

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(48px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Botón X cerrar */
.modal-close-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
  z-index: 10;
}
.modal-close-x:hover {
  background: var(--text-dark);
  color: #fff;
  border-color: var(--text-dark);
}

/* ─────────────────────────────────────────────
   BARRA DE PROGRESO WIZARD
───────────────────────────────────────────── */
.wizard-progress {
  margin-bottom: 32px;
  text-align: center;
}

.wizard-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 10px;
}

.wdot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-light);
  transition: var(--transition);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.wdot.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(241,106,106,0.2);
}

.wdot.done {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.wdot.done span { display: none; }
.wdot.done::after { content: '✓'; font-size: 1rem; }

.wtrack-line {
  flex: 1;
  height: 3px;
  background: var(--border-color);
  max-width: 80px;
  position: relative;
  overflow: hidden;
}
.wtrack-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.wtrack-line.filled::after { transform: scaleX(1); }

.wizard-step-labels {
  display: flex;
  justify-content: space-between;
  max-width: 520px;
  margin: 0 auto 6px;
  padding: 0 6px;
}
.wizard-step-labels span {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.wizard-step-counter {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ─────────────────────────────────────────────
   CUERPO WIZARD: DOS COLUMNAS
───────────────────────────────────────────── */
.wizard-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* ── Columna izquierda: pasos ── */
.wizard-left {
  position: relative;
  min-height: 320px;
}

.wstep {
  display: none;
  animation: stepIn 0.35s ease both;
}
.wstep.active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes stepBack {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.wstep.back-anim { animation: stepBack 0.35s ease both; }

.wstep-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  line-height: 1;
}

.wstep-title {
  font-size: 1.7rem;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.wstep-desc {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.wizard-input {
  width: 100%;
  padding: 15px 18px;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-color);
  transition: var(--transition);
  margin-bottom: 20px;
}
.wizard-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(241,106,106,0.15);
}

.wstep-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Van selection cards */
.van-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.van-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-color);
}
.van-card:hover { border-color: var(--primary); background: #fff; }
.van-card.selected {
  border-color: var(--primary);
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(241,106,106,0.12);
}

.van-card-icon { font-size: 1.6rem; line-height: 1; }
.van-card-info { flex: 1; }
.van-card-info strong { display: block; font-size: 1rem; }
.van-card-info span { font-size: 0.82rem; color: var(--text-light); }
.van-card-rate {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  white-space: nowrap;
}

/* Cargo type cards (2-column grid) */
.cargo-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.cargo-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-color);
}
.cargo-card:hover { border-color: var(--primary); background: #fff; }
.cargo-card.selected {
  border-color: var(--primary);
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(241,106,106,0.12);
}

.cargo-card-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.cargo-card-info { flex: 1; min-width: 0; }
.cargo-card-info strong { display: block; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cargo-card-info span { font-size: 0.75rem; color: var(--text-light); }

/* Urgency selection cards */
.urgency-options {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.urgency-card {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-color);
}
.urgency-card:hover { border-color: var(--primary); background: #fff; }
.urgency-card.selected {
  border-color: var(--primary);
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(241,106,106,0.12);
}

.urgency-icon { font-size: 1.6rem; line-height: 1; }
.urgency-info strong { display: block; font-size: 0.95rem; }
.urgency-info span { font-size: 0.8rem; color: var(--text-light); }

/* Final ticket in step 5 */
.wizard-final-ticket .ticket { border-radius: 14px; }

/* ── Columna derecha: ticket en vivo ── */
.wizard-right { position: sticky; top: 8px; }

.live-ticket {
  background: var(--text-dark);
  color: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

.live-ticket-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.live-rows { display: flex; flex-direction: column; gap: 0; }

.live-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.live-row:last-child { border-bottom: none; }

.live-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}

.live-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-align: right;
  max-width: 160px;
  word-break: break-word;
  transition: color 0.3s ease;
}
.live-val.pending { color: rgba(255,255,255,0.25); font-style: italic; }

.live-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid rgba(255,255,255,0.15);
}

.live-price-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
}

.live-price-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  transition: all 0.4s ease;
  letter-spacing: -1px;
}

@keyframes priceFlash {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); color: #ff9999; }
  100% { transform: scale(1); }
}
.live-price-val.flash { animation: priceFlash 0.4s ease; }

.live-disclaimer {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-top: 12px;
}

/* ── Footer: saltar ── */
.modal-footer-actions {
  margin-top: 24px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}

.modal-skip-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
  padding: 8px 12px;
  border-radius: 8px;
}
.modal-skip-btn:hover { color: var(--text-dark); background: var(--bg-color); }

/* ─────────────────────────────────────────────
   RESPONSIVE WIZARD
───────────────────────────────────────────── */
@media (max-width: 750px) {
  .modal-card { padding: 28px 20px 20px; border-radius: 22px; }
  .wizard-body { grid-template-columns: 1fr; }
  .wizard-right { position: static; }
  .live-ticket { border-radius: 14px; }
  .live-price-val { font-size: 1.4rem; }
  .wstep-title { font-size: 1.35rem; }
  .wtrack-line { max-width: 40px; }
}

