/* Proyecto, ambientes y expediente · Ing. Víctor Marín · 08/10/2026 */
#portalView.portal-is-workspace .page-content{min-height:calc(100svh - 84px);padding-bottom:30px}
#portalView.portal-is-workspace .portal-page{animation:portal-page-in .22s ease}
#portalView .desktop-top-nav{gap:4px}
#portalView .desktop-top-nav a{padding:0 11px;font-size:13px;min-height:46px}
#portalView .secure-label{display:none}
#portalView .summary-grid{display:none}
#portalView .project-banner{min-height:max(640px,calc(100svh - 84px));align-items:flex-end;padding:130px clamp(28px,6vw,105px) 128px;background:#13283e}
#portalView .hero-media{position:absolute;inset:0;z-index:0;width:100%;height:100%;border:0;border-radius:0;box-shadow:none;background:#13283e}
#portalView .hero-media:before{display:none}
#portalView .hero-media img{object-fit:cover;object-position:center;transform:none}
#portalView .hero-shade{z-index:1;background:linear-gradient(90deg,rgba(3,19,39,.78),rgba(5,24,45,.4) 52%,rgba(2,14,30,.08)),linear-gradient(0deg,rgba(2,18,36,.9),rgba(2,18,36,.3) 48%,transparent 78%);opacity:1}
#portalView .hero-content{width:100%;max-width:min(940px,83vw);z-index:2}
#portalView .hero-overline{display:flex;margin-bottom:24px;color:#ffce77;font-size:11px;letter-spacing:.15em}
#portalView .hero-lead{display:block;min-height:0;margin-bottom:0;max-width:600px;font-size:17px;line-height:1.7;color:#e1e8ee}
#portalView .hero-greeting{font-size:16px;color:#e1e8ee}
#portalView .project-banner h1{font-size:clamp(52px,5.8vw,96px);margin:23px 0 19px;line-height:1.04;letter-spacing:-.04em;overflow-wrap:normal}
#portalView .hero-meta{margin:22px 0 25px;flex-wrap:wrap}
#portalView .hero-actions{flex-wrap:wrap}
#portalView .hero-action{min-height:50px;padding:0 17px;font-size:13px}
#portalView .hero-bottom{left:clamp(28px,6vw,105px);right:clamp(28px,6vw,105px);bottom:28px}
#portalView .hero-controls button:disabled{display:none}
#portalView .hero-progress{max-width:170px}
#portalView .project-keys{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:1450px;margin:0 auto;padding:30px clamp(22px,4vw,60px)}
#portalView .project-keys a{position:relative;display:block;min-height:156px;padding:25px;border:1px solid #dedbd2;border-radius:13px;background:#fff;box-shadow:0 7px 23px rgba(10,39,66,.035);transition:border-color .2s,box-shadow .2s}
#portalView .project-keys a:hover{border-color:#ba8e38;box-shadow:0 10px 26px rgba(10,39,66,.08)}
#portalView .project-key-icon{position:absolute;top:22px;right:22px;display:grid;place-items:center;width:36px;height:36px;border:1px solid #dfc89a;border-radius:9px;background:#fff8e8;color:#9b722b}
#portalView .project-key-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#portalView .project-keys small{display:block;min-height:22px;padding-right:44px;color:#95702a;font-size:11px;font-weight:750;letter-spacing:.12em;text-transform:uppercase;line-height:1.5}
#portalView .project-keys strong{display:block;margin:12px 0 10px;color:#092b4e;font:400 clamp(23px,2.1vw,32px)/1.15 Georgia,serif}
#portalView .project-keys span{display:block;color:#61768b;font-size:13px}
#portalView .portal-advisor{max-width:1340px;margin-top:30px;min-height:0;padding:26px 30px}
#portalView .portal-advisor h2{font-size:25px;margin:7px 0}
#portalView .portal-advisor p{font-size:13px}
#portalView .portal-advisor .section-kicker{font-size:9px}
#portalView .portal-page:is(#documentos,#modelo,#costos,#planos,#pagos){max-width:1340px;width:calc(100% - clamp(44px,8vw,120px));margin:40px auto;padding:32px;background:#fff;border:1px solid #e1e3e7;border-radius:14px;box-shadow:0 7px 25px rgba(10,39,66,.025)}
#portalView .portal-page:is(#documentos,#planos){padding:0;background:transparent;border:0;box-shadow:none}
#portalView .portal-hub-heading h2{font-size:clamp(34px,3.5vw,50px)}
#portalView .portal-document-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
#portalView .portal-document-hub #archivos{width:100%;margin:28px 0 0;padding:24px;background:#f7f8fa;border:1px solid #e6e9ed}
#portalView #costos #presupuestos{margin-top:35px;padding:30px 0 0;border-top:1px solid #e4e7eb;background:none}
#portalView #presupuestos .document-heading h2{font-size:32px}
#portalView .portal-plan-page .document-heading h2{font-size:clamp(34px,3.5vw,50px)}
#portalView .gallery-section{margin:0;padding:40px clamp(22px,4vw,60px) 48px;background:#f6f4ef}
#portalView .gallery-heading{margin-bottom:15px}
#portalView .gallery-heading h2{font-size:40px}
#portalView .floor-nav{margin:22px 0;gap:8px;flex-wrap:wrap;overflow:visible}
#portalView .floor-tab{min-height:78px;padding:12px 15px;flex:1 1 140px;background:#fff}
#portalView .floor-tab.active{background:#082b4c}
#portalView .floor-tab strong{font-size:22px}
#portalView .floor-tab .floor-number{display:none}
#portalView .floor-story{display:none}
#portalView .gallery-filters{margin-bottom:23px}
#portalView .gallery-grid,#portalView .gallery-grid.few{display:block}
#portalView .room-viewer{overflow:hidden;border:1px solid #b5a077;border-radius:16px;background:#08263f;color:#fff;box-shadow:0 16px 40px rgba(10,39,66,.1)}
#portalView .room-view-stage{position:relative;min-height:480px;height:clamp(440px,65svh,720px);background:radial-gradient(ellipse at center,#25445a,#051c32);touch-action:pan-y}
#portalView .room-view-image{display:block;position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:none;color:#fff;cursor:zoom-in}
#portalView .room-view-image img{display:block;width:100%;height:100%;object-fit:contain}
#portalView .room-view-image>span{position:absolute;bottom:16px;right:18px;min-height:44px;padding:12px 17px;border:1px solid rgba(255,202,99,.4);border-radius:8px;background:rgba(6,29,51,.88);color:#ffcd70;font-size:13px}
#portalView .room-view-arrow{position:absolute;top:50%;z-index:2;display:grid;place-items:center;width:54px;height:54px;margin-top:-27px;border:1px solid rgba(255,202,99,.55);border-radius:50%;background:rgba(5,27,46,.88);color:#ffcd70;cursor:pointer;font-size:25px}
#portalView .room-view-arrow.previous{left:20px}#portalView .room-view-arrow.next{right:20px}
#portalView .room-view-arrow:disabled{opacity:.3;cursor:default}
#portalView .room-view-copy{display:flex;justify-content:space-between;align-items:start;gap:25px;padding:25px 30px;border-top:1px solid rgba(255,202,99,.2)}
#portalView .room-view-copy small{color:#ffcd70;font-size:11px;letter-spacing:.15em;text-transform:uppercase}
#portalView .room-view-copy h3{margin:8px 0 10px;font:400 35px/1.15 Georgia,serif}
#portalView .room-view-copy p{margin:0;max-width:740px;color:#bbcddd;font-size:15px;line-height:1.65}
#portalView .room-view-copy>span{color:#ffcd70;font-size:18px;white-space:nowrap}
#portalView .room-view-select{display:flex;align-items:center;gap:15px;padding:0 30px 25px;color:#c0d1df;font-size:13px}
#portalView .room-view-select select{flex:1;max-width:480px;min-width:0;min-height:46px;padding:10px 14px;border:1px solid #617486;border-radius:8px;background:#0b2c47;color:#fff;font-size:14px}
#portalView .room-view-select select:focus-visible{outline-color:#ffce77}
#portalView :is(.room-view-arrow,.hero-controls button):hover:not(:disabled){background:#173e59;border-color:#ffce77}
#portalView .room-view-image:focus-visible{outline:3px solid #ffce77;outline-offset:-5px}
#portalView .room-view-pending{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;min-height:100%;padding:30px 70px;background:url('contacto-trazo.svg') center/cover}
#portalView .room-view-pending strong{font:400 36px Georgia,serif}
#portalView .room-view-pending p{max-width:440px;color:#bfcede;line-height:1.7}
#portalView .ifc-engine{border:1px solid #ced8e2;border-radius:12px;overflow:hidden;background:#f6f8fa}
#portalView .ifc-upload{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:18px;background:#fff}
#portalView .ifc-file-button,#portalView .ifc-upload button{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 18px;border:1px solid #b59049;border-radius:8px;background:#092b4b;color:#ffce77;cursor:pointer;font-size:14px;font-weight:650}
#portalView .ifc-file-button:hover,#portalView .ifc-upload button:hover{background:#173e59}
#portalView .ifc-file-button{background:#ffca63;color:#112b43;border-color:#e5b34e}
#portalView .ifc-file-button:hover{background:#ffda87}
#portalView .ifc-file-button:focus-within{outline:3px solid #b8892c;outline-offset:3px}
#portalView .ifc-file-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
#portalView .ifc-upload>span{font-size:12px;color:#6b7b8b}
#portalView .ifc-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:13px 17px;border-top:1px solid #dce2e7;border-bottom:1px solid #dce2e7}
#portalView .ifc-toolbar button,#portalView .ifc-inspector button{min-height:43px;padding:10px 13px;border:1px solid #c9d4de;border-radius:7px;background:#fff;color:#29465f;font-size:12px;cursor:pointer}
#portalView .ifc-toolbar button:disabled,#portalView .ifc-inspector button:disabled{opacity:.4;cursor:default}
#portalView .ifc-toolbar label{display:flex;align-items:center;gap:9px;font-size:12px;color:#576f85}
#portalView .ifc-toolbar select{max-width:240px;min-height:43px;padding:8px 11px;border:1px solid #c9d4de;border-radius:7px;background:#fff;color:#29465f;font-size:12px}
#portalView .ifc-workspace{display:grid;grid-template-columns:minmax(0,1fr) 270px}
#portalView .ifc-canvas{position:relative;min-width:0;min-height:530px;height:65svh;max-height:780px;background:#071f38}
#portalView .ifc-canvas canvas{display:block;width:100%;height:100%;touch-action:none}
#portalView .ifc-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;padding:30px;text-align:center;background:url('contacto-trazo.svg') center/cover,#071f38;color:#fff}
#portalView .ifc-empty svg{width:65px;height:65px;fill:none;stroke:#ffca63;stroke-width:.8}
#portalView .ifc-empty strong{font:400 35px/1.2 Georgia,serif}
#portalView .ifc-empty p{max-width:360px;font-size:14px;line-height:1.7;color:#b7cadd}
#portalView .ifc-inspector{padding:23px;background:#fff;border-left:1px solid #dce2e7}
#portalView .ifc-inspector h4{margin:0 0 17px;color:#133653;font:400 25px/1.2 Georgia,serif}
#portalView .ifc-inspector p{font-size:13px;color:#667e92;line-height:1.65}
#portalView .ifc-inspector dl{margin:0}
#portalView .ifc-inspector dl>div{padding:12px 0;border-bottom:1px solid #edf0f3}
#portalView .ifc-inspector dt{font-size:11px;color:#8c723f}
#portalView .ifc-inspector dd{margin:5px 0 0;font-size:13px;color:#2d4a63;overflow-wrap:anywhere}
#portalView .ifc-inspector button{margin-top:20px;width:100%}
#portalView .ifc-cut{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:18px;border-top:1px solid #dce2e7;background:#fff;color:#3e566c;font-size:13px}
#portalView .ifc-cut label{display:flex;align-items:center;gap:9px}
#portalView .ifc-cut input[type=range]{min-width:100px;max-width:430px;flex:1;accent-color:#a97a29}
#portalView .ifc-cut output{min-width:70px;text-align:right}
#portalView .ifc-status{margin:0;padding:14px 18px;color:#184263;background:#eef3f6;font-size:13px;overflow-wrap:anywhere}
#portalView .ifc-help{margin:0;padding:12px 18px;font-size:12px;color:#637b8e}
#portalView .ifc-engine:fullscreen{overflow:auto;background:#fff}
#portalView .ifc-engine:fullscreen .ifc-canvas{height:calc(100svh - 195px);max-height:none}
#portalView #viewerWrap{margin-top:25px}
#portalView .payment-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
#portalView .payment-summary article{padding:24px;border:1px solid #e0e5e9;border-radius:11px;background:#f7f9fb}
#portalView .payment-summary article:nth-child(2){background:#edf6f2;border-color:#c9ddd3}
#portalView .payment-summary small{display:block;color:#718597;font-size:12px}
#portalView .payment-summary strong{display:block;margin-top:10px;color:#092e50;font-size:30px;font-variant-numeric:tabular-nums}
#portalView .payment-note{margin:20px 0 24px;color:#657e91;font-size:13px;line-height:1.7}
#portalView .payment-list{display:grid;gap:15px}
#portalView .payment-card{display:grid;grid-template-columns:minmax(0,1.5fr) 1fr 1fr;align-items:center;gap:20px;padding:23px;border:1px solid #dfe5ea;border-radius:11px;background:#fff}
#portalView .payment-card h3{margin:0 0 8px;color:#183e5e;font:400 27px/1.2 Georgia,serif}
#portalView .payment-card small{display:block;margin-top:4px;color:#6b8093;font-size:12px;line-height:1.5}
#portalView .payment-card strong{display:block;color:#123653;font-size:22px}
#portalView .payment-state{display:inline-flex;margin-top:10px;padding:5px 10px;border-radius:50px;background:#fff1d1;color:#8d6829;font-size:11px}
#portalView .payment-state.confirmed{background:#e9f5ee;color:#256743}
#portalView .payment-card a{display:inline-flex;align-items:center;min-height:44px;margin-top:7px;color:#956b28;font-size:12px;font-weight:650}
#portalView .payment-receipt{min-height:44px;margin-top:10px;padding:10px 14px;border:1px solid #c7af7b;border-radius:7px;background:#fff9ec;color:#835b18;font-size:12px;cursor:pointer}
#portalView .payment-receipt:disabled{opacity:.5;cursor:wait}
#portalView .payment-card strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#portalView .payment-currency{color:#956b28;font-size:13px}
#portalView .portal-foot{font-size:11px;line-height:1.6;padding:24px 18px 0;color:#718090}
@keyframes portal-page-in{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-width:1300px){#portalView .desktop-top-nav{display:none}#portalView .mobile-tabs{display:grid;position:static;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding:10px 24px;background:#0b2946;border-bottom:1px solid rgba(255,202,99,.2)}#portalView .mobile-tabs a{min-height:44px;padding:9px 5px;font-size:12px;color:#c5d3df;display:flex;align-items:center;justify-content:center;border-radius:8px}#portalView .mobile-tabs a.active{color:#ffca63;background:rgba(255,202,99,.11)}}
@media(max-width:850px){#portalView .ifc-workspace{grid-template-columns:1fr}#portalView .ifc-inspector{border:0;border-top:1px solid #dce2e7}#portalView .ifc-canvas{min-height:380px;height:55svh}#portalView .ifc-inspector dl{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}}
@media(max-width:800px){
  #portalView .project-banner{display:flex;min-height:max(680px,calc(100svh - 84px));padding:110px 30px 125px;flex-direction:row;align-items:flex-end;gap:0}
  #portalView .hero-media{position:absolute;inset:0;order:initial;height:100%;width:100%;border:0;border-radius:0}
  #portalView .hero-shade{display:block;opacity:1;background:linear-gradient(0deg,rgba(2,18,36,.97),rgba(2,18,36,.65) 45%,rgba(2,18,36,.08) 85%)}
  #portalView .hero-content{order:initial;width:100%;max-width:680px;padding:0}
  #portalView .project-banner h1{font-size:clamp(48px,8vw,68px);margin:19px 0}
  #portalView .hero-overline{margin-bottom:18px;font-size:10px}
  #portalView .hero-bottom{order:initial;position:absolute;inset:auto 30px 24px;padding:17px 0 0;border-top:1px solid rgba(255,255,255,.16);max-width:none}
  #portalView .hero-controls{margin-left:auto}
  #portalView .project-keys{grid-template-columns:1fr;padding:22px;gap:12px}
  #portalView .project-keys a{padding:20px;min-height:0}
  #portalView .project-keys strong{font-size:27px;margin:9px 0}
  #portalView .portal-page:is(#documentos,#modelo,#costos,#planos,#pagos){padding:24px;margin:24px auto}
  #portalView .portal-page:is(#documentos,#planos){padding:0}
  #portalView .portal-document-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  #portalView .gallery-heading h2{font-size:35px}
  #portalView .room-view-stage{min-height:380px;height:52svh}
  #portalView .room-view-copy{padding:22px}
  #portalView .room-view-copy h3{font-size:29px}
  #portalView .room-view-copy p{font-size:14px}
  #portalView .room-view-select{padding:0 22px 22px;display:block}
  #portalView .room-view-select select{display:block;width:100%;max-width:none;margin-top:9px}
  #portalView .room-view-arrow{width:46px;height:46px}
  #portalView .room-view-arrow.previous{left:12px}#portalView .room-view-arrow.next{right:12px}
  #portalView .payment-summary{gap:10px}
  #portalView .payment-summary article{padding:17px}
  #portalView .payment-summary strong{font-size:23px;overflow-wrap:anywhere}
  #portalView .payment-card{grid-template-columns:1fr 1fr;padding:20px;gap:15px}
  #portalView .payment-card>div:first-child{grid-column:1/-1}
}
@media(max-width:560px){
  #portalView .mobile-tabs{grid-template-columns:repeat(4,minmax(0,1fr));padding:9px 14px;gap:5px}
  #portalView .mobile-tabs a{font-size:12px;min-height:44px}
  #portalView .project-banner{min-height:max(720px,calc(100svh - 140px));padding:115px 22px 135px;gap:0}
  #portalView .hero-media{height:100%}
  #portalView .project-banner h1{font-size:clamp(43px,11.5vw,60px)}
  #portalView .hero-content{padding:0}
  #portalView .hero-lead{font-size:15px;line-height:1.65}
  #portalView .hero-greeting{font-size:14px}
  #portalView .hero-bottom{left:22px;right:22px;padding:16px 0 0;gap:12px}
  #portalView .hero-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #portalView .hero-action{font-size:12px;padding:0 12px;gap:8px;min-width:0}
  #portalView .hero-meta{gap:12px;margin:20px 0}
  #portalView .hero-progress{max-width:100px}
  #portalView .portal-page:is(#documentos,#modelo,#costos,#planos,#pagos){width:calc(100% - 28px);padding:20px}
  #portalView .portal-page:is(#documentos,#planos){padding:0}
  #portalView .room-view-stage{height:390px;min-height:0}
  #portalView .room-view-image>span{bottom:12px;right:12px;font-size:12px;padding:11px 14px}
  #portalView .room-view-copy{gap:12px;padding:20px}
  #portalView .room-view-copy>span{font-size:15px}
  #portalView .room-view-copy small{font-size:10px}
  #portalView .ifc-upload{padding:14px}
  #portalView .ifc-file-button,#portalView .ifc-upload button{width:100%}
  #portalView .ifc-toolbar{padding:12px;gap:7px}
  #portalView .ifc-toolbar button{font-size:11px;min-height:44px}
  #portalView .ifc-toolbar label{width:100%}
  #portalView .ifc-toolbar select{flex:1;max-width:none;min-width:0}
  #portalView .ifc-canvas{height:400px;min-height:0}
  #portalView .ifc-empty{padding:23px}
  #portalView .ifc-empty strong{font-size:29px}
  #portalView .ifc-cut{padding:15px;gap:12px}
  #portalView .ifc-cut label{width:100%}
  #portalView .ifc-inspector{padding:20px}
  #portalView .payment-summary{grid-template-columns:1fr}
  #portalView .payment-summary article{display:flex;justify-content:space-between;align-items:center;gap:15px}
  #portalView .payment-summary strong{margin:0;font-size:25px}
  #portalView .portal-advisor{width:calc(100% - 28px);padding:23px}
}
@media(max-width:360px){#portalView .hero-actions{grid-template-columns:1fr}#portalView .hero-progress{display:none}#portalView .room-view-copy{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){#portalView.portal-is-workspace .portal-page{animation:none}}
#portalView .ifc-engine:not(.model-ready) :is(.ifc-toolbar,.ifc-inspector,.ifc-cut,.ifc-help){display:none}
#portalView .ifc-engine:not(.model-ready) .ifc-workspace{grid-template-columns:1fr}
#portalView .ifc-engine[aria-busy="true"] .ifc-file-button{opacity:.65;pointer-events:none}
#portalView .ifc-file-button:focus-within{outline:3px solid #ffca63;outline-offset:3px}
#adminView .admin-payment-layout{margin-top:26px}
#adminView #paymentVisible{width:18px;height:18px;accent-color:#bd8b32}
#adminView .admin-check{display:flex;align-items:center;gap:10px;min-height:44px;margin:14px 0;font-size:13px}
