/* Base Variables - BBVA Banking Aesthetic Theme */
:root {
    /* Fondo estilo bancario corporativo: Azul marino profundo (BBVA style) */
    --color-bg-gradient: radial-gradient(circle at top, #004481 0%, #072146 50%, #03142e 100%);
    
    /* Superficies bancarias, elegantes, limpias y sólidas */
    --color-surface: rgba(255, 255, 255, 0.08); /* Menos glass, más opaco oscuro */
    --color-surface-hover: rgba(255, 255, 255, 0.12);
    --border-glass: 1px solid rgba(255, 255, 255, 0.15);
    --border-glass-glow: 1px solid rgba(45, 204, 205, 0.5); /* #2DCCCD - Aqua BBVA */
    
    /* Textos nítidos */
    --color-text-main: #FFFFFF; 
    --color-text-muted: #A9B8C9; 
    
    /* Colores primarios - Estilo BBVA */
    --color-primary: #2DCCCD; /* Aqua característico */
    --color-primary-light: #52D8D8;
    --color-success: #63d9a1; 
    --color-accent: #1464A5; /* Azul claro */
    
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
    --neon-glow: 0 0 12px rgba(45, 204, 205, 0.2); /* Brillo conservador, bancario */
    
    --radius-sm: 6px;
    --radius-md: 10px; /* Bordes un poco más rectos y serios */
    --radius-lg: 16px;
    
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
}

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

body {
    font-family: var(--font-body);
    background: var(--color-bg-gradient);
    background-attachment: fixed;
    color: var(--color-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
    z-index: 0;
}

/* Decoración abstracta extra (glow orbs corporativos) */
body:not(.admin-body)::before, body:not(.admin-body)::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.35;
    pointer-events: none;
}
body:not(.admin-body)::before {
    width: 400px;
    height: 400px;
    background: #004481; /* Core Blue muy profundo */
    top: -50px;
    left: -100px;
}
body:not(.admin-body)::after {
    width: 450px;
    height: 450px;
    background: #1464A5; /* Light Blue */
    bottom: -100px;
    right: -100px;
}

/* Layout - Mobile First & Centered Container */
.view-container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.view-container.active {
    display: flex;
}

.hidden {
    display: none !important;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Login View */
#login-view {
    justify-content: center;
    padding-bottom: 10vh;
}

.login-card {
    background: var(--color-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-md);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.1);
}

.brand-title {
    font-size: 2rem;
    color: var(--color-text-main);
    margin-bottom: var(--spacing-xs);
    text-align: center;
    font-weight: 700;
}

.brand-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-lg);
}

/* Forms */
.input-group {
    margin-bottom: var(--spacing-sm);
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text-main);
    background: rgba(0, 0, 0, 0.15); /* Elegancia sobria */
    color-scheme: dark;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.85) sepia(1) saturate(5) hue-rotate(130deg);
    cursor: pointer;
    padding: 4px;
    opacity: 0.9;
}

select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232DCCCD%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 36px;
}

input:focus,
select:focus {
    outline: none;
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 204, 205, 0.2); /* Efecto focus conservador web moderno */
    background: rgba(0, 0, 0, 0.25);
}

/* Buttons */
.btn-primary {
    width: 100%;
    min-height: 52px;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--color-primary); /* BBVA Aqua sólido */
    color: #072146; /* Navy blue profundo para alto contraste y look bancario */
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: var(--spacing-md);
    box-shadow: 0 4px 10px rgba(45, 204, 205, 0.25);
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: #39ddde; /* Aqua un poco más brillante */
    box-shadow: 0 6px 14px rgba(45, 204, 205, 0.35);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary-small {
    padding: 10px 16px;
    min-height: 40px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: #072146;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-text {
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s ease;
}
.btn-text:hover {
    color: var(--color-accent);
    text-shadow: 0 0 8px rgba(32,178,170,0.5);
}

/* Dashboard Nav */
.dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.brand-title-small {
    font-size: 1.25rem;
    color: var(--color-primary);
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: var(--spacing-md);
}

.dashboard-header h1 {
    font-size: 1.75rem;
    margin-bottom: 4px;
}

.dashboard-header p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Credit Card Panel */
.credit-card-panel {
    background: linear-gradient(135deg, #1464A5 0%, #004481 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.credit-card-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg"><circle cx="350" cy="50" r="150" fill="white" fill-opacity="0.03" /></svg>') no-repeat top right;
    pointer-events: none;
}

.credit-card-info h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.credit-value {
    font-size: 2.5rem;
    color: #FFFFFF;
    font-weight: 600;
    letter-spacing: -1px;
}

/* Details Section */
.details-section {
    background: rgba(11, 36, 71, 0.6); /* Color sólido azul muy oscuro transparente */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-md);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 12px;
}

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

.detail-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.detail-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-main);
    text-align: right;
    word-break: break-word;
}

.status-badge {
    background: rgba(32, 178, 170, 0.2);
    color: var(--color-primary-light);
    border: 1px solid rgba(32, 178, 170, 0.4);
    box-shadow: 0 0 8px rgba(32, 178, 170, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Action Section */
.action-section {
    margin-top: auto;
    padding-bottom: var(--spacing-lg);
}

/* ═══ Glassmorphism Oscuro - Apartado de Registro ═══ */
#registration-view {
    justify-content: center;
    padding-top: var(--spacing-md);
    padding-bottom: 8vh;
}

.registration-card {
    background: rgba(4, 23, 49, 0.72);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-md);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.registration-card::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle at 50% 0%, rgba(45, 204, 205, 0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.registration-card > * {
    position: relative;
    z-index: 1;
}

.registration-card:hover {
    border-color: rgba(45, 204, 205, 0.4);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 24px rgba(45, 204, 205, 0.18);
}

.registration-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.registration-icon-badge {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(45, 204, 205, 0.2) 0%, rgba(20, 100, 165, 0.3) 100%);
    border: 1px solid rgba(45, 204, 205, 0.45);
    box-shadow: 0 0 18px rgba(45, 204, 205, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.glass-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.glass-input-wrapper input {
    padding-left: 46px;
    padding-right: 44px;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.glass-input-wrapper input:focus {
    background: rgba(0, 0, 0, 0.36);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 204, 205, 0.22), 0 0 14px rgba(45, 204, 205, 0.25);
}

.input-prefix-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.9;
}

.input-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: color 0.2s, transform 0.15s ease;
}

.input-toggle-btn:hover {
    color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.input-toggle-btn:focus {
    outline: none;
    color: var(--color-primary);
}

/* ═══ REGISTRATION FLOW STYLES (GLASSMORPHISM) ═══ */
.field-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.field-header-row label {
    margin-bottom: 0 !important;
}
.birth-mode-toggle {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2px;
    gap: 2px;
}
.mode-tab {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}
.mode-tab:hover {
    color: #FFFFFF;
}
.mode-tab.active {
    background: rgba(45, 204, 205, 0.22);
    color: var(--color-primary);
    border: 1px solid rgba(45, 204, 205, 0.45);
    box-shadow: 0 0 8px rgba(45, 204, 205, 0.2);
}
.birth-container-mode {
    transition: opacity 0.2s ease;
    width: 100%;
}
.birthdate-select-grid {
    display: grid;
    grid-template-columns: 82px 1fr 96px;
    gap: 8px;
    width: 100%;
}
@media (max-width: 380px) {
    .birthdate-select-grid {
        grid-template-columns: 70px 1fr 84px;
        gap: 6px;
    }
}
.birth-select-box {
    display: flex;
    flex-direction: column;
}
.tiny-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}
.birth-select-box select {
    width: 100%;
    height: 46px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232DCCCD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}
.birth-select-box select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(45, 204, 205, 0.25);
    background-color: rgba(0, 0, 0, 0.42);
}
.birth-select-box select option {
    background: #072146;
    color: #FFFFFF;
    padding: 8px;
}
.birth-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--color-primary);
    background: rgba(45, 204, 205, 0.08);
    border: 1px solid rgba(45, 204, 205, 0.25);
}
.email-password-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, rgba(45, 204, 205, 0.08) 0%, rgba(7, 33, 70, 0.45) 100%);
    border: 1px solid rgba(45, 204, 205, 0.28);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    margin-bottom: 10px;
    color: #E2E8F0;
    font-size: 0.8rem;
    line-height: 1.4;
}
.email-password-notice .notice-icon {
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}
.email-password-notice strong {
    color: var(--color-primary);
}
.field-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.35;
}

/* ADMIN PANEL STYLES */
.admin-body {
    background: var(--color-bg);
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
}

.admin-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-md);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.admin-header p {
    color: var(--color-text-muted);
}

.search-section {
    margin-bottom: var(--spacing-md);
}

.search-input {
    width: 100%;
    max-width: 400px;
}

.table-container {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
}

.admin-table th, .admin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(11,31,58,0.05);
    vertical-align: middle;
    word-break: break-word;
}

.admin-table th {
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table td {
    font-size: 0.88rem;
}

.admin-table td div, .admin-table td small {
    word-break: break-word;
    max-width: 200px;
}

/* Modal Styling Mobile-First */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(4, 11, 22, 0.7);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
    -webkit-overflow-scrolling: touch;
}

.modal-card {
    background: var(--color-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: var(--border-glass-glow);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(64, 224, 208, 0.1);
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}
.btn-icon:hover {
    color: var(--color-primary);
}

.token-preview {
    margin-top: -8px;
    margin-bottom: var(--spacing-sm);
    font-size: 0.85rem;
    color: var(--color-success);
    font-weight: 600;
}

/* Feedbacks */
.error-message {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
    text-align: center;
    backdrop-filter: blur(6px);
}

.feedback-message {
    background: rgba(64, 224, 208, 0.15);
    color: #34D399;
    border: 1px solid rgba(64, 224, 208, 0.3);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    text-align: center;
    font-weight: 500;
    backdrop-filter: blur(6px);
}

/* Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 11, 20, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Privacy Modal Styling */
.privacy-modal-card {
    max-width: 540px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
}

.privacy-scroll-body {
    max-height: 52vh;
    overflow-y: auto;
    padding: 16px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.privacy-scroll-body h1, 
.privacy-scroll-body h2, 
.privacy-scroll-body h3,
.privacy-scroll-body strong {
    color: var(--color-text-main);
}

.privacy-scroll-body h1, 
.privacy-scroll-body h2, 
.privacy-scroll-body h3 {
    margin-top: 14px;
    margin-bottom: 6px;
}

.privacy-scroll-body h1 {
    font-size: 1.15rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 4px;
}

.privacy-scroll-body h2 {
    font-size: 1rem;
}

.privacy-scroll-body p, 
.privacy-scroll-body ul {
    margin-bottom: 10px;
}

.privacy-scroll-body ul {
    padding-left: 18px;
}

.privacy-scroll-body::-webkit-scrollbar {
    width: 6px;
}

.privacy-scroll-body::-webkit-scrollbar-track {
    background: rgba(11, 31, 58, 0.05);
    border-radius: 4px;
}

.privacy-scroll-body::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

/* MEDIA QUERIES PARA OPTIMIZACIÓN EN TELÉFONOS (ALINEACIÓN PERFECTA IGUAL A PC) */
@media (max-width: 600px) {
    .view-container {
        padding: 16px;
    }

    .modal-overlay {
        padding: 12px;
        align-items: center;
    }

    .modal-card {
        padding: 20px 16px;
        border-radius: 20px;
        max-height: 90vh;
    }

    .privacy-modal-card {
        width: 100%;
        padding: 18px 14px;
    }

    .privacy-scroll-body {
        max-height: 48vh;
        padding: 12px 10px;
        font-size: 0.84rem;
    }

    .credit-value {
        font-size: 2.2rem;
    }

    .btn-primary {
        min-height: 52px;
        font-size: 1.05rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="date"],
    select {
        font-size: 16px; /* Evita zoom molesto en iOS Safari */
        padding: 14px 16px;
    }

    .detail-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        gap: 12px;
    }

    .detail-label {
        font-size: 0.88rem;
    }

    .detail-value {
        font-size: 0.92rem;
        text-align: right;
    }
}

/* Correcciones para mantener el Admin Dashboard en su estilo original */
.admin-body {
    --color-text-main: #0B1F3A;
    --color-text-muted: #5C6E85;
}
.admin-body input[type="text"],
.admin-body input[type="email"],
.admin-body input[type="password"],
.admin-body select {
    background: #FDFDFD;
    border: 1px solid rgba(11, 31, 58, 0.12);
    color: #0B1F3A;
}
.admin-body .modal-card {
    background: #FFFFFF;
    border: 1px solid rgba(11,31,58,0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.admin-body .modal-overlay {
    background: rgba(11, 31, 58, 0.45);
    backdrop-filter: blur(4px);
}
.admin-body .btn-primary {
    background: linear-gradient(135deg, #0B1F3A 0%, #10B981 110%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
    border: none;
}
.admin-body .loader-overlay {
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: none;
}
.admin-body .error-message {
    background: #FEE2E2;
    color: #DC2626;
    border: none;
    backdrop-filter: none;
}
.admin-body .feedback-message {
    background: #D1FAE5;
    color: #059669;
    border: none;
    backdrop-filter: none;
}

