/* ═══════════════════════════════════════════════════════════
   PLANO · ESTUDIO DE ARQUITECTURA
   ═══════════════════════════════════════════════════════════ */

:root{
  --bg:#FBFAF7;
  --bg-2:#F1EFEA;
  --bg-3:#E9E6E0;
  --ink:#121110;
  --muted:#6A675F;
  --line:rgba(18,17,16,.10);
  --line-strong:rgba(18,17,16,.24);
  --accent:#E8590C;
  --accent-tint:#FBE8DC;
  --display:'Syne',system-ui,sans-serif;
  --body:'Manrope',system-ui,sans-serif;
  --ease:cubic-bezier(.65,.05,.05,1);
  --pad-x:clamp(1.25rem,4.5vw,4.5rem);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

html{scroll-behavior:auto;-webkit-text-size-adjust:100%}

body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--body);
  font-size:clamp(1rem,1.02vw,1.1rem);
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
::selection{background:var(--ink);color:var(--bg)}

.mono{font-family:var(--body);font-size:.68rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase}
em{font-style:normal;color:var(--accent)}
.outline-txt{color:transparent;-webkit-text-stroke:1.5px var(--ink)}
.outline-txt.orange{-webkit-text-stroke:1.5px var(--accent)}

.container{width:min(1240px,100% - 2*var(--pad-x));margin-inline:auto}

.skip-link{
  position:fixed;top:-100px;left:1rem;z-index:700;
  background:var(--ink);color:var(--bg);
  padding:.6rem 1rem;font-size:.75rem;
  transition:top .3s var(--ease);
}
.skip-link:focus{top:1rem}

/* ═══════════════ LOGO (casa a 2 aguas, contorno + punto) ═══════════════ */
.logo-house{fill:none;stroke:currentColor;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.logo-dot{fill:var(--accent);stroke:none}

/* ═══════════════ PRELOADER ═══════════════ */
.loader{
  position:fixed;inset:0;z-index:600;
  background:var(--bg);
  display:grid;place-items:center;
  transition:opacity .7s var(--ease),visibility .7s;
}
.loader.done{opacity:0;visibility:hidden;pointer-events:none}
.loader-inner{text-align:center}
.loader-logo{width:74px;height:74px;margin:0 auto 1rem}
.loader-logo svg{width:100%;height:100%}
.loader-logo .logo-house{stroke:var(--ink)}
.loader-word{
  font-family:var(--display);font-weight:700;
  font-size:clamp(2.2rem,5vw,3rem);letter-spacing:.24em;text-indent:.24em;
}
.loader-bar{width:180px;height:2px;background:var(--line);margin:1.2rem auto 0;position:relative;overflow:hidden}
#loader-fill{position:absolute;inset:0;background:var(--accent);transform:scaleX(0);transform-origin:left}

/* ═══════════════ CURSOR ═══════════════ */
.cursor-dot,.cursor-ring{position:fixed;top:0;left:0;pointer-events:none;z-index:550;display:none}
.cursor-dot{width:6px;height:6px;background:var(--accent);border-radius:50%;transform:translate(-50%,-50%)}
.cursor-ring{
  width:40px;height:40px;border:1px solid rgba(18,17,16,.4);border-radius:50%;
  display:grid;place-items:center;
  transition:width .35s var(--ease),height .35s var(--ease),background .3s,border-color .3s;
}
.cursor-label{
  font-size:.6rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  opacity:0;transition:opacity .2s;display:block;
}
.cursor-ring.grow{width:84px;height:84px;background:var(--accent);border-color:var(--accent)}
.cursor-ring.grow .cursor-label{opacity:1;color:var(--bg)}

/* ═══════════════ PROGRESO ═══════════════ */
.scroll-progress{position:fixed;top:0;left:0;right:0;height:2px;z-index:520;background:transparent}
.scroll-progress span{display:block;height:100%;background:var(--accent);transform:scaleX(0);transform-origin:left}

/* ═══════════════ NAV ═══════════════ */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:300;
  display:flex;align-items:center;justify-content:space-between;
  padding:1.2rem var(--pad-x);
  transition:padding .4s var(--ease),box-shadow .4s;
}
.nav::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:transparent;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  opacity:0;transition:opacity .4s var(--ease);
}
.nav.scrolled{
  padding:.75rem var(--pad-x);
  box-shadow:0 1px 0 var(--line);
}
.nav.scrolled::before{background:rgba(251,250,247,.92);opacity:1}
.logo{display:flex;align-items:center;gap:.55rem;color:var(--ink)}
.logo svg{width:28px;height:28px}
.logo-word{font-family:var(--display);font-weight:700;font-size:1.2rem;letter-spacing:.18em}

.nav-links{display:flex;align-items:center;gap:clamp(1.1rem,2.4vw,2.2rem)}
.nav-link{
  font-size:.74rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  position:relative;
}
.nav-link::after{
  content:"";position:absolute;left:0;bottom:-4px;width:100%;height:2px;
  background:var(--accent);transform:scaleX(0);transform-origin:right;
  transition:transform .4s var(--ease);
}
.nav-link:hover::after{transform:scaleX(1);transform-origin:left}

.btn{
  display:inline-flex;align-items:center;gap:.6rem;
  font-family:var(--body);font-size:.74rem;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;
  padding:1rem 1.6rem;border-radius:999px;
  transition:all .35s var(--ease);white-space:nowrap;
}
.btn-solid{background:var(--ink);color:var(--bg)}
.btn-solid:hover{background:var(--accent)}
.btn-ghost{border:1px solid var(--line-strong);color:var(--ink)}
.btn-ghost:hover{border-color:var(--ink);background:var(--ink);color:var(--bg)}

.nav-toggle{display:none;flex-direction:column;gap:6px;background:none;border:0;cursor:pointer;padding:.4rem}
.nav-toggle span{width:26px;height:2px;background:var(--ink);transition:transform .4s var(--ease),opacity .3s}
.nav-toggle.open span:first-child{transform:translateY(4px) rotate(45deg)}
.nav-toggle.open span:last-child{transform:translateY(-4px) rotate(-45deg)}

/* ═══════════════ HERO ═══════════════ */
.hero{
  min-height:100svh;
  position:relative;
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:0 var(--pad-x) 2.6rem;
  overflow:hidden;
  color:var(--bg);
}
.hero-bg{position:absolute;inset:0;z-index:0}
.hero-bg img{width:100%;height:100%;object-fit:cover}
.hero-bg-overlay{
  position:absolute;inset:0;
  background:
    linear-gradient(to top,rgba(18,17,16,.78) 0%,rgba(18,17,16,.18) 45%,rgba(18,17,16,.42) 100%);
}
.hero-meta{
  position:absolute;top:6.2rem;left:var(--pad-x);right:var(--pad-x);z-index:3;
  display:flex;justify-content:space-between;
  color:rgba(251,250,247,.7);font-size:.66rem;
}
.hero-inner{position:relative;z-index:2;padding-bottom:.4rem}
.eyebrow{display:inline-block;color:rgba(251,250,247,.85);margin-bottom:1.2rem}
.hero-title{
  font-family:var(--display);
  font-weight:700;
  font-size:clamp(3.1rem,10.2vw,9.8rem);
  line-height:.96;
  letter-spacing:-.02em;
}
.hero-line{display:block;overflow:hidden}
.line-mask{display:block;overflow:hidden;padding-bottom:.06em}
.line-in{display:inline-block;transform:translateY(112%)}
.hero-title .line-in{color:var(--bg)}
.hero-title .accent{color:var(--accent)}
.hero-sub{margin-top:1.6rem;color:rgba(251,250,247,.85);max-width:34rem}
.hero-actions{display:flex;gap:1rem;margin-top:2.2rem;flex-wrap:wrap}

@media (max-height:760px) and (min-width:601px){
  .hero-title{font-size:clamp(2.6rem,8vw,6.2rem)}
  .hero{padding-bottom:1.6rem}
}

.btn-line{border:1px solid rgba(251,250,247,.55);color:var(--bg)}
.btn-line:hover{border-color:var(--bg);background:var(--bg);color:var(--ink)}

.hero-bottom{
  position:relative;z-index:2;
  display:flex;justify-content:space-between;align-items:center;
  border-top:1px solid rgba(251,250,247,.25);
  margin-top:1.6rem;padding-top:1rem;
  color:rgba(251,250,247,.7);font-size:.66rem;
}
.scroll-hint{display:flex;align-items:center;gap:.5rem;color:var(--bg)}

/* sello giratorio */
.seal{
  position:absolute;top:7.4rem;right:calc(var(--pad-x) + .5rem);z-index:3;
  width:150px;height:150px;
}
.seal > svg{width:100%;height:100%;animation:spin 16s linear infinite}
.seal-text{font-family:var(--body);font-size:13.5px;font-weight:700;letter-spacing:.26em;fill:rgba(251,250,247,.9)}
.seal-center{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:66px;height:66px;
}
.seal-center svg{width:100%;height:100%;color:var(--bg)}
.seal-center .logo-house{stroke:var(--bg)}
@keyframes spin{to{transform:rotate(360deg)}}

/* ═══════════════ GRANO + SCROLLBAR ═══════════════ */
.grain{
  position:fixed;inset:0;z-index:540;pointer-events:none;opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::-webkit-scrollbar{width:9px;height:9px}
::-webkit-scrollbar-track{background:var(--bg)}
::-webkit-scrollbar-thumb{background:var(--line-strong);border-radius:99px;border:2px solid var(--bg)}
::-webkit-scrollbar-thumb:hover{background:var(--accent)}
::selection{background:var(--accent);color:var(--bg)}

/* ═══════════════ SECCIONES ═══════════════ */
.section{padding:clamp(5rem,11vw,8.5rem) 0;position:relative}
.sec-bg-num{
  position:absolute;top:2rem;right:1.5rem;z-index:0;
  font-family:var(--display);font-weight:700;line-height:.8;
  font-size:clamp(9rem,20vw,20rem);color:var(--bg-3);
  user-select:none;pointer-events:none;
}
.sec-bg-num-dark{color:rgba(251,250,247,.05)}
.sec-head{
  position:relative;z-index:1;
  display:flex;align-items:baseline;gap:1.2rem;
  border-top:1px solid var(--line-strong);
  padding-top:.85rem;margin-bottom:clamp(2.5rem,6vw,4.5rem);
}
.sec-num{color:var(--accent);font-weight:700}
.sec-title{font-weight:700;letter-spacing:.18em}
.sec-line{flex:1;height:1px;background:var(--line)}
.sec-tip{color:var(--muted);text-transform:none}

/* ═══════════════ ESTUDIO ═══════════════ */
.estudio-flex{
  position:relative;z-index:1;
  display:grid;grid-template-columns:1.08fr .92fr;
  gap:clamp(3rem,6vw,6rem);
}
.est-sticky{position:sticky;top:6rem}
.est-word{
  font-family:var(--display);font-weight:600;
  font-size:clamp(2rem,4.6vw,4rem);
  line-height:1.06;letter-spacing:-.01em;
  max-width:18ch;
}
.est-word .outline-txt{-webkit-text-stroke:1.5px var(--accent)}
.est-sig{color:var(--muted);margin-top:1.8rem}
.estudio-scroll{display:flex;flex-direction:column;gap:2.4rem}
.es-item{margin:0;overflow:hidden;border-radius:1.2rem;position:relative;background:var(--bg-2)}
.es-item img{width:100%;aspect-ratio:4/5;object-fit:cover;will-change:transform}
.es-item-tall img{aspect-ratio:4/6.2}
.es-cap{
  position:absolute;left:1rem;bottom:1rem;z-index:2;
  background:rgba(251,250,247,.88);backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  padding:.45rem .85rem;border-radius:99px;color:var(--ink);
}
.es-p{color:var(--muted);max-width:52ch}

.stats{
  position:relative;z-index:1;
  display:grid;grid-template-columns:repeat(4,1fr);
  border-top:1px solid var(--line-strong);border-bottom:1px solid var(--line-strong);
  margin-top:clamp(3rem,7vw,5rem);
}
.stat{padding:1.7rem 1rem 1.3rem;border-left:1px solid var(--line)}
.stat:first-child{border-left:0}
.stat-v{font-family:var(--display);font-weight:700;font-size:clamp(2.2rem,4.4vw,3.4rem);line-height:1}
.stat-v .count{font-variant-numeric:tabular-nums}
.stat-t{font-size:.66rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-top:.55rem}

/* ═══════════════ PROYECTOS ═══════════════ */
.proyectos{padding-bottom:0;position:relative}
.proj-top{
  position:relative;z-index:1;
  display:flex;justify-content:space-between;
  border-top:1px solid var(--line-strong);
  padding:.9rem 0;color:var(--muted);
  margin-bottom:0;
}
.proj-list{border-top:1px solid var(--line)}
.proj-row{
  display:grid;grid-template-columns:3.5rem 1fr auto auto;align-items:center;gap:1.2rem;
  padding:clamp(1.4rem,2.8vw,2.2rem) .4rem;
  border-bottom:1px solid var(--line);
  position:relative;z-index:1;
  transition:padding .45s var(--ease);
}
.proj-idx{color:var(--muted);font-weight:700}
.proj-name{
  font-family:var(--display);font-weight:600;
  font-size:clamp(1.7rem,4.4vw,3.4rem);
  line-height:1.05;transition:color .3s;
}
.proj-meta{color:var(--muted)}
.proj-arrow{
  width:52px;height:52px;border:1px solid var(--line-strong);border-radius:50%;
  display:grid;place-items:center;transition:all .4s var(--ease);
}
.proj-row:hover{padding-left:1.2rem}
.proj-row:hover .proj-name{color:var(--accent)}
.proj-row:hover .proj-arrow{background:var(--accent);border-color:var(--accent);color:var(--bg);transform:rotate(-45deg)}

.proj-ghost{
  position:fixed;top:0;left:0;z-index:90;width:340px;aspect-ratio:4/5;
  pointer-events:none;display:none;will-change:transform;
}
.proj-ghost img{width:100%;height:100%;object-fit:cover;border-radius:1rem;box-shadow:0 40px 80px -30px rgba(18,17,16,.45)}
.proj-ghost.show{display:block}

/* ═══════════════ BANDA PARALLAX ═══════════════ */
.band{position:relative;height:clamp(420px,68vh,620px);overflow:hidden;display:grid;place-items:center}
.band-bg{position:absolute;inset:-14% 0;z-index:0}
.band-bg img{width:100%;height:100%;object-fit:cover}
.band-bg::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(to bottom,rgba(18,17,16,.55),rgba(18,17,16,.35));
}
.band-inner{position:relative;z-index:2}
.band-title{
  font-family:var(--display);font-weight:700;
  font-size:clamp(2.2rem,6vw,5.4rem);line-height:1.02;
  color:var(--bg);max-width:22ch;
}
.band-title em{color:var(--accent)}

/* ═══════════════ SERVICIOS ═══════════════ */
.servicios{background:var(--ink);color:var(--bg);overflow:hidden}
.servicios .sec-title{color:var(--bg)}
.servicios .sec-num{color:var(--accent)}
.servicios .sec-head{border-top-color:rgba(251,250,247,.22)}
.servicios .sec-line{background:rgba(251,250,247,.16)}
.servicios .sec-tip{color:rgba(251,250,247,.5)}
.serv-grid{
  position:relative;z-index:1;
  display:grid;grid-template-columns:repeat(12,1fr);
  grid-auto-rows:minmax(0,auto);
  gap:1.1rem;
}
.serv-card{
  grid-column:7 / 13;
  border:1px solid rgba(251,250,247,.16);
  border-radius:1.4rem;padding:1.7rem 1.6rem;
  display:flex;flex-direction:column;gap:1.1rem;
  transition:all .45s var(--ease);
}
.serv-card-lg{
  grid-column:1 / 7;grid-row:1 / 4;
  padding:2.2rem;gap:1.6rem;
}
.serv-num{color:var(--accent);font-weight:700}
.serv-title{
  font-family:var(--display);font-weight:700;
  font-size:clamp(1.5rem,2.4vw,2rem);line-height:1.05;
}
.serv-card-lg .serv-title{font-size:clamp(2.1rem,4.2vw,3.2rem)}
.serv-desc{color:rgba(251,250,247,.6);font-size:.92rem;max-width:40ch}
.serv-link{margin-top:auto;display:inline-flex;align-items:center;gap:.5rem;color:var(--accent)}
.serv-card:hover{background:var(--accent);border-color:var(--accent);transform:translateY(-4px)}
.serv-card:hover .serv-desc{color:rgba(251,250,247,.85)}
.serv-card:hover .serv-link{color:var(--bg)}
.serv-card:hover .serv-num{color:rgba(251,250,247,.75)}

/* ═══════════════ EQUIPO ═══════════════ */
.team-grid{
  position:relative;z-index:1;
  display:grid;grid-template-columns:repeat(2,1fr);
  max-width:980px;margin-inline:auto;
  gap:clamp(2rem,4.5vw,3.5rem) clamp(1.5rem,3vw,2.6rem);
}
.member:nth-child(even){margin-top:clamp(2rem,5vw,4rem)}
.member-num{
  font-family:var(--display);font-weight:800;
  font-size:clamp(1.8rem,3vw,2.6rem);line-height:.9;
  color:rgba(18,17,16,.07);display:block;margin-bottom:.8rem;
  user-select:none;
}
.member-photo{
  overflow:hidden;border-radius:1rem;aspect-ratio:1/1;position:relative;
  background:var(--bg-2);will-change:clip-path;
}
.member-photo::after{
  content:"";position:absolute;inset:0;border-radius:inherit;
  box-shadow:inset 0 0 0 1px var(--line);
}
.member-photo img{
  width:100%;height:100%;object-fit:cover;
  filter:grayscale(1);
  transition:filter .6s var(--ease),transform 1.4s var(--ease);
}
.member:hover .member-photo img{filter:grayscale(0);transform:scale(1.05)}
.member-info{margin-top:1.1rem}
.member-name{font-family:var(--display);font-weight:600;font-size:clamp(1.5rem,2.4vw,2.1rem)}
.member-role{color:var(--accent);display:block;margin-top:.3rem}
.member-bio{color:var(--muted);font-size:.9rem;margin-top:.55rem;max-width:38ch}

/* ═══════════════ CONTACTO ═══════════════ */
.contacto{background:var(--ink);color:var(--bg);border-radius:1.6rem 1.6rem 0 0;overflow:hidden}
.contacto .sec-title{color:var(--bg)}
.contacto .sec-num{color:var(--accent)}
.contacto .sec-line{background:rgba(251,250,247,.16)}
.contacto-grid{position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr;gap:clamp(2.5rem,6vw,5rem)}
.contacto-title{font-family:var(--display);font-weight:700;font-size:clamp(2.4rem,5.4vw,4.2rem);line-height:1.02;margin-bottom:1.3rem}
.contacto-sub{color:rgba(251,250,247,.65);max-width:40ch;margin-bottom:2.4rem}
.contacto-data{display:flex;flex-direction:column}
.c-item{display:flex;align-items:center;gap:1.2rem;padding:1.15rem 0;border-bottom:1px solid rgba(251,250,247,.16)}
.c-label{color:var(--accent);width:6rem;flex-shrink:0;font-weight:700}
.c-val{font-weight:600;flex:1}
.c-item i{margin-left:auto;opacity:0;transform:translateX(-8px);transition:all .35s var(--ease)}
a.c-item:hover i{opacity:1;transform:translateX(0)}
a.c-item:hover .c-val{color:var(--accent)}

.contacto-form{display:flex;flex-direction:column;gap:1.3rem}
.f-row{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem}
.f-field{display:flex;flex-direction:column;gap:.5rem}
.f-label{font-size:.62rem;font-weight:700;color:var(--accent);letter-spacing:.14em;text-transform:uppercase}
.f-field input,.f-field select,.f-field textarea{
  background:rgba(251,250,247,.06);
  border:1px solid rgba(251,250,247,.2);
  border-radius:.6rem;
  padding:.9rem 1rem;color:var(--bg);
  outline:none;transition:border-color .3s;
}
.f-field input::placeholder,.f-field textarea::placeholder{color:rgba(251,250,247,.4)}
.f-field input:focus,.f-field select:focus,.f-field textarea:focus{border-color:var(--accent)}
.f-field select{appearance:none;cursor:pointer}
.f-field select option{color:var(--ink);background:var(--bg)}
.f-submit{align-self:flex-start;background:var(--accent);margin-top:.3rem}
.f-submit:hover{background:var(--bg);color:var(--ink)}
.f-note{margin-top:.6rem;color:rgba(251,250,247,.7);font-size:.62rem}
.f-note.ok{color:#B7E0A5}

/* ═══════════════ FOOTER ═══════════════ */
.footer{background:var(--bg);position:relative;overflow:hidden;border-top:1px solid var(--line)}
.footer-top{display:grid;grid-template-columns:auto 1fr;gap:clamp(2rem,6vw,6rem);padding:3.2rem 0 2rem;align-items:start}
.footer-cols{display:grid;grid-template-columns:repeat(3,auto);gap:clamp(2rem,5vw,4rem);justify-content:end}
.footer-col{display:flex;flex-direction:column;gap:.55rem}
.f-col-title{color:var(--accent);font-weight:700;margin-bottom:.3rem}
.footer-col a{color:var(--muted);font-size:.9rem;transition:color .3s}
.footer-col a:hover{color:var(--accent)}
.footer-word{
  font-family:var(--display);font-weight:700;
  font-size:clamp(3.5rem,11vw,8rem);line-height:1;
  text-align:center;letter-spacing:.04em;user-select:none;
  color:var(--bg-2);
  padding:1rem 0 0;
}
.footer-bottom{
  display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  border-top:1px solid var(--line);
  padding:1.1rem 0 1.6rem;color:var(--muted);font-size:.62rem;
}

/* ═══════════════ VISTA DE PROYECTO ═══════════════ */
.project-view{
  position:fixed;inset:0;z-index:400;background:var(--bg);
  overflow-y:auto;-webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}
.project-view[hidden]{display:none}
.pv-header{
  position:sticky;top:0;z-index:10;
  display:flex;align-items:center;justify-content:space-between;
  padding:1rem var(--pad-x);
  background:rgba(251,250,247,.9);backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.pv-back .fa-arrow-left{margin-right:.3rem}
.pv-counter{color:var(--muted);font-weight:700}
.pv-body{padding:clamp(1.5rem,3vw,3rem) var(--pad-x) clamp(4rem,8vw,6rem)}
.pv-hero{overflow:hidden;border-radius:1.4rem;margin-bottom:2.2rem}
.pv-hero img{width:100%;height:auto;max-height:78vh;object-fit:cover}
.pv-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:1.5rem;margin-bottom:2rem}
.pv-title{font-family:var(--display);font-weight:700;font-size:clamp(2.4rem,6vw,5rem);line-height:1}
.pv-meta{display:flex;gap:1.6rem;flex-wrap:wrap;color:var(--muted);font-size:.72rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase}
.pv-meta b{color:var(--accent);font-weight:700}
.pv-desc{max-width:60ch;color:var(--muted);margin-bottom:2.6rem}
.pv-gallery{display:grid;grid-template-columns:repeat(12,1fr);gap:1.2rem}
.pv-gallery img{width:100%;height:100%;object-fit:cover;border-radius:1rem;aspect-ratio:4/3}
.pv-gallery .g-full{grid-column:span 12}
.pv-gallery .g-full img{aspect-ratio:16/9}
.pv-gallery .g-half{grid-column:span 6}
.pv-nav{
  display:flex;justify-content:space-between;gap:1rem;
  margin-top:3rem;padding-top:1.6rem;border-top:1px solid var(--line);
}

/* ═══════════════ VIEW TRANSITIONS ═══════════════ */
::view-transition-group(root){animation-duration:.55s}
::view-transition-group(pv-hero){animation-duration:.7s}
::view-transition-old(pv-hero){animation:none}
::view-transition-new(pv-hero){animation:none}

html[data-vt="open"]::view-transition-old(root){animation:none}
html[data-vt="open"]::view-transition-new(root){animation:pv-cover .55s var(--ease) both}
@keyframes pv-cover{from{clip-path:inset(100% 0 0 0)}to{clip-path:inset(0 0 0 0)}}

html[data-vt="close"]::view-transition-old(root){animation:pv-cover-rev .45s var(--ease) both}
@keyframes pv-cover-rev{to{clip-path:inset(100% 0 0 0)}}

html[data-vt="nav"]::view-transition-old(root){animation:pv-shrink .4s var(--ease) both}
html[data-vt="nav"]::view-transition-new(root){animation:pv-grow .4s var(--ease) both}
@keyframes pv-shrink{to{opacity:0;transform:scale(.96)}}
@keyframes pv-grow{from{opacity:0;transform:scale(1.04)}}

/* ═══════════════ TRANSICIÓN SIN VIEW TRANSITIONS ═══════════════ */
.project-view.pv-enter{animation:pv-in .55s var(--ease) both}
@keyframes pv-in{from{clip-path:inset(100% 0 0 0)}to{clip-path:inset(0 0 0 0)}}
.project-view.pv-leave{animation:pv-out .45s var(--ease) both}
@keyframes pv-out{to{clip-path:inset(100% 0 0 0)}}

/* ═══════════════ REVELADOS ═══════════════ */
.reveal-in,.reveal-up,.reveal-fade{opacity:0}
.reveal-in{transform:translateY(40px)}
.reveal-up{transform:translateY(60px)}
.reveal-fade{transform:translateY(24px)}
.d1{transition-delay:.08s!important}
.d2{transition-delay:.16s!important}

.split .wl{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.08em}
.split .wi{display:inline-block;transform:translateY(120%);transition:transform 1s var(--ease)}

/* ═══════════════ CURSOR SOLO DESKTOP ═══════════════ */
@media (hover:hover) and (pointer:fine){
  .cursor-dot,.cursor-ring{display:block}
  body{cursor:none}
  a,button,.nav-toggle,.proj-row{cursor:none}
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width:1024px){
  .serv-card,.serv-card-lg{grid-column:auto;grid-row:auto}
  .serv-card{grid-column:span 6}
  .serv-card-lg{grid-column:1/-1}
}

@media (max-width:900px){
  .nav-links{
    position:fixed;inset:0;background:var(--bg);
    flex-direction:column;justify-content:center;gap:2rem;
    transform:translateY(-100%);
    opacity:0;visibility:hidden;pointer-events:none;
    transition:transform .6s var(--ease),opacity .35s var(--ease),visibility 0s .6s;
  }
  .nav-links.open{
    transform:translateY(0);opacity:1;visibility:visible;pointer-events:auto;
    transition:transform .6s var(--ease),opacity .35s var(--ease),visibility 0s;
  }
  .nav-link{font-size:1.05rem}
  .nav-toggle{display:flex}
  .nav-links .btn{margin-top:.6rem}
  .hero{padding-bottom:2.4rem}
  .hero-meta span:last-child{display:none}
  .seal{top:auto;bottom:4.6rem;right:1rem;width:106px;height:106px}
  .seal-center{width:50px;height:50px}
  .estudio-flex{grid-template-columns:1fr}
  .est-sticky{position:static}
  .stats{grid-template-columns:1fr 1fr}
  .stat:nth-child(3){border-left:0}
  .stat{border-top:1px solid var(--line)}
  .stat:nth-child(-n+2){border-top:0}
  .contacto-grid{grid-template-columns:1fr}
  .f-row{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr}
  .proj-ghost{display:none!important}
}

@media (max-width:600px){
  .proj-row{grid-template-columns:2.6rem 1fr auto}
  .proj-meta{display:none}
  .team-grid{grid-template-columns:1fr;max-width:460px}
  .member:nth-child(even){margin-top:0}
  .member-photo{aspect-ratio:4/4.4}
  .serv-grid{grid-template-columns:1fr}
  .serv-card,.serv-card-lg{grid-column:auto;grid-row:auto}
  .footer-cols{grid-template-columns:1fr 1fr}
  .pv-gallery .g-half{grid-column:span 12}
}

/* ═══════════════ MOTION OFF ═══════════════ */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
  .line-in,.split .wi{transform:none}
  .reveal-in,.reveal-up,.reveal-fade{opacity:1;transform:none}
}
