/* ─────────────────────────────────────────────────────────────────
   /alta · Formulario de alta multi-step
   ───────────────────────────────────────────────────────────────── */

.alta-page {
  background: #fafaf7;
  min-height: 100vh;
}

.alta-hero {
  padding: 80px 0 48px;
  text-align: center;
  background: white;
  border-bottom: 1px solid #eee;
}

.alta-eyebrow {
  display: inline-block;
  padding: 4px 14px;
  background: var(--color-orange-light, #FFE8DC);
  color: var(--color-orange-text, #B43A0B);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}

.alta-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 14px;
  font-weight: 800;
}

.alta-lead {
  max-width: 640px;
  margin: 0 auto;
  color: #444;
  font-size: 1.1rem;
  line-height: 1.6;
}

.alta-section {
  padding: 48px 0 80px;
}

.alta-container {
  max-width: 820px;
}

.alta-form {
  background: white;
  border-radius: 18px;
  padding: 36px clamp(20px, 4vw, 48px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #e8e8e2;
}

/* ─── Barra de pasos ─────────────────────────────────────────── */
.alta-steps {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0e9;
}

.alta-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #999;
}

.alta-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f0e9;
  color: #999;
  font-weight: 800;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.alta-step.is-current .alta-step-num {
  background: var(--color-orange-text, #B43A0B);
  color: white;
}

.alta-step.is-current .alta-step-label {
  color: #1a1a1a;
  font-weight: 700;
}

.alta-step.is-done .alta-step-num {
  background: #1a1a1a;
  color: white;
}

.alta-step.is-done .alta-step-num::before {
  content: "✓";
}

.alta-step.is-done .alta-step-num span {
  display: none;
}

/* ─── Sección activa ─────────────────────────────────────────── */
.alta-form section {
  animation: alta-fade 0.2s ease-out;
}

@keyframes alta-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.alta-form h2 {
  font-size: 1.5rem;
  margin: 0 0 8px;
  font-weight: 800;
}

.alta-help {
  color: #666;
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0 0 24px;
}

/* ─── Modalidades (paso 1) ───────────────────────────────────── */
.alta-modality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.alta-modality {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  text-align: left;
  border: 2px solid #e8e8e2;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.alta-modality strong {
  font-size: 1rem;
  color: #1a1a1a;
}

.alta-modality span {
  font-size: 0.86rem;
  color: #666;
  line-height: 1.5;
}

.alta-modality:hover {
  border-color: var(--color-orange-text, #B43A0B);
  transform: translateY(-1px);
}

.alta-modality.is-selected {
  border-color: var(--color-orange-text, #B43A0B);
  background: var(--color-orange-light, #FFE8DC);
}

/* ─── Lista de planes ────────────────────────────────────────── */
.alta-plan-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alta-plan {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 2px solid #e8e8e2;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.alta-plan:hover {
  border-color: var(--color-orange-text, #B43A0B);
}

.alta-plan.is-selected {
  border-color: var(--color-orange-text, #B43A0B);
  background: var(--color-orange-light, #FFE8DC);
}

.alta-plan input {
  margin: 0;
  accent-color: var(--color-orange-text, #B43A0B);
  width: 18px;
  height: 18px;
}

.alta-plan strong {
  display: block;
  font-size: 0.98rem;
  color: #1a1a1a;
}

.alta-plan span {
  display: block;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin-top: 2px;
}

.alta-plan-price {
  text-align: right;
}

.alta-plan-amount {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-orange-text, #B43A0B);
  line-height: 1;
}

.alta-plan-unit {
  display: block;
  font-size: 0.78rem;
  color: #888;
  margin-top: 4px;
}

/* ─── Form fields ─────────────────────────────────────────────── */
.alta-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) {
  .alta-grid-2 {
    grid-template-columns: 1fr;
  }
}

.alta-field {
  display: flex;
  flex-direction: column;
}

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

.alta-field label {
  display: block;
}

.alta-field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.alta-field input,
.alta-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #d8d8d2;
  border-radius: 9px;
  font-size: 0.97rem;
  font-family: inherit;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.alta-field input:focus,
.alta-field textarea:focus {
  outline: none;
  border-color: var(--color-orange-text, #B43A0B);
  box-shadow: 0 0 0 3px rgba(180, 58, 11, 0.12);
}

.alta-field.has-error input,
.alta-field.has-error textarea {
  border-color: #d23030;
}

.alta-field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #d23030;
  font-weight: 600;
}

/* ─── Disclaimer + resumen ───────────────────────────────────── */
.alta-disclaimer {
  margin-top: 18px;
  padding: 12px 14px;
  background: #f4f4f0;
  border-radius: 8px;
  font-size: 0.86rem;
  color: #555;
  line-height: 1.55;
}

.alta-summary {
  background: #f9f9f5;
  border: 1px solid #e8e8e2;
  border-radius: 10px;
  padding: 18px;
  margin: 16px 0 24px;
}

.alta-summary-row {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.93rem;
  flex-wrap: wrap;
}

.alta-summary-row:last-child {
  border-bottom: 0;
}

.alta-summary-row strong {
  min-width: 130px;
  color: #444;
}

/* ─── Consentimientos ─────────────────────────────────────────── */
.alta-consents {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.alta-consents label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  padding: 12px 14px;
  background: #f9f9f5;
  border: 1px solid #e8e8e2;
  border-radius: 8px;
  transition: all 0.15s;
}

.alta-consents label:hover {
  border-color: var(--color-orange-text, #B43A0B);
}

.alta-consents label.has-error {
  border-color: #d23030;
  background: #fff4f4;
}

.alta-consents input {
  margin-top: 3px;
  accent-color: var(--color-orange-text, #B43A0B);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.alta-consents span {
  font-size: 0.91rem;
  line-height: 1.55;
  color: #1a1a1a;
}

.alta-consents a {
  color: var(--color-orange-text, #B43A0B);
  text-decoration: underline;
}

/* ─── Errores ─────────────────────────────────────────────────── */
.alta-error {
  margin-top: 12px;
  padding: 10px 12px;
  background: #fff4f4;
  border-left: 3px solid #d23030;
  color: #a01f1f;
  font-size: 0.91rem;
  border-radius: 4px;
}

/* ─── Navegación ──────────────────────────────────────────────── */
.alta-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0e9;
  gap: 12px;
}

.alta-nav .btn {
  padding: 12px 28px;
  font-size: 0.97rem;
}

/* ─── Pantalla de éxito ──────────────────────────────────────── */
.alta-success {
  background: white;
  border-radius: 18px;
  padding: 60px 36px;
  text-align: center;
  border: 1px solid #e8e8e2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.alta-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #2ea043;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
}

.alta-success h2 {
  margin: 0 0 14px;
  font-size: 1.8rem;
  font-weight: 800;
}

.alta-success p {
  max-width: 460px;
  margin: 0 auto;
  color: #444;
  font-size: 1rem;
  line-height: 1.65;
}

/* ─── FAQs página /alta ───────────────────────────────────────── */
.alta-faq {
  padding: 60px 0 100px;
  background: #fafaf7;
}

.alta-faq h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
}

.alta-faq details {
  background: white;
  border: 1px solid #e8e8e2;
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 14px 18px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.alta-faq summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  color: #1a1a1a;
}

.alta-faq summary:hover {
  color: var(--color-orange-text, #B43A0B);
}

.alta-faq details[open] summary {
  margin-bottom: 10px;
  color: var(--color-orange-text, #B43A0B);
}

.alta-faq p {
  color: #444;
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0;
}

.alta-faq a {
  color: var(--color-orange-text, #B43A0B);
  text-decoration: underline;
}
