/* ============================================
   MANUEL KOPPE — Asesoría Page Styles
   ============================================ */

/* ─────────────────────────────────────────
   PÁGINA
───────────────────────────────────────── */
.hero-asesoria {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
  text-align: center;
}
.hero-asesoria__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(44, 86, 212, 0.15) 0%, transparent 65%);
  pointer-events: none;
}
.hero-asesoria__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 5rem;
  max-width: 780px;
}
.hero-asesoria__title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 1.25rem;
}
.hero-asesoria__subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
}
.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 3rem;
}
.includes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.include-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}
.include-card:hover { border-color: var(--secondary); transform: translateY(-3px); }
.include-card__icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 0.1rem; }
.include-card__title { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.03em; margin-bottom: 0.35rem; }
.include-card__text { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }
@media (max-width: 768px) { .includes-grid { grid-template-columns: 1fr; } }

.pricing-grid { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: border-color var(--transition);
}
.pricing-card--featured { border-color: var(--primary); box-shadow: 0 0 50px rgba(128,44,212,0.2); }
.pricing-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.3rem 1rem; border-radius: 100px; white-space: nowrap;
}
.pricing-card__plan { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.price-amount { font-family: var(--font-display); font-size: 3rem; line-height: 1; }
.price-period { color: var(--text-muted); font-size: 0.9rem; margin-left: 0.25rem; }
.pricing-card__list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.pricing-card__list li { color: var(--text-muted); font-size: 0.9rem; }

.pago-box { max-width: 600px; }
.pago-placeholder {
  background: var(--surface); border: 1.5px dashed var(--border);
  border-radius: var(--radius); padding: 3rem; text-align: center;
}
.pago-placeholder__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.pago-placeholder h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.75rem; letter-spacing: 0.04em; }
.pago-placeholder p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.pago-placeholder__note { font-size: 0.85rem !important; color: var(--primary) !important; margin-top: 1rem !important; }

/* ─────────────────────────────────────────
   MODAL — OVERLAY & CAJA
───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  visibility: hidden;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
  padding: 1rem;
}
.modal-overlay.is-open {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  visibility: visible;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(128, 44, 212, 0.15);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}
.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ─────────────────────────────────────────
   MODAL — HEADER
───────────────────────────────────────── */
.modal__header {
  padding: 1.25rem 1.5rem 0;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.modal__top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.modal__step-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.modal__step-counter {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.modal__step-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.modal__close {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.modal__close:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.modal__progress-track {
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
}
.modal__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ─────────────────────────────────────────
   MODAL — BODY & STEPS
───────────────────────────────────────── */
.modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}
.modal__body::-webkit-scrollbar { width: 4px; }
.modal__body::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

.step { display: none; animation: stepIn 0.25s ease forwards; }
.step.is-active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.step__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
  line-height: 1.55;
}
.step__subtitle {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ─────────────────────────────────────────
   FORM — CAMPOS GENERALES
───────────────────────────────────────── */
.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.fgroup {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.fgroup--full { grid-column: 1 / -1; }

.modal label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.req { color: var(--accent); }

.modal input[type="text"],
.modal input[type="email"],
.modal input[type="tel"],
.modal input[type="number"],
.modal input[type="time"],
.modal select,
.modal textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.93rem;
  padding: 0.6rem 0.9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(128, 44, 212, 0.15);
}
.modal input::placeholder,
.modal textarea::placeholder { color: #44444e; }
.modal select option { background: var(--surface-2); color: var(--text); }
.modal textarea { resize: vertical; min-height: 90px; }

.field-error {
  font-size: 0.78rem;
  color: #f04f4f;
  min-height: 1rem;
  display: block;
}

/* Input con unidad */
.input-unit-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-unit-wrap input { padding-right: 2.5rem; }
.unit {
  position: absolute;
  right: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* ─────────────────────────────────────────
   PASO 3 — MEDIDAS
───────────────────────────────────────── */
.measures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.measure-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.measure-item__icon { font-size: 1.2rem; }
@media (max-width: 500px) { .measures-grid { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────
   PASO 6 — MARCAS Y FUERZA
───────────────────────────────────────── */
.strength-table { display: flex; flex-direction: column; gap: 0.6rem; }
.strength-table__header {
  display: grid;
  grid-template-columns: 1fr 110px 110px;
  gap: 0.5rem;
  padding: 0 0.5rem;
}
.strength-table__header span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.strength-row {
  display: grid;
  grid-template-columns: 1fr 110px 110px;
  gap: 0.5rem;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
}
.strength-row__name { font-size: 0.9rem; color: var(--text); }
.strength-row__na { color: var(--text-muted); font-size: 0.9rem; text-align: center; }
@media (max-width: 520px) {
  .strength-table__header { grid-template-columns: 1fr 90px 90px; }
  .strength-row { grid-template-columns: 1fr 90px 90px; }
}

/* ─────────────────────────────────────────
   PASO 8 — NEUROTIPO
───────────────────────────────────────── */
.neuro-group {
  border: 1px solid var(--group-color, var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: rgba(0,0,0,0.15);
}
.neuro-group__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.neuro-group__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--group-color, var(--text));
}
.neuro-group__total {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border-radius: 100px;
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--border);
}
.neuro-group__total strong {
  color: var(--group-color, var(--primary));
  font-weight: 700;
}
.neuro-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.neuro-item:last-of-type { border-bottom: none; }
.neuro-item__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.4;
}
.neuro-rating {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}
.neuro-rating input[type="hidden"] { display: none; }
.rating-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rating-btn:hover {
  border-color: var(--group-color, var(--primary));
  color: var(--text);
}
.rating-btn.is-selected {
  background: var(--group-color, var(--primary));
  border-color: var(--group-color, var(--primary));
  color: #fff;
  box-shadow: 0 0 10px rgba(128, 44, 212, 0.4);
}
@media (max-width: 560px) {
  .neuro-item { flex-direction: column; align-items: flex-start; }
  .neuro-rating { gap: 0.4rem; }
  .rating-btn { width: 36px; height: 36px; }
}

/* ─────────────────────────────────────────
   PASO 9 — RANGOS
───────────────────────────────────────── */
.range-group {
  margin-bottom: 1.25rem;
}
.range-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.range-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.range-label-min, .range-label-max {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.range-input {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px rgba(128,44,212,0.4);
}
.range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  cursor: pointer;
  border: none;
}
.range-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  min-width: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────────
   PASO 11 — NOTA FINAL
───────────────────────────────────────── */
.final-note {
  background: rgba(128, 44, 212, 0.08);
  border: 1px solid rgba(128, 44, 212, 0.25);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}
.final-note p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.final-note strong { color: var(--text); }

/* ─────────────────────────────────────────
   CHECKBOX DE CONSENTIMIENTO RGPD
───────────────────────────────────────── */
.consent-box {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 0.15rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.consent-label a {
  color: var(--primary);
  text-decoration: underline;
}

.consent-label a:hover {
  color: var(--accent);
}

.consent-box .field-error {
  margin-top: 0.5rem;
  margin-left: 1.65rem;
}

.consent-label.is-invalid .consent-text {
  color: #f04f4f;
}

.consent-label.is-invalid input[type="checkbox"] {
  outline: 2px solid #f04f4f;
  outline-offset: 2px;
}

/* ─────────────────────────────────────────
   MODAL — FOOTER
───────────────────────────────────────── */
.modal__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface);
}

/* ─────────────────────────────────────────
   PANTALLA DE ÉXITO
───────────────────────────────────────── */
.step-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  animation: stepIn 0.3s ease forwards;
}
.step-success.is-active { display: flex; }

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 30px rgba(128,44,212,0.4);
}
.success-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}
.success-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 420px;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.success-email {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

/* ─────────────────────────────────────────
   ESTADO DE CARGA
───────────────────────────────────────── */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.75;
}
.btn-loading::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 560px) {
  .modal { max-height: 95vh; border-radius: 12px; }
  .modal__header { padding: 1rem 1rem 0.75rem; }
  .modal__body { padding: 1.25rem 1rem; }
  .modal__footer { padding: 0.75rem 1rem; }
  .frow { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────
   PASO 12 — RESUMEN
───────────────────────────────────────── */
.summary-section {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.summary-section__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.summary-section__icon {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.summary-section__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.summary-section__body {
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.5rem;
}

.summary-section__body--full {
  grid-template-columns: 1fr;
}

.summary-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.summary-field--full {
  grid-column: 1 / -1;
}

.summary-field__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.summary-field__value {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}

.summary-field__value--empty {
  color: #44444e;
  font-style: italic;
}

/* Neuro bars dentro del resumen */
.summary-neuro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  padding: 0.85rem 1rem;
}

.summary-neuro-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.summary-neuro-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-neuro-item__name {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.summary-neuro-item__score {
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.summary-neuro-bar {
  height: 5px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}

.summary-neuro-bar__fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

@media (max-width: 480px) {
  .summary-section__body { grid-template-columns: 1fr; }
  .summary-neuro-grid { grid-template-columns: 1fr; }
}
