*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#111;color:white;font-family:Arial,sans-serif}.stage{position:relative;width:100%;max-width:1920px;margin:auto;aspect-ratio:1440/2038;background:url(assets/bg.jpg) center/100% 100% no-repeat}.piece{position:absolute}.piece img{display:block;width:100%;height:auto}.hot{position:absolute;background-size:var(--sx) var(--sy);background-position:var(--px) var(--py);background-repeat:no-repeat}.nav .hot:hover,.nav .hot:focus-visible,.nav .hot.active{background-image:url(assets/nav-y.png)}.cats .hot:hover,.cats .hot:focus-visible,.cats .hot:active{background-image:url(assets/cats-y.png)}.social .hot:hover,.social .hot:focus-visible,.social .hot:active{background-image:url(assets/social-y.png)}a:focus-visible{outline:2px solid #e9ff00;outline-offset:3px}.portrait img,.flip img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);object-fit:contain}.portrait img:first-child{width:67.61%;animation:iso 10s infinite}.portrait img:last-child{animation:photo 10s infinite}.flip img:first-child{width:84.73%;animation:swap .7s steps(1,end) infinite}.flip img:last-child{animation:swap .7s steps(1,end) infinite reverse}.contact img:first-child{width:73.13%}@keyframes iso{0%,40%,100%{opacity:1;filter:blur(0)}50%,90%{opacity:0;filter:blur(5px)}}@keyframes photo{0%,40%,100%{opacity:0;filter:blur(5px)}50%,90%{opacity:1;filter:blur(0)}}@keyframes swap{0%{opacity:1}50%,100%{opacity:0}}.paused img{animation-play-state:paused!important}.inner{min-height:100vh;background:#111 url(assets/bg.jpg) center/cover fixed;padding:5vw}.inner a{color:#edff00}.inner img{width:67px}.inner h1{font-size:clamp(32px,7vw,90px);text-transform:uppercase}.inner p{color:#ddd}@media(max-width:600px){.stage{aspect-ratio:auto;display:flex;flex-direction:column;align-items:center;padding:22px 20px 65px;gap:24px;background-size:cover}.stage .piece{position:relative;left:auto!important;top:auto!important;height:auto!important}.stage .brand{align-self:flex-start;width:45px!important}.stage .nav{position:absolute;top:34px!important;right:20px;width:65%!important}.stage .line{width:100%!important}.stage .portrait{width:65%!important;aspect-ratio:1;margin-top:12px}.stage .about{width:100%!important;max-width:508px}.stage .projects{width:48%!important;aspect-ratio:347/105;margin-top:20px}.stage .cats{width:100%!important}.stage .question{width:65%!important;margin-top:20px}.stage .contact{width:100%!important;aspect-ratio:763/109}.stage .social{width:70%!important}.stage .footer{width:35%!important;margin-top:12px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.portrait img,.flip img{animation:none!important}.portrait img:last-child,.flip img:last-child{opacity:0}}
.portrait img,.flip img{height:auto}.stage .portrait{aspect-ratio:854/890}.stage .projects{aspect-ratio:694/210}.stage .contact{aspect-ratio:1526/224}@media(max-width:600px){.stage .portrait{aspect-ratio:854/890}.stage .nav{left:auto!important}.stage .projects{aspect-ratio:694/210}.stage .contact{aspect-ratio:1526/224}}

/* V05: encabezado común fijo */
:root{--header-h:min(9.722222vw,186.6667px)}
.global-header{position:fixed;z-index:100;top:0;left:0;width:100%;background:#111;}
.header-frame{position:relative;width:100%;max-width:1920px;height:var(--header-h);margin:auto;background:#111 url(assets/header-bg.jpg) center/100% 100% no-repeat;}
.header-frame .piece{position:absolute}.header-frame .hot{display:block}
html{scroll-padding-top:calc(var(--header-h) + 12px)}
.inner{padding-top:calc(var(--header-h) + 5vw)}
.inner .header-frame img{width:100%}
@media(max-width:600px){:root{--header-h:88px}.header-frame .brand{left:20px!important;top:14px!important;width:45px!important;height:auto!important}.header-frame .nav{left:auto!important;right:20px;top:28px!important;width:65%!important;height:auto!important;aspect-ratio:340/25}.header-frame .line{left:20px!important;top:65px!important;width:calc(100% - 40px)!important;height:auto!important}.stage{padding-top:calc(var(--header-h) + 22px)}}

/* V06: fondo continuo y transición inferior del encabezado */
body{background:#111 url(assets/bg.jpg) center top / min(100vw,1920px) auto no-repeat fixed}
.stage{background:none}
.global-header{background:none;isolation:isolate;pointer-events:none}
.header-frame{background:none;pointer-events:none}
.global-header::before{content:"";position:absolute;z-index:-1;inset:0 0 -45px;background:#111 url(assets/bg.jpg) center top / min(100vw,1920px) auto no-repeat fixed;mask-image:linear-gradient(to bottom,#000 0%,#000 70%,transparent 100%);pointer-events:none}
.header-frame .nav .hot{pointer-events:auto}
.header-frame .brand{cursor:default}
.inner{background:#111 url(assets/bg.jpg) center top / min(100vw,1920px) auto no-repeat fixed}
@media(max-width:600px){body,.inner,.global-header::before{background-size:auto 100vh}.global-header::before{bottom:-32px}.stage{background:none}}

/* V07: nuevo menú */
@media(max-width:600px){.header-frame .nav{aspect-ratio:776/58}}
