/* ============================================================
   ASC – Formulario de Registro  v2.0
   ============================================================ */
:root {
  --asc-primary: #003087;
  --asc-blue:    #0057b8;
  --asc-cyan:    #00aeef;
  --asc-ok:      #16a34a;
  --asc-error:   #dc2626;
  --asc-border:  #d1d5db;
  --asc-bg:      #f8fafc;
  --asc-radius:  10px;
  --asc-font:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --asc-shadow:  0 2px 12px rgba(0,48,135,.08);
}

/* ── Wrap ── */
.asc-wrap { max-width: 780px; margin: 0 auto; font-family: var(--asc-font); color: #1e293b; }

/* ════════════════════════════════════════
   BENEFICIOS
════════════════════════════════════════ */
.asc-benefits { margin-bottom: 32px; }
.asc-benefits-title { font-size: 1.1rem; font-weight: 700; color: var(--asc-primary); margin: 0 0 14px; text-align: center; }
.asc-benefits-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media(max-width:600px){ .asc-benefits-grid { grid-template-columns: repeat(2,1fr); } }
.asc-benefit-card { background: #fff; border: 1px solid var(--asc-border); border-radius: var(--asc-radius); padding: 16px 12px; text-align: center; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--asc-shadow); }
.asc-benefit-icon { font-size: 28px; }
.asc-benefit-card strong { font-size: 13px; color: var(--asc-primary); }
.asc-benefit-card span { font-size: 12px; color: #6b7280; line-height: 1.4; }

/* ════════════════════════════════════════
   STEPPER
════════════════════════════════════════ */
.asc-stepper { display: flex; align-items: center; margin-bottom: 24px; gap: 0; }
.asc-step-item { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 0 0 auto; }
.asc-step-line { flex: 1; height: 2px; background: var(--asc-border); margin: 0 8px; margin-bottom: 20px; transition: background .3s; }
.asc-step-circle { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--asc-border); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #9ca3af; transition: all .3s; }
.asc-step-item span { font-size: 11px; color: #9ca3af; white-space: nowrap; transition: color .3s; }
.asc-step-item.active .asc-step-circle { border-color: var(--asc-primary); background: var(--asc-primary); color: #fff; }
.asc-step-item.active span { color: var(--asc-primary); font-weight: 600; }
.asc-step-item.done .asc-step-circle { border-color: var(--asc-ok); background: var(--asc-ok); color: #fff; }
.asc-step-item.done .asc-step-circle::after { content: '✓'; }
.asc-step-item.done .asc-step-circle { font-size: 0; }
.asc-step-item.done span { color: var(--asc-ok); }
.asc-step-item.done ~ .asc-step-line { background: var(--asc-ok); }
@media(max-width:480px){ .asc-step-item span { display: none; } }

/* ════════════════════════════════════════
   PANEL DE PASO
════════════════════════════════════════ */
.asc-step-panel { display: none; background: #fff; border: 1px solid var(--asc-border); border-radius: var(--asc-radius); padding: 28px 28px 24px; box-shadow: var(--asc-shadow); animation: ascFadeIn .25s ease; }
.asc-step-panel.active { display: block; }
@keyframes ascFadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

.asc-panel-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.asc-panel-icon { font-size: 32px; line-height: 1; }
.asc-panel-header h3 { margin: 0 0 2px; font-size: 1.05rem; color: var(--asc-primary); }
.asc-panel-header p { margin: 0; font-size: 13px; color: #6b7280; }

/* ════════════════════════════════════════
   CAMPOS
════════════════════════════════════════ */
.asc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.asc-full { grid-column: 1/-1; }
@media(max-width:580px){ .asc-fields { grid-template-columns: 1fr; } }

.asc-group { display: flex; flex-direction: column; gap: 5px; }
.asc-group label { font-size: 13px; font-weight: 600; color: #374151; }

.asc-input-wrap { position: relative; }
.asc-input-wrap input,
.asc-input-wrap select { width: 100%; padding: 10px 36px 10px 13px; border: 1.5px solid var(--asc-border); border-radius: 7px; font-size: 14px; font-family: var(--asc-font); background: #fff; color: #1e293b; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.asc-input-wrap select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23888' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }
.asc-input-wrap input:focus,
.asc-input-wrap select:focus { outline: none; border-color: var(--asc-blue); box-shadow: 0 0 0 3px rgba(0,87,184,.12); }
.asc-input-icon { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-size: 14px; pointer-events: none; transition: color .2s; }
.asc-field-ok .asc-input-wrap input,
.asc-field-ok .asc-input-wrap select { border-color: var(--asc-ok); }
.asc-field-ok .asc-input-icon { color: var(--asc-ok); }
.asc-field-error .asc-input-wrap input,
.asc-field-error .asc-input-wrap select { border-color: var(--asc-error); }
.asc-field-error .asc-input-icon { color: var(--asc-error); }
.asc-field-msg { font-size: 12px; min-height: 16px; }

/* ════════════════════════════════════════
   ÁREA DE INTERÉS — CARDS
════════════════════════════════════════ */
.asc-area-section { margin-bottom: 8px; }
.asc-area-label { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.asc-area-label small { font-size: 11px; font-weight: 400; color: #9ca3af; }
.asc-area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
@media(max-width:480px){ .asc-area-grid { grid-template-columns: repeat(2,1fr); } }

.asc-area-card { cursor: pointer; }
.asc-area-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.asc-area-inner { border: 1.5px solid var(--asc-border); border-radius: 8px; padding: 10px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 5px; background: #fff; transition: all .2s; }
.asc-area-card:hover .asc-area-inner { border-color: var(--asc-blue); background: #f0f6ff; }
.asc-area-card.selected .asc-area-inner { border-color: var(--asc-primary); background: #eff3ff; box-shadow: 0 0 0 2px rgba(0,48,135,.15); }
.asc-area-emoji { font-size: 22px; line-height: 1; }
.asc-area-name { font-size: 12px; font-weight: 600; color: #374151; line-height: 1.3; }
.asc-area-card.selected .asc-area-name { color: var(--asc-primary); }

/* ════════════════════════════════════════
   SWITCH CARDS (paso 3)
════════════════════════════════════════ */
.asc-switch-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.asc-switch-card { display: block; border: 1.5px solid var(--asc-border); border-radius: 9px; cursor: pointer; transition: all .2s; background: #fff; }
.asc-switch-card:hover { border-color: var(--asc-blue); }
.asc-switch-card.asc-switch-on { border-color: var(--asc-primary); background: #f5f8ff; }
.asc-switch-card.asc-switch-card-required { border-style: dashed; }
.asc-switch-card.asc-switch-card-alert { border-color: var(--asc-error); border-style: solid; background: #fff5f5; animation: ascShake .3s; }
@keyframes ascShake { 0%,100%{transform:none} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }

.asc-switch-card-body { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; gap: 16px; }
.asc-switch-card-text { flex: 1; }
.asc-switch-card-text strong { display: block; font-size: 14px; color: #1e293b; margin-bottom: 3px; }
.asc-switch-card-text span { font-size: 12px; color: #6b7280; line-height: 1.4; }

.asc-toggle-wrap input { position: absolute; opacity: 0; width: 0; height: 0; }
.asc-toggle { width: 46px; height: 26px; background: #cbd5e1; border-radius: 999px; position: relative; flex-shrink: 0; transition: background .25s; }
.asc-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s; }
.asc-switch-on .asc-toggle { background: var(--asc-primary); }
.asc-switch-on .asc-toggle::after { transform: translateX(20px); }
.asc-toggle-wrap input:focus + .asc-toggle { box-shadow: 0 0 0 3px rgba(0,87,184,.2); }

/* ════════════════════════════════════════
   NAVEGACIÓN ENTRE PASOS
════════════════════════════════════════ */
.asc-nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid #f0f0f0; gap: 12px; }
.asc-btn { padding: 11px 24px; border-radius: 7px; font-size: 14px; font-weight: 700; font-family: var(--asc-font); cursor: pointer; border: none; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.asc-btn-next, .asc-btn-submit { background: var(--asc-primary); color: #fff; }
.asc-btn-next:hover, .asc-btn-submit:hover:not(:disabled) { background: var(--asc-blue); }
.asc-btn-back { background: #f1f5f9; color: #374151; border: 1px solid var(--asc-border); }
.asc-btn-back:hover { background: #e2e8f0; }
.asc-btn:disabled { opacity: .65; cursor: not-allowed; }
.asc-arrow { font-size: 16px; }
.asc-obligatorio { font-size: 12px; color: #9ca3af; margin: 10px 0 0; text-align: right; }

/* ════════════════════════════════════════
   MENSAJE FINAL
════════════════════════════════════════ */
.asc-mensaje { border-radius: var(--asc-radius); padding: 20px 24px; line-height: 1.6; }
.asc-success { background: #f0fdf4; border: 1px solid #86efac; color: #14532d; }
.asc-error   { background: #fef2f2; border: 1px solid #fca5a5; color: var(--asc-error); }

.req { color: #dc2626; }
