:root{--forest:#31513f;--forest-dark:#183328;--sage:#839b89;--ink:#203328;--muted:#8b9c90;--border:#dae7de;--bg:#f5f8f5;--white:#fff}
*{box-sizing:border-box}
html{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);scroll-behavior:smooth}
body{margin:0;min-width:320px;min-height:100vh}
a{text-decoration:none;color:inherit}
button,input{font:inherit}
img{display:block;max-width:100%}
h1,h2,p{margin-top:0}
svg{flex-shrink:0}
.portal-header{height:94px;display:flex;justify-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #e6eee8;position:relative;z-index:5}
.portal-brand-zone{width:315px;height:94px;display:flex;align-items:center;justify-content:center;background:linear-gradient(118deg,#305b45 0%,#356649 100%);border-radius:0 0 3px 3px;flex-shrink:0}
.portal-brand-zone img{width:212px;height:auto;border-radius:9px;box-shadow:0 5px 18px #112a1c18}
.portal-header-actions{display:flex;align-items:center;gap:16px;margin-right:clamp(20px,3.7vw,62px)}
.portal-session-tag{color:#50715e;background:#ecf4ee;font-size:.63rem;letter-spacing:.08em;font-weight:800;padding:11px 14px;border-radius:10px}
.portal-login-link{display:flex;align-items:center;gap:10px;color:#31513f;font-size:.83rem;font-weight:750;border:1px solid var(--border);border-radius:11px;padding:12px 15px;transition:.2s}
.portal-login-link svg{width:17px;height:17px}
.portal-login-link:hover{background:#edf5ef}
.portal-profile{position:relative}.portal-profile summary{cursor:pointer;display:flex;align-items:center;gap:8px;list-style:none}.portal-profile summary::-webkit-details-marker{display:none}
.portal-avatar{width:47px;height:47px;border-radius:50%;background:#e4eee6;color:var(--forest);font-size:1.17rem;font-weight:800;display:grid;place-items:center;border:2px solid #e0e9e2;overflow:hidden}.portal-avatar img{width:100%;height:100%;object-fit:cover}
.portal-chevron{font-size:1.3rem;color:var(--forest);transform:translateY(-3px)}
.portal-profile-menu{position:absolute;right:0;top:58px;width:235px;background:#fff;border:1px solid var(--border);border-radius:14px;padding:17px;box-shadow:0 15px 50px #1d35241c;z-index:20}
.portal-profile-menu strong,.portal-profile-menu small{display:block}.portal-profile-menu strong{font-size:.82rem}.portal-profile-menu small{color:var(--muted);font-size:.7rem;margin-top:4px}
.portal-profile-menu a{display:flex;justify-content:space-between;align-items:center;font-size:.79rem;color:var(--forest);font-weight:750;border-top:1px solid var(--border);padding-top:12px;margin-top:13px}.portal-profile-menu a svg{width:18px}
.portal-hero{height:430px;position:relative;overflow:hidden;background:linear-gradient(116deg,#edf4ef 0%,#f3f7f3 47%,#d5e7dc 100%)}
.portal-hero-picture{position:absolute;right:0;top:0;width:67%;height:100%;background-image:url('../img/portal/portada_municipal.webp');background-repeat:no-repeat;background-position:center 46%;background-size:cover;filter:saturate(.95)}
.portal-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#f4f8f5 0%,#f4f8f5f2 25%,#f4f8f5d9 40%,#f4f8f574 52%,#ffffff05 73%);pointer-events:none}
.portal-hero-content{position:relative;z-index:1;padding:74px 0 0 clamp(28px,7.1vw,120px);max-width:min(800px,65vw)}
.portal-hero-mark{display:block;width:54px;height:5px;border-radius:99px;background:#9bbda5;margin:0 0 29px}
.portal-hero h1{font-size:clamp(42px,4.05vw,70px);line-height:1.06;letter-spacing:-.058em;font-weight:820;margin:0 0 14px;color:#183528}
.portal-hero p{color:#89998c;font-size:clamp(1rem,1.28vw,1.4rem);margin:0;line-height:1.5}
.mobile-eyebrow{display:none}
.portal-modules{position:relative;z-index:2;width:min(1450px,calc(100% - 80px));margin:-82px auto 52px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;align-items:stretch}
.portal-module-card{background:linear-gradient(180deg,#fff 0%,#f8fbf9 100%);border:1px solid #dfebe2;border-radius:22px;padding:7px 7px 20px;min-width:0;overflow:hidden;box-shadow:0 18px 43px #1b3e2520;transition:transform .2s ease,box-shadow .2s ease}
.portal-module-card:hover{transform:translateY(-4px);box-shadow:0 22px 48px #1b3e252c}
.portal-module-photo{height:225px;overflow:hidden;border-radius:15px;background:#dae7dc}
.portal-module-photo img{width:100%;height:100%;object-fit:cover;object-position:center}
.portal-module-icon{width:91px;height:91px;border-radius:50%;display:grid;place-items:center;margin:-39px auto 4px;position:relative;z-index:1;background:#e7f2e9;box-shadow:0 0 0 8px #ffffffee;color:#3f6b51}
.portal-module-icon svg{width:40px;height:40px;stroke-width:2.2}
.portal-module-body{padding:0 15px;display:flex;flex-direction:column;align-items:center;text-align:center}
.portal-module-body h2{font-size:clamp(1.15rem,1.38vw,1.52rem);font-weight:780;letter-spacing:-.04em;margin:6px 0 9px;white-space:normal}
.portal-module-body p{font-size:.78rem;color:#8a9e8d;min-height:18px;margin:0 0 17px}
.portal-cta{display:flex;justify-content:center;align-items:center;gap:18px;border-radius:12px;background:linear-gradient(125deg,#2d4f3c,#3e6b4e);color:white;padding:15px 22px;min-height:55px;font-weight:700;font-size:1rem;transition:filter .2s,transform .2s;width:100%}
.portal-cta svg{width:23px;height:23px}
.portal-cta:hover{filter:brightness(1.13)}.portal-cta:focus-visible,.portal-secondary:focus-visible,.portal-back-link:focus-visible,.portal-login-link:focus-visible{outline:3px solid #8fc4a1;outline-offset:3px}
.portal-footer{text-align:center;color:#93a195;font-size:.72rem;padding:0 20px 30px;line-height:1.6}.portal-footer span{padding:0 5px}
/* Individual module placeholders */
.portal-construction-main{width:min(1180px,calc(100% - 54px));min-height:calc(100vh - 190px);margin:35px auto 45px}
.portal-back-link{display:inline-flex;align-items:center;gap:8px;color:var(--forest);font-size:.8rem;font-weight:800;margin-bottom:20px;border-radius:9px;padding:8px 10px}.portal-back-link svg{width:18px}
.portal-construction-card{background:#fff;border:1px solid var(--border);border-radius:25px;overflow:hidden;display:grid;grid-template-columns:.95fr 1fr;min-height:530px;box-shadow:0 22px 55px #2b51351a}
.portal-construction-image{background:#e5f0e8;position:relative}.portal-construction-image:after{content:"";position:absolute;inset:0;background:linear-gradient(145deg,transparent 50%,#244b3270 100%)}
.portal-construction-image img{height:100%;width:100%;object-fit:cover;object-position:center}
.portal-construction-content{padding:clamp(32px,5vw,73px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.portal-eyebrow{font-size:.7rem;letter-spacing:.16em;color:var(--forest);font-weight:820}.portal-eyebrow-line{display:inline-block;width:25px;height:4px;border-radius:5px;background:#9dbca5;vertical-align:middle;margin-right:8px}
.portal-construction-icon{margin-top:27px;width:62px;height:62px;border-radius:15px;background:#edf5ee;display:grid;place-items:center;color:var(--forest)}.portal-construction-icon svg{width:31px;height:31px}
.portal-construction-content h1{font-size:clamp(1.8rem,3vw,2.8rem);line-height:1.12;letter-spacing:-.05em;margin:20px 0 17px}
.portal-construction-status{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:999px;background:#fff4df;color:#95651c;font-size:.77rem;font-weight:750}.portal-construction-status svg{width:17px}
.portal-construction-content>p{font-size:.94rem;line-height:1.7;color:#6e8072;margin:20px 0 27px}
.portal-construction-actions{display:flex;gap:13px;align-items:center;width:100%;flex-wrap:wrap}.portal-construction-actions .portal-cta{width:auto;min-width:220px}.portal-secondary{border:1px solid var(--border);border-radius:11px;padding:16px 18px;font-size:.81rem;font-weight:760;color:var(--forest)}
.portal-construction-session{font-size:.7rem;color:#829588;margin-top:24px}
@media(max-width:1100px){.portal-modules{width:calc(100% - 44px);gap:13px}.portal-module-photo{height:184px}.portal-module-icon{width:74px;height:74px}.portal-module-icon svg{width:34px}.portal-module-body h2{font-size:1.2rem}.portal-hero h1{font-size:clamp(2.5rem,5vw,4.1rem)}}
@media(max-width:760px){.portal-header,.portal-brand-zone{height:77px}.portal-brand-zone{width:215px}.portal-brand-zone img{width:165px}.portal-header-actions{margin-right:17px}.portal-session-tag{display:none}.portal-hero{height:365px}.portal-hero-content{padding:75px 24px 0;max-width:100%}.portal-hero h1{font-size:clamp(2.25rem,7.3vw,3.4rem)}.portal-hero-picture{width:100%;opacity:.52}.portal-hero:after{background:linear-gradient(90deg,#f4f8f5ef 0%,#f4f8f5bd 55%,#f4f8f550 100%)}.portal-modules{margin:-45px auto 40px;grid-template-columns:1fr;gap:18px;max-width:510px}.portal-module-card{padding:8px 8px 20px}.portal-module-photo{height:220px}.portal-module-icon{width:85px;height:85px}.portal-module-body h2{font-size:1.45rem}.portal-module-body p{font-size:.8rem}.portal-construction-card{grid-template-columns:1fr}.portal-construction-image{max-height:275px}.portal-construction-content{padding:35px 28px 42px}}
@media(max-width:430px){.portal-header,.portal-brand-zone{height:72px}.portal-brand-zone{width:178px}.portal-brand-zone img{width:142px}.portal-login-link{font-size:.72rem;padding:10px;gap:5px}.portal-login-link svg:last-child{display:none}.portal-hero{height:337px}.portal-hero-content{padding-top:65px}.portal-hero h1{font-size:2.4rem}.portal-hero p{font-size:.95rem}.portal-modules{width:calc(100% - 28px)}.portal-module-photo{height:195px}.portal-module-body{padding:0 12px}.portal-construction-main{width:calc(100% - 26px)}.portal-construction-actions .portal-cta,.portal-construction-actions .portal-secondary{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
