/* Estilos generales */
body {
  background-color: white;
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
}

/* =========================================
   HEADER Y LOGO
   ========================================= */
.logo-principal {
  width: 230px;
  /* Tamaño solicitado */
  height: auto;
  object-fit: contain;
}

/* =========================================
   ICONOS DE INICIO (INDEX)
   ========================================= */
/* Sobrescribimos los tamaños de Tailwind para hacerlos más grandes */
.option-card img {
  width: 48px !important;
  /* Icono más grande (antes era aprox 32px) */
  height: 48px !important;
  object-fit: contain;
}

.option-card>div:first-child {
  width: 80px !important;
  /* Círculo naranja más grande (antes era 48px) */
  height: 80px !important;
}

/* =========================================
   BOTONES
   ========================================= */
.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
  transform: translateY(-1px);
}

/* =========================================
   FORMULARIOS (INPUTS Y SELECTS)
   ========================================= */
.form-input-style {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  background-color: white;
  transition: all 0.3s ease;
}

.form-input-style:focus {
  outline: none;
  border-color: #ff8c00;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
}

.select-style {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  /* Igualamos estilo con inputs */
  border-radius: 0.75rem;
  font-size: 0.95rem;
  background-color: white;
  transition: all 0.3s ease;

  /* Flecha personalizada */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%236b7280' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  /* Ajustado para mejor espaciado */
  background-size: 20px;
  padding-right: 45px;
}

.select-style:focus {
  outline: none;
  border-color: #ff8c00;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
}

/* Estados de validación */
.input-error {
  border-color: #dc2626 !important;
  /* Rojo */
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.input-success {
  border-color: #16a34a !important;
  /* Verde */
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1) !important;
}

/* =========================================
   UTILIDADES Y ANIMACIONES
   ========================================= */
/* REMOVED: .hidden { display: none; } - Conflicts with Tailwind's responsive utilities */
.hidden-input {
  display: none;
}

.step-container {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.4;
  filter: blur(2px);
  pointer-events: none;
  transform: translateY(20px);
  height: 0;
  overflow: hidden;
}

.step-active {
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
  transform: translateY(0);
  height: auto;
  overflow: visible;
  margin-bottom: 2rem;
}

/* Animación suave del paso */
.wizard-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease;
}

.wizard-step.step-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

/* Animación de contenido interno */
.step-animate-content {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease-out 0.25s,
    transform 0.35s ease-out 0.25s;
}

.step-active .step-animate-content {
  opacity: 1;
  transform: translateY(0);
}

/* Loader */
.loader-logo {
  width: 70px;
  height: 70px;
  animation: pulseLoader 1s infinite ease-in-out;
  opacity: 0.8;
}

@keyframes pulseLoader {
  0% {
    transform: scale(0.95);
    opacity: 0.6;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.6;
  }
}

.wizard-steps-wrapper {
  position: relative;
  overflow: hidden;
}

.wizard-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
  display: flex;
  flex-direction: column;
}

.wizard-step.step-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

/* Mejora para pantallas pequeñas */
@media (max-width: 768px) {
  .wizard-main {
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
  }
}

/* =========================================
   HEADER Y TOP-BAR RESPONSIVE
   ========================================= */
.top-bar-custom {
  background-color: #f8fafc;
  color: #334155;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid #e2e8f0;
}

/* Position header relative to top-bar */
.header-constrained {
  top: 35px !important;
  /* Force position below top-bar */
}

/* =========================================
   HERO CAROUSEL & OVERLAYS
   ========================================= */
.hero-overlay {
  pointer-events: none !important;
  background: linear-gradient(90deg,
      rgba(15, 23, 42, 0.68) 0%,
      rgba(15, 23, 42, 0.45) 30%,
      rgba(15, 23, 42, 0.12) 55%,
      rgba(15, 23, 42, 0.0) 70%,
      rgba(15, 23, 42, 0) 80%);
}

@media (max-width: 1023px) {
  .hero-overlay {
    background: linear-gradient(180deg,
        rgba(15, 23, 42, 0.72) 0%,
        rgba(15, 23, 42, 0.48) 45%,
        rgba(15, 23, 42, 0.12) 70%,
        rgba(15, 23, 42, 0.0) 90%);
  }
}

.carousel-slide .hero-interactive-content {
  pointer-events: auto !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.65));
}

@media (min-width: 1024px) {
  .hero-slide-1-content {
    position: relative;
    top: -85px;
  }
}

@media (max-width: 1023px) {
  .hero-slide-1-content {
    position: relative;
    top: -15px;
  }
}

.carousel-slide {
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   MARCADORES Y FLECHAS DE FLOTA EN HERO
   ========================================= */
.carousel-slide .hero-content-wrapper {
  pointer-events: none !important;
}

.truck-pointer {
  pointer-events: auto !important;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 25;
}

.truck-pointer:hover {
  transform: translateY(-3px) scale(1.02);
  z-index: 45 !important;
}

.truck-tag-card {
  pointer-events: auto !important;
  background: rgba(15, 23, 42, 0.94) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0.75rem;
  padding: 0.625rem 0.75rem;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.7), 0 4px 10px -2px rgba(0, 0, 0, 0.5);
}

.truck-pointer:hover .truck-tag-card {
  border-color: #FF8C00 !important;
  background: rgba(15, 23, 42, 0.98) !important;
  box-shadow: 0 12px 30px -4px rgba(255, 140, 0, 0.4), 0 6px 12px -2px rgba(0, 0, 0, 0.6);
}

.truck-pointer:hover .truck-arrow-svg {
  color: #FF8C00;
  filter: drop-shadow(0 0 6px rgba(255, 140, 0, 0.8));
}

.truck-pointers-container {
  display: block;
  z-index: 28 !important;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .truck-pointers-container {
    display: none !important;
  }
}

.truck-pointer-furgon {
  display: flex !important;
}

@media (max-width: 1279px) {
  .truck-pointer-furgon {
    display: none !important;
  }
}

/* =========================================
   MODAL DE FLOTA REAL, FOTOS Y TARIFAS
   ========================================= */
#flota-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(2, 6, 23, 0.85) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

#flota-modal.active {
  display: flex !important;
  opacity: 1 !important;
}

#flota-modal.active #flota-modal-content {
  transform: scale(1) !important;
  opacity: 1 !important;
}

#flota-modal-content {
  position: relative !important;
  z-index: 100000 !important;
  max-width: 64rem;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.vehicle-tab-btn {
  transition: all 0.2s ease;
}

.vehicle-tab-btn.active {
  background-color: #FF8C00 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.35);
  border-color: #FF8C00 !important;
}

.modal-thumb {
  transition: all 0.2s ease;
}

.modal-thumb.active {
  border-color: #FF8C00 !important;
  box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.5);
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}