/* Private company selector. Neutral identity until client supplies RMN brand manual. */
:root{--ink:#14211e;--sub:#596762;--paper:#f7f8f6;--line:#e3e8e2;--red:#ce2638;--forest:#182c24}
*{box-sizing:border-box}
html{min-height:100%;background:var(--paper)}
body{min-height:100vh;margin:0;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--ink)}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
.portal-shell{max-width:1500px;margin:auto;min-height:100vh;display:flex;flex-direction:column;padding:0 clamp(22px,5vw,82px)}
.portal-header{height:99px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:20px}
.portal-wordmark{display:inline-flex;align-items:center;gap:12px;font-size:13px;font-weight:850;letter-spacing:.07em}
.portal-wordmark small{display:block;font-size:9px;font-weight:700;letter-spacing:.15em;color:var(--sub);margin-top:4px}
.portal-monogram{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--forest);color:white;font-weight:900;font-size:17px}
.portal-header-tag{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--sub);font-weight:650}
.portal-status-dot,.portal-card-active{width:7px;height:7px;border-radius:50%;background:#3a9772;display:inline-block;flex:none}
.portal-main{width:100%;max-width:1170px;margin:0 auto;flex:1;padding:clamp(52px,7vh,98px) 0 70px}
.portal-intro{max-width:735px;margin-bottom:36px}
.portal-kicker,.portal-card-eyebrow{font-size:10px;font-weight:850;letter-spacing:.17em}
.portal-kicker{color:#9d404a;margin:0 0 17px}
.portal-intro h1{font-size:clamp(32px,4.5vw,61px);letter-spacing:-.055em;line-height:1.09;margin:0 0 19px;font-weight:850}
.portal-intro h1 em{font-style:normal;color:#b62b3c}
.portal-intro>p:last-child{color:var(--sub);font-size:clamp(13px,1.25vw,16px);line-height:1.65;margin:0;max-width:540px}
.portal-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.portal-card{min-height:410px;display:flex;flex-direction:column;position:relative;padding:clamp(23px,3.4vw,38px);border-radius:23px;border:1px solid #dfdfdc;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.portal-card:hover,.portal-card:focus-visible{transform:translateY(-4px);box-shadow:0 17px 45px rgba(26,37,29,.10);outline:none}
.portal-card:focus-visible{box-shadow:0 0 0 4px #84998ba0}
.portal-card-nogales{background:#fff}
.portal-card-nogales::before{content:"";position:absolute;top:0;left:0;right:0;height:5px;background:var(--red)}
.portal-card-norte{background:linear-gradient(149deg,#ecf1ed,#e5ebe6)}
.portal-card-norte::before{content:"";position:absolute;top:0;left:0;right:0;height:5px;background:#426450}
.portal-card-number{align-self:flex-end;font-size:10px;letter-spacing:.1em;font-weight:850;color:#6c756e}
.portal-logo-frame{height:94px;width:150px;margin:6px 0 24px;display:flex;align-items:center;justify-content:flex-start}
.portal-logo-frame img{width:140px;max-height:92px;object-fit:contain;object-position:left center}
.portal-brand-pending{display:grid;place-items:center;width:96px;height:87px;border:1px solid #b7c7bd;border-radius:19px;background:#dbe5dd}
.portal-rmn-symbol{color:#3c5746;letter-spacing:-.06em;font-weight:850;font-size:30px}
.portal-card-copy{display:grid;gap:13px;flex:1;align-content:start}
.portal-card-eyebrow{color:#a52537}
.portal-card-norte .portal-card-eyebrow{color:#456852}
.portal-card-copy strong{font-size:clamp(25px,2.9vw,38px);font-weight:850;letter-spacing:-.047em;line-height:1.13;max-width:350px}
.portal-card-copy strong span{display:block}
.portal-card-description{max-width:370px;font-size:13px;color:#647068;line-height:1.65}
.portal-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:27px;padding-top:20px;border-top:1px solid #dfe5de;color:#586b5d;font-size:11px;font-weight:750}
.portal-card-bottom>span:first-child{display:flex;align-items:center;gap:8px}
.portal-card-arrow{font-size:22px;color:var(--ink);border:1px solid #cfd8ce;width:40px;height:40px;border-radius:50%;display:grid;place-items:center}
.portal-assistance{display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:1170px;margin:26px auto 0;padding:16px 22px;background:#eef1ee;border:1px solid #e0e6df;border-radius:13px;font-size:12px;color:#67736b}
.portal-assistance a{font-weight:800;color:var(--ink);text-align:right}
.portal-assistance a:hover{text-decoration:underline}
.portal-footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;padding:24px 0;font-size:11px;color:#7a8580}
.portal-subnav{display:inline-flex;align-items:center;gap:10px;font-size:12px;font-weight:750;color:#526a59;margin-bottom:30px}
.portal-subnav:hover{color:var(--ink)}
.portal-placeholder{width:min(100%,680px);margin:0 auto;text-align:left;padding:clamp(20px,5vw,40px);border:1px solid #dce5df;border-radius:20px;background:#fff}
.portal-placeholder .portal-brand-pending{margin:0 0 20px}
.portal-placeholder h1{font-weight:850;letter-spacing:-.05em;font-size:clamp(27px,4vw,46px);line-height:1.12;margin:7px 0 14px}
.portal-placeholder p{font-size:14px;line-height:1.7;color:#58665e;max-width:550px}
.portal-placeholder .portal-pending{display:inline-flex;align-items:center;padding:8px 12px;background:#edf3ef;border-radius:99px;color:#477054;font-size:11px;font-weight:800}
.portal-placeholder .portal-next{margin:28px 0 0;padding:20px;border-radius:12px;background:#f5f8f5;color:#4c5b50;font-size:13px;line-height:1.7}
.portal-placeholder .portal-next strong{color:var(--ink)}
.portal-placeholder .portal-primary{display:inline-flex;margin-top:18px;align-items:center;justify-content:center;background:var(--forest);color:white;padding:12px 20px;border-radius:10px;font-size:12px;font-weight:800}
@media(max-width:760px){
 .portal-header{height:75px}
 .portal-header-tag{display:none}
 .portal-main{padding:48px 0 50px}
 .portal-cards{grid-template-columns:1fr}
 .portal-card{min-height:340px}
 .portal-logo-frame{height:73px;margin-bottom:15px}
 .portal-logo-frame img{max-height:72px;width:110px}
 .portal-assistance{align-items:flex-start;flex-direction:column}
 .portal-assistance a{text-align:left}
 .portal-footer{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.portal-card{transition:none}}


/* Bilingual company selection and manual-based RMN corporate palette. */
.portal-header-actions{display:flex;align-items:center;gap:24px}
.portal-lang-label{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:700;color:#596762}
.portal-lang-label select{padding:9px 29px 9px 11px;border:1px solid #d9ded9;border-radius:9px;background:white;color:var(--ink);font-size:12px;font-weight:800}
.portal-card-norte{background:linear-gradient(157deg,#fffef2 0%,#fff 61%,#fff8c4 100%);border-color:#e9e0bd}
.portal-card-norte:before{background:#ffde00;height:7px}
.portal-card-norte .portal-card-eyebrow{color:#6b6560}
.portal-brand-official{height:100px;width:255px;margin:0 0 20px}
.portal-brand-official img{height:96px;max-height:96px;width:240px;max-width:100%;object-fit:contain;object-position:left}
.portal-card-norte .portal-card-bottom{border-top-color:#efe1a0}
.portal-rmn{--ink:#555253;--sub:#666365;--red:#ffde00;--forest:#595656;--paper:#fbfaf8;--line:#e4e1d7}
.portal-rmn .portal-wordmark .portal-monogram{background:#ffde00;color:#555253}
.portal-rmn .portal-pending{background:#fff5c2;color:#5e5b57}
.portal-rmn .portal-primary{background:#ffde00;color:#413e40}
.portal-rmn .portal-placeholder{max-width:840px;border-color:#e6dca0;border-top:5px solid #ffde00}
.portal-rmn-logo{width:min(100%,330px);margin:0 0 26px}
.portal-rmn-logo img{width:100%;height:auto;max-height:140px;object-fit:contain;object-position:left}
.portal-rmn-features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:19px 0}
.portal-rmn-features>div{padding:17px;border-radius:12px;border:1px solid #e6deae;background:#fffdf4}
.portal-rmn-features strong{font-size:13px;color:#4b4949}
.portal-rmn-features p{font-size:12px;margin:8px 0 0}
.portal-rmn .portal-next{background:#faf8f0}
@media(max-width:760px){.portal-header-actions{gap:8px}.portal-lang-label span{display:none}.portal-brand-official{max-width:210px;height:87px}.portal-brand-official img{width:210px}.portal-rmn-features{grid-template-columns:1fr}}
