/* .JPG — estilos globales
   Marca: paleta y logo de la propuesta original de .JPG (wordmark rearmado en Outfit).
   Regla: el texto nunca se anima; se mueven el fondo y las piezas geométricas. */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-variable.woff2") format("woff2-variations"),
       url("/assets/fonts/outfit-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Marca */
  --coral: #f8574c;
  --green: #54e073;
  --green-d: #1f9a5e;
  --teal: #2d6365;
  --navy: #114d80;
  --slate: #424c53;

  /* Superficies */
  --bg: #f2f2f1;
  --white: #ffffff;
  --mint: #eaf5f2;
  --forest: #1d3833;
  --night: #14181b;
  --ink: #1e2529;
  --muted: #5d676d;

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Escala tipográfica generosa (mobile-first) */
  --fs-body: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --fs-small: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  --fs-lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1.1vw, 2.2rem);
  --fs-h2: clamp(2.6rem, 1.5rem + 4.6vw, 6rem);
  --fs-h1: clamp(3.6rem, 1.4rem + 8.5vw, 9.5rem);

  --space: clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);
  --section: clamp(5rem, 3rem + 8vw, 10rem);
  --maxw: 1320px;
  --radius: clamp(1.25rem, 1rem + 1vw, 2rem);
  --ease: cubic-bezier(.2,.75,.2,1);
  --spring: cubic-bezier(.34,1.4,.64,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; color: var(--coral); }
mark { background: none; color: inherit; box-shadow: inset 0 -0.45em 0 rgba(84,224,115,.45); }

.wrap { position: relative; z-index: 1; width: min(100% - 2 * var(--space), var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: .75rem 1rem; z-index: 100; border-radius: .5rem; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

.c-coral { --c: var(--coral); }
.c-green { --c: var(--green); }
.c-teal  { --c: var(--teal); }
.c-navy  { --c: var(--navy); }

.kicker {
  font-size: var(--fs-small); font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  display: inline-flex; align-items: center; gap: .7rem;
  color: var(--navy);
}
.kicker::before {
  content: ""; width: 1.4em; height: .7em; flex: none;
  background:
    radial-gradient(circle at .35em 50%, var(--coral) .3em, transparent .32em),
    radial-gradient(circle at 1.05em 50%, var(--green) .3em, transparent .32em);
}
.kicker--light { color: var(--green); }
.h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }

/* =========================================================
   Materiales 3D: esferas y piezas en relieve
   ========================================================= */
/* Vidrio: piezas translúcidas, sin color, que dejan ver el fondo de cada sección */
.sphere {
  display: block; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.95) 0, rgba(255,255,255,.4) 14%, rgba(255,255,255,0) 32%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.06) 40%, rgba(255,255,255,.32) 100%);
  border: 1px solid rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(6px) saturate(1.3); backdrop-filter: blur(6px) saturate(1.3);
  box-shadow:
    inset -.35em -.5em 1em rgba(0,0,0,.10),
    inset .25em .3em .8em rgba(255,255,255,.45),
    0 1.4em 2.2em -1.3em rgba(0,0,0,.4);
}
.relief {
  display: block;
  background: linear-gradient(140deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.16) 55%, rgba(255,255,255,.28) 100%);
  border: 1px solid rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    inset 0 -1px 0 rgba(0,0,0,.06),
    0 1.4em 2.2em -1.2em rgba(0,0,0,.35);
}
.relief--circle { border-radius: 50%; }
.relief--square { border-radius: .6rem; }
.relief--quarter { border-radius: 100% .4rem .4rem .4rem; }
.relief--half { border-radius: 999px 999px .4rem .4rem; aspect-ratio: 2 / 1 !important; }
.r90 { rotate: 90deg; }
.r180 { rotate: 180deg; }

/* Texturas en relieve (de la propuesta de .JPG) + grano de papel */
.tex { background-color: var(--bg); background-position: center; background-size: cover; }
.tex--blanco { background-image: linear-gradient(rgba(242,242,241,.62), rgba(242,242,241,.78)), url("/assets/img/tex/blanco.webp"); }
.tex--menta  { background-color: var(--mint); background-image: linear-gradient(rgba(234,245,242,.55), rgba(234,245,242,.7)), url("/assets/img/tex/menta.webp"); background-size: auto, 760px; background-repeat: no-repeat, repeat; }
.tex--azul   { background-image: linear-gradient(100deg, rgba(17,77,128,.55), rgba(17,77,128,.25)), url("/assets/img/tex/azul.webp"); }
.tex--negro  { background-color: var(--night); background-image: linear-gradient(rgba(20,24,27,.45), rgba(20,24,27,.65)), url("/assets/img/tex/negro.webp"); }
.tex--verde  { background-color: var(--forest); background-image: linear-gradient(rgba(29,56,51,.55), rgba(29,56,51,.72)), url("/assets/img/tex/verde.webp"); }
.tex--cobre  { background-color: #b8714a; background-image: linear-gradient(rgba(150,86,52,.35), rgba(120,64,36,.5)), url("/assets/img/tex/cobre.webp"); }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.kicker__num { font-weight: 800; color: var(--coral); letter-spacing: .04em; }

/* Fondos en movimiento (malla de color que deriva sola) */
.mesh { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.mesh i { position: absolute; width: 70vmax; aspect-ratio: 1; border-radius: 50%; animation: mesh 24s ease-in-out infinite alternate; }
.mesh__a { left: -25vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(84,224,115,.20), transparent); }
.mesh__b { right: -30vmax; top: -10vmax; background: radial-gradient(closest-side, rgba(248,87,76,.13), transparent); animation-duration: 30s !important; animation-direction: alternate-reverse !important; }
.mesh__c { left: 20%; bottom: -45vmax; background: radial-gradient(closest-side, rgba(17,77,128,.12), transparent); animation-duration: 36s !important; }
.mesh--dark .mesh__a { background: radial-gradient(closest-side, rgba(17,77,128,.55), transparent); }
.mesh--dark .mesh__b { background: radial-gradient(closest-side, rgba(45,99,101,.55), transparent); }
.mesh--teal .mesh__a { background: radial-gradient(closest-side, rgba(84,224,115,.25), transparent); }
.mesh--teal .mesh__b { background: radial-gradient(closest-side, rgba(17,77,128,.45), transparent); }
.mesh--forest .mesh__a { background: radial-gradient(closest-side, rgba(84,224,115,.18), transparent); }
.mesh--forest .mesh__b { background: radial-gradient(closest-side, rgba(17,77,128,.4), transparent); }
@keyframes mesh {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12vmax, 8vmax) scale(1.15); }
  100% { transform: translate(-6vmax, 14vmax) scale(.95); }
}

/* Piezas flotantes de fondo: derivan solas + parallax con el scroll */
.amb { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb {
  position: absolute; width: var(--s); aspect-ratio: 1; font-size: calc(var(--s) / 8);
  translate: 0 calc((var(--p, .5) - .5) * var(--py, 100px));
  animation: drift var(--d, 18s) ease-in-out infinite alternate;
}
.orb.far { opacity: .7; filter: blur(1.5px); }
@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(2.5rem, -2rem) rotate(24deg); }
}

/* =========================================================
   Botones
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.5rem; padding: .9rem 1.7rem;
  font: 600 var(--fs-body)/1 var(--font);
  text-decoration: none; color: var(--white); background: var(--navy);
  border: 2px solid var(--navy); border-radius: 999px;
  transition: transform .25s var(--spring), background .2s, color .2s, box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -10px rgba(17,77,128,.6); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--small { min-height: 2.75rem; padding: .55rem 1.25rem; font-size: var(--fs-small); }
.btn--big { min-height: 4rem; padding: 1rem 2rem; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); background: var(--green-d); border-color: var(--green-d); }
.btn--big:hover { box-shadow: 0 12px 28px -10px rgba(31,154,94,.7); }

/* =========================================================
   Logo
   ========================================================= */
.logo { display: block; height: 100%; width: auto; overflow: visible; }
.brand { display: block; height: 2.25rem; color: var(--slate); }
.brand--light { color: var(--white); height: 2.5rem; }
.logo .n { transform-box: fill-box; transform-origin: center; }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242,242,241,.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(66,76,83,.1);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; }
.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav a:not(.btn) { font-weight: 500; text-decoration: none; font-size: var(--fs-small); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.3rem; height: 3px; border-radius: 3px; background: var(--coral); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }
.header__right { display: flex; align-items: center; gap: 1.25rem; }
.lang {
  display: inline-flex; padding: .25rem; border-radius: 999px;
  background: rgba(66,76,83,.08); box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
}
.lang a {
  min-width: 2.6rem; padding: .4rem .7rem; border-radius: 999px; text-align: center;
  font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-decoration: none; color: var(--muted);
  transition: background .2s, color .2s, box-shadow .2s;
}
.lang a:hover { color: var(--ink); }
.lang a.is-current { background: var(--white); color: var(--navy); box-shadow: 0 1px 2px rgba(0,0,0,.15), 0 4px 10px -4px rgba(0,0,0,.25); }

@media (max-width: 860px) {
  .header__right { gap: .75rem; }
  .lang a { min-width: 2.2rem; padding: .35rem .5rem; font-size: .85rem; }
  .nav-toggle {
    display: grid; place-content: center; gap: 7px;
    width: 3rem; height: 3rem; padding: 0; border-radius: 50%;
    background: var(--navy); border: 0; cursor: pointer;
  }
  .nav-toggle__bar { width: 1.3rem; height: 2.5px; border-radius: 2px; background: var(--white); transition: transform .25s var(--ease); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(4.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-4.75px) rotate(-45deg); }
  .nav {
    position: fixed; top: 4.5rem; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: .5rem var(--space) 2rem;
    border-bottom: 1px solid rgba(66,76,83,.15);
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
    visibility: hidden; opacity: 0; transform: translateY(-1rem);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a:not(.btn) { font-size: 1.75rem; font-weight: 600; padding: 1rem 0; border-bottom: 1px solid rgba(66,76,83,.15); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1.5rem; font-size: var(--fs-body); min-height: 3.5rem; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(5rem, 4rem + 4vw, 8rem); }
.hero__grid { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: center; }
.hero__title { font-size: var(--fs-h1); font-weight: 800; line-height: .92; letter-spacing: -.045em; color: var(--slate); margin-block: 1.25rem .9rem; }
.hero__sub { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.hero__sub em { font-weight: 600; }
.hero__lead { max-width: 36ch; font-size: var(--fs-lead); line-height: 1.45; margin-top: 1.75rem; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* Escena 3D: reacciona al mouse y al scroll */
.stage { perspective: 1100px; justify-self: center; width: min(100%, 500px); }
.stage__scene {
  position: relative; aspect-ratio: 1; transform-style: preserve-3d;
  transform:
    rotateX(calc(var(--my, 0) * -9deg + 6deg))
    rotateY(calc(var(--mx, 0) * 12deg - 8deg))
    translateY(calc(var(--p, 0) * -60px));
  transition: transform .5s var(--ease);
}
.d3 {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1;
  transform: translateZ(calc(var(--z) * 1px + var(--p, 0) * var(--z) * 1.2px));
  animation: bob 6s ease-in-out infinite alternate;
  font-size: 1rem;
}
.d3:nth-child(2) { animation-duration: 7.5s; animation-delay: -2s; }
.d3:nth-child(3) { animation-duration: 5s; animation-delay: -1s; }
.d3:nth-child(4) { animation-duration: 8s; animation-delay: -3s; }
@keyframes bob { to { translate: 0 -14px; } }
.ring { border-radius: 50%; border: 2px dashed rgba(66,76,83,.22); animation: spinr 50s linear infinite !important; }
@keyframes spinr { to { rotate: 360deg; } }
.stage__logo { aspect-ratio: auto; color: var(--slate); filter: drop-shadow(0 24px 24px rgba(30,37,41,.18)); animation-duration: 9s; }
.stage__logo .logo { width: 100%; height: auto; }

.logo--big .n, .logo--big .n-line { animation: assemble 1.3s var(--spring) both; }
.logo--big .n-coral { --fx: 220%; --fy: -160%; animation-delay: .15s; }
.logo--big .n-green { --fx: -240%; --fy: 120%; animation-delay: .25s; }
.logo--big .n-teal  { --fx: 260%; --fy: 200%; animation-delay: .35s; }
.logo--big .n-navy  { --fx: -500%; --fy: -400%; animation-delay: .45s; }
.logo--big .n-navy2 { --fx: 300%; --fy: 300%; animation-delay: .55s; }
.logo--big .n-line { animation-name: draw; animation-duration: .9s; animation-delay: 1s; stroke-dasharray: 220; }
.logo--big .logo-word { animation: rise 1s var(--ease) both .1s; transform-box: fill-box; }
@keyframes assemble { from { transform: translate(var(--fx), var(--fy)) scale(.2); opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 220; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { transform: translateY(18%); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 1.5rem; width: 2rem; height: 3.2rem; margin-left: -1rem; border: 2px solid var(--slate); border-radius: 1rem; opacity: calc(1 - var(--p, 0) * 4); }
.scroll-hint span { position: absolute; left: 50%; top: .55rem; width: .45rem; height: .45rem; margin-left: -.225rem; border-radius: 50%; background: var(--coral); animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 70% { transform: translateY(1.2rem); opacity: 0; } 100% { opacity: 0; } }

@media (min-width: 960px) {
  .hero { min-height: calc(100svh - 4.5rem); display: grid; align-items: center; }
  .hero__grid { grid-template-columns: 1.25fr 1fr; }
}
@media (max-width: 959px) {
  .stage { width: min(78%, 380px); }
}

/* =========================================================
   La idea
   ========================================================= */
.idea { position: relative; padding-bottom: var(--section); overflow: hidden; }
.idea__band { position: relative; z-index: 1; color: var(--white); padding: clamp(3rem, 2rem + 4vw, 6rem) 0; }
/* el fondo de la banda gira con el scroll; el texto queda quieto */
.idea__band::before {
  content: ""; position: absolute; inset: 0 -10vw; z-index: -1;
  background: linear-gradient(100deg, rgba(17,77,128,.6), rgba(17,77,128,.3)), url("/assets/img/tex/azul.webp") center / 640px;
  box-shadow: 0 30px 60px -30px rgba(17,77,128,.6), inset 0 1px 0 rgba(255,255,255,.15);
  transform: rotate(calc(-5deg + var(--p, 0) * 7deg));
}
.idea__band-text {
  width: min(100% - 2 * var(--space), var(--maxw)); margin-inline: auto;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 4.5rem); font-weight: 700;
  line-height: 1.02; letter-spacing: -.035em; text-transform: uppercase;
}
.idea__small { display: block; font-size: .38em; font-weight: 500; letter-spacing: .14em; margin-bottom: .7em; color: var(--green); }
.idea__grid { display: grid; gap: 2.5rem 4rem; margin-top: clamp(4rem, 3rem + 4vw, 7rem); }
.idea__col p { margin-top: .75rem; color: var(--muted); font-size: var(--fs-lead); line-height: 1.4; }
.idea__frame { color: var(--ink) !important; margin-top: 0 !important; }
.idea__highlight {
  font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.75rem); font-weight: 600; line-height: 1.2; letter-spacing: -.02em;
  color: var(--navy); max-width: 30ch; padding-top: 2.5rem; border-top: 2px solid rgba(17,77,128,.15);
}
@media (min-width: 860px) {
  .idea__grid { grid-template-columns: 1fr 1fr; }
  .idea__highlight { grid-column: 1 / -1; }
}

/* =========================================================
   Manifiesto (sticky) + composición 3D
   ========================================================= */
.manifesto { height: 300vh; background: var(--night); color: var(--white); position: relative; }
.manifesto__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.manifesto__grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.manifesto__lines { display: grid; gap: clamp(1rem, .6rem + 1.5vw, 2rem); }
.mline {
  position: relative; padding-left: 1.1em;
  font-size: clamp(1.75rem, 1rem + 3.1vw, 4rem); font-weight: 700;
  line-height: 1.05; letter-spacing: -.03em; text-transform: uppercase;
  color: rgba(255,255,255,.55); transition: color .5s var(--ease);
}
.mline em { color: inherit; transition: color .5s var(--ease); }
.mline::before {
  content: ""; position: absolute; left: 0; top: .32em; width: .5em; height: .5em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffb3a8, var(--coral) 50%, #c23a30);
  transform: scale(0); transition: transform .5s var(--spring);
}
.mline.is-active { color: var(--white); }
.mline.is-active em { color: var(--green); }
.mline.is-active::before { transform: scale(1); }

.compo-wrap { perspective: 1200px; justify-self: center; }
.compo {
  --size: min(76vw, 42vh, 520px);
  width: var(--size); aspect-ratio: 1;
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 4%;
  font-size: calc(var(--size) / 22);
  transform-style: preserve-3d;
  transform: rotateX(calc(22deg - var(--p, 0) * 16deg)) rotateY(calc(-28deg + var(--p, 0) * 40deg)) rotateZ(calc(-4deg + var(--p, 0) * 4deg));
}
.tile {
  --t: 0;
  display: grid; place-items: center; transform-style: preserve-3d;
  transform:
    translate3d(calc((1 - var(--t)) * var(--dx, 0vw)), calc((1 - var(--t)) * var(--dy, 0vh)), calc((1 - var(--t)) * -700px + var(--t) * var(--zf, 0px)))
    rotateX(calc((1 - var(--t)) * var(--rx, 0deg)))
    rotateY(calc((1 - var(--t)) * var(--ry, 0deg)));
  opacity: calc(var(--t) * 1.6);
  will-change: transform;
}
.tile > * { width: 100%; height: 100%; }
.tile > .sm { width: 52%; height: 52%; }
.tile > .relief--half { height: auto; align-self: end; }
.t1 { --dx: -45vw; --dy: -30vh; --rx: 160deg; --ry: -60deg; --zf: 40px; }
.t2 { --dx: 0vw;   --dy: -70vh; --rx: -120deg; --ry: 0deg; }
.t3 { --dx: 45vw;  --dy: -35vh; --rx: 90deg;  --ry: 120deg; --zf: 20px; }
.t4 { --dx: -55vw; --dy: 0vh;   --rx: 0deg;   --ry: -150deg; }
.t5 { --dx: 0vw;   --dy: 0vh;   --rx: 180deg; --ry: 180deg; --zf: 70px; }
.t6 { --dx: 55vw;  --dy: 5vh;   --rx: 0deg;   --ry: 150deg; }
.t7 { --dx: -40vw; --dy: 50vh;  --rx: -90deg; --ry: -45deg; --zf: 30px; }
.t8 { --dx: 5vw;   --dy: 70vh;  --rx: 140deg; --ry: 0deg; }
.t9 { --dx: 45vw;  --dy: 45vh;  --rx: -60deg; --ry: 90deg; --zf: 50px; }

@media (min-width: 900px) {
  .manifesto__grid { grid-template-columns: 1.2fr 1fr; }
  .compo { --size: min(38vw, 64vh, 540px); }
}

/* =========================================================
   Secciones
   ========================================================= */
.section { position: relative; padding-block: var(--section); overflow: hidden; }
.section__head { margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.section__title { font-size: var(--fs-h2); font-weight: 800; line-height: .95; letter-spacing: -.04em; margin-top: 1.25rem; max-width: 17ch; color: var(--slate); }
.section__lead { font-size: var(--fs-lead); color: var(--muted); max-width: 40ch; margin-top: 1.5rem; line-height: 1.4; }

/* Servicios */
.services-sec { }
.services-sec .kicker { color: var(--green-d); }
.services-sec .section__title em { color: var(--green-d); }
.services { display: grid; gap: clamp(1rem, .8rem + 1vw, 1.5rem); perspective: 1400px; }
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service {
  position: relative; overflow: hidden; color: var(--ink);
  background: linear-gradient(160deg, rgba(255,255,255,.62), rgba(255,255,255,.34));
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(0,0,0,.05), 0 24px 48px -28px rgba(20,60,50,.35);
  transition: box-shadow .45s var(--ease), background .45s var(--ease), opacity .9s var(--ease), transform 1.1s var(--ease);
}
.service:hover { background: linear-gradient(160deg, rgba(255,255,255,.78), rgba(255,255,255,.48)); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 2px 4px rgba(0,0,0,.06), 0 34px 60px -30px rgba(20,60,50,.45); }
.service > * { position: relative; }

/* insignia circular con relieve */
.badge {
  display: grid; place-items: center; width: 4.25rem; height: 4.25rem; border-radius: 50%;
  background: linear-gradient(150deg, rgba(255,255,255,.95), rgba(255,255,255,.55));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.06), 0 10px 20px -10px rgba(0,0,0,.3);
  transform: scale(.4) rotate(-40deg); opacity: 0; transition: transform .9s var(--spring) .3s, opacity .4s .3s;
}
.badge svg { width: 1.7rem; height: 1.7rem; color: var(--c); }
.reveal.is-visible .badge { transform: none; opacity: 1; }

.service__title { font-size: var(--fs-h3); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 1.5rem 0 .75rem; }
.service p { color: #3f4a50; }
.service__tools { margin-top: 1rem; font-size: var(--fs-small); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal) !important; }
.tag { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(255,255,255,.85); color: var(--green-d); border: 1px solid rgba(31,154,94,.35); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .35rem .8rem; border-radius: 999px; }

/* =========================================================
   Cimientos (bloques 3D que caen y se apilan)
   ========================================================= */
.base { position: relative; color: var(--white); padding-block: var(--section); overflow: hidden; }
.base__grid { display: grid; gap: 3rem; align-items: center; }
.base__text { font-size: clamp(2.25rem, 1.3rem + 4vw, 5.25rem); font-weight: 700; line-height: 1; letter-spacing: -.035em; max-width: 16ch; text-shadow: 0 2px 20px rgba(80,40,20,.35); }
.bricks-wrap { perspective: 1000px; justify-self: center; width: min(100%, 420px); }
.bricks {
  aspect-ratio: 1; display: grid; grid-template: repeat(4, 1fr) / repeat(3, 1fr); gap: 8px;
  transform-style: preserve-3d;
  transform: rotateX(24deg) rotateY(calc(-24deg + var(--p, 0) * 36deg));
}
.brick {
  --t: 0; display: block; border-radius: .5rem;
  background: linear-gradient(140deg, rgba(255,255,255,.5), rgba(255,255,255,.14) 60%, rgba(255,255,255,.26));
  border: 1px solid rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 0 rgba(255,255,255,.14), 0 28px 30px -14px rgba(60,25,10,.45);
  transform: translate3d(0, calc((1 - var(--t)) * -75vh), calc((1 - var(--t)) * 260px)) rotateZ(calc((1 - var(--t)) * 30deg)) rotateX(calc((1 - var(--t)) * 70deg));
  opacity: calc(var(--t) * 2.5);
}
.b1 { grid-area: 4 / 1 / 5 / 3; }
.b2 { grid-area: 4 / 3 / 5 / 4; }
.b3 { grid-area: 3 / 1 / 4 / 2; }
.b4 { grid-area: 3 / 2 / 4 / 4; }
.b5 { grid-area: 2 / 1 / 3 / 3; }
.b6 { grid-area: 2 / 3 / 3 / 4; }
.b7 { grid-area: 1 / 2 / 2 / 3; border-radius: 50%; font-size: 1.2rem; }
@media (min-width: 860px) { .base__grid { grid-template-columns: 1.3fr 1fr; } }

/* =========================================================
   Proceso
   ========================================================= */
.process .kicker { color: rgba(255,255,255,.85); }
.process .section__title { color: var(--white); }
.process .section__title em { color: var(--green); }
.process .section__lead { color: rgba(255,255,255,.82); }
.panel {
  border-radius: clamp(1.5rem, 1rem + 2vw, 2.75rem); color: var(--white); overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.07));
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.35);
  padding: clamp(2rem, 1.5rem + 2.5vw, 3.75rem) clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 30px 60px -30px rgba(5,25,45,.55);
}
.steps { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 0; } .step + .step { border-left: 1px solid rgba(255,255,255,.22); } .step { padding-inline: 1.75rem; } .step:first-child { padding-left: 0; } .step:last-child { padding-right: 0; } }
.step__badge {
  display: grid; place-items: center; width: 3.75rem; height: 3.75rem; font-size: 1.6rem; font-weight: 800;
  color: var(--white); margin-bottom: 1.5rem;
}
.step__title { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.8rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin-bottom: .75rem; }
.step p { color: rgba(255,255,255,.9); font-size: clamp(1.1rem, 1rem + .3vw, 1.25rem); line-height: 1.5; }

/* =========================================================
   Sobre mí
   ========================================================= */
.about { position: relative; color: var(--white); padding-block: var(--section); overflow: hidden; }
.about__grid { display: grid; gap: clamp(3rem, 2rem + 4vw, 6rem); align-items: center; }
.about__photo { position: relative; width: min(78%, 420px); justify-self: center; translate: 0 calc((var(--p, .5) - .5) * -80px); }
.about__photo img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: .5rem solid var(--night); box-shadow: 0 40px 60px -30px rgba(0,0,0,.7); }
.about__ring { position: absolute; inset: -9%; border-radius: 50%; border: 3px dashed rgba(84,224,115,.45); animation: spin 40s linear infinite; }
.about__tri { position: absolute; z-index: 2; left: -12%; bottom: 2%; width: 40%; aspect-ratio: 1; background: linear-gradient(140deg, rgba(255,255,255,.6), rgba(255,255,255,.15)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); clip-path: polygon(50% 0, 100% 100%, 0 100%); filter: drop-shadow(0 20px 20px rgba(0,0,0,.4)); animation: bob 7s ease-in-out infinite alternate; }
.about__ball { position: absolute; z-index: 2; right: -2%; top: 6%; width: 18%; aspect-ratio: 1; font-size: .7rem; animation: bob 5s ease-in-out infinite alternate-reverse; }
.about__title { font-size: var(--fs-h2); font-weight: 800; line-height: .95; letter-spacing: -.04em; margin-block: 1.25rem 1.5rem; }
.about__copy > p { margin-top: 1rem; color: rgba(255,255,255,.85); max-width: 46ch; }
.about__lead { font-size: var(--fs-lead); color: var(--white) !important; line-height: 1.35; }
.about__copy strong { color: var(--white); }
.about__quote { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 700; line-height: 1.1; color: var(--white) !important; background: linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.07)); border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 1.1rem 1.4rem; border-radius: 1rem; display: inline-block; margin-top: 1.75rem !important; box-shadow: 0 24px 40px -24px rgba(0,0,0,.6); }
.about__note { text-transform: uppercase; font-weight: 600; letter-spacing: .04em; font-size: var(--fs-small); }
.about__values { display: grid; gap: 1.5rem; margin-top: clamp(4rem, 3rem + 4vw, 7rem); padding-top: 3rem; border-top: 1px solid rgba(255,255,255,.18); perspective: 1200px; }
.about__values p { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3.25rem); font-weight: 300; line-height: 1.1; letter-spacing: -.02em; }
.about__values em { color: var(--green); font-weight: 600; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: .9fr 1.1fr; }
  .about__values { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* =========================================================
   Contacto
   ========================================================= */
.contact { position: relative; padding-block: calc(var(--section) + 5rem) var(--section); overflow: hidden; }
.contact__dots { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; transform: translateY(calc(-50% + (1 - var(--p, 0)) * -35%)); }
.cd { width: 18vw; max-width: 14rem; aspect-ratio: 1; margin-inline: -2vw; font-size: clamp(.6rem, 1vw, 1rem); animation: bob var(--d, 8s) ease-in-out infinite alternate; }
.cd:nth-child(even) { margin-top: -4%; }
.contact__title { font-size: var(--fs-h2); font-weight: 800; line-height: .95; letter-spacing: -.04em; color: var(--navy); max-width: 14ch; }
.contact__title em { color: var(--green-d); }
.contact__lead { font-size: var(--fs-lead); color: var(--muted); max-width: 40ch; margin-top: 1.75rem; line-height: 1.4; }
.contact__card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  margin-top: 3rem; padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  background: linear-gradient(160deg, rgba(255,255,255,.7), rgba(255,255,255,.4)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: var(--radius); border: 1px solid rgba(255,255,255,.85);
  max-width: 900px; box-shadow: 0 24px 40px -30px rgba(30,37,41,.4);
}
.contact__name { font-size: var(--fs-h3); font-weight: 700; color: var(--navy); }

/* =========================================================
   Footer
   ========================================================= */
.footer { color: rgba(255,255,255,.8); padding-block: 3rem; }
.footer__inner { display: grid; gap: 1.25rem; font-size: var(--fs-small); }
.footer__copy { color: rgba(255,255,255,.5); }
@media (min-width: 900px) { .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 2.5rem; } }

/* 404 */
.simple { min-height: 100svh; display: grid; place-content: center; justify-items: start; gap: 1.5rem; padding: var(--space); }
.simple__big { font-size: clamp(6rem, 3rem + 15vw, 14rem); font-weight: 800; line-height: .85; letter-spacing: -.05em; color: var(--coral); }
.simple__title { font-size: var(--fs-h2); font-weight: 800; line-height: .95; letter-spacing: -.04em; color: var(--slate); }

/* =========================================================
   Entradas de bloques desde distintos lados (van y vienen)
   ========================================================= */
.reveal { opacity: 0; transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.reveal[data-from="left"]  { transform: translateX(-90px) rotateY(16deg); transform-origin: left center; }
.reveal[data-from="right"] { transform: translateX(90px) rotateY(-16deg); transform-origin: right center; }
.reveal[data-from="up"]    { transform: translateY(80px) rotateX(-14deg); transform-origin: center bottom; }
.reveal[data-from="zoom"]  { transform: scale(.8) rotate(-8deg); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .tile, .no-js .brick { --t: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .tile, .brick { --t: 1 !important; }
  .badge { transform: none; opacity: 1; }
  .manifesto { height: auto; }
  .manifesto__sticky { position: static; height: auto; padding-block: var(--section); }
  .mline { color: var(--white); }
}
