/* Oferly · cuestionario dinámico */

.oq-page {
  padding: 54px 0 88px;
}

.oq-shell {
  width: min(920px, 100%);
  margin: 0 auto;
}

.oq-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.oq-intro {
  padding: clamp(1.5rem, 5vw, 3.2rem);
}

.oq-intro h2 {
  max-width: 720px;
  margin-top: 0.65rem;
}

.oq-intro > p {
  max-width: 760px;
  font-size: 1.05rem;
}

.oq-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.oq-intro-item {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.oq-intro-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
}

.oq-intro-item span {
  color: var(--text-muted);
}

.oq-progress-wrap {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--border);
}

.oq-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.oq-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.oq-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--accent));
  transition: width 220ms ease;
}

.oq-question {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.35rem, 4vw, 2.4rem);
}

.oq-question-main {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.oq-section-label {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oq-question h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
}

.oq-help {
  margin-bottom: 1.35rem;
  color: var(--text-muted);
}

.oq-input {
  margin-top: 1.2rem;
}

.oq-control {
  width: 100%;
  min-height: 56px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
}

textarea.oq-control {
  min-height: 150px;
}

.oq-control:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.oq-control option,
.oq-control optgroup {
  color: #111827;
  background: #ffffff;
}

.oq-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.oq-option {
  position: relative;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.oq-option:hover {
  transform: translateY(-1px);
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(255, 255, 255, 0.075);
}

.oq-option.is-selected {
  border-color: rgba(163, 230, 53, 0.58);
  background: rgba(163, 230, 53, 0.11);
}

.oq-option input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--accent);
}

.oq-option-label {
  font-weight: 750;
}

.oq-files .oq-control {
  padding: 0.8rem;
}

.oq-file-list {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.oq-file-list li {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.oq-consents {
  display: grid;
  gap: 0.9rem;
}

.oq-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 500;
}

.oq-consent input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 0.15rem;
  accent-color: var(--accent);
}

.oq-error {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 12px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.24);
}

.oq-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 2rem;
}

.oq-actions-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.oq-actions .button {
  width: auto;
}

.oq-link-button {
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  border: 0;
  color: var(--text-muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.oq-link-button:hover {
  color: var(--text);
}

.oq-notice {
  width: min(920px, 100%);
  margin: 0 auto 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-soft);
  background: rgba(37, 99, 235, 0.13);
}

.oq-notice[data-type="success"] {
  border-color: rgba(163, 230, 53, 0.34);
  background: rgba(163, 230, 53, 0.1);
}

.oq-notice[data-type="error"] {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(127, 29, 29, 0.24);
}

.oq-summary {
  padding: clamp(1.3rem, 4vw, 2.4rem);
}

.oq-summary > p {
  color: var(--text-muted);
}

.oq-summary-list {
  display: grid;
  gap: 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.oq-summary-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.oq-summary-item strong {
  display: block;
  margin-bottom: 0.3rem;
}

.oq-summary-item p {
  margin: 0;
  color: var(--text-muted);
  white-space: pre-wrap;
}

.oq-edit {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.oq-submit-note {
  padding: 1rem;
  margin: 1rem 0 1.4rem;
  border: 1px solid rgba(163, 230, 53, 0.3);
  border-radius: var(--radius-md);
  color: var(--text-soft);
  background: rgba(163, 230, 53, 0.08);
}

.oq-result {
  padding: clamp(1.5rem, 5vw, 3rem);
}

.oq-result-content {
  max-width: 760px;
  margin: 0 auto;
}

.oq-result-badge {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 900;
}

.oq-result-lead {
  color: var(--text-soft);
  font-size: 1.05rem;
}

.oq-result-price {
  display: block;
  margin: 1.2rem 0 0.3rem;
  color: var(--text);
  font-size: clamp(2.5rem, 8vw, 4.8rem);
  line-height: 1;
}

.oq-result-tax,
.oq-result-recurring {
  color: var(--text-muted);
}

.oq-result-recurring {
  font-weight: 800;
}

.oq-referral-code {
  display: block;
  margin: 0.8rem 0 1rem;
  color: var(--text);
  font-size: clamp(1.55rem, 5vw, 2.6rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.oq-result-notice {
  padding: 1.1rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(250, 204, 21, 0.34);
  border-radius: var(--radius-md);
  color: var(--text-soft);
  background: rgba(250, 204, 21, 0.08);
}

.oq-result-content h3 {
  margin-top: 1.6rem;
  font-size: 1.15rem;
}

.oq-result-list {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.25rem;
  color: var(--text-soft);
}

.oq-result-email {
  padding-top: 1rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .oq-page {
    padding: 34px 0 68px;
  }

  .oq-intro-grid,
  .oq-options {
    grid-template-columns: 1fr;
  }

  .oq-question {
    min-height: 520px;
  }

  .oq-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .oq-actions-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .oq-actions .button,
  .oq-link-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oq-progress-bar,
  .oq-option {
    transition: none;
  }
}
