*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.registro-body {
    font-family: 'Poppins', sans-serif;
    background: #0A0E17;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
    overflow-x: hidden;
}

/* Fondo decorativo igual al landing */
body.registro-body::before {
    content: '';
    position: fixed;
    top: -40%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,230,200,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
body.registro-body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,180,255,0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Wrapper principal ── */
.registro-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
}

/* ── Header con logo ── */
.registro-header {
    text-align: center;
    margin-bottom: 28px;
}
.registro-header a {
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.registro-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(0,230,200,0.5));
}
.brand-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #00E6C8;
    letter-spacing: 0.5px;
}
.brand-name span { color: #00B4FF; }
.registro-subtitle {
    font-size: 0.82rem;
    color: #6B7A9A;
    margin-top: 4px;
}

/* ── Card ── */
.registro-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0,230,200,0.12);
    border-radius: 20px;
    padding: 36px 32px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,230,200,0.04);
}

/* ── Stepper ── */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}
.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(0,230,200,0.25);
    background: rgba(0,230,200,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6B7A9A;
    transition: all 0.3s ease;
}
.step.active .step-circle {
    border-color: #00E6C8;
    background: rgba(0,230,200,0.12);
    color: #00E6C8;
    box-shadow: 0 0 16px rgba(0,230,200,0.25);
}
.step.completed .step-circle {
    border-color: #00E6C8;
    background: #00E6C8;
    color: #0A0E17;
}
.step-label {
    font-size: 0.68rem;
    color: #6B7A9A;
    font-weight: 500;
    white-space: nowrap;
}
.step.active .step-label { color: #00E6C8; }
.step.completed .step-label { color: #00E6C8; }
.step-line {
    flex: 1;
    height: 2px;
    background: rgba(0,230,200,0.12);
    margin: 0 8px;
    margin-bottom: 22px;
    min-width: 40px;
    transition: background 0.3s;
}
.step-line.done { background: rgba(0,230,200,0.4); }

/* ── Secciones del form ── */
.form-section {
    display: none;
}
.form-section.active {
    display: block;
    animation: fadeSlide 0.35s ease;
}
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #E2E8F0;
    margin-bottom: 4px;
}
.section-desc {
    font-size: 0.78rem;
    color: #6B7A9A;
    margin-bottom: 20px;
}

/* ── Form groups ── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #8B96B0;
    letter-spacing: 0.3px;
}
.form-group label span.req { color: #00E6C8; }

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0,230,200,0.15);
    border-radius: 10px;
    padding: 10px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #E2E8F0;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #3D4A63;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(0,230,200,0.5);
    box-shadow: 0 0 0 3px rgba(0,230,200,0.08);
}
.form-group input.error {
    border-color: rgba(255,80,80,0.5);
}
.form-group select option {
    background: #0F1420;
    color: #E2E8F0;
}
.form-group textarea {
    resize: vertical;
    min-height: 72px;
}

/* Input con ícono */
.input-icon-wrap {
    position: relative;
}
.input-icon-wrap input {
    padding-right: 40px;
}
.input-icon-wrap .eye-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    /* estilo visual consistente */
    color: #00f7ff;
    font-size: 0.95rem;
    text-shadow:
        0 0 5px #00f7ff,
        0 0 10px #00f7ff,
        0 0 18px #00f7ff;
    transition: all 0.25s ease;
}
.input-icon-wrap .eye-icon:hover { 
    color: #ffffff;
    text-shadow:
        0 0 8px #00f7ff,
        0 0 16px #00f7ff,
        0 0 26px #00f7ff;
}

/* Validación en tiempo real */
.field-hint {
    font-size: 0.68rem;
    color: #6B7A9A;
    display: none;
}
.field-hint.visible { display: block; }
.field-hint.ok { color: #00E6C8; }
.field-hint.err { color: #FF5050; }

/* ── Botones ── */
.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.btn-back {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0,230,200,0.2);
    background: transparent;
    color: #8B96B0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-back:hover {
    border-color: rgba(0,230,200,0.4);
    color: #00E6C8;
}
.btn-next, .btn-submit {
    flex: 2;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #00E6C8, #00B4FF);
    color: #0A0E17;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(0,230,200,0.25);
}
.btn-next:hover, .btn-submit:hover {
    opacity: 0.92;
    box-shadow: 0 6px 28px rgba(0,230,200,0.4);
}
.btn-next:active, .btn-submit:active { transform: scale(0.98); }
.btn-next:disabled, .btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Selector de solución ── */
.solucion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}
.solucion-card {
    border: 2px solid rgba(0,230,200,0.12);
    border-radius: 14px;
    padding: 18px 14px;
    cursor: pointer;
    transition: all 0.25s;
    background: rgba(255,255,255,0.02);
    text-align: center;
    position: relative;
}
.solucion-card:hover {
    border-color: rgba(0,230,200,0.35);
    background: rgba(0,230,200,0.04);
}
.solucion-card.selected {
    border-color: #00E6C8;
    background: rgba(0,230,200,0.08);
    box-shadow: 0 0 20px rgba(0,230,200,0.15);
}
.solucion-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.solucion-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
}
.solucion-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #E2E8F0;
    margin-bottom: 4px;
}
.solucion-desc {
    font-size: 0.7rem;
    color: #6B7A9A;
    line-height: 1.4;
}
.solucion-card.selected .solucion-name { color: #00E6C8; }
.check-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    background: #00E6C8;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #0A0E17;
    font-weight: 700;
}
.solucion-card.selected .check-badge { display: flex; }

/* ── Divider ── */
.divider {
    height: 1px;
    background: rgba(0,230,200,0.08);
    margin: 20px 0;
}

/* ── Footer links ── */
.registro-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.78rem;
    color: #6B7A9A;
}
.registro-footer a {
    color: #00E6C8;
    text-decoration: none;
    font-weight: 500;
}
.registro-footer a:hover { text-decoration: underline; }

/* ── Flash messages ── */
.flash-messages {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  width: auto;
  max-width: 350px;
}
.alert {
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  animation: fadeInOut 4s ease forwards;
}

.alert-success { background-color: #28a745; }
.alert-info { background-color: #17a2b8; }
.alert-warning { background-color: #ffc107; color: #000; }
.alert-danger, .alert-error { background-color: #dc3545; }

/* Modo centrado para validaciones frontend */
.flash-messages.centered {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  pointer-events: none;
}

.flash-messages.centered .alert {
  pointer-events: auto;
  min-width: 260px;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
}

/* ── Loader ── */
.loader-container {
    position: fixed;
    inset: 0;
    background: rgba(10,14,23,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 999;
}
.loader-circle {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0,230,200,0.15);
    border-top-color: #00E6C8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-logo {
    width: 40px;
    position: absolute;
    filter: drop-shadow(0 0 10px rgba(0,230,200,0.5));
}
.loader-text {
    font-size: 0.82rem;
    color: #6B7A9A;
    margin-top: 8px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .registro-card { padding: 28px 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: 1; }
    .solucion-grid { grid-template-columns: 1fr; }
}