/* Óptica Masferrer — Portal de Pacientes */

:root {
    --portal-primary: #2563eb;
    --portal-bg: #f1f5f9;
}

/* ===== LOGIN ===== */
.portal-login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 60%, #38bdf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-login-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.portal-login-card {
    width: 100%;
    max-width: 400px;
    border-radius: 1rem !important;
}

.portal-login-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 16px rgba(37,99,235,.35);
}

/* ===== PORTAL LAYOUT ===== */
.portal-body {
    background: var(--portal-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-body > .portal-content {
    flex: 1;
}

.portal-nav {
    background: linear-gradient(90deg, #1e3a5f, #2563eb);
    padding: .6rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}

.portal-brand i {
    font-size: 1.2rem;
}

.portal-brand:hover { color: #bfdbfe; }

.portal-username {
    color: rgba(255,255,255,.8);
    font-size: .85rem;
}

.portal-content {
    max-width: 1000px;
}

/* ===== WELCOME ===== */
.portal-welcome {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.portal-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--portal-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== CARDS ===== */
.card {
    border-radius: .75rem;
}

.card-header {
    border-radius: .75rem .75rem 0 0 !important;
}

/* ===== TABLES ===== */
.table th {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    font-weight: 600;
    border-top: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .portal-content { padding: 1rem !important; }
    .portal-login-card { margin: 0 .5rem; }
}

/* ============================================================
   Modo Ligero / Modo Rendimiento (Bajos recursos)
   ============================================================ */
body.modo-ligero, body.modo-ligero * {
    transition: none !important;
    animation: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
}

body.modo-ligero .card,
body.modo-ligero .btn,
body.modo-ligero .form-control,
body.modo-ligero .form-select,
body.modo-ligero .alert,
body.modo-ligero .p-2,
body.modo-ligero .p-3,
body.modo-ligero .rounded {
    border-radius: 0px !important;
    box-shadow: none !important;
}

body.modo-ligero .portal-login-body,
body.modo-ligero .portal-nav {
    background: #1e3a5f !important; /* Flat background instead of gradient */
}

