/* 
 * Muralia KYC / Onboarding Styles 
 * Version: 2.0
 * Description: Modern, mobile-first styles for the registration wizard.
 */

:root {
    /* Brand Colors */
    --brand: #E63946;
    --brand-dark: #D62839;
    --brand-light: #fef2f2;
    
    /* Neutral Colors */
    --ink-900: #111827; /* Titles */
    --ink-500: #6B7280; /* Subtitles */
    --ink-300: #D1D5DB; /* Borders */
    --ink-100: #F3F4F6; /* Backgrounds */
    --white: #FFFFFF;
    
    /* Feedback */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;

    /* UI Utils */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- UTILITIES --- */
.m-container-narrow {
    max-width: 500px; /* Ancho optimo para formularios */
    margin: 0 auto;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, .m-title {
    font-family: 'Poppins', sans-serif;
    color: var(--ink-900);
    font-weight: 700;
}

.m-text-muted {
    color: var(--ink-500);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- INPUTS MODERNOS --- */
.m-form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.m-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--ink-900);
    font-size: 0.9rem;
}

.m-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--ink-300);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--ink-900);
}

.m-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.m-input::placeholder {
    color: #9CA3AF;
}

/* --- BUTTONS --- */
.btn-muralia {
    background: var(--brand);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%; /* Mobile first */
}

.btn-muralia:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-muralia-outline {
    background: transparent;
    border: 1px solid var(--ink-300);
    color: var(--ink-900);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.btn-muralia-outline:hover {
    background: var(--ink-100);
    border-color: var(--ink-500);
}

/* --- CARDS & CONTAINERS --- */
.m-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--ink-100);
}

/* --- SWITCH TOGGLE (iOS Style) --- */
.m-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--ink-300);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.m-switch-wrapper.active {
    border-color: var(--success);
    background: #ecfdf5; /* Green-50 */
}

.m-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.m-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E5E7EB;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: var(--success);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* --- MODAL SPECIFIC --- */
.modal-content.m-modal-modern {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.m-modal-header {
    padding: 2rem 2rem 0 2rem;
    border: none;
}

.m-modal-body {
    padding: 2rem;
}

/* --- ANIMATIONS --- */
.m-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .m-card {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .m-input {
        min-height: 48px; /* Touch target size */
    }
}
