/*
   PORTAL GRUMEXSA — Gestión Integral de Contratos
   MISMA ESTRUCTURA que proveedores, solo cambia paleta de color a azul oscuro
*/

:root {
    --bg-color: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --brand-dark: #0b4594;
    --brand-mid: #0b4594;
    --primary: #0b4594;
    --surface: #ffffff;
    --border: #e2e8f0;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Round');

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.material-icons-round {
    font-family: 'Material Icons Round';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
}

/* ─── NAVBAR ULTRA-SLIM ─── */
.top-navbar { 
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0; 
    padding: 0 25px; 
    height: 48px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-shrink: 0;
    z-index: 100;
}

.brand-logo-img { height: 32px; width: auto; }

.pill-text { 
    background: var(--brand-dark); 
    padding: 4px 15px; 
    border-radius: 6px; 
}
.pill-text h1 { 
    font-size: 0.72rem; 
    font-weight: 800; 
    color: #ffffff; 
    margin: 0; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── MAIN CONTAINER NO-SCROLL ─── */
html, body { 
    height: 100vh; 
    margin: 0; 
    padding: 0; 
    overflow: hidden; 
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.container { 
    flex: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0; 
    display: flex;
    overflow: hidden;
    position: relative;
}

/* ─── 2-COLUMN PORTAL LAYOUT ─── */
.split-portal {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: stretch;
    background: #ffffff;
}

.split-portal__left {
    width: 380px;
    flex-shrink: 0;
    border-right: 2px solid var(--brand-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    background: #fcfdfe;
}

.split-portal__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 60px;
    overflow-y: hidden; /* No scroll here either if possible, or auto if content is too much */
}

/* ─── FOOTER SLIM CORPORATIVO ─── */
.footer-modern {
    background: var(--brand-dark); 
    color: #ffffff; 
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 40px;
    height: 36px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    font-size: 0.68rem; 
    flex-shrink: 0;
    z-index: 100;
}
.footer-center { display: flex; align-items: center; gap: 6px; font-weight: 500; color: #ffffff; }
.footer-modern a { color: #ffffff; text-decoration: none; font-weight: 700; opacity: 1; }
.footer-modern a:hover { text-decoration: underline; }

/* ─── PÁGINAS DE ERROR ─── */
.page-error {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(165deg, rgba(13, 71, 161, 0.1) 0%, rgba(25, 118, 210, 0.06) 40%, #f8fafc 100%);
}
.page-error__card {
    max-width: 460px;
    width: 100%;
    text-align: center;
    padding: 48px 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(13, 71, 161, 0.08);
}
.page-error__code {
    font-size: clamp(4rem, 14vw, 5.5rem);
    font-weight: 900;
    color: #ef4444;
    line-height: 1;
    margin-bottom: 8px;
}
.page-error__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.page-error__msg {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.5;
}
.page-error .btn { width: auto; min-width: 220px; display: inline-flex; }

@media (max-width: 850px) {
    .top-navbar { flex-direction: column; gap: 10px; text-align: center; }
    .split-layout { flex-direction: column; }
    .split-left { border-right: none; padding-right: 0; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
    .steps-grid { grid-template-columns: 1fr; }
    .split-right { width: 100%; }
}
