/* Portal de clientes · Ing. Víctor Marín · 08/10/2026 */
#portalView{--portal-gold:#ffca63;--portal-border:rgba(255,202,99,.2);background:#f6f4ef}
#portalView :is(button,a,select):focus-visible{outline:3px solid #c28b20;outline-offset:4px}
#portalView :is(section[id],.content-grid){scroll-margin-top:100px}
#portalView .topbar{position:sticky;inset:auto;top:0;min-height:84px;padding:14px clamp(22px,3vw,52px);gap:22px;background:rgba(4,26,51,.98);border-bottom:1px solid var(--portal-border)}
#portalView .topbar-left{flex:1;width:auto;min-width:0;gap:24px;flex-wrap:wrap}
#portalView .topbar-right{flex:none;gap:13px}
#portalView .portal-home-link{width:auto;gap:11px;min-height:44px}
#portalView .portal-home-link img{width:38px;height:38px;object-fit:contain;filter:brightness(0) invert(1)}
#portalView .portal-home-link>span{font:400 23px/1 Georgia,serif;letter-spacing:.045em;color:#fff}
#portalView .portal-home-link small{display:block;margin-top:7px;color:var(--portal-gold);font:750 9px/1.2 "Segoe UI",sans-serif;letter-spacing:.19em}
#portalView .desktop-top-nav{display:flex;gap:5px;margin:0}
#portalView .desktop-top-nav a{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:8px;color:#c6d3df;font-size:13px}
#portalView .desktop-top-nav a.active{background:rgba(255,202,99,.1);color:var(--portal-gold)}
#portalView .desktop-top-nav a.active:after{display:none}
#portalView .desktop-top-nav a:hover{background:rgba(255,255,255,.06);color:#fff}
#portalView .secure-label{font-size:11px;color:#bdcbd9}
#portalView .top-avatar{display:grid;width:40px;height:40px;font-size:12px}
#portalView .project-select{max-width:230px;font-size:13px}
#portalView .portal-options{position:relative}
#portalView .portal-options summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid rgba(255,255,255,.22);border-radius:9px;color:#fff;cursor:pointer;list-style:none;font-size:12px}
#portalView .portal-options summary::-webkit-details-marker{display:none}
#portalView .portal-options summary svg{width:19px;height:19px;fill:none;stroke:var(--portal-gold);stroke-width:1.7;stroke-linecap:round}
#portalView .portal-options[open] summary{background:rgba(255,202,99,.09);border-color:var(--portal-gold)}
#portalView .portal-options>div{position:absolute;top:calc(100% + 13px);right:0;z-index:50;width:270px;max-width:calc(100vw - 32px);padding:9px;border:1px solid #dfe5ea;border-radius:14px;background:#fff;box-shadow:0 22px 70px rgba(0,15,39,.25);color:#16334e}
#portalView .portal-options>div a,#portalView .portal-options .top-logout{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;height:auto;padding:11px 13px;border:0;border-radius:8px;background:transparent;color:#18344f;text-align:left;font-size:13px;font-weight:600;line-height:1.5}
#portalView .portal-options>div a:hover,#portalView .portal-options .top-logout:hover{background:#f4f2ed}
#portalView .portal-options .top-logout{margin-top:4px;border-top:1px solid #e5e7ea;border-radius:0}
#portalView .portal-options .top-logout svg{color:#936422}
#portalView .mobile-tabs{display:none}
#portalView .demo-badge{position:static;display:block;width:100%;padding:10px 24px;border:0;border-radius:0;background:#fff1d2;box-shadow:none;color:#755319;font-size:11px;font-weight:700;letter-spacing:.08em;text-align:center;line-height:1.5}
#portalView .project-banner{display:flex;align-items:center;min-height:650px;padding:60px clamp(28px,4vw,70px) 122px;background:radial-gradient(ellipse at 20% 10%,#153954,transparent 65%),#051e38;border-radius:0}
#portalView .hero-shade{z-index:0;pointer-events:none;background:url("contacto-trazo.svg") left center/cover no-repeat;opacity:.65}
#portalView .hero-content{width:43%;max-width:590px}
#portalView .hero-overline{margin-bottom:18px;gap:10px;color:var(--portal-gold);font-size:10px;line-height:1.6;letter-spacing:.17em}
#portalView .hero-greeting{margin-bottom:14px;color:#c6d4e0;font-size:15px;letter-spacing:0}
#portalView .project-code{background:rgba(255,202,99,.06);border-color:var(--portal-border);color:#e4edf4;font-size:10px}
#portalView .project-banner h1{margin:22px 0 18px;font-size:clamp(43px,4.6vw,72px);line-height:1.02;letter-spacing:-.045em;text-shadow:none;overflow-wrap:anywhere}
#portalView .hero-lead{font-size:16px;color:#c9d7e3;line-height:1.7;min-height:54px;max-width:460px}
#portalView .hero-meta{gap:14px;margin:24px 0}
#portalView .project-location,#portalView .hero-status{font-size:13px}
#portalView .hero-actions{display:flex;gap:10px}
#portalView .hero-action{min-height:50px;padding:0 19px;border-radius:8px;font-size:13px;gap:15px}
#portalView .hero-action.primary{background:var(--portal-gold);border-color:var(--portal-gold);color:#112b43}
#portalView .hero-action.primary:hover{background:#ffda87}
#portalView .hero-media{inset:28px 28px 104px auto;width:50%;border:1px solid rgba(255,202,99,.25);border-radius:18px;background:#0d2e47;box-shadow:0 20px 55px rgba(0,10,25,.2);isolation:isolate;touch-action:pan-y}
#portalView .hero-media:before{content:"";position:absolute;inset:-35px;z-index:-1;background-image:var(--portal-image,none);background-position:center;background-size:cover;filter:blur(28px);opacity:.3;pointer-events:none}
#portalView .hero-media img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;object-position:center;transform:none;transition:opacity .4s ease}
#portalView .hero-media img.ready{transform:none}
#portalView .portal-photo-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:25px;text-align:center;color:#bfd0df;background:url("contacto-trazo.svg") center/cover,#0b2943}
#portalView .portal-photo-empty svg{width:68px;height:68px;margin-bottom:20px;fill:none;stroke:var(--portal-gold);stroke-width:.8;stroke-linejoin:round}
#portalView .portal-photo-empty strong{font:400 29px/1.2 Georgia,serif;color:#fff}
#portalView .portal-photo-empty span{margin-top:12px;max-width:260px;font-size:14px}
#portalView .hero-bottom{right:clamp(28px,4vw,70px);left:clamp(28px,4vw,70px);bottom:26px;gap:18px;min-height:50px;padding-top:16px;border-top:1px solid rgba(255,255,255,.15);flex-wrap:wrap}
#portalView .hero-counter{font-size:23px}
#portalView .hero-counter small{font-size:13px}
#portalView .hero-progress{width:180px;gap:4px}
#portalView .hero-progress button{min-width:18px;height:44px}
#portalView .hero-progress button:before{height:3px;border-radius:5px}
#portalView .hero-progress button.active:before{background:var(--portal-gold)}
#portalView .hero-controls{margin-left:auto;gap:9px}
#portalView .hero-controls button{width:46px;height:46px;color:var(--portal-gold);border-color:rgba(255,202,99,.45);background:rgba(255,202,99,.05);font-size:26px}
#portalView .hero-controls button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
#portalView .hero-controls button:disabled{opacity:.3;cursor:default}
#portalView .hero-bottom .updated-label{display:block;max-width:none;white-space:normal;margin:0;color:#bed0df;font-size:12px}
#portalView .summary-grid{max-width:1460px;margin:0 auto;padding:32px clamp(22px,4vw,60px) 44px;gap:15px;grid-template-columns:repeat(4,minmax(0,1fr));background:transparent}
#portalView .summary-card,#portalView .summary-card:first-child{padding:21px!important;min-height:160px;border:1px solid #e0ded7!important;border-radius:13px;background:#fff;box-shadow:0 7px 23px rgba(10,39,66,.025)}
#portalView .summary-top{color:#526477;font-size:13px;line-height:1.4}
#portalView .summary-icon{flex:none;width:35px;height:35px;border-radius:10px}
#portalView .summary-value{margin-top:13px;font-size:clamp(25px,2.3vw,33px);font-weight:700}
#portalView #milestoneValue{font-size:22px!important;line-height:1.25}
#portalView .summary-foot{margin-top:7px;color:#6d7c8c;font-size:12px;line-height:1.5}
#portalView .progress-track{height:6px;margin-top:13px;background:#e9edf1}
#portalView .progress-fill{background:linear-gradient(90deg,#b98326,#efbd54)}
#portalView .gallery-section{padding:60px clamp(22px,4vw,60px);background:#fff}
#portalView .gallery-inner{max-width:1340px}
#portalView .gallery-heading h2{font-size:clamp(36px,3.8vw,54px);line-height:1.08}
#portalView .gallery-heading p{font-size:15px;line-height:1.7;color:#617287}
#portalView .section-kicker{font-size:11px;letter-spacing:.16em}
#portalView .gallery-count{font-size:13px;color:#637385}
#portalView .floor-nav{display:flex;flex-wrap:wrap;gap:11px;overflow:visible;margin:24px 0 30px;padding:0}
#portalView .floor-tab{flex:1 1 145px;width:auto;min-height:100px;padding:15px 18px;border-radius:10px}
#portalView .floor-tab small{font-size:12px}
#portalView .floor-tab strong{font-size:23px}
#portalView .floor-story h3{font-size:32px;line-height:1.2}
#portalView .floor-story>span{font-size:13px}
#portalView .gallery-filters{display:flex;flex-wrap:wrap;gap:8px;overflow:visible;margin:0 0 25px}
#portalView .gallery-filters button{min-height:44px;padding:10px 16px;border-radius:8px;font-size:13px}
#portalView .gallery-grid,#portalView .gallery-grid.few{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:auto;gap:20px}
#portalView .gallery-card,#portalView .gallery-card.featured,#portalView .gallery-grid.few .gallery-card{display:block;grid-column:auto;grid-row:auto;min-height:0;padding:0;overflow:hidden;border:1px solid #e1e6ea;border-radius:13px;background:#0e2b43;text-align:left;color:#fff;transition:border-color .2s,box-shadow .2s}
#portalView .gallery-grid.few .gallery-card:only-child{max-width:680px;width:100%;grid-column:1/-1}
#portalView .gallery-grid.few .gallery-card:last-child:nth-child(odd):not(:only-child){grid-column:auto}
#portalView .gallery-card img{position:static;display:block;width:100%;height:300px;object-fit:contain;background:#0c2942;transform:none}
#portalView .gallery-card:hover img{transform:none}
#portalView .gallery-card:hover{border-color:#c69a47;box-shadow:0 9px 28px rgba(9,38,65,.12)}
#portalView .gallery-card:after{display:none}
#portalView .gallery-card-content{position:static;display:flex;align-items:center;min-height:105px;padding:20px;gap:15px;border-top:1px solid rgba(255,255,255,.11)}
#portalView .gallery-card small{font-size:10px;letter-spacing:.13em;line-height:1.5;color:var(--portal-gold)}
#portalView .gallery-card strong{font-size:27px;line-height:1.15}
#portalView .gallery-card .circle-arrow{width:38px;height:38px;border-color:rgba(255,202,99,.5);color:var(--portal-gold)}
#portalView .gallery-card.pending{display:flex;align-items:end;min-height:230px;background:linear-gradient(145deg,#f7f3e9,#e9eef1);color:#173451}
#portalView .gallery-card.pending .gallery-card-content{width:100%;border:0}
#portalView .gallery-card.pending small{color:#8b692d}
#portalView .gallery-card.pending .pending-label{font-size:12px;line-height:1.5}
#portalView .content-grid{max-width:1460px;margin:36px auto 22px;padding:0 clamp(22px,4vw,60px);gap:22px}
#portalView .panel{padding:28px;border-radius:14px;border-color:#e0e3e7;background:#fff}
#portalView .panel-heading{gap:18px;flex-wrap:wrap}
#portalView .panel-heading h3{font-size:31px;line-height:1.15}
#portalView .panel-heading p{font-size:14px;line-height:1.7;color:#65778b}
#portalView .panel-link{font-size:13px;min-height:44px;display:inline-flex;align-items:center}
#portalView .viewer-wrap,#portalView .viewer-wrap iframe,#portalView model-viewer{min-height:350px;border-radius:10px}
#portalView .model-caption{gap:12px;flex-wrap:wrap;padding:15px;font-size:12px}
#portalView .next-card{min-height:350px;padding:32px;border-radius:14px;background:radial-gradient(ellipse at top right,#25465a,transparent 70%),#092a48}
#portalView .next-card h3{font-size:34px;line-height:1.15}
#portalView .next-card p{font-size:14px;color:#c2d0de;line-height:1.7}
#portalView .next-date strong{font-size:14px}
#portalView .next-date small,#portalView .next-foot{font-size:12px;color:#b9cbda;line-height:1.6}
#portalView .date-box{width:62px;height:70px;font-size:24px;border-radius:9px}
#portalView .date-box small{font-size:11px}
#portalView #archivos,#portalView #costos{max-width:1340px;margin:24px auto;width:calc(100% - clamp(44px,8vw,120px))}
#portalView .folder-card{min-height:92px;padding:15px;border-radius:10px}
#portalView .folder-copy strong{font-size:13px;white-space:normal;overflow-wrap:anywhere}
#portalView .folder-copy small{font-size:11px;white-space:normal;line-height:1.5}
#portalView .empty-state{font-size:14px;padding:25px;line-height:1.65}
#portalView .portal-document-hub{width:calc(100% - clamp(44px,8vw,120px));max-width:1340px;margin:60px auto;padding:0}
#portalView .portal-hub-heading{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:25px}
#portalView .portal-hub-heading h2{margin:12px 0 15px;color:#092b4e;font:400 clamp(36px,3.8vw,54px)/1.06 Georgia,serif;letter-spacing:-.035em}
#portalView .portal-hub-heading h2 em{color:#9a702d;font-weight:400}
#portalView .portal-hub-heading p{max-width:660px;margin:0;color:#617386;font-size:15px;line-height:1.65}
#portalView .portal-hub-heading>a{flex:none;min-height:44px;display:inline-flex;align-items:center;font-size:13px;color:#755522;font-weight:700}
#portalView .portal-document-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:25px}
#portalView .portal-document-tabs button{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:54px;padding:11px 14px;border:1px solid #dcdedb;border-radius:9px;background:#fff;color:#3c526a;font-size:13px;font-weight:650;cursor:pointer}
#portalView .portal-document-tabs button[aria-selected="true"]{border-color:#0b2c4b;background:#0b2c4b;color:#ffce73}
#portalView .portal-document-tabs button small{display:grid;place-items:center;min-width:23px;height:23px;padding:0 4px;border-radius:50%;background:rgba(120,130,140,.1);font-size:11px;line-height:1}
#portalView .portal-document-tabs button[aria-selected="true"] small{background:rgba(255,202,99,.1)}
#portalView .portal-document-hub .document-section{padding:0;max-width:none;margin:0;background:transparent}
#portalView .portal-document-hub .document-heading{align-items:center;margin-bottom:20px}
#portalView .portal-document-hub .document-heading .section-kicker{display:none}
#portalView .portal-document-hub .document-heading h2{margin:0 0 9px;font-size:32px;line-height:1.15;letter-spacing:-.025em}
#portalView .portal-document-hub .document-heading p{max-width:690px;font-size:14px;line-height:1.6}
#portalView .document-workspace{min-height:0;grid-template-columns:minmax(260px,.85fr) minmax(0,1.3fr)}
#portalView .document-index{max-height:none;overflow:visible;align-self:start}
#portalView .document-item{min-height:70px;padding:16px}
#portalView .document-item-copy strong{font-size:14px}
#portalView .document-item-copy small{font-size:12px}
#portalView .document-preview h3{font-size:32px}
#portalView .document-preview p{font-size:14px}
#portalView .document-meta dt{font-size:11px}
#portalView .document-meta dd{font-size:14px}
#portalView .document-open{min-height:46px;font-size:13px}
#portalView .document-pending{font-size:13px;line-height:1.6}
#portalView .document-empty p{font-size:14px}
#portalView .plan-specialties{flex-wrap:wrap;overflow:visible}
#portalView .plan-specialties button{min-height:44px;font-size:13px}
#portalView .budget-box{padding:24px;background:#f2f5f8;border-radius:11px}
#portalView .budget-box small,#portalView .cost-callout span{font-size:12px}
#portalView .budget-box strong,#portalView .cost-callout strong{font-size:32px}
#portalView .budget-meta{font-size:13px;line-height:1.6;flex-wrap:wrap}
#portalView .cost-callout{padding:24px;border-radius:11px;background:#fff7e6}
#portalView .cost-table th{padding:15px;font-size:11px}
#portalView .cost-table td{padding:17px 15px;font-size:14px}
#portalView .cost-state{font-size:12px}
#portalView .cost-table tbody tr:nth-child(even){background:#f7f9fa}
#portalView .portal-advisor{display:flex;align-items:center;justify-content:space-between;gap:30px;max-width:1340px;width:calc(100% - clamp(44px,8vw,120px));margin:45px auto 0;padding:32px;border:1px solid #ddc596;border-radius:14px;background:linear-gradient(115deg,#fff7e7,#f4ead4)}
#portalView .portal-advisor .section-kicker{color:#916c26}
#portalView .portal-advisor h2{margin:9px 0 10px;color:#082b4b;font:400 31px/1.15 Georgia,serif}
#portalView .portal-advisor p{max-width:650px;margin:0;color:#617082;font-size:14px;line-height:1.65}
#portalView .portal-advisor>a{display:inline-flex;align-items:center;justify-content:center;gap:16px;flex:none;min-height:50px;padding:13px 20px;border:1px solid #d1a251;border-radius:8px;background:#0b2c4b;color:#ffcf76;font-size:13px;font-weight:650}
#portalView .portal-advisor>a:hover{background:#153e60}
#photoLightbox button:disabled{opacity:.25;cursor:default}
#photoLightbox button:focus-visible{outline:3px solid #ffca63;outline-offset:4px}
#portalView .portal-foot{padding:34px 22px 0;font-size:11px;line-height:1.7;color:#738294}
@media(max-width:1200px){#portalView .secure-label{display:none}#portalView .desktop-top-nav a{padding:0 9px;font-size:12px}#portalView .topbar-left{gap:18px}#portalView .portal-document-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}#portalView .gallery-grid,#portalView .gallery-grid.few{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){
  #portalView .desktop-top-nav{display:none}
  #portalView .topbar{min-height:76px;padding:12px 24px}
  #portalView .mobile-tabs{position:static;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:9px 20px;overflow:visible;background:#0b2946;border-bottom:1px solid var(--portal-border)}
  #portalView .mobile-tabs a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px;border-radius:8px;color:#c4d1de;font-size:12px;text-align:center;line-height:1.35}
  #portalView .mobile-tabs a.active{background:rgba(255,202,99,.13);color:var(--portal-gold)}
  #portalView .project-banner{min-height:620px;padding-left:30px;padding-right:30px}
  #portalView .hero-content{width:44%}
  #portalView .hero-media{right:20px;width:49%}
  #portalView .hero-actions{display:grid;grid-template-columns:1fr}
  #portalView .hero-lead{font-size:15px}
  #portalView .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #portalView .content-grid{grid-template-columns:1fr}
  #portalView .next-card{min-height:0}
  #portalView .document-workspace{grid-template-columns:minmax(230px,.85fr) minmax(0,1.3fr)}
}
@media(max-width:800px){
  #portalView .topbar{min-height:72px;gap:12px;padding:12px 20px}
  #portalView .topbar-left{gap:10px}
  #portalView .top-avatar{width:35px;height:35px}
  #portalView .portal-options summary{min-width:44px;padding:0 10px}
  #portalView .portal-options summary span{display:none}
  #portalView .project-select{max-width:180px;width:100%;font-size:12px;min-height:44px}
  #portalView .project-banner{display:grid;min-height:0;padding:32px 24px 24px;gap:25px}
  #portalView .hero-shade{display:block;opacity:.4}
  #portalView .hero-content{order:1;width:100%;max-width:none}
  #portalView .project-banner h1{max-width:650px;margin:18px 0 14px;font-size:clamp(41px,7.6vw,58px);line-height:1.02}
  #portalView .hero-overline{margin-bottom:13px;font-size:10px}
  #portalView .hero-greeting{font-size:14px}
  #portalView .hero-lead{max-width:600px;min-height:0;margin-bottom:20px;font-size:15px}
  #portalView .hero-meta{margin:20px 0}
  #portalView .hero-actions{display:grid;grid-template-columns:1fr 1fr}
  #portalView .hero-action{font-size:13px;padding:12px;gap:10px;min-height:50px}
  #portalView .hero-media{order:2;position:relative;inset:auto;width:100%;height:380px;border-radius:13px}
  #portalView .hero-bottom{order:3;position:relative;inset:auto;width:100%;gap:12px;margin:0;padding-top:0;border:0}
  #portalView .hero-progress{width:auto;flex:1;max-width:210px}
  #portalView .hero-bottom .updated-label{flex-basis:100%;font-size:11px;text-align:left}
  #portalView .hero-controls{margin-left:0}
  #portalView .summary-grid{padding:24px;gap:12px}
  #portalView .summary-card,#portalView .summary-card:first-child{padding:17px!important;min-height:154px}
  #portalView .summary-top{font-size:12px}
  #portalView .summary-value{font-size:26px}
  #portalView #milestoneValue{font-size:20px!important}
  #portalView .summary-foot{font-size:11px}
  #portalView .gallery-section{padding:38px 24px 45px}
  #portalView .gallery-heading{display:block}
  #portalView .gallery-heading h2{font-size:38px}
  #portalView .gallery-heading p{font-size:14px}
  #portalView .gallery-count{display:inline-block;margin-top:14px}
  #portalView .floor-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  #portalView .floor-tab{min-height:98px;min-width:0}
  #portalView .floor-story{align-items:center}
  #portalView .floor-story h3{font-size:28px}
  #portalView .gallery-filters button{padding:10px 13px;font-size:12px}
  #portalView .gallery-card img{height:270px}
  #portalView .gallery-card-content{padding:17px}
  #portalView .gallery-card strong{font-size:24px}
  #portalView .content-grid{padding:0 24px;margin:28px auto 20px}
  #portalView #archivos,#portalView #costos,#portalView .portal-document-hub{width:calc(100% - 48px);margin:24px auto}
  #portalView .portal-document-hub{margin:42px auto}
  #portalView .panel{padding:23px}
  #portalView .panel-heading h3{font-size:29px}
  #portalView .portal-hub-heading{display:block}
  #portalView .portal-hub-heading h2{font-size:38px}
  #portalView .portal-hub-heading p{font-size:14px}
  #portalView .portal-hub-heading>a{margin-top:10px}
  #portalView .portal-document-tabs button{font-size:12px;min-height:52px;padding:9px}
  #portalView .document-workspace{grid-template-columns:1fr}
  #portalView .portal-document-hub .document-heading{align-items:start;gap:12px;flex-wrap:wrap}
  #portalView .portal-document-hub .document-heading h2{font-size:29px}
  #portalView .document-preview{min-height:0}
  #portalView .document-preview-content{padding:23px}
  #portalView .document-preview h3{font-size:29px}
  #portalView .document-heading-count{font-size:11px}
  #portalView .folder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #portalView .folder-card{gap:9px;padding:12px}
  #portalView .portal-advisor{width:calc(100% - 48px);padding:25px;display:block}
  #portalView .portal-advisor>a{margin-top:20px}
}
@media(max-width:560px){
  #portalView .portal-home-link img{width:30px;height:30px}
  #portalView .portal-home-link>span{font-size:21px}
  #portalView .portal-home-link small{font-size:8px;margin-top:6px}
  #portalView .topbar-right{gap:8px}
  #portalView .mobile-tabs{gap:4px;padding:8px 12px}
  #portalView .mobile-tabs a{padding:5px 3px;font-size:11px;min-height:46px}
  #portalView .project-banner{padding:28px 20px 22px;gap:22px}
  #portalView .hero-media{height:330px}
  #portalView .hero-counter{font-size:21px}
  #portalView .hero-counter small{font-size:12px}
  #portalView .hero-controls{gap:6px}
  #portalView .hero-controls button{width:44px;height:44px}
  #portalView .hero-progress{gap:3px;min-width:0;max-width:110px}
  #portalView .hero-progress button{min-width:0}
  #portalView .summary-grid{padding:22px 18px;gap:10px}
  #portalView .summary-card,#portalView .summary-card:first-child{padding:15px!important}
  #portalView .summary-top{display:block;position:relative;padding-right:24px;font-size:12px}
  #portalView .summary-icon{position:absolute;right:0;top:0;width:22px;height:22px;border-radius:6px}
  #portalView .summary-icon svg{width:13px;height:13px}
  #portalView .summary-value{font-size:23px;overflow-wrap:anywhere}
  #portalView .gallery-section{padding:35px 20px 40px}
  #portalView .gallery-grid,#portalView .gallery-grid.few{grid-template-columns:1fr;gap:16px}
  #portalView .gallery-card img{height:320px}
  #portalView .floor-tab strong{font-size:22px}
  #portalView .floor-story h3{font-size:26px}
  #portalView .floor-story>span{font-size:12px}
  #portalView .content-grid{padding:0 18px}
  #portalView #archivos,#portalView #costos,#portalView .portal-document-hub{width:calc(100% - 36px)}
  #portalView .panel{padding:20px}
  #portalView .viewer-wrap,#portalView .viewer-wrap iframe,#portalView model-viewer{min-height:280px}
  #portalView .next-card{padding:25px}
  #portalView .next-card h3{font-size:31px}
  #portalView .folder-grid{grid-template-columns:1fr}
  #portalView .folder-card{min-height:78px}
  #portalView .portal-document-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  #portalView .portal-document-tabs button{padding:11px 13px;font-size:13px}
  #portalView .document-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
  #portalView .document-preview-top{padding:17px;gap:8px}
  #portalView .document-preview-top span:first-child{font-size:9px;letter-spacing:.12em}
  #portalView .document-preview-actions{display:grid;grid-template-columns:1fr}
  #portalView .document-open{width:100%;padding:12px;font-size:12px}
  #portalView .cost-top{grid-template-columns:1fr}
  #portalView .budget-box,#portalView .cost-callout{padding:20px}
  #portalView .budget-box strong,#portalView .cost-callout strong{font-size:29px}
  #portalView .table-scroll{overflow:visible}
  #portalView .cost-table{display:block;width:100%;min-width:0}
  #portalView .cost-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  #portalView .cost-table tbody{display:grid;gap:12px}
  #portalView .cost-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;border:1px solid #e0e6ec;border-radius:10px;background:#f8fafc}
  #portalView .cost-table td{display:block;padding:8px 0;border:0;font-size:14px;text-align:left;white-space:normal}
  #portalView .cost-table td.cost-concept,#portalView .cost-table td[data-label="Estado"],#portalView .cost-table td[colspan]{grid-column:1/-1}
  #portalView .cost-table td.cost-concept{padding:0 0 6px;font-size:16px}
  #portalView .cost-table td.num{font-weight:700;font-variant-numeric:tabular-nums;font-size:14px}
  #portalView .cost-table td.num:before{content:attr(data-label);display:block;margin-bottom:4px;color:#6c7d8c;font-weight:400;font-size:12px}
  #portalView .portal-advisor{width:calc(100% - 36px);margin-top:30px;padding:24px}
  #portalView .portal-advisor h2{font-size:29px}
  #portalView .portal-advisor>a{width:100%;font-size:13px}
}
@media(max-width:360px){#portalView .hero-actions{grid-template-columns:1fr}#portalView .hero-media{height:290px}#portalView .hero-progress{display:none}#portalView .hero-controls{margin-left:auto}#portalView .topbar{padding:10px 14px}#portalView .top-avatar{display:none}#portalView .summary-value{font-size:21px}}
@media(prefers-reduced-motion:reduce){#portalView .hero-media img{transition:none}}
