/* El escritorio permanece en el viewport; sólo se desplaza el documento. */
@media screen {
  html,body{width:100%;height:100%;height:100dvh;min-height:0;overflow:hidden;overscroll-behavior:none}
  .desktop-header{height:56px;margin:0 30px}
  .desktop-icons{top:84px;gap:24px;width:84px;left:12px}
  .window,.window.expanded{position:fixed;left:112px;top:64px;width:calc(100vw - 136px);height:calc(100dvh - 145px);min-height:0;max-width:none;margin:0;display:grid;grid-template-rows:43px auto auto minmax(0,1fr) auto;overflow:visible;isolation:isolate}
  .window[hidden]{display:none}
  .titlebar{height:43px;border-radius:9px 9px 0 0;cursor:move;touch-action:none;user-select:none}
  .titlebar .close-window{border-radius:0 9px 0 0}
  .addressbar{padding:8px 18px;min-width:0}
  .addressbar>div{overflow:hidden;white-space:nowrap;min-width:0}
  .workspace{min-height:0;min-width:0;overflow:hidden}
  .sidebar{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
  .sidebar-bottom{padding-top:24px}
  .pages{min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b4c1cb transparent;scrollbar-gutter:stable;outline-offset:-4px}
  .page{scroll-margin-top:0}
  .statusbar{border-radius:0 0 9px 9px;min-width:0}
  .statusbar>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .resize-handle{position:absolute;z-index:10;touch-action:none;padding:0;border:0;background:transparent}
  .resize-n,.resize-s{height:8px;left:10px;right:10px;cursor:ns-resize}
  .resize-n{top:-4px}.resize-s{bottom:-4px}
  .resize-e,.resize-w{width:8px;top:10px;bottom:10px;cursor:ew-resize}
  .resize-e{right:-4px}.resize-w{left:-4px}
  .resize-ne,.resize-nw,.resize-se,.resize-sw{width:18px;height:18px}
  .resize-ne{top:-4px;right:-4px;cursor:nesw-resize}.resize-nw{top:-4px;left:-4px;cursor:nwse-resize}
  .resize-sw{bottom:-4px;left:-4px;cursor:nesw-resize}.resize-se{bottom:0;right:0;cursor:nwse-resize;background:repeating-linear-gradient(135deg,transparent 0 3px,#8ca3b3 3px 4px);clip-path:polygon(100% 10%,100% 100%,10% 100%)}
  .resize-se:focus-visible{clip-path:none;background:#d0e6f7;outline-offset:-3px}
  .expanded .resize-handle{display:none}
  .window-dragging{user-select:none;cursor:grabbing}
  .window-dragging .pages{pointer-events:none}
  .restore-panel{position:fixed;inset:25% 16px auto;margin:0}
  .compact-window .workspace{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
  .compact-window .sidebar{padding:6px;overflow:hidden;border-right:0;border-bottom:1px solid var(--line)}
  .compact-window .sidebar>p,.compact-window .sidebar-bottom{display:none}
  .compact-window .sidebar nav{display:flex;gap:4px;overflow:auto;padding:2px 2px 6px;scrollbar-width:thin}
  .compact-window .sidebar nav a{white-space:nowrap;font-size:13px;padding:9px 10px}
  .compact-window .sidebar nav a span{display:none}
  .compact-window .hero-grid,.compact-window .comparison,.compact-window .furniture-panel{grid-template-columns:1fr}
  .compact-window .hero-grid h1{font-size:clamp(36px,6vw,52px)}
  .compact-window .hero-grid h1 br:first-child{display:initial}
  .compact-window .timeline{grid-template-columns:1fr}
  .compact-window .gallery{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}
  .compact-window .statusbar>span:nth-child(2){display:none}
  .compact-window .statusbar>a{margin-left:auto}
  @media(max-width:1000px){.window,.window.expanded{left:20px;width:calc(100vw - 40px)}}
  @media(max-width:700px){
    .desktop-header{height:46px;margin:0 14px}.desktop-header>span{max-width:140px}
    .window,.window.expanded{left:8px;top:52px;width:calc(100vw - 16px);height:calc(100dvh - 133px);grid-template-rows:40px auto auto minmax(0,1fr) auto}
    .titlebar{height:40px;cursor:default}.resize-handle{display:none}
    .workspace{display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
    .addressbar{padding:6px 12px}.addressbar>div{padding:6px 9px}
    .page{padding:24px 18px 30px}.statusbar{padding:7px 12px}
    .taskbar{padding-bottom:max(4px,env(safe-area-inset-bottom));height:calc(48px + env(safe-area-inset-bottom))}
  }
  @media(max-height:500px){.desktop-header{visibility:hidden}.window,.window.expanded{top:8px;height:calc(100dvh - 89px)}.sidebar nav a{padding:7px 10px}}
}
@media print{.resize-handle{display:none!important}.window,.window.expanded{position:static!important;width:auto!important;height:auto!important;min-height:0!important;display:block!important}.workspace,.pages{height:auto!important;overflow:visible!important}.pages{scrollbar-gutter:auto}.fuentes-window,.start-menu{display:none!important}}

/* Desktop identity and consistent application surfaces. */
@media screen {
  body{background:radial-gradient(ellipse at 80% 15%,#3381b477,transparent 50%),radial-gradient(ellipse at 45% 105%,#098dde88,transparent 55%),linear-gradient(125deg,#07192f,#123b65 55%,#0a203b)!important}
  body:before{inset:10% -20% -70% 20%;border:1px solid #79cfff22;border-radius:45%;transform:rotate(-30deg);background:repeating-radial-gradient(ellipse at 50% 50%,transparent 0 65px,#7ccfff12 66px 67px,transparent 68px 120px);opacity:1}
  .desktop-header{font-size:11px;opacity:.85}
  .desktop-message{position:fixed;right:9vw;top:29%;color:#e5f4ff;pointer-events:none;text-align:right;z-index:0}
  .desktop-message>span{font-size:12px;letter-spacing:8px}.desktop-message>strong{display:block;font-size:clamp(70px,10vw,156px);line-height:1.15;font-weight:300;letter-spacing:-8px;color:#ffffffcc}
  .desktop-message p{font-size:24px;line-height:1.5;font-weight:300;color:#d1eaff}.desktop-message small{font-size:9px;letter-spacing:2px;color:#9fc0d8}
  .desktop-icons{gap:12px}.desktop-icons>a{padding:10px 3px;border-radius:5px;font-size:11px;text-shadow:0 2px 5px #00152d}
  .presentation-icon{display:grid;place-items:center;width:42px;height:34px;border:2px solid #e3d9ff;border-radius:6px;background:linear-gradient(135deg,#9b91ef,#6450b6);color:#fff;font-size:20px;box-shadow:0 4px 10px #0003;margin:0 auto 9px}
  .window{z-index:5;border-radius:10px;box-shadow:0 25px 85px #0007,0 2px 10px #0002}
  .window-actions{flex-shrink:0}.titlebar>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .window-actions .close-window:hover{background:#c42b1c;color:white}
  .sidebar{background:linear-gradient(155deg,#f0f5fa,#eaf0f5);padding-top:24px}.sidebar>p{letter-spacing:1.8px;font-size:9px}
  .pages{background:#faf9f6}.page{max-width:1400px;margin:auto;padding:36px clamp(24px,3vw,52px) 48px}
  .eyebrow{color:#85664b;font-weight:650;letter-spacing:1.6px;font-size:10px}
  .hero-grid{gap:34px;align-items:center;grid-template-columns:1.05fr 1fr}
  .hero-grid h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(44px,4.8vw,76px);font-weight:400;line-height:1.02;letter-spacing:-2.8px;margin-bottom:24px;color:#183347}
  .hero-grid h1 em{color:#a14034;font-style:italic}.hero-grid .lead{font-size:17px;line-height:1.65;color:#314f60}.hero-grid p{font-size:14px;line-height:1.75}
  .primary{background:#174d68;color:white;border-radius:5px;box-shadow:0 3px 8px #173f6122}.primary:hover{background:#0b354e}
  .hero-photo{transform:rotate(1deg);border:8px solid white;border-radius:3px;box-shadow:0 10px 28px #2034431c;overflow:hidden;background:white}
  .hero-photo img{aspect-ratio:16/10;object-fit:cover}.photo-title{background:#183b50;color:#fff;font-size:9px;letter-spacing:1px;padding:10px 12px}.hero-photo figcaption{background:white;padding:18px}.hero-photo figcaption>b{font-family:Georgia,serif;font-size:20px}.hero-photo figcaption>span{font-size:11px;line-height:1.65}
  .evidence-strip{background:#15394c;border:0;border-radius:8px;color:#fff;padding:25px 28px;gap:25px;margin-top:38px;box-shadow:0 8px 20px #18394c12}
  .evidence-strip strong{color:#fff;font-family:Georgia,serif;font-weight:400;font-size:48px}.evidence-strip>div>span{color:#d0e2e9;font-size:12px}.evidence-strip>div{border-color:#ffffff26}.evidence-strip>a{color:#e6c6a2;font-size:12px}
  .page-title{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:clamp(34px,3.8vw,56px);color:#183347;letter-spacing:-1.6px}
  .callout{background:#f1eae0;border-color:#dfcbb6;border-radius:6px}.timeline li{border-top-color:#b28c66}.timeline time{color:#946846}
  .comparison article,.measure-grid article,.stat-grid article,.press-note{border-radius:8px;background:#fff;box-shadow:0 4px 14px #18394c06}
  .gallery figure{background:#fff;border-radius:8px;box-shadow:0 5px 16px #1630440a}.gallery .image-button:hover:after{content:'Ampliar ↗'}
  .taskbar{display:grid;grid-template-columns:minmax(140px,1fr) auto minmax(140px,1fr);gap:8px;height:52px;padding:0 12px;background:#eef5fbeb}
  .taskbar-center{margin:0;min-width:0}.system-tray{justify-self:end;margin:0}.task-date{cursor:default;gap:10px}.task-date span{gap:1px;line-height:15px}.task-date time:last-child{display:block}.task-date b{background:none;font-weight:400}
  .task-active.is-closed{background:transparent;box-shadow:none}.task-active.is-closed:after{display:none}
  .weather-widget{display:flex;align-items:center;gap:10px;justify-self:start;border:0;background:transparent;border-radius:5px;padding:5px 10px;text-align:left;color:#203e53;min-height:42px}
  .weather-widget:hover,.weather-widget[aria-expanded=true]{background:#ffffffa8}.weather-widget>span:first-child{font-size:29px;line-height:1;color:#bc8723}.weather-widget strong,.weather-widget small{display:block;font-size:12px;font-weight:500;line-height:16px}.weather-widget small{font-size:10px;color:#5a6d79}
  .weather-panel{position:fixed;z-index:31;bottom:64px;left:12px;width:min(350px,calc(100vw - 24px));padding:24px;border:1px solid #fff9;border-radius:12px;background:#f1f7f9f5;backdrop-filter:blur(25px);box-shadow:0 16px 60px #001a3b66;color:#234257}
  .weather-panel[hidden]{display:none}.weather-panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:9px;letter-spacing:1px}.weather-panel-head button{border:0;background:none;font-size:23px}.weather-panel h2{font-size:23px;margin:20px 0 8px}.weather-panel p{font-size:12px;line-height:1.6}.weather-panel>strong{font-size:60px;font-weight:300;display:block;margin-top:16px}.weather-panel small{display:block;font-size:10px;line-height:1.6;margin-top:18px}.weather-panel #weather-retry{border:1px solid #bccdd6;background:white;padding:7px 12px;border-radius:4px}
  .fuentes-window{left:max(8px,calc((100vw - 780px)/2));top:60px;width:min(780px,calc(100vw - 16px));height:min(740px,calc(100dvh - 128px));max-height:calc(100dvh - 76px);transform:none;animation:none}
  .fuentes-titlebar>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.fuentes-body{background:#faf9f6;overscroll-behavior:contain}.fuentes-body h2{font-family:Georgia,serif;color:#183347}
  #image-dialog{width:min(1180px,calc(100vw - 24px));max-height:calc(100dvh - 32px);background:#191e25;border:1px solid #667280;border-radius:10px;color:#e6edf4;overflow:auto}
  #image-dialog[open]{display:grid;grid-template-rows:auto minmax(100px,1fr) auto auto;height:min(820px,calc(100dvh - 32px))}
  .photos-toolbar{min-height:48px;flex-shrink:0;background:#252c35}.photos-toolbar h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.photos-toolbar-right{flex-shrink:0}
  #viewer-zoom{width:auto;padding:5px 10px;color:#d8e4ef;font-size:12px;border:1px solid #ffffff26;border-radius:4px;background:none}#viewer-zoom[aria-pressed=true]{background:#356b93}
  .photos-stage{min-height:0;overflow:auto;background:radial-gradient(ellipse,#2a3440,#121820);display:flex;align-items:center;justify-content:center}
  .photos-stage #viewer-image{height:100%;width:100%;min-height:0;max-height:100%;object-fit:contain;background:none}.zoomed .photos-stage{display:block}.zoomed #viewer-image{width:180%;max-width:none;height:auto;max-height:none}
  .photos-thumbnails{display:flex;gap:8px;padding:10px 16px;overflow-x:auto;background:#1e252e}.photos-thumbnails button{flex:0 0 70px;height:44px;padding:2px;background:none;border:2px solid transparent;border-radius:5px;opacity:.55}.photos-thumbnails button[aria-pressed=true]{border-color:#77bdf7;opacity:1}.photos-thumbnails button:hover{opacity:1}.photos-thumbnails img{width:100%;height:100%;object-fit:cover;border-radius:2px}
  .photos-footer{background:#252c35;padding:10px 18px}.photos-meta p{font-size:11px;line-height:1.5;white-space:normal}.photos-counter{color:#b8d6eb;white-space:nowrap}
  .photos-nav:focus-visible{opacity:1}.start-menu{max-height:calc(100dvh - 76px);overflow-y:auto}
  :focus-visible{outline:2px solid #168be2;outline-offset:3px}
  @media(max-width:1100px){.task-share{display:none}.hero-grid{grid-template-columns:1fr}.hero-photo{max-width:none;transform:none}.desktop-icons{display:flex}.desktop-message{right:8vw}.hero-grid h1{font-size:54px}.taskbar{grid-template-columns:1fr auto 1fr}.task-active{max-width:220px}}
  @media(max-width:700px){
    .desktop-icons{top:64px;left:16px;gap:14px;width:80px}.desktop-message{top:32%;right:7vw;max-width:65vw}.desktop-message>strong{font-size:62px;letter-spacing:-4px}.desktop-message p{font-size:19px}.desktop-message small{font-size:8px;line-height:1.7;display:block}
    .taskbar{display:flex;justify-content:space-between;gap:3px;height:calc(52px + env(safe-area-inset-bottom));padding:0 6px env(safe-area-inset-bottom)}.taskbar-center{flex:0 1 auto}.weather-widget{padding:4px;gap:4px}.weather-widget>span:first-child{font-size:23px}.weather-widget small{display:none}.weather-widget strong{font-size:10px}.task-active{font-size:0;width:38px;padding:0;justify-content:center;flex-shrink:0}.task-active .tiny-folder{font-size:22px}.task-btn{font-size:0;width:36px}.task-btn span{font-size:18px}.system-tray{gap:0}.tray-status{display:none}.task-date{padding:2px 4px}.task-date time:last-child{font-size:9px}.task-date time:first-child{font-size:11px}
    .page{padding:26px 20px}.hero-grid h1,.compact-window .hero-grid h1{font-size:44px;letter-spacing:-1.8px}.compact-window .hero-grid h1 br:first-child{display:initial}.hero-grid{gap:20px}.hero-grid .lead{font-size:16px}.evidence-strip{padding:20px 16px;gap:12px}.evidence-strip strong{font-size:32px}.evidence-strip>div>span{font-size:10px}.hero-photo{border-width:4px}.photo-title{font-size:8px}.command-group button{width:26px}.search-box{min-width:0}.addressbar>div{gap:7px}
    .fuentes-window{top:48px;height:calc(100dvh - 116px)}.fuentes-titlebar{font-size:11px;padding-left:10px}.fuentes-titlebar .window-actions button{width:37px}
    .photos-toolbar{padding-left:10px;gap:6px}.photos-toolbar h2{font-size:11px}.photos-app-icon{display:none}.photos-source-btn{padding:4px;font-size:10px}#viewer-zoom{font-size:10px;padding:4px}.photos-footer{padding:8px 12px}.photos-meta p{font-size:10px}.photos-thumbnails button{flex-basis:58px;height:38px}
  }
}
@media print{.desktop-message,.weather-widget,.weather-panel{display:none!important}}
/* Cool, neutral dossier palette and Windows-style taskbar flyouts. */
@media screen {
  .window,.fuentes-window{--ink:#243448;--line:#dce4ed;--red:#1766b1;color:var(--ink)}
  .pages,.fuentes-body{background:#fff}
  .sidebar{background:linear-gradient(155deg,#f5f7fb,#edf2f8)}
  .eyebrow,.timeline time,.document-label,.question-list li:before,.gallery .caption-time{color:#526b85}
  .hero-grid h1,.page-title,.fuentes-body h2{color:#233449}
  .hero-grid h1 em{color:#1766b1}
  .primary,.photo-title{background:#175a94}.primary:hover{background:#124976}
  .evidence-strip{background:#edf4fc;border:1px solid #d8e6f5;color:#233449;box-shadow:none}
  .evidence-strip strong{color:#175a94}.evidence-strip>div>span{color:#4c6279}.evidence-strip>div{border-color:#ccdaea}.evidence-strip>a{color:#175a94}
  .callout{background:#f0f5fc;border-color:#d6e3f2}.callout>span{background:#deebfa;color:#175a94}
  .timeline li{border-top-color:#a8c5e4}blockquote{background:#f0f5fc;color:#234e78;border-color:#1766b1}
  .comparison article{border-top-color:#6c8bae}.comparison article+article{border-top-color:#1766b1}
  .dimension-chart strong{color:#1766b1}.reclined{background:#1766b1}
  .task-date{border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;border-radius:5px}
  .task-date:hover,.task-date[aria-expanded=true]{background:#ffffffa8}
  .task-share{display:flex;align-items:center;justify-content:center;gap:8px;border:0;background:transparent;color:#36536b;border-radius:5px;padding:9px;font-size:12px;white-space:nowrap}
  .task-share:hover,.task-share[aria-expanded=true]{background:#fff9;color:#175a94}
  .desktop-flyout{position:fixed;z-index:32;bottom:calc(64px + env(safe-area-inset-bottom));width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 88px - env(safe-area-inset-bottom));overflow:auto;padding:22px;background:#f5f8fcf5;backdrop-filter:blur(30px);border:1px solid #ffffffb3;border-radius:12px;box-shadow:0 16px 60px #001a3b55;color:#243448}
  .desktop-flyout[hidden]{display:none}.calendar-panel{right:12px}.share-panel{left:50%;transform:translateX(-50%)}
  .flyout-head{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:9px;letter-spacing:1px;color:#526b85}
  .flyout-head button{background:none;border:0;font-size:24px;color:#526b85;border-radius:4px;width:30px;height:30px}
  .desktop-flyout p{font-size:12px;line-height:1.6}.desktop-flyout h2{font-size:21px;margin:16px 0 8px}
  #calendar-today-label{text-transform:capitalize;margin:12px 0 22px;font-size:14px}
  .calendar-navigation{display:flex;align-items:center;gap:6px;margin-bottom:14px}
  .calendar-navigation h2{margin:0 auto 0 0;font-size:15px;text-transform:capitalize;letter-spacing:0}
  .calendar-navigation button{background:none;border:0;border-radius:5px;width:32px;height:32px;color:#526b85;font-size:24px}
  .calendar-weekdays,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
  .calendar-weekdays{font-size:11px;color:#63758a;margin-bottom:8px}.calendar-weekdays span{padding:6px 0}
  .calendar-days button{aspect-ratio:1;border:1px solid transparent;background:transparent;border-radius:50%;color:#243448;font-size:12px;padding:0}
  .calendar-days button:hover,.calendar-navigation button:hover,.flyout-head button:hover{background:#dfeaf7}
  .calendar-days .outside-month{color:#6f7c8c}.calendar-days [aria-pressed=true]{border-color:#1766b1}.calendar-days [aria-current=date]{background:#1766b1;color:white}
  .calendar-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px;border-top:1px solid #dce4ed;padding-top:16px;font-size:12px;color:#526b85}
  .calendar-footer button,.share-copy button{border:1px solid #ccd8e5;background:#fff;border-radius:5px;padding:7px 12px;color:#175a94;font-size:12px}
  .social-links{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:22px 0}
  .social-links a{display:flex;align-items:center;flex-direction:column;gap:8px;font-size:10px;color:#36536b;text-decoration:none;border-radius:8px;padding:8px 0}.social-links a:hover{background:#e5edf7}
  .social-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;font-size:28px;color:white;font-weight:600}.social-icon svg{width:27px;height:27px}
  .whatsapp{background:#168451}.telegram{background:#2188b3}.facebook{background:#1769d2}.social-x{background:#243448}
  .share-url-label{font-size:11px;color:#526b85}.share-copy{display:flex;gap:6px;margin-top:7px}.share-copy input{min-width:0;width:100%;border:1px solid #ccd8e5;border-radius:5px;padding:8px;background:white;color:#526b85;font-size:11px}.share-copy button{flex-shrink:0}#share-status{min-height:19px;color:#175a94;margin-bottom:0}
  @media(max-width:1100px){.task-share span{display:none}}
  @media(max-width:700px){.task-share{width:32px;padding:6px;flex-shrink:0}.desktop-flyout{padding:18px}.taskbar-center{gap:2px}}
}
@media print{.desktop-flyout{display:none!important}}
