/* ============================================================
   WIZARD — contenedor y pasos
   ============================================================ */

.wizard-container { max-width: 800px; margin: 0 auto; padding: 20px; }
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-step h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; color: #0f172a; }
.wizard-step p  { font-size: 16px; color: #475569; margin-bottom: 24px; }

.wizard-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.wizard-option {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 32px;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1 1 160px;
  text-align: center;
}
.wizard-option:hover { border-color: #3b82f6; background: #f8fafc; }
.wizard-option .label { font-size: 16px; font-weight: 600; }
.wizard-option .sub   { font-size: 13px; color: #64748b; }

/* ============================================================
   WIZARD — iconos SVG de las tarjetas
   ============================================================ */

.wizard-option .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  height: 56px;
}

.wizard-option .icon svg {
  width: 48px;
  height: 48px;
  display: block;
  transition: transform 0.2s;
}

.wizard-option:hover .icon svg {
  transform: scale(1.08);
}

/* Color por tipo de opción */
.wizard-option[data-type="global"]    .icon { color: #3b82f6; }
.wizard-option[data-type="continent"] .icon { color: #10b981; }
.wizard-option[data-type="country"]   .icon { color: #8b5cf6; }

/* ============================================================
   WIZARD — buscador
   ============================================================ */

.wizard-search-container { position: relative; margin: 16px 0 20px; }
.wizard-search-container input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.wizard-search-container input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.wizard-search-container .clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 4px;
  display: none;
  line-height: 1;
}
.wizard-search-container .clear-btn:hover { color: #475569; background: #f1f5f9; }
.wizard-search-container.has-value .clear-btn { display: block; }

.wizard-search-results {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
  min-height: 18px;
}
.wizard-search-results strong { color: #0f172a; font-weight: 600; }

/* ============================================================
   WIZARD — grid de mapas
   ============================================================ */

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.map-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.map-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.map-card .map-thumb {
  height: 80px;
  background: #f1f5f9;
  border-radius: 6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #94a3b8;
  overflow: hidden;
}
.map-card .map-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f1f5f9;
}
.map-card .map-name   { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.map-card .map-region { font-size: 12px; color: #94a3b8; }

.group-header {
  grid-column: 1/-1;
  font-weight: 600;
  font-size: 16px;
  margin-top: 8px;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
}

.no-results {
  grid-column: 1/-1;
  text-align: center;
  color: #94a3b8;
  padding: 32px 16px;
  font-size: 15px;
}

.wizard-back {
  display: inline-block;
  margin-top: 20px;
  color: #3b82f6;
  cursor: pointer;
  font-weight: 500;
}
.wizard-back:hover { text-decoration: underline; }

/* ============================================================
   COMING SOON — overlay bloqueante sobre las tarjetas
   ============================================================ */

/* Necesario para anclar el overlay */
.map-card,
.landing-card { position: relative; }

/* Estado deshabilitado: nada de hover azul ni cursor pointer */
.map-card.is-coming-soon,
.landing-card.is-coming-soon {
  cursor: not-allowed;
}

.map-card.is-coming-soon:hover,
.landing-card.is-coming-soon:hover {
  border-color: #e2e8f0;
  box-shadow: none;
  transform: none;
  background: #fff;
}

/* Miniaturas atenuadas */
.map-card.is-coming-soon .map-thumb img,
.landing-card.is-coming-soon .card-thumb img {
  filter: grayscale(0.75) brightness(0.85);
  opacity: 0.55;
}

/* Texto e info también un poco apagados */
.map-card.is-coming-soon .map-name,
.map-card.is-coming-soon .map-region,
.landing-card.is-coming-soon .card-body h3,
.landing-card.is-coming-soon .card-body p {
  opacity: 0.6;
}

/* Overlay oscuro con el texto */
.coming-soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: inherit;
  pointer-events: none;          /* el click lo captura el card */
  z-index: 2;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  text-align: center;
  padding: 8px;
}

/* Un poco más grande en las cards del wizard */
.map-card .coming-soon-overlay {
  font-size: 12px;
}

/* Respeta accesibilidad: si el usuario reduce movimiento, sin blur */
@media (prefers-reduced-motion: reduce) {
  .coming-soon-overlay { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .wizard-options { flex-direction: column; align-items: stretch; }
  .map-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .map-grid { grid-template-columns: 1fr; }
}