/* ===== Variables ===== */
:root {
    --primary: #0066cc;
    --primary-dark: #004d99;
    --primary-light: #e6f0ff;
    --secondary: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --purple: #9c27b0;
    --orange: #ff9800;

    --bg-primary: #f5f7fa;
    --bg-white: #ffffff;
    --bg-dark: #1a1f36;

    --text-primary: #1a1f36;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;

    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);

    --sidebar-width: 260px;
    --header-height: 70px;
    --radius: 12px;
    --radius-sm: 8px;
}

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
}

/* ===== Screens ===== */
.screen {
    display: none !important;
}

#login-screen.active {
    display: flex !important;
}

#app-screen.active {
    display: flex !important;
}

/* ===== Login Screen ===== */
#login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 20px;
}

.login-container {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.logo-img {
    max-width: 280px;
    height: auto;
}

.logo-img-sidebar {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.logo-img-credential {
    max-width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
}

.login-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: all 0.3s;
}

.login-form input:focus,
.login-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.login-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.login-links a {
    color: var(--primary);
    font-size: 14px;
}

.login-links a:hover {
    text-decoration: underline;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    border: none;
    transition: all 0.3s;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ===== Sidebar ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-dark);
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header .logo i {
    font-size: 28px;
    color: var(--primary);
}

.sidebar-header .logo span {
    font-size: 20px;
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Main Content ===== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    flex: 1;
}

/* ===== Header ===== */
.header {
    height: var(--header-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 30px;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
}

.header-title {
    flex: 1;
}

.header-title h2 {
    font-size: 20px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    padding: 8px;
}

.icon-btn .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-menu span {
    font-weight: 500;
}

/* ===== Content ===== */
.content {
    padding: 30px;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 600;
}

/* ===== Dashboard ===== */
.welcome-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.welcome-text h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.welcome-text p {
    opacity: 0.9;
}

.welcome-icon {
    font-size: 64px;
    opacity: 0.3;
}

.quick-actions {
    margin-bottom: 30px;
}

.quick-actions h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.action-card {
    background: var(--bg-white);
    border: none;
    padding: 24px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.action-card i {
    font-size: 32px;
    color: var(--primary);
}

.action-card span {
    font-weight: 500;
    color: var(--text-primary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-icon.green { background: #e8f5e9; color: var(--success); }
.stat-icon.orange { background: #fff3e0; color: var(--orange); }
.stat-icon.purple { background: #f3e5f5; color: var(--purple); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.recent-activity h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.activity-list {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.activity-icon.green { background: var(--success); }
.activity-icon.blue { background: var(--primary); }
.activity-icon.orange { background: var(--orange); }

.activity-info {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    display: block;
}

.activity-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

.activity-time {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

/* ===== Family Grid ===== */
.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.family-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s;
}

.family-card:hover {
    transform: translateY(-4px);
}

.family-card.titular {
    border: 2px solid var(--primary);
}

.family-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.family-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.family-card h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.family-dni {
    color: var(--text-secondary);
    font-size: 14px;
}

.family-relation {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.family-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.family-status.active {
    background: #e8f5e9;
    color: var(--success);
}

.family-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

/* ===== Credentials ===== */
.credentials-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
}

.credential-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.credential-front {
    background: linear-gradient(135deg, #1a1f36 0%, #2d3250 100%);
    color: white;
    padding: 24px;
}

.credential-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.credential-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.credential-logo i {
    font-size: 24px;
    color: var(--primary);
}

.credential-logo span {
    font-size: 18px;
    font-weight: 700;
}

.credential-type {
    background: var(--primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.credential-body {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.credential-photo img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.credential-info h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.credential-info p {
    font-size: 14px;
    margin-bottom: 6px;
    opacity: 0.9;
}

.credential-qr {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 16px;
}

.qr-placeholder {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-placeholder i {
    font-size: 60px;
    color: var(--text-primary);
}

.credential-qr span {
    font-size: 14px;
    opacity: 0.8;
}

.credential-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.credential-validity {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    opacity: 0.8;
}

.credential-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.credential-status.valid {
    background: var(--success);
}

.credential-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
}

.credential-actions .btn {
    flex: 1;
}

.credential-selector {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.credential-selector h4 {
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.selector-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selector-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-primary);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
}

.selector-item:hover {
    background: var(--primary-light);
}

.selector-item.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.selector-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.selector-item span {
    font-size: 14px;
    font-weight: 500;
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.tab {
    padding: 12px 24px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===== Appointments ===== */
.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.appointment-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
}

.appointment-card.past {
    opacity: 0.7;
}

.appointment-date {
    width: 70px;
    text-align: center;
    padding: 12px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

.appointment-date .day {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.appointment-date .month {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

.appointment-info {
    flex: 1;
}

.appointment-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.appointment-info p {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.appointment-info p i {
    width: 16px;
    color: var(--text-muted);
}

.appointment-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.appointment-status.confirmed {
    background: #e8f5e9;
    color: var(--success);
}

.appointment-status.pending {
    background: #fff3e0;
    color: var(--orange);
}

.appointment-status.completed {
    background: var(--primary-light);
    color: var(--primary);
}

.appointment-actions {
    display: flex;
    gap: 8px;
}

/* ===== Orders ===== */
.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.order-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.order-number {
    font-weight: 600;
    color: var(--text-secondary);
}

.order-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.order-status.approved {
    background: #e8f5e9;
    color: var(--success);
}

.order-status.used {
    background: var(--primary-light);
    color: var(--primary);
}

.order-body h4 {
    font-size: 16px;
    margin-bottom: 12px;
}

.order-body p {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.order-body p i {
    width: 16px;
    color: var(--text-muted);
}

.order-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.order-detail-item {
    background: var(--bg-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

.order-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* ===== Authorizations ===== */
.auth-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow);
}

.auth-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.auth-icon.approved {
    background: #e8f5e9;
    color: var(--success);
}

.auth-icon.pending {
    background: #fff3e0;
    color: var(--orange);
}

.auth-icon.rejected {
    background: #ffebee;
    color: var(--danger);
}

.auth-info {
    flex: 1;
}

.auth-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.auth-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.auth-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-info > p {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.auth-progress {
    margin-top: 12px;
}

.progress-bar {
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

.auth-progress span {
    font-size: 12px;
    color: var(--text-muted);
}

.auth-rejection-reason {
    margin-top: 8px;
    padding: 8px 12px;
    background: #ffebee;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--danger);
}

.auth-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-status-badge.approved {
    background: #e8f5e9;
    color: var(--success);
}

.auth-status-badge.pending {
    background: #fff3e0;
    color: var(--orange);
}

.auth-status-badge.rejected {
    background: #ffebee;
    color: var(--danger);
}

.auth-actions {
    display: flex;
    gap: 8px;
}

/* ===== Reimbursements ===== */
.reimbursement-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
}

.summary-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.summary-icon.blue { background: var(--primary-light); color: var(--primary); }
.summary-icon.green { background: #e8f5e9; color: var(--success); }
.summary-icon.purple { background: #f3e5f5; color: var(--purple); }

.summary-info {
    display: flex;
    flex-direction: column;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
}

.summary-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.reimbursement-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reimbursement-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.reimbursement-status {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.reimbursement-status.processing { background: var(--primary); }
.reimbursement-status.approved { background: var(--success); }
.reimbursement-status.paid { background: var(--purple); }

.reimbursement-info {
    flex: 1;
    min-width: 200px;
}

.reimbursement-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.reimbursement-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.reimbursement-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reimbursement-info > p {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.reimbursement-amount {
    text-align: right;
}

.amount-requested {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
}

.amount-approved {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--success);
}

.reimbursement-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.reimbursement-badge.processing { background: var(--primary-light); color: var(--primary); }
.reimbursement-badge.approved { background: #e8f5e9; color: var(--success); }
.reimbursement-badge.paid { background: #f3e5f5; color: var(--purple); }

/* ===== Modals ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

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

.file-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.file-label i {
    font-size: 32px;
    color: var(--primary);
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-dark);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== Notifications Dropdown ===== */
.notifications-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
}

.notifications-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.notifications-header h4 {
    font-size: 16px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
}

.btn-link:hover {
    text-decoration: underline;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: var(--bg-primary);
}

.notification-item.unread {
    background: var(--primary-light);
}

.notification-item.unread:hover {
    background: #cce0ff;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.green { background: #e8f5e9; color: var(--success); }
.notification-icon.blue { background: var(--primary-light); color: var(--primary); }
.notification-icon.orange { background: #fff3e0; color: var(--orange); }
.notification-icon.purple { background: #f3e5f5; color: var(--purple); }

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    font-size: 14px;
    margin-bottom: 2px;
}

.notification-desc {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
}

.notifications-footer {
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.notifications-footer a {
    color: var(--primary);
    font-size: 14px;
}

.notifications-footer a:hover {
    text-decoration: underline;
}

/* ===== Afiliado Detail Modal ===== */
.modal-lg {
    max-width: 800px;
}

.afiliado-detail-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.afiliado-detail-header img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-light);
}

.afiliado-detail-info h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.badge-relation {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-status.active {
    background: #e8f5e9;
    color: var(--success);
}

.badge-status.inactive {
    background: #ffebee;
    color: var(--danger);
}

.afiliado-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.detail-section {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-sm);
}

.detail-section h4 {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.detail-value {
    font-weight: 500;
    font-size: 13px;
}

/* ===== Form Sections ===== */
.form-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h4 {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-help {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== Header Actions Position ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .credentials-container {
        grid-template-columns: 1fr;
    }

    .credential-selector {
        order: -1;
    }

    .selector-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .selector-item {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 20px;
    }

    .header {
        padding: 0 16px;
    }

    .user-menu span {
        display: none;
    }

    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .appointment-card {
        flex-wrap: wrap;
    }

    .appointment-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .auth-card {
        flex-wrap: wrap;
    }

    .auth-status-badge {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .reimbursement-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .reimbursement-amount {
        text-align: left;
        margin-top: 12px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .credential-body {
        flex-direction: column;
        text-align: center;
    }

    .credential-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 24px;
    }

    .welcome-card {
        flex-direction: column;
        text-align: center;
    }

    .welcome-icon {
        display: none;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab {
        flex: 1;
        text-align: center;
    }

    .modal-content {
        margin: 10px;
    }

    /* Stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Quick actions */
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Family members */
    .family-member-card {
        flex-direction: column;
        text-align: center;
    }

    .member-actions {
        width: 100%;
        justify-content: center;
    }

    /* Notifications dropdown */
    .notifications-dropdown {
        width: calc(100vw - 20px);
        right: -60px;
    }

    /* Order cards */
    .order-card {
        flex-direction: column;
    }

    .order-info {
        width: 100%;
    }

    .order-status {
        width: 100%;
        text-align: center;
        padding-top: 12px;
        border-top: 1px dashed var(--border-color);
    }

    /* Login improvements */
    .login-form .form-group label {
        font-size: 13px;
    }

    .login-links {
        flex-direction: column;
        gap: 8px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .credential-card {
        padding: 16px;
    }

    .credential-type {
        font-size: 10px;
    }

    .credential-name {
        font-size: 16px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ===== Password Recovery Modal Styles ===== */

.modal-content.modal-sm {
    max-width: 420px;
}

.recuperar-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.recuperar-icon i {
    font-size: 36px;
    color: var(--primary);
}

.recuperar-descripcion {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.recuperar-success {
    text-align: center;
    padding: 10px 0;
}

.recuperar-success .success-icon {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.recuperar-success .success-icon i {
    font-size: 40px;
    color: var(--success);
}

.recuperar-success h4 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.recuperar-success > p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.recuperar-email {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.recuperar-instrucciones {
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 24px;
}

.recuperar-instrucciones p {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.recuperar-instrucciones p:last-child {
    margin-bottom: 0;
}

.recuperar-instrucciones i {
    color: var(--primary);
    width: 16px;
}

.recuperar-reenviar {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
}

.recuperar-reenviar strong {
    color: var(--primary);
}

.recuperar-reenviar:hover strong {
    text-decoration: underline;
}

/* ===== Registration Wizard Styles ===== */

/* Wizard Steps */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.wizard-step .step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-primary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wizard-step.active .step-number {
    background: var(--primary);
    color: white;
}

.wizard-step.completed .step-number {
    background: var(--success);
    color: white;
}

.wizard-step.completed .step-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.wizard-step .step-info {
    display: flex;
    flex-direction: column;
}

.wizard-step .step-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.wizard-step .step-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.wizard-connector {
    width: 60px;
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.wizard-connector.completed {
    background: var(--success);
}

/* Wizard Etapa */
.wizard-etapa {
    animation: fadeIn 0.3s ease;
}

/* DNI Upload Section */
.dni-upload-section h4,
.section-afiliacion h4,
.contact-section h4,
.registro-resumen h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dni-upload-section h4 i,
.section-afiliacion h4 i,
.contact-section h4 i,
.registro-resumen h4 i {
    color: var(--primary);
}

.section-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.dni-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .dni-upload-grid {
        grid-template-columns: 1fr;
    }
}

.dni-upload-card {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.dni-upload-card:hover {
    border-color: var(--primary);
}

.dni-upload-card.uploaded {
    border-color: var(--success);
    border-style: solid;
}

.dni-upload-label {
    display: block;
    cursor: pointer;
    position: relative;
}

.dni-preview {
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.dni-preview i {
    font-size: 40px;
    color: var(--text-muted);
}

.dni-preview img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.dni-upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 102, 204, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.dni-upload-label:hover .dni-upload-overlay {
    opacity: 1;
}

.dni-upload-overlay i {
    font-size: 28px;
}

.dni-status {
    padding: 10px;
    text-align: center;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.status-pending {
    color: var(--text-muted);
    font-size: 13px;
}

.status-pending i {
    margin-right: 6px;
}

.status-uploaded {
    color: var(--success);
    font-size: 13px;
    font-weight: 500;
}

.status-uploaded i {
    margin-right: 6px;
}

.btn-validate {
    margin-top: 16px;
}

/* RENAPER Result */
.renaper-result {
    margin-top: 24px;
    border: 2px solid var(--success);
    border-radius: var(--radius);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.renaper-header {
    background: var(--success);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.renaper-header i {
    font-size: 18px;
}

.renaper-data {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: #f8fff8;
}

@media (max-width: 500px) {
    .renaper-data {
        grid-template-columns: 1fr;
    }
}

.renaper-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.renaper-field .field-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.renaper-field .field-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* RENAPER Afiliacion Badges */
.renaper-afiliacion {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: white;
    border-top: 1px solid #c8e6c9;
}

@media (max-width: 600px) {
    .renaper-afiliacion {
        flex-direction: column;
    }
}

.afiliacion-badge {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

.afiliacion-badge > i {
    font-size: 20px;
    color: var(--primary);
}

.afiliacion-info {
    display: flex;
    flex-direction: column;
}

.afiliacion-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.afiliacion-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.renaper-note {
    padding: 12px 16px;
    background: #fff8e1;
    border-top: 1px solid #c8e6c9;
    font-size: 13px;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 8px;
}

.renaper-note i {
    font-size: 14px;
}

/* Section Afiliacion */
.section-afiliacion {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

/* Contact Section */
.contact-section {
    margin-bottom: 24px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-method-card.active {
    border-color: var(--primary);
}

.contact-method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-primary);
}

.contact-method-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-method-info > i {
    font-size: 24px;
    color: var(--primary);
    width: 32px;
    text-align: center;
}

.contact-method-info > i.fa-whatsapp {
    color: #25D366;
}

.method-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.required-badge {
    display: inline-block;
    background: var(--danger);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 500;
    vertical-align: middle;
}

.optional-badge {
    display: inline-block;
    background: var(--text-muted);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 500;
    vertical-align: middle;
}

.contact-method-card.required {
    border-color: var(--primary);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.input-with-icon input {
    padding-left: 44px;
}

.field-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* WhatsApp Status */
.whatsapp-status {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.whatsapp-checking {
    background: var(--bg-primary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-found {
    background: #e8f5e9;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-found i {
    font-size: 18px;
    color: #25D366;
}

.whatsapp-not-found {
    background: #fff3e0;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* WhatsApp Badge in detail view */
.whatsapp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #25D366;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 500;
}

.whatsapp-badge i {
    font-size: 12px;
}

.no-whatsapp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--text-muted);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 500;
}

.method-desc {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.contact-method-body {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

.contact-preferences {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border-color);
    border-radius: 28px;
    transition: all 0.3s ease;
}

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

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* Registro Resumen */
.registro-resumen {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius);
}

.resumen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

@media (max-width: 500px) {
    .resumen-grid {
        grid-template-columns: 1fr;
    }
}

.resumen-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.resumen-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resumen-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Button Success */
.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #218838;
}

/* Responsive Wizard */
@media (max-width: 600px) {
    .wizard-steps {
        flex-direction: column;
        gap: 16px;
    }

    .wizard-connector {
        width: 3px;
        height: 30px;
        margin: 0;
    }

    .wizard-step {
        width: 100%;
        justify-content: center;
    }
}
