/* 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: #d1d5db;
  /* gray-300 */
  color: #1f2937;
  /* gray-800 */
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 60;
}

/* Hide navigation links in top-bar on mobile, keep WhatsApp */
@media (max-width: 767px) {
  .top-bar-custom .top-bar-links-desktop {
    display: none;
  }
}

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