/* Presentación 19: escenario grande, avance lateral y detalle completo opcional. */
:root{--blue:#176af4;--ink:#f1f7ff;--muted:#9aafc0;--slide:0px;--copy-slide:0px}
body{overflow-x:clip}header.site-header{max-width:1540px;margin:auto;padding-top:12px;padding-bottom:10px}header.site-header .logo img{width:140px;height:45px}
main{max-width:1300px;margin:auto;padding:6px 6% 40px}main>.eyebrow{font-size:8px;margin:4px 0 10px}h1{font-size:clamp(36px,3.7vw,60px);margin:0 0 24px}
#project-panel{display:block}.project-media{position:relative;top:auto;max-width:min(960px,calc((100svh - 390px)*1.95));width:100%;min-width:360px;aspect-ratio:1.95;margin:0 auto;overflow:hidden;background:#061422;border:1px solid #4ed9f970;border-radius:16px;box-shadow:0 0 55px #08bfff20;transform:perspective(1200px) translateX(var(--slide)) rotateY(var(--project-tilt,0deg)) scale(var(--project-scale,1));will-change:transform,opacity}
.project-media img{width:100%;height:100%;object-fit:contain;border-radius:0;background:transparent}
.project-media[data-format=phones]{display:flex;align-items:center;justify-content:center;gap:64px;padding:14px 28px 28px;background:none;border:0;box-shadow:none;overflow:visible}
.project-media[data-format=phones] img{width:auto;height:100%;max-width:44%;object-fit:contain;border-radius:13px;border:1px solid #aad9d64a;box-shadow:0 12px 25px #0007}
.project-media[data-format=phones] #capture-caption{bottom:-9px;right:50%;transform:translateX(50%);white-space:nowrap;background:none;font-size:8px;opacity:.75}
#project-image-secondary[hidden]{display:none}.project-copy{display:block;max-width:1000px;margin:18px auto 0;text-align:center;transform:translateX(var(--copy-slide));will-change:transform,opacity}.project-heading{display:flex;justify-content:center;align-items:center;gap:12px;margin:0 0 8px}h2{font-size:clamp(27px,2.5vw,40px);margin:0}
#project-category{font-size:12px;line-height:1.5;color:#9cbdcf;margin:0}#project-badge{font-size:9px}.project-link{display:inline-flex;margin:10px 0 0;min-height:40px;padding:8px 24px}
.project-tabs{position:relative;top:auto;display:grid;grid-template-columns:repeat(4,1fr);max-width:800px;margin:19px auto 0;padding:0;gap:10px;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none}.project-tabs button{min-height:44px;padding:8px 10px;text-align:center;font-size:12px;border-bottom:1px solid #2a596d}.project-tabs button[aria-selected=true]{border-color:#29c9ef;color:#55e8ff;background:none;border-radius:0}.project-tabs small{display:none}.project-tabs button>span{display:none}
.project-controls{display:flex;justify-content:center;align-items:center;gap:25px;margin:12px 0;color:#7eafc4;font-size:9px;letter-spacing:.14em;text-transform:uppercase}.project-controls button{width:44px;height:44px;border-radius:50%;border:1px solid #38728a;background:#041522b0;color:#57dcf7;font-size:20px}.project-controls button:disabled{opacity:.3;cursor:default}
.project-details{max-width:880px;margin:12px auto 0;border-top:1px solid #32596b66;padding:18px 0}.project-details summary{width:fit-content;margin:auto;color:#bdd4e1;font-size:13px;padding:8px 16px;min-height:44px;cursor:pointer}.project-details summary:focus-visible{outline:2px solid #29c9ef}.project-details[open] summary{margin-bottom:22px}.project-details #project-description{font-size:15px;line-height:1.85;max-width:none;color:#bbd1df;margin:0}
#project-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:30px;margin:25px 0 0;padding:0;border:0}#project-groups section{padding:20px 0;border-top:1px solid #3a62774d}#project-groups h3{font-size:12px;letter-spacing:.15em;text-transform:uppercase;color:#65def8;margin:0 0 18px;font-weight:600}#project-groups ul{list-style:none;padding:0;margin:0;display:grid;gap:15px}#project-groups li{position:relative;padding-left:19px;color:#a9c2d2;font-size:14px;line-height:1.65}#project-groups li:before{content:'';position:absolute;left:1px;top:.62em;width:4px;height:4px;border:1px solid #30cbed;border-radius:50%;box-shadow:0 0 8px #30cbed55}
.portfolio-controls{display:flex;justify-content:flex-end;margin:0}.site-footer{position:relative;background:#030a12b8}
@media(max-width:680px){header.site-header{padding:12px 7%}main{padding:12px 7% 28px}h1{font-size:35px;margin-bottom:30px}main>.eyebrow{font-size:7px}.project-media{min-width:0;max-width:none;aspect-ratio:1.5;border-radius:11px}.project-media[data-format=phones]{aspect-ratio:1.1;padding:16px 12px 32px;gap:15px}.project-copy{margin-top:24px}.project-heading{flex-wrap:wrap}h2{font-size:29px}#project-category{font-size:11px}.project-tabs{gap:2px;margin-top:20px}.project-tabs button{font-size:10px;padding:8px 3px}.project-controls{margin-top:14px}.project-details #project-description{font-size:14px}#project-groups{grid-template-columns:1fr}#project-groups li{font-size:13px}}
@media(prefers-reduced-motion:reduce){.project-media,.project-copy{transform:none;will-change:auto}}

/* Keep the viewport steady when an image or caption changes. */
main{overflow-anchor:none}

/* Lectura local: velos solo bajo el texto; el escenario sigue visible alrededor. */
.project-details summary{background:#03111ed9;border:1px solid #4e9abb38;border-radius:24px;color:#e6f5fc}
.project-details #project-description,#project-groups section{background:linear-gradient(120deg,rgba(3,13,23,.90),rgba(5,21,34,.80));border:1px solid #6bb9d526;border-radius:14px;padding:clamp(18px,2.4vw,30px);box-shadow:0 8px 28px #0002}
.project-details #project-description,#project-groups li{color:#e1edf5;text-shadow:0 1px 2px #0009}
#project-groups{max-width:none;gap:20px}
#project-groups h3{color:#71e5ff}
@media(max-width:680px){.project-details #project-description,#project-groups section{padding:18px;border-radius:12px}#project-groups{gap:16px}}

/* Logo de Proyectos al doble y con aire arriba (13-nov-2026). */
header.site-header{padding-top:26px}
header.site-header .logo img{width:280px;height:90px}
@media(max-width:680px){header.site-header{padding-top:16px}header.site-header .logo img{width:190px;height:61px}}
