/* ============================================================
   ARODAR DIRECTORY — Wizard CSS v2
   Diseño: dark app, mobile-first, paleta verde lima + azul noche
   Fuentes: Syne (display) + DM Sans (body) + DM Mono (stats)
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --g:        #8DFF45;       /* lime verde Arodar   */
  --g-dark:   #6fd630;       /* hover del verde     */
  --g-glow:   rgba(141,255,69,.18);
  --ink:       #06111f;      /* fondo más oscuro    */
  --ink-2:     #0b1b31;      /* paneles             */
  --ink-3:     #0f2240;      /* inputs              */
  --border:    rgba(255,255,255,.10);
  --border-g:  rgba(141,255,69,.28);
  --text:      #eef2f7;
  --muted:     #6b7f96;
  --muted-2:   #8fa3bc;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --ease:      cubic-bezier(.4,0,.2,1);
  --shadow:    0 24px 64px rgba(0,0,0,.45);
}

/* ── Reset base dentro del wizard ───────────────────────────── */
#ard-wizard *,
#ard-wizard *::before,
#ard-wizard *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Wrapper app ────────────────────────────────────────────── */
#ard-wizard {
  min-height: 100vh;
  padding: 100px 16px 110px;   /* header 90px + respiro + footer */
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%,   rgba(141,255,69,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 100%,  rgba(15,80,160,.18) 0%, transparent 60%),
    var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

/* Forzar fuente en toda la página si está disponible */
#ard-wizard h1, #ard-wizard h2,
#ard-wizard h3, #ard-wizard h4 {
  font-family: 'Syne', 'DM Sans', system-ui, sans-serif;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  line-height: 1.2;
}

/* ── Layout centrado ────────────────────────────────────────── */
.ard-shell {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

/* ── Header del wizard ──────────────────────────────────────── */
.ard-head {
  text-align: center;
  margin-bottom: 32px;
  animation: ard-fadeup .5s var(--ease) both;
}

.ard-head h2 {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  letter-spacing: -.5px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.ard-head p {
  margin-top: 6px;
  color: var(--muted-2);
  -webkit-text-fill-color: var(--muted-2);
  font-size: 14px;
}

/* ── Progress bar ───────────────────────────────────────────── */
.ard-progress {
  margin-bottom: 28px;
  animation: ard-fadeup .5s .1s var(--ease) both;
}

.ard-progress-track {
  height: 4px;
  background: var(--ink-3);
  border-radius: 99px;
  overflow: hidden;
}

.ard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--g-dark), var(--g));
  border-radius: 99px;
  transition: width .4s var(--ease);
  box-shadow: 0 0 12px var(--g-glow);
  width: 16.66%;
}

.ard-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.ard-progress-labels span {
  font-size: 11px;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  transition: color .3s;
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.ard-progress-labels span.done {
  color: var(--g) !important;
  -webkit-text-fill-color: var(--g) !important;
}

/* ── Card (cada paso) ───────────────────────────────────────── */
.ard-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  animation: ard-fadeup .4s var(--ease) both;
}

.ard-card-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.ard-card-sub {
  font-size: 13px;
  color: var(--muted-2);
  -webkit-text-fill-color: var(--muted-2);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ── Steps show/hide ────────────────────────────────────────── */
.ard-step { display: none; }
.ard-step.active { display: block; }

/* ── Campo genérico ─────────────────────────────────────────── */
.ard-field {
  margin-bottom: 20px;
}

.ard-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-2) !important;
  -webkit-text-fill-color: var(--muted-2) !important;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 8px;
}

.ard-label .req {
  color: var(--g) !important;
  -webkit-text-fill-color: var(--g) !important;
}

.ard-input,
.ard-textarea,
.ard-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--ink-3) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 15px;
  font-family: 'DM Sans', system-ui, sans-serif;
  outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.ard-input::placeholder,
.ard-textarea::placeholder {
  color: var(--muted) !important;
  -webkit-text-fill-color: var(--muted) !important;
}

.ard-input:focus,
.ard-textarea:focus,
.ard-select:focus {
  border-color: var(--g);
  box-shadow: 0 0 0 3px var(--g-glow);
}

.ard-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.ard-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7f96' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 44px;
  cursor: pointer;
}

.ard-select option {
  background: #0b1b31;
  color: #ffffff;
}

.ard-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}

/* Contador de caracteres */
.ard-counter {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}

.ard-counter.warn {
  color: var(--g) !important;
  -webkit-text-fill-color: var(--g) !important;
}

/* ── Tags ───────────────────────────────────────────────────── */
.ard-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  min-height: 10px;
}

.ard-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(141,255,69,.10);
  border: 1px solid var(--border-g);
  border-radius: 99px;
  font-size: 13px;
  color: var(--g) !important;
  -webkit-text-fill-color: var(--g) !important;
  animation: ard-popin .2s var(--ease);
}

.ard-tag-remove {
  cursor: pointer;
  opacity: .6;
  line-height: 1;
  font-size: 15px;
  transition: opacity .2s;
}
.ard-tag-remove:hover { opacity: 1; }

/* ── Dropzone imágenes ──────────────────────────────────────── */
.ard-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 20px;
  border: 2px dashed var(--border-g);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background .25s, border-color .25s;
  text-align: center;
}

.ard-dropzone:hover,
.ard-dropzone.dragover {
  background: rgba(141,255,69,.05);
  border-color: var(--g);
}

.ard-dropzone-icon {
  font-size: 40px;
  line-height: 1;
}

.ard-dropzone-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.ard-dropzone-sub {
  font-size: 12px;
  color: var(--muted-2) !important;
  -webkit-text-fill-color: var(--muted-2) !important;
}

.ard-img-preview {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.ard-img-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border-g);
  animation: ard-popin .25s var(--ease);
}

.ard-img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ard-img-thumb-rm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(6,17,31,.85);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transition: background .2s;
}
.ard-img-thumb-rm:hover { background: rgba(0,0,0,.9); }

/* ── Mapa ───────────────────────────────────────────────────── */
#ard-map {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border);
  margin-top: 16px;
  background: var(--ink-3);
  display: block;
}

.ard-map-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}

/* ── Redes sociales ─────────────────────────────────────────── */
.ard-social-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  animation: ard-fadeup .2s var(--ease);
}

.ard-social-rm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted) !important;
  -webkit-text-fill-color: var(--muted) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: border-color .2s, color .2s;
  flex-shrink: 0;
}
.ard-social-rm:hover {
  border-color: var(--muted-2);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ── Destacado ──────────────────────────────────────────────── */
.ard-featured-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: rgba(141,255,69,.05);
  border: 1.5px solid var(--border-g);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  cursor: pointer;
}

.ard-featured-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: var(--g);
  margin-top: 2px;
  cursor: pointer;
}

.ard-featured-text strong {
  font-size: 14px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 700;
}

.ard-featured-text p {
  font-size: 12px;
  color: var(--muted-2);
  -webkit-text-fill-color: var(--muted-2);
  margin-top: 3px;
  line-height: 1.4;
}

/* ── Resumen final ──────────────────────────────────────────── */
.ard-summary {
  background: var(--ink-3);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.ard-summary-row {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 13px;
}

.ard-summary-row:last-child { border-bottom: none; }

.ard-summary-row dt {
  width: 110px;
  flex-shrink: 0;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .4px;
  font-family: 'DM Mono', monospace;
  padding-top: 1px;
}

.ard-summary-row dd {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  line-height: 1.5;
}

/* ── Botones ────────────────────────────────────────────────── */
.ard-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  background: var(--g);
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  font-size: 15px;
  font-weight: 800;
  font-family: 'Syne', 'DM Sans', system-ui, sans-serif;
  letter-spacing: .3px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 4px 20px rgba(141,255,69,.20);
}

.ard-btn-primary:hover:not(:disabled) {
  background: var(--g-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(141,255,69,.30);
}

.ard-btn-primary:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.ard-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: transparent;
  color: var(--muted-2) !important;
  -webkit-text-fill-color: var(--muted-2) !important;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color .25s, color .25s, background .25s;
}

.ard-btn-ghost:hover {
  border-color: var(--muted-2);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: rgba(255,255,255,.04);
}

.ard-btn-outline-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: transparent;
  color: var(--muted-2) !important;
  -webkit-text-fill-color: var(--muted-2) !important;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: .25s;
  margin-top: 4px;
}

.ard-btn-outline-sm:hover {
  border-color: var(--g);
  color: var(--g) !important;
  -webkit-text-fill-color: var(--g) !important;
}

/* ── Nav inferior ───────────────────────────────────────────── */
.ard-nav {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  align-items: center;
}

.ard-nav .ard-btn-primary { flex: 1; }

/* ── Pantalla de éxito ──────────────────────────────────────── */
.ard-success {
  text-align: center;
  padding: 48px 24px;
  animation: ard-fadeup .5s var(--ease);
}

.ard-success-icon {
  width: 80px;
  height: 80px;
  background: rgba(141,255,69,.12);
  border: 2px solid var(--border-g);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
}

.ard-success h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.ard-success p {
  color: var(--muted-2);
  -webkit-text-fill-color: var(--muted-2);
  font-size: 15px;
  line-height: 1.6;
}

.ard-success-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 14px 28px;
  background: var(--g);
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  font-weight: 800;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 14px;
  transition: background .25s;
}
.ard-success-cta:hover { background: var(--g-dark); }

/* ── Animaciones ────────────────────────────────────────────── */
@keyframes ard-fadeup {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ard-popin {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Responsive tablet ──────────────────────────────────────── */
@media (max-width: 600px) {
  #ard-wizard {
    padding: 90px 12px 100px;
  }

  .ard-card {
    padding: 24px 18px;
  }

  .ard-social-item {
    grid-template-columns: 1fr 1fr auto;
  }

  .ard-progress-labels {
    display: none; /* muy estrecho en móvil pequeño */
  }

  #ard-map {
    height: 260px;
  }

  .ard-nav {
    flex-direction: column-reverse;
  }

  .ard-nav .ard-btn-ghost {
    width: 100%;
  }
}
