/* DZ Citizen Creator — landing y configurador. Reutiliza los tokens de
   dz-shared.css; aquí no se redefine ningún color ni tipografía. */

/* `overflow: hidden` era lo que cortaba la luz en seco justo al
   terminar la cabecera: el degradado llegaba al borde y se recortaba
   con una línea horizontal visible. Ya no hace falta recortar nada,
   porque el resplandor se difumina solo. */
.cz-hero { padding: 7.5rem 1.5rem 3.5rem; text-align: center; position: relative; }
/* ANTES: un círculo de 900×700 px centrado sobre el título. Eso era el
   foco azulado: una mancha concentrada justo detrás del texto.
   AHORA: las mismas tres elipses amplias que usa la home —blanco
   tenue arriba, violeta abajo a la izquierda, dorado abajo a la
   derecha— repartidas por todo el bloque. Luz ambiental, no linterna. */
.cz-hero-glow {
  position: absolute;
  /* Desborda la cabecera por los cuatro lados: así la luz nace y
     muere fuera del encuadre y nunca se ve dónde termina. */
  inset: -30% -20% -45%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 28%, rgba(255,255,255,0.07), transparent 62%),
    radial-gradient(ellipse 50% 40% at 18% 72%, rgba(167,139,250,0.09), transparent 64%),
    radial-gradient(ellipse 50% 40% at 85% 68%, rgba(200,169,110,0.07), transparent 64%);
  /* Y además se desvanece por los bordes, para que la transición
     hacia el negro sea progresiva en vez de un corte. */
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 35%, transparent 78%);
}
/* Antes: clamp(2.8rem, 8vw, 6rem). 96 px en escritorio, que es lo que
   convertía cada cabecera en una portada. Ahora ~66 % de aquello, que
   es la escala que usa la home para sus títulos de sección. */
.cz-title {
  font-size: clamp(2rem, 4.4vw, 3.9rem);
  line-height: .96;
  letter-spacing: -.035em;
  max-width: 18ch;             /* evita que ocupe todo el ancho */
  margin: .9rem auto;
}
.cz-lead { color: var(--text-dim); font-size: 1.05rem; max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* Comparación visual. Mientras no existan capturas reales, cada marco
   declara que la imagen está pendiente: no se usa un placeholder
   disfrazado de captura del juego. */
.cz-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 980px; margin: 4rem auto 0; }
.cz-frame {
  position: relative; aspect-ratio: 16 / 10; border-radius: 20px;
  border: 1px solid var(--line); overflow: hidden; display: flex;
  align-items: center; justify-content: center; flex-direction: column; gap: .7rem;
}
.cz-frame.is-before { background: linear-gradient(170deg, #0f0f10, #070707); }
.cz-frame.is-after { background: linear-gradient(170deg, #121326, #0a0a16); border-color: #2a2550; }
.cz-frame-tag {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  font-family: 'Space Mono', monospace; font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-faint);
  border: 1px solid var(--line); border-radius: 100px; padding: .3rem .7rem;
  background: rgba(0,0,0,.45);
}
.cz-frame.is-after .cz-frame-tag { color: #A78BFA; border-color: rgba(167,139,250,.4); }
.cz-frame-pending {
  font-family: 'Space Mono', monospace; font-size: .68rem; letter-spacing: .1em;
  color: var(--text-faint); text-align: center; padding: 0 1.5rem; line-height: 1.8;
}
.cz-arrow { display: flex; justify-content: center; margin: 2.6rem 0 1rem; color: var(--text-faint); }
.cz-arrow svg { width: 26px; height: 46px; animation: czBob 2.2s ease-in-out infinite; }
@keyframes czBob { 0%,100% { transform: translateY(0); opacity:.5 } 50% { transform: translateY(8px); opacity:1 } }
.cz-cta-big {
  display: inline-flex; align-items: center; gap: .7rem; padding: 1.1rem 3.4rem;
  border-radius: 100px; background: var(--text); color: var(--bg);
  font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 1.1rem;
  letter-spacing: .04em; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cz-cta-big:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(167,139,250,.22); }

/* ── Configurador ── */
.cz-shell { max-width: 1240px; margin: 0 auto; padding: 7rem 2rem 5rem; }
.cz-steps { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.cz-step {
  flex: 1 1 120px; min-width: 0; background: none; border: none; cursor: pointer;
  padding: .7rem 0 0; text-align: left; font: inherit; color: var(--text-faint);
  border-top: 2px solid var(--line); transition: color .25s, border-color .25s;
}
.cz-step.done { color: var(--text-dim); border-top-color: #3a3a3a; }
.cz-step.current { color: var(--text); border-top-color: #A78BFA; }
.cz-step-n { font-family: 'Space Mono', monospace; font-size: .62rem; letter-spacing: .12em; display: block; }
.cz-step-l { font-size: .82rem; font-weight: 600; margin-top: .2rem; display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cz-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 2.4rem; align-items: start; }
.cz-panel { min-width: 0; }
.cz-cat-title { font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: clamp(1.6rem,3.4vw,2.2rem); letter-spacing: -.02em; }
.cz-cat-desc { color: var(--text-dim); font-size: .92rem; margin-top: .5rem; }

.cz-group { margin-top: 2.6rem; }
.cz-group-q { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.cz-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .8rem; }
.cz-opt {
  position: relative; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: linear-gradient(160deg,#0d0d0d,#070707); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.1rem; transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.cz-opt:hover:not(:disabled) { border-color: #3a3a3a; transform: translateY(-2px); }
.cz-opt[aria-pressed="true"] { border-color: #A78BFA; background: linear-gradient(160deg,#15122a,#0a0812); }
.cz-opt:disabled { cursor: not-allowed; opacity: .55; }
.cz-opt-label { font-weight: 600; font-size: .9rem; display: block; }
.cz-opt-desc { font-size: .78rem; color: var(--text-faint); margin-top: .35rem; line-height: 1.55; }
.cz-opt-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .9rem; }
.cz-price { font-family: 'Space Mono', monospace; font-size: .74rem; color: #5EE6A8; }
.cz-price.is-free { color: var(--text-faint); }
.cz-badge {
  font-family: 'Space Mono', monospace; font-size: .58rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--p-premium);
  border: 1px solid rgba(245,213,71,.32); border-radius: 100px; padding: .22rem .55rem;
}
.cz-opt-img { width: 100%; aspect-ratio: 16/9; border-radius: 10px; margin-bottom: .85rem;
  object-fit: cover; border: 1px solid var(--line); background: #0a0a0a; }

.cz-notes { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2.4rem; }
.cz-notes h3 { font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.cz-notes p { color: var(--text-dim); font-size: .88rem; margin: .6rem 0 1rem; line-height: 1.65; }
.cz-notes textarea {
  width: 100%; min-height: 130px; resize: vertical; background: #050505;
  border: 1px solid var(--line); border-radius: 14px; padding: 1rem;
  color: var(--text); font-family: 'Inter', sans-serif; font-size: .9rem; line-height: 1.6; outline: none;
  transition: border-color .25s;
}
.cz-notes textarea:focus-visible { border-color: var(--text-dim); }
.cz-counter { display: flex; justify-content: space-between; gap: 1rem; margin-top: .5rem;
  font-family: 'Space Mono', monospace; font-size: .68rem; color: var(--text-faint); }
.cz-counter .near { color: var(--p-premium); }

.cz-nav { display: flex; gap: .8rem; margin-top: 3rem; flex-wrap: wrap; }
.cz-nav .btn { flex: 0 0 auto; }

/* Resumen lateral */
.cz-summary {
  position: sticky; top: 100px; border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(160deg,#0d0d0d,#070707); padding: 1.5rem;
}
.cz-summary h3 { font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 1rem; }
.cz-sum-list { margin: 1.2rem 0; display: flex; flex-direction: column; gap: .55rem; }
.cz-sum-row { display: flex; justify-content: space-between; gap: .8rem; font-size: .82rem; }
.cz-sum-row span:first-child { color: var(--text-dim); min-width: 0; }
.cz-sum-row span:last-child { font-family: 'Space Mono', monospace; color: var(--text); white-space: nowrap; }
.cz-sum-empty { color: var(--text-faint); font-size: .82rem; line-height: 1.6; }
.cz-total { display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.cz-total-label { font-size: .78rem; color: var(--text-faint); }
.cz-total-value { font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 1.7rem; letter-spacing: -.02em; }
.cz-note-small { font-size: .72rem; color: var(--text-faint); line-height: 1.6; margin-top: 1rem; }
.cz-warn {
  border: 1px dashed rgba(245,213,71,.35); border-radius: 12px; padding: .8rem .9rem;
  color: var(--p-premium); font-size: .76rem; line-height: 1.6; margin-top: 1rem;
}

/* Revisión final */
.cz-review-block { border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; margin-bottom: .9rem; }
.cz-review-block h4 { font-family: 'Space Mono', monospace; font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: .8rem; }
.cz-review-notes { white-space: pre-wrap; color: var(--text-dim); font-size: .88rem; line-height: 1.7; }

@media (max-width: 980px) {
  .cz-layout { grid-template-columns: 1fr; }
  .cz-summary { position: static; }
  .cz-compare { grid-template-columns: 1fr; }
  .cz-shell { padding: 6rem 1.2rem 4rem; }
  .cz-hero { padding: 6rem 1.2rem 2.8rem; }
  .cz-step-l { display: none; }
  .cz-step { flex: 1 1 auto; }
}

/* ── Comparativa con capturas reales ─────────────────────────────
   Las dos imágenes ocupan exactamente el mismo espacio: misma
   proporción y mismo recorte, para que la comparación sea honesta y no
   dependa de que una se vea más grande que la otra. */
.cz-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cz-frame.is-after { border-color: #2a2550; }
.cz-frame.is-after .cz-frame-tag { color: #A78BFA; border-color: rgba(167, 139, 250, .45); }
.cz-frame.is-before .cz-frame-tag { color: var(--text-dim); }
.cz-compare-caption {
  max-width: 980px;
  margin: 1.1rem auto 0;
  text-align: center;
  font-size: .8rem;
  color: var(--text-faint);
  line-height: 1.6;
}

/* La aparición al desplazarse vive en /assets/dz-reveal.css, para
   que haya una sola definición en toda la web. */

/* El resplandor del hero sobresalía por los lados (de -78 a 468 px en un
   móvil de 390) y ensanchaba Citizens, Competitive Settings y Streaming:
   el móvil alejaba el zoom. Se recorta SOLO en horizontal; por arriba sigue
   pudiendo salirse, como está diseñado. */
.cz-hero { overflow-x: clip; }
