/* =========================================================
   JELLYNERVYS — solicitud de comisión (wizard)
   ========================================================= */

.req-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.req-body::after {
  content: "";
  position: fixed;
  left: -10%;
  right: -10%;
  bottom: -2%;
  height: 34vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(179, 136, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179, 136, 255, 0.1) 1px, transparent 1px);
  background-size: 78px 78px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(60% 90% at 50% 100%, #000 5%, transparent 72%);
  mask-image: radial-gradient(60% 90% at 50% 100%, #000 5%, transparent 72%);
}

.req-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 45% at 82% 8%, rgba(179, 136, 255, 0.12), transparent 70%),
    radial-gradient(40% 35% at 10% 20%, rgba(255, 46, 151, 0.045), transparent 70%);
}

.req-head,
.req-main,
.req-foot {
  position: relative;
  z-index: 2;
}

/* ---------- Cabecera ---------- */
.req-head {
  width: min(1240px, 100% - 2 * clamp(20px, 4vw, 56px));
  margin: 0 auto;
  padding: clamp(20px, 3vw, 30px) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.req-head .brand { gap: 9px; }

.req-head-right {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 26px);
}

.req-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.req-back span:first-child { color: var(--jelly); }
.req-back:hover { color: var(--ink); }

/* ---------- Layout ---------- */
.req-main {
  width: min(1240px, 100% - 2 * clamp(20px, 4vw, 56px));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 54px) 0 clamp(50px, 8vw, 100px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
  flex: 1;
}

.req-panel { max-width: 760px; }

/* ---------- Progreso ---------- */
.req-track {
  position: relative;
  height: 2px;
  background: rgba(179, 136, 255, 0.14);
  overflow: hidden;
}
.req-track span {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--jelly-deep), var(--jelly), var(--magenta));
  box-shadow: 0 0 12px rgba(179, 136, 255, 0.8);
  transition: width 0.7s var(--ease);
}
.req-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 11px;
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.req-meta #reqPct { color: var(--jelly); }

/* ---------- Sin JS ---------- */
.req-noscript {
  margin: 30px 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 46, 151, 0.35);
  border-radius: 4px;
  background: rgba(255, 46, 151, 0.05);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-dim);
}
.req-noscript span { display: block; margin-top: 6px; font-size: 0.76rem; color: var(--muted); }
.req-noscript a { color: var(--jelly); text-decoration: underline; }

/* ---------- Pasos ---------- */
.req-step,
.req-result {
  padding-top: clamp(30px, 4vw, 46px);
  animation: stepIn 0.55s var(--ease) both;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(16px); }
}

.req-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4.2vw, 3.4rem);
  font-weight: 380;
  line-height: 1.02;
  letter-spacing: -0.032em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.req-h1 em {
  font-style: italic;
  font-weight: 420;
  color: var(--jelly);
  text-shadow: 0 0 26px rgba(179, 136, 255, 0.35);
}
.req-h1:focus { outline: none; }

.req-sub {
  max-width: 52ch;
  margin-bottom: clamp(28px, 4vw, 40px);
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--ink-dim);
  text-wrap: pretty;
}

/* ---------- Tarjetas de opción ---------- */
.req-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.req-opt {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: start;
  gap: 16px;
  padding: 19px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.req-opt:hover {
  border-color: rgba(179, 136, 255, 0.4);
  background: rgba(179, 136, 255, 0.045);
  transform: translateX(2px);
}
.req-opt:has(input:focus-visible) {
  outline: 2px solid var(--jelly);
  outline-offset: 3px;
}
.req-opt:has(input:checked) {
  border-color: rgba(179, 136, 255, 0.65);
  background:
    radial-gradient(90% 100% at 0% 50%, rgba(179, 136, 255, 0.12), transparent 70%),
    rgba(179, 136, 255, 0.035);
  box-shadow: 0 0 34px -14px rgba(179, 136, 255, 0.55), inset 0 0 30px rgba(179, 136, 255, 0.03);
}
.req-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.req-opt-key {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(179, 136, 255, 0.3);
  border-radius: 2px;
  font-size: 0.56rem;
  color: var(--jelly);
  transition: border-color 0.35s, background 0.35s;
}
.req-opt:has(input:checked) .req-opt-key {
  background: rgba(179, 136, 255, 0.14);
  border-color: var(--jelly);
}
.req-opt-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.req-opt-body em {
  display: block;
  font-style: normal;
  font-size: 0.79rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 48ch;
}
.req-opt-mark {
  position: relative;
  width: 17px;
  height: 17px;
  margin-top: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.req-opt:has(input:checked) .req-opt-mark {
  background: var(--jelly);
  border-color: var(--jelly);
  box-shadow: 0 0 16px rgba(179, 136, 255, 0.7);
}
.req-opt:has(input:checked) .req-opt-mark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2.5px;
  width: 4px;
  height: 8px;
  border-right: 1.5px solid #0A0410;
  border-bottom: 1.5px solid #0A0410;
  transform: rotate(45deg);
}

/* ---------- Campos ---------- */
.req-field {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}
.req-field label {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.req-field input,
.req-field select,
.req-field textarea {
  color-scheme: dark;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(179, 136, 255, 0.22);
  border-radius: 2px;
  background: rgba(5, 3, 8, 0.72);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.5;
  appearance: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.req-field textarea { resize: vertical; min-height: 120px; }
.req-field input::placeholder,
.req-field textarea::placeholder { color: rgba(160, 149, 172, 0.78); }
.req-field input:focus,
.req-field select:focus,
.req-field textarea:focus {
  outline: none;
  border-color: var(--jelly);
  background: rgba(5, 3, 8, 0.9);
  box-shadow: 0 0 0 1px rgba(179, 136, 255, 0.4), 0 0 26px -8px rgba(179, 136, 255, 0.8);
}
.req-field select { padding-right: 42px; cursor: pointer; }
.req-field option { background: #150F1E; color: var(--ink); }
.req-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.req-row .req-field { margin-top: 18px; }
.req-reveal { animation: stepIn 0.45s var(--ease) both; }

.req-field input.is-invalid,
.req-field textarea.is-invalid {
  border-color: rgba(255, 110, 140, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 110, 140, 0.3), 0 0 22px -10px rgba(255, 110, 140, 0.55);
}

.req-error {
  margin-top: 14px;
  font-size: 0.78rem;
  color: #FF9AAF;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.req-budget-note {
  margin-top: 18px;
  margin-bottom: 4px;
  font-size: 0.74rem;
  color: var(--ink-dim);
}
.req-hint {
  margin-top: 14px;
  max-width: 54ch;
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--muted);
}
.req-note {
  margin-top: 18px;
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 54ch;
}

/* ---------- Zona de fotos ---------- */
.req-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: clamp(30px, 5vw, 44px) 24px;
  border: 1px dashed rgba(179, 136, 255, 0.32);
  border-radius: 8px;
  background: rgba(179, 136, 255, 0.025);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.req-drop:hover,
.req-drop.is-over {
  border-color: rgba(179, 136, 255, 0.75);
  background: rgba(179, 136, 255, 0.06);
  box-shadow: 0 0 44px -18px rgba(179, 136, 255, 0.55);
}
.req-drop-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  border: 1px solid rgba(179, 136, 255, 0.45);
  border-radius: 2px;
  font-size: 1rem;
  color: var(--jelly);
  transition: transform 0.35s var(--ease), background 0.35s;
}
.req-drop:hover .req-drop-icon { transform: rotate(90deg); background: rgba(179, 136, 255, 0.1); }
.req-drop-count {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.req-drop strong { font-size: 0.94rem; font-weight: 600; }
.req-drop em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
}

.req-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.req-previews:empty { display: none; }
.req-thumb {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(179, 136, 255, 0.28);
  border-radius: 3px;
  background: #0B0713;
}
.req-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.req-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(244, 240, 250, 0.3);
  border-radius: 50%;
  background: rgba(5, 3, 8, 0.72);
  color: var(--ink);
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s;
}
.req-thumb button:hover { background: rgba(255, 46, 151, 0.3); border-color: var(--magenta); }

/* ---------- Presupuesto ---------- */
.req-budgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.req-budget {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.req-budget:hover { border-color: rgba(179, 136, 255, 0.45); background: rgba(179, 136, 255, 0.045); }
.req-budget:has(input:focus-visible) { outline: 2px solid var(--jelly); outline-offset: 3px; }
.req-budget:has(input:checked) {
  border-color: rgba(179, 136, 255, 0.7);
  background: rgba(179, 136, 255, 0.08);
  box-shadow: 0 0 30px -14px rgba(179, 136, 255, 0.6);
}
.req-budget:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 9px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--jelly);
  color: #0A0410;
  font-size: 0.56rem;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(179, 136, 255, 0.7);
}
.req-budget input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.req-budget-price {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--jelly);
}
.req-budget-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- Acciones ---------- */
.req-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 38px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.req-next { margin-left: auto; }
.req-arrow { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.req-next:hover .req-arrow { transform: translateX(3px); }
.req-actions--result {
  flex-wrap: wrap;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  margin-bottom: 16px;
}

/* ---------- Panel lateral ---------- */
.req-side {
  position: sticky;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.req-side-card {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(179, 136, 255, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(100% 60% at 100% 0%, rgba(179, 136, 255, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  box-shadow: 0 40px 80px -60px rgba(179, 136, 255, 0.5);
}
.req-side-card::before,
.req-side-card::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  pointer-events: none;
  border-color: rgba(179, 136, 255, 0.55);
}
.req-side-card::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.req-side-card::after { right: -1px; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid; }

.req-side-k {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jelly);
}
.req-side-hint {
  margin: 8px 0 20px;
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--muted);
}
.req-sum { display: flex; flex-direction: column; }
.req-sum li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.req-sum li span {
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.req-sum li b {
  max-width: 62%;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: right;
  color: var(--ink-dim);
  transition: color 0.3s;
}
.req-sum li b.is-set { color: var(--ink); }
.req-sum li b.is-flash { animation: sumFlash 0.55s var(--ease); }
@keyframes sumFlash {
  0% { color: var(--jelly); text-shadow: 0 0 16px rgba(179, 136, 255, 0.8); }
  100% { text-shadow: none; }
}
.req-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.66rem;
  line-height: 1.5;
  color: var(--muted);
}
.req-slot-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  transform: rotate(45deg);
  background: var(--magenta);
  box-shadow: 0 0 10px rgba(255, 46, 151, 0.9);
}

.req-help {
  padding: 2px 24px;
}
.req-help p:first-child {
  margin-bottom: 7px;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  color: var(--jelly);
}
.req-help p:nth-child(2) {
  margin-bottom: 8px;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--muted);
}
.req-help a {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  border-bottom: 1px solid rgba(179, 136, 255, 0.35);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.req-help a:hover { color: var(--jelly); border-color: var(--jelly); }

/* ---------- Resultado ---------- */
.req-kicker {
  margin-bottom: 14px;
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  color: var(--jelly);
}
.req-receipt {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.req-receipt .r-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.req-receipt .r-row span {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  flex: 0 0 auto;
}
.req-receipt .r-row b {
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.55;
  text-align: right;
  color: var(--ink);
  max-width: 68%;
}
.req-receipt .r-block {
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--line);
}
.req-receipt .r-block span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.req-receipt .r-block p {
  white-space: pre-wrap;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--ink-dim);
}

/* ---------- Pie ---------- */
.req-foot {
  width: min(1240px, 100% - 2 * clamp(20px, 4vw, 56px));
  margin: 0 auto;
  padding: 22px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  color: rgba(226, 214, 255, 0.32);
}
.req-foot a { color: var(--muted); transition: color 0.3s; }
.req-foot a:hover { color: var(--jelly); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .req-main { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
}
@media (max-width: 900px) {
  .req-main { grid-template-columns: 1fr; gap: 44px; max-width: 700px; }
  .req-panel { max-width: 100%; }
  .req-side { position: static; order: 2; }
  .req-side-card { max-width: 100%; }
}
@media (max-width: 620px) {
  .req-head { padding: 16px 0; }
  .req-back { display: none; }
  .req-head .brand-logo { height: 32px; }
  .req-head .brand-type { font-size: 1rem; }
  .req-main { padding-top: 12px; }
  .req-h1 { font-size: clamp(1.9rem, 9vw, 2.5rem); }
  .req-sub { font-size: 0.88rem; }
  .req-opt { padding: 16px; gap: 12px; grid-template-columns: 24px minmax(0, 1fr) 17px; }
  .req-opt-key { width: 23px; height: 23px; font-size: 0.5rem; }
  .req-row { grid-template-columns: 1fr; gap: 0; }
  .req-budgets { grid-template-columns: 1fr 1fr; }
  .req-budget { padding: 14px; }
  .req-budget-name { font-size: 0.95rem; }
  .req-actions { flex-wrap: wrap; }
  .req-actions .btn { flex: 1 1 auto; }
  .req-actions .req-next { margin-left: 0; }
  .req-actions .req-next { flex: 2 1 auto; }
  .req-receipt .r-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .req-receipt .r-row b { text-align: left; max-width: 100%; }
  .req-foot { font-size: 0.46rem; }
}
@media (max-width: 380px) {
  .req-budgets { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .req-step, .req-result, .req-reveal, .req-sum li b.is-flash { animation: none !important; }
  .req-track span { transition: none; }
}
