:root { 
    --brand: #6366f1; 
    --brand-dark: #4f46e5; 
    --bg-main: #f1f5f9; 
}

body { 
    background: var(--bg-main); 
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent; 
}

/* Estilo tipo App Móvil Flutter / Cards flotantes */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-nav {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.app-nav .navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.app-nav .nav-link {
    border-radius: 0.75rem;
    padding: 0.5rem 1rem !important;
    transition: background 0.2s;
}

.app-nav .nav-link.active, .app-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Botones Pro estilo Material Design / Flutter */
.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    border-radius: 0.85rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

/* Formularios modernos */
.form-control, .form-select {
    border-radius: 0.85rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    background-color: #f8fafc;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    background-color: #fff;
}

/* Caja de carga de fotos estilo App */
.photo-upload-container {
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    background: #f8fafc;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.photo-upload-container:hover {
    border-color: var(--brand);
    background: #f1f5f9;
}

.photo-upload-container input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.preview-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.85rem;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Login Pro */
.login-body {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card {
    border-radius: 1.5rem;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}