/* --- MUROTECH Register - Modern SaaS Aesthetic --- */

/* Reuso de estilos base de login para coherencia */
/* --- Estructura Base de Registro --- */
.reg-body {
    background: var(--grad-hero);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* --- Contenedor Principal --- */
.register-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

/* --- Tarjeta Principal de Registro --- */
.register-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-premium);
    padding: var(--space-10);
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Logo Alignment */
.auth-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.logo-container {
    width: 64px;
    height: 64px;
    background: var(--grad-accent);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    margin: 0 auto var(--space-4) auto;
    box-shadow: 0 8px 16px rgba(255, 122, 0, 0.2);
}

/* --- Secciones del Formulario --- */
.register-section {
    background: #ffffff !important;
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    margin-bottom: var(--space-5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all var(--transition-normal);
}

.register-section:hover {
    background: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.register-section .premium-input {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    padding-top: var(--space-3) !important;
    padding-bottom: var(--space-3) !important;
}

.register-section .premium-input:focus {
    background: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-blue) !important;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.section-title i {
    color: var(--primary);
    background: var(--primary-light);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 1rem;
}

/* --- Grids de Formulario --- */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-grid-id {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.id-input-group {
    display: flex;
    gap: 10px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.form-grid-full {
    grid-column: span 2;
    margin-bottom: var(--space-3);
}

/* --- Drag & Drop / File Upload --- */
.file-upload-zone {
    grid-column: span 2;
    border: 2px dashed var(--murotech-gray-300);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-normal);
    background: rgba(255, 255, 255, 0.3);
}

.file-upload-zone:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* --- Botones de Registro --- */
.register-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-back {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-back:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

/* --- Actividades Económicas --- */
.activity-item {
    background: white;
    border: 1px solid var(--murotech-gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    animation: fadeIn 0.3s ease-out;
}

.activity-info {
    flex: 1;
}

.activity-code {
    font-weight: 800;
    color: var(--primary);
    font-size: 0.85rem;
    margin-right: var(--space-2);
}

.activity-desc {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.activity-badge {
    font-size: 0.7rem;
    background: var(--success-light);
    color: var(--success);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
}

.btn-remove-act {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.btn-remove-act:hover {
    transform: scale(1.2);
}

.compact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    margin-left: 12px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Registro --- */
@media (max-width: 768px) {
    .form-grid-2, .form-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .register-card {
        padding: var(--space-6);
    }
    
    .register-section {
        padding: var(--space-6);
    }
    
    .form-grid-full {
        grid-column: span 1;
    }

    .form-grid-2 > .input-group:has(.btn-social) {
        flex-direction: column;
    }
}

/* Badge de Detección de ID - Feedback Visual Real */
.id-type-badge {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--murotech-gray-400);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    pointer-events: none;
    transition: all var(--transition-normal);
    opacity: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: var(--shadow-sm);
}

.pulse-once {
    animation: pulseBadge 0.5s ease-out;
}

@keyframes pulseBadge {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.1); box-shadow: 0 0 10px rgba(14, 165, 233, 0.4); }
    100% { transform: translateY(-50%) scale(1); }
}

/* Ajustes de Layout para el Badge */
.id-input-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.id-input-group .premium-input {
    padding-right: 100px !important; /* Espacio reservado para el badge */
}
