/* public/css/registro.css - DISEÑO PROFESIONAL COMPLETO */

/* ===================================
   SLIDER INFORMATIVO
   =================================== */

.slider-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.slider-content {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--color-gray-50) 0%, white 100%);
    border-bottom: 1px solid var(--color-gray-200);
}

.slider-logo {
    font-size: 72px;
    margin-bottom: 1rem;
}

.slider-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
}

.slider-header p {
    font-size: 1rem;
    color: var(--color-gray-600);
}

.slider-body {
    padding: 2rem;
}

.slider-slides {
    position: relative;
    min-height: 400px;
}

.slide {
    display: none;
    animation: fadeSlide 0.4s ease;
}

.slide.active {
    display: block;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-icon {
    font-size: 80px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.slide h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
    text-align: center;
}

.slide p {
    font-size: 1rem;
    color: var(--color-gray-600);
    line-height: 1.7;
    text-align: center;
    margin-bottom: 1.5rem;
}

.slide-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-gray-50);
    border-radius: 0.75rem;
    border: 1px solid var(--color-gray-200);
}

.feature-icon {
    font-size: 24px;
}

.feature span:last-child {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-700);
}

.benefits-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.benefits-list li {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--color-gray-50);
    border-radius: 0.75rem;
    border: 1px solid var(--color-gray-200);
    transition: all 0.2s ease;
}

.benefits-list li:hover {
    background: white;
    border-color: var(--color-primary);
    transform: translateX(5px);
}

.benefit-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.benefit-content {
    flex: 1;
}

.benefit-content strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 0.25rem;
}

.benefit-content p {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin: 0;
    text-align: left;
}

.slider-navigation {
    margin-top: 2rem;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gray-300);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active {
    background: var(--color-primary);
    width: 32px;
    border-radius: 6px;
}

.slider-controls {
    display: flex;
    gap: 1rem;
}

.slider-controls button {
    flex: 1;
}

.btn-secondary {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-700);
    background: white;
    border: 2px solid var(--color-gray-300);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-400);
}

/* ===================================
   INDICADOR DE PROGRESO
   =================================== */

.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 2rem;
    background: linear-gradient(180deg, var(--color-gray-50) 0%, white 100%);
    border-bottom: 1px solid var(--color-gray-200);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-200);
    color: var(--color-gray-500);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(163, 55, 55, 0.3);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-500);
    text-align: center;
}

.progress-step.active .step-label {
    color: var(--color-primary);
}

.progress-line {
    width: 80px;
    height: 2px;
    background: var(--color-gray-200);
    margin: 0 1rem;
}

/* ===================================
   PASOS DEL FORMULARIO - CRÍTICO
   =================================== */

.paso-form {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.paso-form.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    animation: fadeInStep 0.4s ease forwards;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   SECCIONES DEL FORMULARIO
   =================================== */

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* ===================================
   ELEMENTOS DEL FORMULARIO
   =================================== */

.label-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--color-primary);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}

.form-helper {
    display: block;
    font-size: 0.75rem;
    color: var(--color-gray-500);
    margin-top: 0.375rem;
}

.input-readonly {
    background: var(--color-gray-100) !important;
    cursor: not-allowed !important;
    color: var(--color-gray-600) !important;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--color-gray-400);
    pointer-events: none;
}

.input-icon svg {
    width: 100%;
    height: 100%;
}

.input-wrapper input {
    padding-left: 42px;
}

.input-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    padding: 2px;
    color: var(--color-gray-400);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.input-toggle:hover {
    color: var(--color-gray-600);
}

.input-toggle svg {
    width: 100%;
    height: 100%;
}

/* ===================================
   INFO BOX
   =================================== */

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.info-box svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box.success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.info-box.error {
    background: #FEE2E2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.info-box strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-box p {
    font-size: 0.8125rem;
    margin: 0;
    opacity: 0.9;
}

/* ===================================
   GRID DE FORMULARIO
   =================================== */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ===================================
   CHECKBOX
   =================================== */

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 0.75rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--color-gray-700);
    line-height: 1.5;
    user-select: none;
}

.checkbox-label a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ===================================
   BOTONES
   =================================== */

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

.form-footer-text {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.5;
}

/* ===================================
   ALERTS
   =================================== */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-error {
    background: #FEE2E2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.alert-success {
    background: #D1FAE5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 640px) {
    .slider-container {
        padding: 0;
    }
    
    .slider-content {
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .slider-header {
        padding: 2rem 1.5rem 1rem;
    }
    
    .slider-logo {
        font-size: 56px;
    }
    
    .slider-header h2 {
        font-size: 1.5rem;
    }
    
    .slider-body {
        padding: 1.5rem;
    }
    
    .slide-features {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .progress-indicator {
        padding: 1rem 0.5rem 1.5rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .step-label {
        font-size: 0.6875rem;
    }
    
    .progress-line {
        width: 40px;
        margin: 0 0.5rem;
    }
    
    .auth-container {
        padding: 1.5rem;
    }
}

/* ===================================
   UTILIDADES
   =================================== */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }