/* MAPA DE SEMANA (29-10): el diagnóstico corto de Víctor, con el mismo aire que la landing.
   Una pregunta por pantalla, columna estrecha, oro sobre noche. */
@font-face {
  font-family: Inter;
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Archivo;
  src: url("../fonts/archivoblack.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --night: #080b14;
  --night-2: #0d1220;
  --surface: #111727;
  --gold: #e5c158;
  --gold-light: #fce181;
  --gold-dark: #b39130;
  --text: #ede8d8;
  --muted: #a6a8ae;
  --line: rgba(237, 232, 216, 0.14);
  --line-strong: rgba(237, 232, 216, 0.26);
  --gold-soft: rgba(229, 193, 88, 0.1);
  --heading: Archivo, Arial, sans-serif;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 45% at 50% -8%, rgba(229, 193, 88, 0.13), transparent 70%),
    var(--night);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.6 Inter, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

/* ── Cabecera ── */
.map-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(20px, env(safe-area-inset-left)) 14px max(20px, env(safe-area-inset-right));
  background: rgba(8, 11, 20, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.map-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.map-brand > span {
  font-size: 12px;
  letter-spacing: 0.075em;
  font-weight: 650;
  line-height: 1.25;
}
.map-brand > span > span {
  display: block;
  color: var(--muted);
  font-weight: 500;
}
.map-count {
  font: 11px/1.4 "Courier New", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.map-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(237, 232, 216, 0.08);
}
.map-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  box-shadow: 0 0 12px rgba(229, 193, 88, 0.45);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Columna ── */
.map-wrap {
  flex: 1;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(28px, 7vh, 64px) max(20px, env(safe-area-inset-left)) 56px max(20px, env(safe-area-inset-right));
}
.map-screen {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.map-screen.is-entering {
  animation: mapIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes mapIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.map-eyebrow {
  font: 11px/1.5 "Courier New", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.map-title {
  margin: 0;
  font-family: var(--heading);
  font-weight: 900;
  font-size: clamp(34px, 8.5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.map-question {
  margin: 0;
  font-family: var(--heading);
  font-weight: 900;
  font-size: clamp(25px, 5.8vw, 34px);
  line-height: 1.12;
  text-wrap: balance;
}
.map-title:focus,
.map-question:focus {
  outline: none;
}
.map-title em,
.map-question em {
  font-style: normal;
  color: var(--gold);
}
.map-lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}
.map-hint {
  margin: -8px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.map-eye {
  width: 96px;
  height: 96px;
  margin: 0 0 -4px;
  filter: drop-shadow(0 0 28px rgba(229, 193, 88, 0.35));
}

/* ── Intro ── */
.map-steps {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: step;
}
.map-steps li {
  position: relative;
  padding-left: 46px;
  color: var(--text);
}
.map-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 193, 88, 0.5);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
}
.map-steps strong {
  color: var(--gold-light);
  font-weight: 600;
}
.map-signature {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ── Opciones ── */
.map-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.map-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  text-align: left;
  background: rgba(17, 23, 39, 0.72);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition:
    border-color 0.18s,
    background 0.18s,
    transform 0.18s;
}
.map-option:hover {
  border-color: var(--line-strong);
}
.map-option:active {
  transform: scale(0.995);
}
.map-option .map-tick {
  flex: none;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
  color: var(--night);
}
.map-option.is-radio .map-tick {
  border-radius: 50%;
}
.map-option[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.map-option[aria-pressed="true"] .map-tick {
  background: var(--gold);
  border-color: var(--gold);
}
.map-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.map-day {
  padding: 16px 0;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(17, 23, 39, 0.72);
  font-weight: 700;
  transition:
    border-color 0.18s,
    background 0.18s;
}
.map-day[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
}
.map-scale {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}
.map-scale button {
  padding: 15px 0;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(17, 23, 39, 0.72);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.map-scale button[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
}
.map-scale-legend {
  display: flex;
  justify-content: space-between;
  margin-top: -10px;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 460px) {
  .map-scale {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.map-input,
.map-textarea {
  width: 100%;
  padding: 15px 16px;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: rgba(17, 23, 39, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.map-textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}
.map-input::placeholder,
.map-textarea::placeholder {
  color: rgba(166, 168, 174, 0.7);
}
.map-input:focus,
.map-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(229, 193, 88, 0.16);
}
.map-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}
.map-label small {
  font-weight: 400;
  color: var(--muted);
}
.map-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(17, 23, 39, 0.6);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
}
.map-consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--gold);
}
.map-consent a {
  color: var(--gold);
  text-underline-offset: 3px;
}
.map-error {
  margin: 0;
  min-height: 1.4em;
  color: #f08f84;
  font-size: 14px;
}

/* ── Botones ── */
.map-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 15px 26px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--gold);
  color: var(--night);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s,
    opacity 0.2s;
}
.map-button:hover {
  background: var(--gold-light);
  box-shadow: 0 0 30px #e5c15822;
  transform: translateY(-2px);
}
.map-button[disabled] {
  opacity: 0.32;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.map-button--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.map-button--ghost:hover {
  background: rgba(237, 232, 216, 0.06);
  box-shadow: none;
}
.map-button span[aria-hidden] {
  font-size: 19px;
  line-height: 1;
}
.map-link {
  padding: 12px 4px;
  background: none;
  border: 0;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.map-link:hover {
  color: var(--text);
}
.map-button:focus-visible,
.map-option:focus-visible,
.map-day:focus-visible,
.map-scale button:focus-visible,
.map-link:focus-visible,
.map-brand:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Resultado ── */
.map-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.map-card {
  position: relative;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 23, 39, 0.92), rgba(13, 18, 32, 0.92));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.map-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.map-card h3 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 900;
  font-size: 21px;
  line-height: 1.2;
}
.map-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}
.map-tag {
  font: 11px/1.4 "Courier New", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.map-video {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted) !important;
}
.map-video a {
  color: var(--gold);
  text-underline-offset: 3px;
}
.map-send {
  margin-top: 8px;
  padding: 24px 22px;
  border: 1px solid rgba(229, 193, 88, 0.55);
  border-radius: 8px;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(229, 193, 88, 0.12), transparent 75%),
    rgba(13, 18, 32, 0.95);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.map-send h2 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 900;
  font-size: clamp(23px, 5vw, 28px);
  line-height: 1.15;
}
.map-send p {
  margin: 0;
}
.map-send strong {
  color: var(--gold-light);
  font-weight: 600;
}
.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.map-actions .map-button {
  flex: 1 1 220px;
}
.map-summary {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 11, 20, 0.6);
}
.map-summary summary {
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
}
.map-summary pre {
  margin: 0;
  padding: 0 14px 14px;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  font: 13px/1.55 Inter, Arial, sans-serif;
  color: var(--text);
}
.map-toast {
  margin: 0;
  min-height: 1.3em;
  font-size: 14px;
  color: var(--gold);
}

/* ── Pie ── */
.map-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 22px max(20px, env(safe-area-inset-left)) calc(22px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-right));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: var(--muted);
}
.map-footer nav {
  display: flex;
  gap: 16px;
}
.map-footer a {
  text-decoration: none;
}
.map-footer a:hover {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .map-screen.is-entering {
    animation: none;
  }
  .map-progress span,
  .map-button,
  .map-option {
    transition: none;
  }
}
