/* =========================================================
   Colores y medidas (cambialos acá)
   ========================================================= */
:root {
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --white: #fff;
  --gray: #999d9e;       /* fondo del inicio */
  --dark: #1c1d20;       /* oscuro principal */
  --darker: #141517;     /* pantalla de carga */
  --blue: #455ce9;       /* color de los botones */
  --blue-dark: #334bd3;
  --line: rgba(28, 29, 32, .175);
  --line-light: rgba(255, 255, 255, .2);
  --gap: 8vw;
  --gap2: 16vw;
  --ease: cubic-bezier(.7, 0, .3, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  font-family: var(--font); font-weight: 400; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6;
  color: var(--dark); background: var(--dark);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-loading { overflow: hidden; height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { display: block; }
h1, h2, h4 { font-weight: 400; }
.small-label, .tiny { font-size: 11px; text-transform: uppercase; letter-spacing: .02em; opacity: .5; }

/* =========================================================
   1. Pantalla de carga
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 900; background: var(--darker); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: transform 1s var(--ease);
}
.loader.done { transform: translateY(calc(-100% - 12vh)); }
.loader-word { display: flex; align-items: center; gap: .55em; font-size: clamp(36px, 3.4vw, 52px); opacity: 0; animation: loaderIn .5s .15s forwards; }
.loader-word .dot { width: .22em; height: .22em; border-radius: 50%; background: var(--white); }
@keyframes loaderIn { from { opacity: 0; transform: translateY(20px); } to { opacity: .9; transform: none; } }

/* Borde redondeado (se usa en la carga y antes del contacto) */
.round-edge { position: relative; overflow: hidden; height: 10vh; pointer-events: none; }
.round-edge > div { position: absolute; left: -25%; bottom: 0; width: 150%; height: 750%; border-radius: 50%; }
.round-edge-loader { position: absolute; top: 100%; left: 0; width: 100%; height: 12vh; }
.round-edge-loader > div { background: var(--darker); }
/* Curva blanca antes del contacto: cae sobre la parte oscura con sombra */
.footer-edge { --edge: 10vh; position: relative; height: 0; z-index: 3; }
.footer-edge-clip { position: absolute; top: 0; left: 0; width: 100%; height: calc(var(--edge) + 160px); overflow: hidden; pointer-events: none; }
.footer-edge-oval {
  position: absolute; left: -25%; width: 150%;
  top: calc(var(--edge) * -6.5); height: calc(var(--edge) * 7.5);
  border-radius: 50%; background: var(--white);
  box-shadow: 0 30px 50px -10px rgba(0, 0, 0, .5), 0 10px 20px -5px rgba(0, 0, 0, .25);
}

/* Animación de entrada del inicio (después de la carga) */
.once-in { transform: translateY(50vh); transition: transform 1.6s var(--ease-out); }
body.loaded .once-in { transform: none; }
body.loaded .hanger.once-in { transition-delay: .05s; }
body.loaded .big-name.once-in { transition-delay: .1s; }

/* =========================================================
   2. Botón de menú + menú lateral
   ========================================================= */
.menu-btn {
  position: fixed; top: 28px; right: 28px; z-index: 300;
  width: clamp(64px, 5.5vw, 80px); height: clamp(64px, 5.5vw, 80px); border-radius: 50%;
  background: var(--dark); overflow: hidden; isolation: isolate;
  transform: scale(0); transition: transform .45s var(--ease);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.menu-btn.show, body.menu-open .menu-btn { transform: scale(1); }
.burger { position: relative; display: block; width: 32%; height: 10px; margin: auto; }
.burger i { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--white); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger i:first-child { top: 0; }
.burger i:last-child  { top: 8.5px; }
body.menu-open .burger i:first-child { top: 4.25px; transform: rotate(45deg); }
body.menu-open .burger i:last-child  { top: 4.25px; transform: rotate(-45deg); }
body.menu-open .menu-btn .fill { top: -25%; }
.menu-btn .fill { background: var(--blue); }

.menu-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .8s var(--ease); }
body.menu-open .menu-overlay { opacity: 1; pointer-events: auto; }
.side-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 250;
  width: min(540px, 100vw); background: var(--dark); color: var(--white);
  transform: translateX(calc(100% + 160px)); transition: transform .9s var(--ease);
}
body.menu-open .side-menu { transform: none; }
.side-curve { position: absolute; top: 0; right: calc(100% - 1px); width: 120px; height: 100%; fill: var(--dark); }
.side-inner { position: relative; height: 100%; display: flex; flex-direction: column; padding: 15vh 7vw 6vh 7.5vw; overflow-y: auto; }
.side-label { font-size: 11px; text-transform: uppercase; opacity: .5; padding-bottom: 24px; border-bottom: 1px solid var(--line-light); margin-bottom: 40px; }
.side-label:not(:first-child) { margin-top: auto; margin-bottom: 20px; padding-bottom: 20px; }
.side-links { display: flex; flex-direction: column; }
.side-link {
  position: relative; width: fit-content; font-size: clamp(40px, 3.9vw, 56px); line-height: 1.3;
  transform: translateX(100px); transition: transform 1s var(--ease);
}
.side-link::before {
  content: ""; position: absolute; left: -32px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--white); transform: scale(0); transition: transform .3s var(--ease-out);
}
.side-link:hover::before, .side-link.active::before { transform: scale(1); }
body.menu-open .side-link { transform: none; }
body.menu-open .side-link:nth-child(2) { transition-delay: .04s; }
body.menu-open .side-link:nth-child(3) { transition-delay: .08s; }
body.menu-open .side-link:nth-child(4) { transition-delay: .12s; }
.side-socials { display: flex; gap: 28px; }
.side-socials a, .footer-socials a { position: relative; }
.side-socials a::after, .footer-socials a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.side-socials a:hover::after, .footer-socials a:hover::after { transform: scaleX(1); transform-origin: left; }

/* =========================================================
   Botones (relleno azul que sube + efecto magnético)
   ========================================================= */
.fill {
  position: absolute; left: -25%; top: 100%; z-index: -1;
  width: 150%; height: 200%; border-radius: 50%; background: var(--blue);
  transition: top .7s var(--ease);
}
.magnetic:hover .fill { top: -25%; }
.btn-text { position: relative; display: inline-block; white-space: nowrap; transition: color .4s; }
.round-btn {
  position: relative; overflow: hidden; isolation: isolate;
  width: clamp(130px, 12vw, 180px); height: clamp(130px, 12vw, 180px); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark); color: var(--white);
}
.round-btn-blue { background: var(--blue); }
.round-btn-blue .fill { background: var(--blue-dark); }
.pill-btn {
  position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center;
  padding: 1.45em 2.6em; border-radius: 999px; border: 1px solid rgba(28,29,32,.25);
  transition: border-color .4s;
}
.pill-btn:hover { border-color: var(--blue); color: var(--white); }
.pill-btn sup { font-size: .6em; margin-left: .35em; vertical-align: .75em; opacity: .6; }
.pill-btn-dark { border-color: var(--line-light); color: var(--white); }

/* =========================================================
   3. Inicio
   ========================================================= */
main { position: relative; z-index: 2; background: var(--white); }
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; background: var(--gray); color: var(--white); }
.hero-portrait { position: absolute; left: 50%; bottom: 0; width: min(62vh, 72vw); margin-left: calc(min(62vh, 72vw) / -2); }
.hero-portrait img { width: 100%; height: auto; will-change: transform; }

.site-top { position: absolute; inset: 0 0 auto 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 2.6vw 2.4vw; }
.logo { display: flex; align-items: center; white-space: nowrap; }
.logo-c { display: inline-block; margin-right: .35em; transition: transform .8s var(--ease); }
.logo-by, .logo-first, .logo-last { display: inline-block; transition: max-width .8s var(--ease), transform .8s var(--ease), margin .8s var(--ease); }
.logo-by { max-width: 7em; overflow: hidden; margin-right: .3em; }
.logo-last { max-width: 0; overflow: hidden; transform: translateX(-120%); }
.logo:hover .logo-c { transform: rotate(360deg); }
.logo:hover .logo-by { max-width: 0; margin-right: 0; transform: translateX(-120%); }
.logo:hover .logo-last { max-width: 9em; margin-left: .3em; transform: none; }
.top-nav { display: flex; gap: 6px; }
.nav-link { position: relative; padding: 10px 14px; }
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: currentColor; transform: scale(0); transition: transform .3s var(--ease-out);
}
.nav-link:hover::after, .nav-link.active::after { transform: scale(1); }

/* Cartel con el mundito */
.hanger {
  position: absolute; left: 0; top: 43vh; z-index: 2;
  display: flex; align-items: center; gap: 2.6vw;
  background: var(--dark); color: var(--white);
  padding: 1.2em 1.1em 1.2em 2.4vw; border-radius: 0 999px 999px 0;
  font-size: clamp(14px, 1.2vw, 18px); line-height: 1.3;
}
.hanger p span { display: block; }
/* ---- El mundito ----
   Un círculo con borde blanco que se balancea (globe-wrap),
   3 meridianos que se cierran hasta ser una línea y se abren del otro lado (g-circle),
   una elipse horizontal (g-hor) y la línea del ecuador (g-hor-mid). */
.globe-ball { position: relative; width: 4.2em; height: 4.2em; border-radius: 50%; background: var(--gray); flex: none; }
.globe {
  position: absolute; top: 50%; left: 50%; width: 2.5em; height: 2.5em; font-size: .8em;
  transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden;
}
.globe-wrap {
  position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  box-shadow: inset 0 0 0 .125em var(--white);
  transform: translate(-50%, -50%) rotate(30deg);
  animation: globeSwing 5.4s cubic-bezier(.35, 0, .65, 1) -1.8s infinite;
}
.g-circle {
  position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; font-size: .75em;
  transform: translate(-50%, -50%); border-radius: 50%;
  box-shadow: inset .1em 0 0 .08em var(--white);
  animation: globeMeridian 2.7s linear infinite;
}
.g-circle:nth-child(1) { animation-delay: -1.8s; }
.g-circle:nth-child(2) { animation-delay: -.9s; }
.g-hor {
  position: absolute; top: 50%; left: 50%; width: 150%; height: 55%; font-size: .75em;
  transform: translate(-50%, -50%); border-radius: 50%;
  box-shadow: inset 0 0 0 .15em var(--white);
}
.g-hor-mid {
  position: absolute; top: 50%; left: 50%; width: 150%; height: .15em; font-size: .75em;
  transform: translate(-50%, -50%); background: var(--white);
}
@keyframes globeSwing {
  0%   { transform: translate(-50%, -50%) rotate(15deg); }
  50%  { transform: translate(-50%, -50%) rotate(-15deg); }
  100% { transform: translate(-50%, -50%) rotate(15deg); }
}
@keyframes globeMeridian {
  0%   { border-radius: 50%; box-shadow: inset .1em 0 0 .08em var(--white); width: 100%; }
  49%  { border-radius: 50%; box-shadow: inset .1em 0 0 .08em var(--white); background: transparent; }
  50%  { border-radius: 0;   width: .175em; background: var(--white); }
  51%  { border-radius: 50%; box-shadow: inset -.1em 0 0 .08em var(--white); background: transparent; }
  100% { border-radius: 50%; box-shadow: inset -.1em 0 0 .08em var(--white); width: 100%; }
}

.hero-role { position: absolute; left: 63vw; top: 40vh; z-index: 2; }
.hero-arrow { width: clamp(16px, 1.25vw, 20px); height: clamp(16px, 1.25vw, 20px); fill: none; stroke: currentColor; stroke-width: 1.5; margin-bottom: 4.5vw; }
.hero-role h4 { font-size: clamp(24px, 2.3vw, 36px); line-height: 1.3; }

.big-name { position: absolute; left: 0; bottom: 0; width: 100%; padding-bottom: 3.6vh; z-index: 2; overflow: hidden; pointer-events: none; }
.big-name-move { will-change: transform; }
.big-name-track { display: flex; width: max-content; will-change: transform; }
.big-name h1 { font-size: clamp(90px, 15vw, 260px); line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.big-name .spacer { padding: 0 .1em 0 .12em; }

/* =========================================================
   4. Intro
   ========================================================= */
.intro { position: relative; display: flex; padding: 13vw var(--gap) 9vw var(--gap2); }
.intro-title { width: 45vw; font-size: clamp(22px, 2.3vw, 36px); line-height: 1.45; }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); }
.split-words.in .w > span { transform: none; }
.intro-side { margin-left: 5vw; width: 17vw; padding-top: .6em; }
.intro-side p { opacity: .65; line-height: 1.65; }
.intro-btn { margin-top: 3vw; will-change: transform; }

/* =========================================================
   5. Trabajos recientes
   ========================================================= */
.work { padding: 0 var(--gap) 3vw; }
.work .small-label { padding-left: var(--gap); margin-bottom: 3vw; }
.work-list { list-style: none; border-bottom: 1px solid var(--line); }
.work-item { border-top: 1px solid var(--line); }
.work-item a { display: flex; align-items: center; justify-content: space-between; padding: 4.4vw var(--gap) 4.4vw var(--gap); }
.work-item h4 { font-size: clamp(40px, 5.25vw, 84px); line-height: 1.15; letter-spacing: -0.01em; transition: transform .4s var(--ease-out), opacity .4s; }
.work-item p { min-width: 22vw; transition: transform .4s var(--ease-out), opacity .4s; }
.work-item a:hover h4 { transform: translateX(-10px); opacity: .4; }
.work-item a:hover p { transform: translateX(10px); opacity: .4; }
.work-item .tile { display: none; }
.more-work { display: flex; justify-content: center; padding: 8vw 0 9vw; }

/* Ventanita flotante */
.preview {
  position: fixed; top: 0; left: 0; z-index: 50; pointer-events: none;
  width: clamp(300px, 28vw, 420px); height: clamp(260px, 24vw, 360px); overflow: hidden;
  transform: translate(-50%, -50%) scale(0); transition: transform .5s var(--ease);
}
.preview.show { transform: translate(-50%, -50%) scale(1); }
.preview-strip { height: 100%; transition: transform .6s var(--ease); }
.preview-strip > div { height: 100%; display: grid; place-items: center; }
.preview-strip img { width: 80%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.preview-view {
  position: fixed; top: 0; left: 0; z-index: 51; pointer-events: none;
  width: 80px; height: 80px; border-radius: 50%; background: var(--blue); color: var(--white);
  display: grid; place-items: center; font-size: 15px;
  transform: translate(-50%, -50%) scale(0); transition: transform .45s var(--ease);
}
.preview-view.show { transform: translate(-50%, -50%) scale(1); }

/* =========================================================
   6. Contacto
   ========================================================= */
.footer { position: relative; z-index: 1; background: var(--dark); color: var(--white); overflow: hidden; }
.footer-inner { padding: calc(10vh + 9vw) 0 0; will-change: transform; }
.footer-title { padding: 0 var(--gap) 0 var(--gap2); font-size: clamp(48px, 6.1vw, 100px); line-height: 1.06; }
.footer-avatar { display: inline-block; width: .9em; height: .9em; border-radius: 50%; overflow: hidden; vertical-align: -.1em; margin-right: .2em; background: var(--gray); }
.footer-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.footer-line { position: relative; margin: 5vw var(--gap) 0 var(--gap2); border-bottom: 1px solid var(--line-light); }
.footer-cta { position: absolute; right: 12vw; top: 0; transform: translateY(-50%); }
.footer-cta .round-btn { width: clamp(140px, 12vw, 190px); height: clamp(140px, 12vw, 190px); }
.footer-arrow { position: absolute; right: 0; bottom: 6vw; width: 20px; height: 20px; transform: rotate(90deg); }
.footer-arrow svg, .contact-arrow, .about-arrow { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.footer-pills { display: flex; flex-wrap: wrap; gap: 16px; padding: 4vw var(--gap) 0 var(--gap2); margin-top: 5vw; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 8vw 2.4vw 2.4vw; font-size: 15px;
}
.footer-info { display: flex; gap: 3.5vw; }
.footer-bottom .tiny { margin-bottom: 14px; }
.footer-socials { display: flex; gap: 24px; }


/* =========================================================
   Transición entre páginas (telón oscuro con el nombre)
   ========================================================= */
.pt {
  position: fixed; left: 0; top: 0; width: 100%; height: 100vh; z-index: 800;
  background: var(--darker); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(calc(100% + 14vh)); pointer-events: none;
}
.pt-curve { position: absolute; left: 0; width: 100%; height: 12vh; overflow: hidden; pointer-events: none; }
.pt-curve > div { position: absolute; left: -25%; width: 150%; height: 750%; border-radius: 50%; background: var(--darker); }
.pt-curve-top { bottom: 100%; transition: height .85s var(--ease); }
.pt-curve-top > div { top: 0; }
.pt-curve-bottom { top: 100%; height: 0; transition: height .9s var(--ease); }
.pt-curve-bottom > div { bottom: 0; }
.pt-label { display: flex; align-items: center; gap: .55em; font-size: clamp(36px, 3.4vw, 52px); opacity: 0; transition: opacity .4s .25s; }
.pt-label .dot { width: .22em; height: .22em; border-radius: 50%; background: var(--white); }
/* 1) Al hacer click: el telón sube desde abajo y tapa todo */
.pt.pt-enter { transform: none; transition: transform .85s var(--ease); pointer-events: auto; }
.pt.pt-enter .pt-curve-top { height: 0; }
.pt.pt-enter .pt-label { opacity: .9; }
/* 2) En la página nueva: arranca tapando y se va para arriba con la curva abajo */
html.pt-in .pt { transform: none; pointer-events: auto; }
html.pt-in .pt .pt-label { opacity: .9; transition: none; }
html.pt-in .pt .pt-curve-top { height: 0; transition: none; }
html.pt-in .pt.pt-leave { transform: translateY(calc(-100% - 14vh)); transition: transform 1s var(--ease); pointer-events: none; }
html.pt-in .pt.pt-leave .pt-curve-bottom { height: 12vh; }
html.pt-in .pt.pt-leave .pt-label { opacity: 0; transition: opacity .3s; }
html.pt-in .loader { display: none; }

/* =========================================================
   Páginas internas: encabezado
   ========================================================= */
.page-header { padding: calc(10vw + 80px) var(--gap) 0 var(--gap2); }
.page-title { font-size: clamp(44px, 6.2vw, 100px); line-height: 1.08; letter-spacing: -0.015em; max-width: 12em; }
.once-in.page-header, .work-filters.once-in, .work-all.once-in, .line-globe.once-in, .about-image.once-in, .contact-layout.once-in { transform: translateY(30vh); }
body.loaded .once-in.page-header, body.loaded .work-filters.once-in, body.loaded .work-all.once-in,
body.loaded .line-globe.once-in, body.loaded .about-image.once-in, body.loaded .contact-layout.once-in { transform: none; }
body.loaded .work-filters.once-in, body.loaded .line-globe.once-in { transition-delay: .05s; }
body.loaded .work-all.once-in, body.loaded .about-image.once-in { transition-delay: .1s; }

/* =========================================================
   Página Trabajos
   ========================================================= */
.work-filters { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 4vw var(--gap2) 6vw; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill { padding: 1.15em 2.1em; border-color: rgba(28,29,32,.15); }
.filter-pill.active { background: var(--dark); border-color: var(--dark); color: var(--white); }
.filter-pill sup { font-size: .55em; }
.view-btns { display: flex; gap: 8px; }
.view-btn {
  position: relative; overflow: hidden; isolation: isolate;
  width: clamp(54px, 4.4vw, 66px); height: clamp(54px, 4.4vw, 66px); border-radius: 50%;
  border: 1px solid rgba(28,29,32,.15); display: grid; place-items: center; transition: color .4s, border-color .4s;
}
.view-btn svg { width: 38%; height: 38%; fill: none; stroke: currentColor; stroke-width: 1.4; }
.view-btn.active { background: var(--dark); border-color: var(--dark); color: var(--white); }
.view-btn:hover { color: var(--white); border-color: var(--blue); }
.work-all { transition: transform 1.6s var(--ease-out); }
.work-all > div, .work-all > ul { transition: opacity .35s ease; }
.work-all.fading > div:not(.more-work), .work-all.fading > ul { opacity: 0; }
.work-table { padding: 0 var(--gap); }
.work-table-head, .work-row a { display: grid; grid-template-columns: 1.7fr 1fr 1.1fr .4fr; gap: 20px; align-items: center; padding: 0 var(--gap); }
.work-table-head { font-size: 11px; text-transform: uppercase; opacity: .5; padding-bottom: 3vw; }
.work-rows { list-style: none; border-bottom: 1px solid var(--line); }
.work-row { border-top: 1px solid var(--line); }
.work-row a { padding-top: 2.6vw; padding-bottom: 2.6vw; }
.work-row h4 { font-size: clamp(24px, 2.6vw, 40px); transition: transform .4s var(--ease-out), opacity .4s; }
.work-row p { font-size: 15px; transition: transform .4s var(--ease-out), opacity .4s; }
.work-row p:last-child { text-align: right; }
.work-row a:hover h4 { transform: translateX(-10px); opacity: .4; }
.work-row a:hover p { transform: translateX(10px); opacity: .4; }
.work-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6vw 4vw; padding: 0 var(--gap2); }
.work-card .tile { display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; margin-bottom: 2vw; }
.work-card .tile img { width: 80%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease-out); }
.work-card a:hover .tile img { transform: scale(1.04); }
.work-card h4 { font-size: clamp(30px, 3.4vw, 54px); padding-bottom: 1.4vw; border-bottom: 1px solid var(--line); margin-bottom: 1.4vw; }
.card-meta { display: flex; justify-content: space-between; font-size: 15px; }

/* =========================================================
   Página Sobre mí
   ========================================================= */
.line-globe { position: relative; margin: 5vw var(--gap2) 0; border-bottom: 1px solid var(--line); }
.line-globe-ball { position: absolute; right: 2vw; top: 0; transform-origin: center; }
.big-ball {
  position: relative; display: block; width: clamp(140px, 12vw, 180px); height: clamp(140px, 12vw, 180px);
  margin-top: calc(clamp(140px, 12vw, 180px) / -2); border-radius: 50%; overflow: hidden; background: var(--blue);
  font-size: clamp(15px, 1.2vw, 18px);
}
.big-ball-overlay { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out; animation: ballColor 6s ease-in-out infinite; }
.big-ball:hover .big-ball-overlay { opacity: 1; }
@keyframes ballColor { 0%, 100% { background: var(--blue); } 50% { background: #ff4444; } }
.globe.big { width: 3em; height: 3em; font-size: 1em; }
.about-image { display: grid; grid-template-columns: var(--gap) 21.5vw 1fr; gap: 0; padding: 8vw var(--gap) 10vw; align-items: start; }
.about-arrow { width: 18px; height: 18px; margin-top: .3em; }
.about-text { padding-right: 3vw; }
.about-text p { margin-bottom: 1.6em; line-height: 1.7; }
.muted { opacity: .5; }
.about-photo { overflow: hidden; aspect-ratio: 4 / 5; background: #e9eaeb; }
.about-photo img, .closing-photo img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.about-services { background: #e9eaeb; padding: 9vw var(--gap2) 10vw; }
.services-title { font-size: clamp(24px, 2.3vw, 36px); margin-bottom: 5vw; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; }
.service-nr { font-size: 13px; opacity: .5; padding-bottom: 2vw; border-bottom: 1px solid var(--line); margin-bottom: 2.4vw; }
.service h4 { font-size: clamp(28px, 2.9vw, 46px); line-height: 1.15; margin-bottom: 1.2vw; }
.service p:last-child { line-height: 1.7; }
.about-closing { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; padding: 11vw var(--gap2) 12vw; }
.closing-photo { overflow: hidden; aspect-ratio: 4 / 5; }
.closing-text h2 { font-size: clamp(34px, 3.6vw, 58px); line-height: 1.1; margin-bottom: 2vw; }
.closing-text p { line-height: 1.7; max-width: 30em; }

/* =========================================================
   Página Contacto (oscura)
   ========================================================= */
body.theme-dark main { background: var(--dark); color: var(--white); }
body.theme-dark .site-top { color: var(--white); }
.contact-layout { display: grid; grid-template-columns: 1fr 21vw; gap: 6vw; padding: calc(10vw + 80px) var(--gap) 9vw var(--gap2); }
.contact-main .page-title { margin-bottom: 7vw; }
.contact-form { border-top: 1px solid var(--line-light); }
.field { display: grid; grid-template-columns: 3em 1fr; padding: 2.6vw 0 1.8vw; border-bottom: 1px solid var(--line-light); cursor: text; }
.field-nr { font-size: 12px; opacity: .5; padding-top: .55em; }
.field-q { font-size: clamp(18px, 1.6vw, 24px); }
.field input, .field textarea {
  grid-column: 2; font: inherit; font-size: clamp(18px, 1.6vw, 24px); color: var(--white);
  background: transparent; border: 0; outline: none; padding: .5em 0 0; resize: vertical;
}
.field ::placeholder { color: rgba(255,255,255,.35); }
.form-send { position: relative; height: 0; margin-top: 7vw; border-bottom: 1px solid var(--line-light); }
.form-send .round-btn { position: absolute; right: 12%; top: 0; transform: translateY(-50%); }
.contact-side { padding-top: 3.4vw; font-size: 15px; }
.contact-avatar { display: block; width: clamp(80px, 6.5vw, 100px); height: clamp(80px, 6.5vw, 100px); border-radius: 50%; overflow: hidden; background: var(--gray); }
.contact-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.contact-arrow { display: block; width: 16px; height: 16px; margin: 4vw 0 5vw; }
.side-block { margin-bottom: 3vw; }
.side-block .tiny { margin-bottom: 12px; }
.side-block p, .side-list a { line-height: 1.75; }
.side-list { display: flex; flex-direction: column; }
.u-link, .side-list a { position: relative; width: fit-content; display: inline-block; }
.u-link::after, .side-list a::after {
  content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.u-link:hover::after, .side-list a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-small { position: relative; z-index: 2; }
.footer-small .footer-bottom { padding-top: 2.4vw; }

/* =========================================================
   Celular
   ========================================================= */
@media (max-width: 800px) {
  :root { --gap: 6vw; --gap2: 6vw; }
  .menu-btn { transform: scale(1); top: 18px; right: 18px; }
  .top-nav { display: none; }
  .site-top { padding: 28px 6vw; }
  .hero-portrait { width: 95vw; margin-left: -47.5vw; }
  .hanger { top: auto; bottom: 34vh; padding-left: 6vw; gap: 18px; }
  .hero-role { left: 6vw; top: 18vh; }
  .hero-arrow { margin-bottom: 20px; }
  .big-name { padding-bottom: 5vh; }
  .big-name h1 { font-size: 26vw; }
  .intro { flex-direction: column; padding: 22vw 6vw 16vw; }
  .intro-title { width: 100%; }
  .intro-side { width: 100%; margin: 9vw 0 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 6vw; }
  .intro-btn { margin-top: 0; }
  .work { padding: 0 6vw 6vw; }
  .work .small-label { padding-left: 0; margin-bottom: 6vw; }
  .work-list { border: 0; display: grid; gap: 12vw; }
  .work-item { border: 0; }
  .work-item a { display: block; padding: 0; }
  .work-item .tile { display: grid; place-items: center; aspect-ratio: 1 / 1; margin-bottom: 5vw; }
  .work-item .tile img { width: 80%; aspect-ratio: 4 / 3; object-fit: cover; }
  .work-item h4 { font-size: 10vw; padding-bottom: 3vw; border-bottom: 1px solid var(--line); margin-bottom: 3vw; }
  .preview, .preview-view { display: none; }
  .footer-inner { padding-top: 26vw; }
  .footer-title { font-size: 13vw; }
  .footer-line { margin-top: 20vw; }
  .footer-cta { right: 6vw; }
  .footer-arrow { display: none; }
  .footer-pills { flex-direction: column; align-items: flex-start; margin-top: 18vw; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 30px; padding: 16vw 6vw 6vw; }
  .footer-info { gap: 9vw; }
}

/* Celular: páginas internas */
@media (max-width: 800px) {
  .page-header { padding-top: 34vw; }
  .page-title { font-size: 12vw; }
  .work-filters { flex-direction: column; align-items: flex-start; padding: 8vw 6vw 10vw; }
  .view-btns { display: none; }
  .work-table { padding: 0 6vw; }
  .work-table-head { display: none; }
  .work-table-head, .work-row a { padding: 0; }
  .work-row a { grid-template-columns: 1fr auto; padding: 6vw 0; }
  .work-row p:nth-of-type(1), .work-row p:nth-of-type(2) { display: none; }
  .work-row h4 { font-size: 8vw; }
  .work-grid { grid-template-columns: 1fr; padding: 0 6vw; }
  .line-globe { margin: 12vw 6vw 0; }
  .about-image { grid-template-columns: 1fr; padding: 22vw 6vw 14vw; gap: 8vw; }
  .about-arrow { display: none; }
  .about-services { padding: 16vw 6vw; }
  .services-grid { grid-template-columns: 1fr; gap: 12vw; }
  .about-closing { grid-template-columns: 1fr; padding: 16vw 6vw; }
  .contact-layout { grid-template-columns: 1fr; padding: 34vw 6vw 16vw; }
  .contact-side { order: -1; display: none; }
  .field { padding: 6vw 0 4vw; }
  .form-send { margin-top: 18vw; }
  .footer-small .footer-bottom { padding: 8vw 6vw; }
}

/* =========================================================
   DESENFOQUE — tu estilo propio
   Todo entra y sale desenfocado. Para más o menos desenfoque,
   cambiá estos números.
   ========================================================= */
:root {
  --blur-in: 10px;     /* contenido que entra al cargar la página */
  --blur-text: 8px;   /* palabras, menú, nombre del telón */
  --blur-out: 8px;     /* la ventana de vista previa y cambios de vista */
}

/* La página entra con un fundido (sin desenfocar la página entera: eso es lo que más pesa) */
main, .footer { transition: transform .85s var(--ease), opacity .85s var(--ease); }

/* Al hacer click en un link: la página sube un poco y se apaga mientras sube el telón */
body.pt-out main, body.pt-out .footer { transform: translateY(-6vh); opacity: .55; }

/* Elementos que entran subiendo: además se enfocan (solo durante la entrada) */
.once-in { filter: blur(var(--blur-in)); transition: transform 1.6s var(--ease-out), filter 1.2s var(--ease-out); }
body.loaded .once-in { filter: none; }

/* Nombre del telón y "Hola" de la carga */
.pt-label { filter: blur(var(--blur-text)); transition: opacity .45s .2s, filter .7s .15s var(--ease-out); }
.pt.pt-enter .pt-label { filter: none; }
html.pt-in .pt .pt-label { filter: none; }
html.pt-in .pt.pt-leave .pt-label { filter: blur(var(--blur-text)); transition: opacity .35s, filter .35s; }
#hello { display: inline-block; }
#hello.pop { animation: helloBlur .3s var(--ease-out); }
@keyframes helloBlur { from { filter: blur(8px); opacity: .2; } to { filter: none; opacity: 1; } }
.loader.done .loader-word { filter: blur(var(--blur-text)); opacity: 0; transition: filter .5s, opacity .5s; }

/* Texto palabra por palabra: sube, aparece y se enfoca */
.split-words .w { overflow: visible; }
.split-words .w > span {
  transform: translateY(60%); opacity: 0; filter: blur(var(--blur-text));
  transition: transform 1s var(--ease-out), opacity 1s var(--ease-out), filter 1s var(--ease-out);
}
.split-words.in .w > span { transform: none; opacity: 1; filter: none; }

/* Menú lateral: los links entran desenfocados */
.side-link { filter: blur(10px); opacity: 0; transition: transform 1s var(--ease), filter .9s var(--ease-out), opacity .9s var(--ease-out); }
body.menu-open .side-link { filter: none; opacity: 1; }

/* Ventanita de trabajos: aparece desenfocada y se desenfoca al cambiar de imagen */
.preview { filter: blur(var(--blur-out)); transition: transform .5s var(--ease), filter .5s var(--ease-out); }
.preview.show { filter: none; }
.preview-strip { transition: transform .6s var(--ease), filter .3s; }
.preview-strip.moving { filter: blur(6px); }

/* Filtros y cambio de vista en Trabajos */
.work-all > div, .work-all > ul { transition: opacity .35s ease, filter .35s ease; }
.work-all.fading > div:not(.more-work), .work-all.fading > ul { opacity: 0; filter: blur(var(--blur-text)); }

