html{scroll-behavior:smooth}
body{margin:0;background:#25412E}
*{box-sizing:border-box}
body{font-family:'Instrument Sans',system-ui,sans-serif;font-size:17px;line-height:1.6;color:#F3E6CE;background:#25412E;overflow-x:hidden}
h1,h2,h3{font-family:'Bricolage Grotesque',system-ui,sans-serif;margin:0;letter-spacing:-.02em;line-height:1.02;text-wrap:balance}
p{margin:0}
a{color:inherit}
a:focus-visible,button:focus-visible{outline:3px solid #C11628;outline-offset:3px}

/* Boton y enlaces */
.btn{display:inline-block;background:#F3E6CE;color:#25412E;font:600 16px 'Instrument Sans',sans-serif;padding:14px 24px;text-decoration:none;position:relative;transition:transform .15s steps(2)}
.btn:hover{transform:translate(-3px,-3px);box-shadow:6px 6px 0 #C11628}
.lnk{font-weight:600;text-decoration:underline;text-decoration-color:#9DB5A3;text-decoration-thickness:2px;text-underline-offset:6px}
.lnk:hover{text-decoration-color:#F3E6CE}

/* Header */
.top{position:absolute;left:0;right:0;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;padding:20px 64px}
.top nav{display:flex;align-items:center;gap:32px;font-weight:500}
.top nav a{text-decoration:none}
.top nav a.t:hover{text-decoration:underline;text-underline-offset:5px}
.top .btn{padding:9px 16px;font-size:15px}

/* Hero */
.hero{position:relative;min-height:min(880px,100vh);display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:center;column-gap:clamp(24px,4vw,64px);overflow:hidden;padding:130px max(64px,calc((100% - 1200px)/2)) 90px}
.copy{position:relative;z-index:2;grid-column:1;grid-row:1;min-width:0}
h1{font-weight:800;font-size:clamp(38px,5.8vw,92px)}
h1 .ln{display:block;overflow:hidden;padding-bottom:.06em}
h1 .ln>span{display:inline-block;animation:lineUp .9s cubic-bezier(.2,.8,.2,1) both}
h1 .ln:nth-child(2)>span{animation-delay:.18s}
.px{display:inline-block;width:.15em;height:.15em;min-width:10px;min-height:10px;background:#C11628;margin-left:.07em;animation:drop .7s steps(6) 1s both,blink 1.6s steps(1) 2.2s infinite}
.lead{font-size:21px;line-height:1.5;max-width:30em;color:#9DB5A3;margin:30px 0 38px;animation:fade .8s ease .7s both}
.cta{display:flex;flex-wrap:wrap;align-items:center;gap:20px 32px;animation:fade .8s ease .9s both}

.mk{grid-column:2;grid-row:1;justify-self:end;align-self:center;display:block;width:100%;max-width:min(480px,62vh);height:auto;z-index:1;pointer-events:auto;animation:sway 9s ease-in-out 2.5s infinite}
.mk rect{fill:#F3E6CE;stroke:#F3E6CE;stroke-width:1.2;animation:asm .7s steps(5) backwards;transform-box:fill-box;transition:transform 1.8s cubic-bezier(.2,.8,.2,1)}
.mk rect:nth-child(5n+1){animation-delay:.05s}
.mk rect:nth-child(5n+2){animation-delay:.25s}
.mk rect:nth-child(5n+3){animation-delay:.45s}
.mk rect:nth-child(5n+4){animation-delay:.65s}
.mk rect:nth-child(5n){animation-delay:.85s}
.mk rect:nth-child(3n){animation-name:asmB}
.mk rect:nth-child(7n){animation-name:asmC}
.mk rect:last-child{fill:#C11628;stroke:#C11628;animation:asm .6s steps(5) 1.9s backwards,blink 1.6s steps(1) 2.8s infinite}

.mk rect:hover{transform:translate(-150px,-110px);transition-duration:.12s}
.mk rect:nth-child(2n):hover{transform:translate(130px,-90px)}
.mk rect:nth-child(3n):hover{transform:translate(-70px,170px)}
.mk rect:nth-child(5n):hover{transform:translate(160px,120px)}

.now{font:700 clamp(22px,2.6vw,36px)/1.2 'Bricolage Grotesque',sans-serif;letter-spacing:-.01em;margin-top:28px;display:flex;flex-wrap:wrap;gap:0 .4em;animation:fade .8s ease .6s both}
.rot{display:inline-grid;overflow:hidden;vertical-align:bottom;padding-bottom:.12em}
.rot b{grid-area:1/1;opacity:0;white-space:nowrap;border-bottom:.12em solid #C11628;animation:rot 12s infinite;animation-delay:var(--rd)}
@keyframes rot{0%{opacity:0;transform:translateY(70%)}3%,22%{opacity:1;transform:none}25%,100%{opacity:0;transform:translateY(-70%)}}

.dust{position:absolute;z-index:1;background:#9DB5A3;width:12px;height:12px;opacity:.5;animation:floaty 7s ease-in-out infinite}
.hint{position:absolute;left:64px;bottom:28px;color:#9DB5A3;font-size:14px;z-index:2;display:flex;align-items:center;gap:10px}
.hint i{display:block;width:10px;height:10px;background:#C11628;animation:bob 1.4s steps(2) infinite}

/* Marquee */
.mq{background:#C11628;color:#F3E6CE;overflow:hidden;padding:18px 0;white-space:nowrap}
.tr{display:inline-flex;align-items:center;gap:36px;animation:marq 26s linear infinite;padding-left:36px}
.tr:hover{animation-play-state:paused}
.tr span{font:800 34px/1 'Bricolage Grotesque',sans-serif;letter-spacing:-.01em}
.tr i{display:block;width:14px;height:14px;background:#F3E6CE}

/* Secciones */
.sec{padding:130px 64px}
.in{max-width:1120px;margin:0 auto}
.light{background:#F3E6CE;color:#25412E}
.dark{background:#1d3424}
h2{font-weight:700;font-size:clamp(34px,4.6vw,60px);max-width:14em;margin-bottom:56px}

.duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.svc{position:relative;border:3px solid #25412E;padding:40px;overflow:hidden;min-height:420px;transition:color .08s steps(2)}
.svc::before{content:"";position:absolute;inset:0;background:#25412E;clip-path:inset(100% 0 0 0);transition:clip-path .18s steps(7);z-index:0}
.svc:hover::before{clip-path:inset(0 0 0 0)}
.svc:hover{color:#F3E6CE}
.svc>*{position:relative;z-index:1}
.svc h3{font-weight:700;font-size:34px;margin-bottom:16px}
.svc p{max-width:28em}
.svc ul{margin:28px 0 0;padding:0;list-style:none}
.svc li{display:flex;gap:14px;align-items:flex-start;margin-bottom:10px}
.svc li::before{content:"";flex:none;width:10px;height:10px;margin-top:9px;background:#C11628}
.svc .big{position:absolute;right:-10px;bottom:-10px;width:120px;height:120px;z-index:1;opacity:.12;transition:opacity .3s}
.svc:hover .big{opacity:.28}

/* Tipos de proyecto */
.salvia{background:#9DB5A3;color:#25412E}
.salvia h2{margin-bottom:20px}
.sub{font-size:20px;line-height:1.5;max-width:32em;margin-bottom:56px}
.kinds{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px}
.kind{background:#F3E6CE;border:3px solid #25412E;padding:28px;display:flex;flex-direction:column;transition:transform .15s steps(2),box-shadow .15s steps(2)}
.kind:hover{transform:translate(-4px,-4px);box-shadow:8px 8px 0 #C11628}
.kind svg{width:56px;height:56px;margin-bottom:28px;color:#25412E}
.kind svg .r{fill:#C11628}
.kind:hover svg .r{animation:blink .8s steps(1) infinite}
.kind h3{font-weight:700;font-size:28px;margin-bottom:12px}
.kind p{font-size:16px;margin-bottom:18px}
.kind ul{margin:auto 0 0;padding:18px 0 0;list-style:none;border-top:2px solid #25412E;font-size:15px}
.kind li{display:flex;gap:10px;align-items:flex-start;margin-bottom:6px}
.kind li::before{content:"";flex:none;width:8px;height:8px;margin-top:8px;background:#25412E}

/* Mini demos de cada tipo de proyecto */
.dm{position:relative;height:160px;background:#25412E;margin:-28px -28px 24px;overflow:hidden;color:#F3E6CE;font-size:13px;line-height:1.3}
.dm i{display:block}
.dweb i{position:absolute;background:#F3E6CE;opacity:0;animation:pop 6s steps(6) infinite}
.dweb .w1{left:16px;right:16px;top:16px;height:10px;animation-delay:0s}
.dweb .w2{left:16px;top:40px;width:55%;height:70px;animation-delay:-5.6s}
.dweb .w3{right:16px;top:40px;width:30%;height:32px;background:#9DB5A3;animation-delay:-5.2s}
.dweb .w4{right:16px;top:80px;width:30%;height:30px;background:#C11628;animation-delay:-4.8s}
.dweb .w5{left:16px;right:16px;bottom:16px;height:10px;background:#9DB5A3;animation-delay:-4.4s}
@keyframes pop{0%{opacity:0;transform:translateY(16px)}8%,78%{opacity:1;transform:none}90%,100%{opacity:0;transform:translateY(-8px)}}

.dshop .pimg{position:absolute;left:16px;top:18px;width:62px;height:62px;background:#9DB5A3}
.dshop .pimg::after{content:"";position:absolute;right:10px;top:10px;width:12px;height:12px;background:#C11628}
.dshop .pn{position:absolute;left:16px;top:88px;font-weight:500}
.dshop .add{position:absolute;left:16px;bottom:14px;background:#F3E6CE;color:#25412E;border:0;font:600 13px 'Instrument Sans',sans-serif;padding:8px 12px;cursor:pointer;transition:transform .1s steps(2)}
.dshop .add:hover{background:#fff}
.dshop .add:active{transform:translate(2px,2px)}
.dshop .cart{position:absolute;right:16px;top:16px;display:flex;align-items:center;gap:8px;background:#F3E6CE;color:#25412E;padding:8px 12px;font:800 20px/1 'Bricolage Grotesque',sans-serif}
.dshop .cart svg{width:20px;height:20px}
.dshop .cart.bump{animation:bump .4s steps(4)}
.dshop .tip{position:absolute;right:16px;bottom:16px;color:#9DB5A3;font-size:12px}
.dshop .fly{position:absolute;left:44px;top:44px;width:14px;height:14px;background:#C11628;animation:fly .6s steps(8) both}
@keyframes fly{from{transform:translate(0,0)}to{transform:translate(0,0);left:calc(100% - 70px);top:26px}}
@keyframes bump{0%{transform:scale(1)}50%{transform:scale(1.3) rotate(-4deg)}100%{transform:scale(1)}}

.dchat .m{position:absolute;margin:0;padding:9px 12px;max-width:80%;font-size:13px;opacity:0;animation:cu 8s infinite}
.dchat .u{right:14px;top:16px;background:#F3E6CE;color:#25412E}
.dchat .bt{left:14px;top:70px;background:#9DB5A3;color:#25412E;display:grid;animation-name:cb}
.dchat .bt>span{grid-area:1/1}
.dchat .dots{display:flex;gap:5px;align-items:center;animation:cd 8s infinite}
.dchat .dots i{width:7px;height:7px;background:#25412E;animation:blink .6s steps(1) infinite}
.dchat .dots i:nth-child(2){animation-delay:.2s}
.dchat .dots i:nth-child(3){animation-delay:.4s}
.dchat .tx{opacity:0;animation:ct 8s infinite;white-space:nowrap}
@keyframes cu{0%,3%{opacity:0;transform:translateY(8px)}8%,90%{opacity:1;transform:none}96%,100%{opacity:0}}
@keyframes cb{0%,20%{opacity:0;transform:translateY(8px)}25%,90%{opacity:1;transform:none}96%,100%{opacity:0}}
@keyframes cd{0%,24%{opacity:0}25%,44%{opacity:1}45%,100%{opacity:0}}
@keyframes ct{0%,44%{opacity:0;clip-path:inset(0 100% 0 0)}45%{opacity:1;clip-path:inset(0 100% 0 0)}58%,90%{opacity:1;clip-path:inset(0 0 0 0)}96%,100%{opacity:0}}

.ddash .bar{position:absolute;bottom:0;width:26px;background:#F3E6CE;animation:grow 3s steps(8) infinite alternate}
.ddash .bar:nth-child(1){left:18px;animation-duration:2.4s}
.ddash .bar:nth-child(2){left:56px;animation-duration:3.1s;background:#9DB5A3}
.ddash .bar:nth-child(3){left:94px;animation-duration:2.1s}
.ddash .bar:nth-child(4){left:132px;animation-duration:2.8s;background:#9DB5A3}
.ddash .bar:nth-child(5){left:170px;animation-duration:3.4s;background:#C11628}
.ddash .ln1,.ddash .ln2{position:absolute;right:16px;height:8px;background:#9DB5A3;opacity:.6}
.ddash .ln1{top:20px;width:70px}
.ddash .ln2{top:36px;width:44px}
@keyframes grow{from{height:18%}to{height:82%}}

/* Proyecto */
.proj{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:72px;align-items:center}
.proj h3{font-weight:800;font-size:64px;margin-bottom:8px}
.meta{color:#9DB5A3;font-weight:500;margin-bottom:24px!important;display:flex;align-items:center;gap:10px}
.meta i{display:block;width:10px;height:10px;background:#C11628;animation:blink 1.6s steps(1) infinite}
.proj p{max-width:32em;margin-bottom:16px}
.proj .lnk{display:inline-block;margin-top:8px}

.demo{background:#F3E6CE;color:#25412E;padding:22px;max-width:480px;justify-self:end;width:100%;box-shadow:12px 12px 0 #C11628}
.fr{position:relative;aspect-ratio:4/3;background:#25412E;overflow:hidden}
.fr .c{position:absolute;width:22px;height:22px;border:3px solid #F3E6CE}
.fr .c.a{left:14px;top:14px;border-right:0;border-bottom:0}
.fr .c.b{right:14px;top:14px;border-left:0;border-bottom:0}
.fr .c.c2{left:14px;bottom:14px;border-right:0;border-top:0}
.fr .c.d{right:14px;bottom:14px;border-left:0;border-top:0}
.scan{position:absolute;left:0;right:0;height:3px;background:#9DB5A3;box-shadow:0 0 0 6px rgba(157,181,163,.15);animation:scan 3s linear infinite}
.dr{position:absolute;left:50%;bottom:0;width:150px;margin-left:-75px;height:190px}
.hd{position:absolute;left:35px;top:0;width:80px;height:80px;background:#F3E6CE;transform-origin:50% 100%;animation:nod 9s steps(8) infinite}
.hd::after{content:"";position:absolute;left:46px;top:30px;width:10px;height:10px;background:#25412E}
.hd::before{content:"";position:absolute;left:20px;top:30px;width:10px;height:10px;background:#25412E}
.bd{position:absolute;left:0;bottom:0;width:150px;height:110px;background:#9DB5A3}
.alert{position:absolute;right:18px;top:48px;width:26px;height:26px;background:#C11628;opacity:0;animation:alertp 9s steps(1) infinite}
.stt{position:relative;height:30px;margin-top:18px;font:700 20px/30px 'Bricolage Grotesque',sans-serif}
.stt span{position:absolute;left:0;top:0;opacity:0}
.stt span:nth-child(1){animation:s1 9s steps(1) infinite}
.stt span:nth-child(2){animation:s2 9s steps(1) infinite}
.stt span:nth-child(3){animation:s3 9s steps(1) infinite;color:#C11628}

.sm{border-top:2px solid rgba(157,181,163,.35);margin-top:96px;padding-top:56px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:72px}
.sm h3{font-weight:800;font-size:44px;margin-bottom:8px}

/* Contacto */
.contact{text-align:left}
.contact h2{margin-bottom:20px}
.contact .lead{color:#25412E;margin:0 0 48px}
.mailrow{display:flex;flex-wrap:wrap;align-items:center;gap:20px 32px}
.mail{font:800 clamp(26px,5.6vw,80px)/1 'Bricolage Grotesque',sans-serif;letter-spacing:-.02em;color:#25412E;text-decoration:none;border-bottom:.12em solid #C11628;padding-bottom:.08em;word-break:break-word;transition:background .15s steps(2),color .15s steps(2)}
.mail:hover{background:#25412E;color:#F3E6CE}

.foot{background:#25412E;padding:40px 64px}
.foot .in{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;color:#9DB5A3}
.foot img{display:block;height:32px;width:auto}

/* Entrada al hacer scroll (solo si el navegador lo soporta) */
@supports (animation-timeline:view()){
  .rv{animation:rise linear both;animation-timeline:view();animation-range:entry 0% entry 22%}
}

@keyframes lineUp{from{transform:translateY(105%)}to{transform:none}}
@keyframes fade{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes rise{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:none}}
@keyframes drop{from{transform:translateY(-1.4em);opacity:0}to{transform:none;opacity:1}}
@keyframes blink{0%,60%{opacity:1}61%,100%{opacity:.15}}
@keyframes asm{from{opacity:0;transform:translate(-120px,-90px)}to{opacity:1;transform:none}}
@keyframes asmB{from{opacity:0;transform:translate(160px,60px)}to{opacity:1;transform:none}}
@keyframes asmC{from{opacity:0;transform:translate(-40px,200px)}to{opacity:1;transform:none}}
@keyframes sway{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-10px) rotate(.8deg)}}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-26px)}}
@keyframes bob{0%{transform:translateY(0)}100%{transform:translateY(6px)}}
@keyframes marq{to{transform:translateX(-50%)}}
@keyframes scan{0%{top:6%}100%{top:94%}}
@keyframes nod{0%,34%{transform:none}42%,92%{transform:rotate(24deg) translate(10px,10px)}100%{transform:none}}
@keyframes alertp{0%,66%{opacity:0}67%,75%{opacity:1}76%,83%{opacity:.2}84%,92%{opacity:1}93%,100%{opacity:0}}
@keyframes s1{0%,34%{opacity:1}35%,100%{opacity:0}}
@keyframes s2{0%,34%{opacity:0}35%,66%{opacity:1}67%,100%{opacity:0}}
@keyframes s3{0%,66%{opacity:0}67%,93%{opacity:1}94%,100%{opacity:0}}

@media (max-width:900px){
  .top{padding:16px 20px}
  .top nav a.t{display:none}
  .hero{grid-template-columns:minmax(0,1fr);row-gap:48px;padding:110px 20px 72px;min-height:0}
  .copy{grid-column:1;grid-row:1}
  .mk{grid-column:1;grid-row:2;justify-self:center;max-width:240px}
  .hint{display:none}
  .sec{padding:80px 20px}
  .duo,.proj,.sm{grid-template-columns:minmax(0,1fr);gap:40px}
  .demo{justify-self:start}
  .svc{padding:28px;min-height:0}
  .foot{padding:32px 20px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before{animation:none!important;transition:none!important}
  .rv{opacity:1}
  .stt span:nth-child(3){opacity:1}
}

.fly[hidden]{display:none}
