/* Alejandro Hernández — personal site
   Mobile-first · Liquid glass
   Paleta personal: Arena (fondo), Grafito (texto), Botella y Durazno (los colores de la chaqueta).
   Los colores de Tripealo y Tridi solo aparecen dentro de sus propias piezas. */

:root {
  --arena: #F4F1EA;
  --arena-2: #ECE7DC;
  --ink: #121614;
  --ink-2: #2E3532;
  --ink-3: #5B635F;
  --botella: #1E5144;
  --botella-2: #2C6B5A;
  --durazno: #F6D9CB;
  --durazno-2: #EFC2AC;
  --line: rgba(18, 22, 20, .12);

  /* Marcas (solo en sus piezas) */
  --tp-red: #D31F26; --tp-cream: #F8ECD4; --tp-green: #597C6E; --tp-turq: #94D8BF;
  --td-graf: #08090B; --td-senal: #C8FF2E; --td-senal-2: #9FD61C; --td-senal-3: #6B8F0E; --td-tinta: #F1F3EE;

  --glass: rgba(255, 253, 249, .46);
  --glass-strong: rgba(255, 253, 249, .66);
  --glass-border: rgba(255, 255, 255, .78);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .25), 0 22px 48px rgba(30, 40, 35, .12);

  --font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: 16px;
  --section: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--arena);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--botella); color: var(--arena); }
:focus-visible { outline: 2px solid var(--botella); outline-offset: 3px; border-radius: 10px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--arena); border-radius: 999px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Fondo: cuadrícula suave + luz de colores para que el vidrio tenga qué refractar ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--arena); }
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(18, 22, 20, .04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(18, 22, 20, .04) 1px, transparent 1px) 0 0 / 28px 28px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 40%, transparent 100%);
}
.glow { position: absolute; border-radius: 50%; will-change: transform; animation: drift 22s ease-in-out infinite alternate; }
.glow.g1 { width: 70vmax; height: 70vmax; right: -24vmax; top: -18vmax; background: radial-gradient(circle, rgba(246, 217, 203, .95), rgba(246, 217, 203, 0) 62%); }
.glow.g2 { width: 60vmax; height: 60vmax; left: -26vmax; top: 30vh; background: radial-gradient(circle, rgba(30, 81, 68, .22), rgba(30, 81, 68, 0) 62%); animation-delay: -7s; }
.glow.g3 { width: 34vmax; height: 34vmax; right: 6vw; bottom: -12vmax; background: radial-gradient(circle, rgba(200, 255, 46, .2), rgba(200, 255, 46, 0) 62%); animation-delay: -13s; }
.glow.g4 { width: 26vmax; height: 26vmax; left: 30vw; top: -8vmax; background: radial-gradient(circle, rgba(211, 31, 38, .09), rgba(211, 31, 38, 0) 62%); animation-delay: -4s; }
@keyframes drift { to { transform: translate3d(5vw, 4vh, 0) scale(1.12); } }

/* ---------- Liquid glass ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(185%);
  backdrop-filter: blur(24px) saturate(185%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.sheen { position: relative; overflow: hidden; isolation: isolate; }
.sheen::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, .6), transparent 45%);
  opacity: .6; transition: opacity .4s;
}

/* ---------- Tipografía ---------- */
.eyebrow { font: 500 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--botella); }
.h2 { font-size: clamp(32px, 8.4vw, 60px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; }
.mark { background: linear-gradient(transparent 58%, var(--durazno-2) 58%, var(--durazno-2) 90%, transparent 90%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { font-size: 17px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--font);
  transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-dark { background: var(--ink); color: var(--arena); box-shadow: 0 10px 24px rgba(18, 22, 20, .2); }
.btn-dark:hover { background: var(--botella); }
.btn-glass { background: rgba(255, 253, 249, .5); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); border: 1px solid rgba(255, 255, 255, .8); box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(30, 40, 35, .08); }
.btn-glass:hover { background: rgba(255, 255, 255, .8); }

/* ---------- Progreso ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--botella), var(--durazno-2) 70%, var(--td-senal)); pointer-events: none; }

/* ---------- Nav ---------- */
.nav-shell { position: fixed; top: 10px; left: 0; right: 0; z-index: 50; padding: 0 10px; display: flex; justify-content: center; pointer-events: none; }
.nav { pointer-events: auto; position: relative; width: 100%; max-width: 980px; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; transition: transform .5s var(--ease); }
.nav.is-hidden { transform: translateY(-140%); }
.brand { display: flex; align-items: center; gap: 10px; padding-right: 6px; margin-right: auto; min-width: 0; }
.monogram { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--botella); color: var(--durazno); display: grid; place-items: center; font: 700 15px/1 var(--font); letter-spacing: -.02em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 12px rgba(30, 81, 68, .3); }
.brand-name { font-weight: 700; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; }
.nav-links { display: none; }
.nav-links a { padding: 9px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; transition: background .2s; }
.nav-links a:hover, .nav-links a.is-active { background: rgba(255, 255, 255, .65); }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 40px; padding: 0 10px; border-radius: 999px; font: 600 12px var(--mono); letter-spacing: .08em; border: 1px solid var(--line); }
.lang:hover { background: rgba(255, 255, 255, .65); }
.nav-cta { display: none; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--arena); font-size: 13px; font-weight: 600; transition: background .2s; }
.nav-cta:hover { background: var(--botella); }
.menu-btn { width: 44px; height: 40px; border: 0; border-radius: 999px; background: var(--ink); color: var(--arena); display: grid; place-items: center; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform .3s var(--ease), background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }
.nav.is-open .menu-btn span { background: transparent; }
.nav.is-open .menu-btn span::before { transform: translateY(5px) rotate(45deg); }
.nav.is-open .menu-btn span::after { transform: translateY(-5px) rotate(-45deg); }
.menu { position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: grid; gap: 4px; padding: 10px; border-radius: 28px; opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top center; pointer-events: none; visibility: hidden; transition: opacity .3s var(--ease), transform .4s var(--ease), visibility .3s; }
.nav.is-open .menu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.menu a { padding: 14px 16px; border-radius: 18px; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; }
.menu a:hover { background: rgba(255, 255, 255, .65); }
.menu a small { font: 500 12px var(--mono); color: var(--botella); }
.menu .btn { margin-top: 6px; }
/* Un backdrop-filter anidado no ve la página: el menú va casi opaco */
.menu.glass { background: rgba(247, 244, 238, .97); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow-x: clip; min-height: 100svh; display: flex; align-items: center; padding: 76px 0 40px; }
.hero-grid { display: grid; gap: 18px; align-items: center; width: 100%; }
.hero-copy { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.hero h1 { font-size: clamp(40px, 11.6vw, 96px); line-height: .94; font-weight: 700; letter-spacing: -.045em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero-role { font: 500 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--botella); }
.hero-claim { font-size: clamp(19px, 5.2vw, 30px); line-height: 1.22; font-weight: 600; letter-spacing: -.02em; max-width: 560px; }
.ventures { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.venture { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.venture i { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.venture i svg { width: 15px; height: 15px; }
.venture .tp { background: var(--tp-cream); color: var(--tp-red); box-shadow: inset 0 0 0 1px rgba(211, 31, 38, .15); }
.venture .td { background: var(--td-graf); }
.venture { transition: background .2s, transform .3s var(--ease); }
a.venture:hover { background: rgba(255, 255, 255, .85); transform: translateY(-1px); }
.venture small { font-weight: 500; color: var(--ink-3); }
.cf { display: none; }

/* Contactos: lo primero que se ve al tocar la tarjeta NFC */
.dock { width: 100%; max-width: 520px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; border-radius: 30px; }
.dock-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 12px 6px; border-radius: 22px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .9); box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(30, 40, 35, .06); transition: transform .3s var(--ease), background .2s, color .2s; }
.dock-link svg { width: 24px; height: 24px; }
.dock-link:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .9); }
.dock-link.wa { background: var(--botella); color: #fff; border-color: rgba(255, 255, 255, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 22px rgba(30, 81, 68, .3); }
.dock-link.wa:hover { background: var(--botella-2); }
.dock-extra { grid-column: 1 / -1; display: grid; grid-template-columns: 3fr 2fr; gap: 8px; }
.dock-extra .btn { min-height: 46px; font-size: 14px; padding: 12px; white-space: nowrap; }
.dock-extra .btn:only-child { grid-column: 1 / -1; }
.dock-mail { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.dock-mail a { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--durazno-2); }

/* Retrato con órbita de los dos productos */
.stage { position: relative; justify-self: center; width: min(62vw, 250px); perspective: 1100px; margin: 4px auto 0; }
.portrait { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.portrait-card { position: relative; z-index: 2; padding: 8px; border-radius: 34px; margin: 0; }
.portrait-frame { position: relative; border-radius: 27px; overflow: hidden; aspect-ratio: 4 / 5; background: #E9E6E2; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.portrait-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .3), transparent 38%); pointer-events: none; }
.orbit-ring { position: absolute; left: 50%; top: 62%; width: var(--rw, 150%); height: var(--rh, 30%); transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(30, 81, 68, .28); z-index: 1; pointer-events: none; }
.orbiter { position: absolute; left: 50%; top: 62%; z-index: 3; width: 0; height: 0; will-change: transform; }
.orbiter > .t3d-ring { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); }
.orbiter.is-back { z-index: 1; }
.orbiter-label { position: absolute; left: 50%; top: calc(var(--size) / 2 + 22px); transform: translateX(-50%); white-space: nowrap; font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: rgba(255, 253, 249, .8); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 4px 10px rgba(30, 40, 35, .08); transition: opacity .4s; }
.orbiter.is-back .orbiter-label { opacity: 0; }

/* Ícono de app 3D: cara + extrusión (capas) + glifo en relieve. Rota entre las combinaciones de su marca. */
@property --t-bg { syntax: "<color>"; inherits: true; initial-value: #F8ECD4; }
@property --t-fg { syntax: "<color>"; inherits: true; initial-value: #D31F26; }
@property --t-side { syntax: "<color>"; inherits: true; initial-value: #E3CFA8; }
@property --t-deep { syntax: "<color>"; inherits: true; initial-value: #A5161C; }
@property --t-glow { syntax: "<color>"; inherits: true; initial-value: rgba(211, 31, 38, .28); }
@property --c1 { syntax: "<color>"; inherits: true; initial-value: #C8FF2E; }
@property --c2 { syntax: "<color>"; inherits: true; initial-value: #9FD61C; }
@property --c3 { syntax: "<color>"; inherits: true; initial-value: #6B8F0E; }
@property --k { syntax: "<color>"; inherits: true; initial-value: #08090B; }
.t3d-ring { --size: 64px; padding: 8px; border-radius: 26px; perspective: 520px; }
.t3d-bob { position: relative; transform-style: preserve-3d; animation: bob 7s ease-in-out infinite; }
.t3d {
  position: relative; display: block; width: var(--size); height: var(--size);
  transform-style: preserve-3d;
  transform: rotateY(var(--spin, 0deg));
  transition: transform 1.8s cubic-bezier(.65, 0, .35, 1), --t-bg 1.4s ease, --t-fg 1.4s ease, --t-side 1.4s ease, --t-deep 1.4s ease, --t-glow 1.4s ease, --c1 1.4s ease, --c2 1.4s ease, --c3 1.4s ease, --k 1.4s ease;
}
.t3d .layer { position: absolute; inset: 0; border-radius: 26%; background: var(--t-side); }
.t3d .layer.base { box-shadow: 0 18px 36px var(--t-glow), 0 6px 14px rgba(18, 22, 20, .18); }
.t3d .face { position: absolute; inset: 0; border-radius: 26%; background: var(--t-bg); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 -8px 18px rgba(0, 0, 0, .1); }
.t3d .face::before { content: ""; position: absolute; inset: 0; background: linear-gradient(155deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 46%); }
.t3d .face::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 45%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); filter: blur(6px); transform: skewX(-18deg); }
.t3d.morph .face::after { animation: sweep 1.6s cubic-bezier(.4, 0, .2, 1); }
.t3d .glyph { position: absolute; left: 21%; top: 17%; width: 58%; height: 66%; color: var(--t-deep); pointer-events: none; }
.t3d .glyph svg { width: 100%; height: 100%; fill: currentColor; overflow: visible; }
.t3d .glyph.top { color: var(--t-fg); filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .3)); }
.t3d.morph .glyph { animation: melt 1.6s cubic-bezier(.4, 0, .2, 1); }
/* Tridi: cubo isométrico con esqueleto */
.t3d.tridi .glyph { left: 17%; top: 15%; width: 66%; height: 70%; }
.t3d.tridi .glyph .k { display: none; }
.t3d.tridi .glyph.top .c1 { fill: var(--c1); }
.t3d.tridi .glyph.top .c2 { fill: var(--c2); }
.t3d.tridi .glyph.top .c3 { fill: var(--c3); }
.t3d.tridi .glyph.top .k { display: inline; }
.t3d.tridi .glyph.top .k-line { fill: none; stroke: var(--k); stroke-width: 1.8; stroke-linecap: square; }
.t3d.tridi .glyph.top .k-dot { fill: var(--k); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotateX(8deg) rotateY(-20deg); } 50% { transform: translateY(-6px) rotateX(-6deg) rotateY(20deg); } }
@keyframes sweep { to { left: 130%; } }
@keyframes melt { 40% { filter: blur(3px); opacity: .55; } }

.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 999px; border: 1.5px solid rgba(18, 22, 20, .3); display: none; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--botella); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 30px; }
.stat { padding: 18px 16px; border-radius: 22px; background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .9); display: flex; flex-direction: column; gap: 6px; }
.stat:last-child { grid-column: 1 / -1; }
.stat b { font-size: clamp(30px, 8vw, 46px); line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.stat span { font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.stat em { font: 500 10.5px/1.3 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--botella); }

/* ---------- Secciones ---------- */
.section { padding: var(--section) 0 0; position: relative; }
.head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.head .lead { max-width: 480px; }

/* Sobre mí */
.about { display: grid; gap: 28px; }
.about-text { display: flex; flex-direction: column; gap: 18px; }
.principles { display: grid; gap: 10px; }
.principle { padding: 20px; border-radius: 24px; display: flex; flex-direction: column; gap: 6px; }
.principle b { font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.principle b::before { content: ""; display: block; width: 26px; height: 4px; border-radius: 4px; background: var(--botella); margin-bottom: 12px; }
.principle:nth-child(2) b::before { background: var(--durazno-2); }
.principle:nth-child(3) b::before { background: var(--ink); }
.principle p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* Proyectos */
.projects { display: grid; gap: 14px; perspective: 1400px; }
.proj { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 26px 22px; border-radius: 32px; overflow: hidden; isolation: isolate; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.proj-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.proj-logo { height: 38px; width: auto; }
.proj-role { font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 8px 10px; border-radius: 999px; white-space: nowrap; }
.proj h3 { font-size: clamp(22px, 5.6vw, 30px); line-height: 1.18; font-weight: 700; letter-spacing: -.02em; }
.proj ul { display: grid; gap: 10px; }
.proj li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.55; }
.proj li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; }
.proj-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.proj-metric { font: 600 12px/1 var(--mono); letter-spacing: .06em; padding: 9px 12px; border-radius: 10px; }
.proj-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 10px 14px; border-radius: 999px; transition: transform .3s var(--ease); }
.proj-link:hover { transform: translate(2px, -2px); }
.proj-link svg { width: 16px; height: 16px; }

.proj.tp { background: linear-gradient(160deg, #FBF2E2, var(--tp-cream)); color: #2A2A2A; border: 1px solid rgba(255, 255, 255, .9); box-shadow: inset 0 1px 0 #fff, 0 24px 50px rgba(120, 70, 30, .12); }
.proj.tp::before { content: ""; position: absolute; right: -70px; bottom: -90px; width: 260px; height: 190px; border-radius: 50%; background: var(--tp-turq); opacity: .5; z-index: -1; }
.proj.tp::after { content: ""; position: absolute; right: 40px; bottom: -130px; width: 230px; height: 180px; border-radius: 50%; background: var(--tp-red); opacity: .9; z-index: -1; }
.proj.tp .proj-role { background: var(--tp-red); color: var(--tp-cream); }
.proj.tp li::before { background: var(--tp-red); }
.proj.tp .proj-metric { background: #fff; color: var(--tp-green); }
.proj.tp .proj-metric b { color: var(--tp-red); }
.proj.tp .proj-link { background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

.proj.td { background: var(--td-graf); color: var(--td-tinta); border: 1px solid rgba(241, 243, 238, .1); box-shadow: 0 24px 50px rgba(8, 9, 11, .3);
  background-image: radial-gradient(ellipse 420px 240px at 85% 0%, rgba(200, 255, 46, .1), transparent 70%), linear-gradient(rgba(241, 243, 238, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(241, 243, 238, .05) 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px; }
.proj.td .proj-logo { height: 34px; margin-left: -6px; }
.proj.td .proj-role { background: var(--td-senal); color: var(--td-graf); }
.proj.td h3 span { color: var(--td-senal); }
.proj.td li { color: #C9CDC4; }
.proj.td li::before { background: var(--td-senal); }
.proj.td .proj-link { background: rgba(241, 243, 238, .08); border: 1px solid rgba(241, 243, 238, .16); }
.steps { display: flex; flex-wrap: wrap; gap: 6px; }
.steps span { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; padding: 7px 9px; border: 1px solid rgba(241, 243, 238, .16); background: rgba(15, 17, 18, .9); white-space: nowrap; }
.steps b { color: var(--td-senal); font-weight: 500; margin-right: 5px; }

/* Lo que hago */
.cards { display: grid; gap: 12px; perspective: 1400px; }
.card { position: relative; display: flex; flex-direction: column; gap: 34px; padding: 24px; border-radius: 28px; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), background .3s; }
.card:hover { background: var(--glass-strong); }
.card-top { display: flex; justify-content: space-between; align-items: center; transform: translateZ(30px); }
.card-num { font: 500 12px var(--mono); color: var(--ink-3); letter-spacing: .1em; }
.card-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--botella); box-shadow: 0 10px 20px rgba(30, 81, 68, .22); }
.card-icon svg { width: 22px; height: 22px; }
.card-icon3d { --size: 50px; display: block; perspective: 400px; }
.card-icon3d .t3d { transform: rotateY(-18deg) rotateX(8deg); transition: transform .6s var(--ease); }
.card:hover .card-icon3d .t3d { transform: rotateY(18deg) rotateX(-4deg); }
.card-body { display: flex; flex-direction: column; gap: 10px; transform: translateZ(40px); }
.card h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.card p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tags li { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: rgba(18, 22, 20, .06); }
.tools { margin-top: 14px; padding: 18px; border-radius: 26px; display: flex; flex-direction: column; gap: 12px; }
.tools .tags li { background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9); font-size: 13px; padding: 8px 12px; }
.tools .tags li.hl { background: var(--ink); color: var(--arena); border-color: var(--ink); }

/* Trayectoria */
.tl { position: relative; display: flex; flex-direction: column; }
.tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl::after { content: ""; position: absolute; left: 7px; top: 8px; width: 2px; height: calc((100% - 16px) * var(--tl, 0)); background: linear-gradient(var(--botella), var(--durazno-2)); }
.tl-item { position: relative; display: grid; gap: 8px; padding: 0 0 34px 38px; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--arena); border: 2px solid var(--botella); z-index: 1; transition: background .4s; }
.tl-item.is-in::before { background: var(--botella); }
.tl-date { font: 500 12px var(--mono); color: var(--botella); letter-spacing: .06em; text-transform: uppercase; }
.tl-title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.tl-title small { font-weight: 500; color: var(--ink-3); font-size: 16px; }
.tl-body { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.clients { display: grid; gap: 10px; margin-top: 8px; }
.client { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 20px; }
.client img, .client .ini { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; background: #fff; flex: none; padding: 4px; }
.client .ini { display: grid; place-items: center; font: 700 14px var(--font); color: var(--botella); }
.client b { display: block; font-size: 15px; }
.client span { display: block; font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.client .tag { margin-top: 6px; font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--botella); }
.edu { display: grid; gap: 10px; margin-top: 6px; }
.edu-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 22px; }
.edu-card img, .edu-card .ini { width: 56px; height: 56px; object-fit: contain; border-radius: 14px; background: #fff; padding: 6px; flex: none; box-shadow: 0 6px 16px rgba(30, 40, 35, .08); }
.edu-card .ini { display: grid; place-items: center; font: 700 15px var(--font); color: var(--botella); }
.edu-card b { display: block; font-size: 16px; line-height: 1.3; }
.edu-card span { display: block; font-size: 14px; color: var(--ink-3); }
.edu-card em { font: 500 11px var(--mono); font-style: normal; letter-spacing: .06em; color: var(--botella); }

/* Eventos */
.events { position: relative; border-radius: 36px; background: var(--botella); padding: 44px 18px; color: var(--arena); overflow: hidden; isolation: isolate; }
.events::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 50% at 90% 0%, rgba(246, 217, 203, .25), transparent 70%), radial-gradient(ellipse 50% 50% at 0% 100%, rgba(200, 255, 46, .12), transparent 70%); }
.events .eyebrow { color: var(--durazno); }
.events .lead { color: rgba(244, 241, 234, .85); }
.event-grid { display: grid; gap: 12px; perspective: 1400px; }
.event { display: flex; flex-direction: column; gap: 22px; padding: 22px; border-radius: 26px; background: rgba(244, 241, 234, .1); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(244, 241, 234, .24); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), background .3s; }
.event:hover { background: rgba(244, 241, 234, .16); }
.event .tag { align-self: flex-start; padding: 6px 10px; border-radius: 999px; font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--durazno); color: var(--ink); }
.event .tag.td { background: var(--td-senal); color: var(--td-graf); }
.event h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
.event p { font-size: 15px; line-height: 1.6; color: rgba(244, 241, 234, .88); }
.event-meta { margin-top: auto; font: 500 12px var(--mono); letter-spacing: .04em; color: rgba(244, 241, 234, .7); }

/* Contacto */
.contact { position: relative; padding: var(--section) 0 24px; }
.contact-card { max-width: 820px; margin: 0 auto; padding: 36px 16px 18px; border-radius: 36px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.contact-card .dock { background: rgba(255, 255, 255, .3); border: 1px solid rgba(255, 255, 255, .7); }
.footer { max-width: 1200px; margin: 64px auto 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 22px; border-radius: 28px; text-align: center; }
.footer p { font-size: 13px; font-weight: 500; }
.footer small { font: 500 11px var(--mono); color: var(--ink-3); letter-spacing: .04em; }

/* Barra de contacto flotante (móvil) */
.quick { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: flex; gap: 6px; padding: 6px; border-radius: 999px; transform: translate(-50%, 140%); transition: transform .5s var(--ease); }
.quick.is-on { transform: translate(-50%, 0); }
.quick a { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .9); }
.quick a.wa { background: var(--botella); color: #fff; border-color: transparent; }
.quick svg { width: 22px; height: 22px; }

/* ---------- Animaciones ---------- */
.js .reveal { opacity: 0; transform: perspective(1000px) translate3d(0, 40px, -60px) rotateX(14deg); transform-origin: 50% 100%; transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.flip-l { transform: perspective(1000px) translate3d(-30px, 20px, -80px) rotateY(20deg); transform-origin: 0 50%; }
.js .reveal.flip-r { transform: perspective(1000px) translate3d(30px, 20px, -80px) rotateY(-20deg); transform-origin: 100% 50%; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .card.reveal.is-in, .js .event.reveal.is-in, .js .proj.reveal.is-in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js .card.reveal.is-done, .js .event.reveal.is-done, .js .proj.reveal.is-done { transition: transform .5s var(--ease), background .3s; transition-delay: 0s; }

.js .hero h1 .line > span { transform: translate3d(0, 110%, 0) rotateX(-50deg); transform-origin: 50% 100%; transition: transform 1.1s var(--ease); }
.js .hero h1 .line:nth-child(2) > span { transition-delay: .1s; }
.js.loaded .hero h1 .line > span { transform: none; }
.js .hero-fade { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, .2s); }
.js.loaded .hero-fade { opacity: 1; transform: none; }
.js .stage { opacity: 0; transform: perspective(1200px) rotateY(-20deg) rotateX(8deg) translateZ(-100px); transition: opacity 1.1s var(--ease) .1s, transform 1.3s var(--ease) .1s; }
.js.loaded .stage { opacity: 1; transform: none; }

/* ---------- Breakpoints (mobile first) ---------- */
@media (max-width: 1023px) {
  .hero-grid > .stage { order: -1; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 38px; }
  .dock-link { min-height: 68px; font-size: 12px; }
  .stage { width: 56vw; }
}
@media (min-width: 560px) {
  :root { --gutter: 24px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:last-child { grid-column: auto; }
  .cf { display: inline; }
  .edu { grid-template-columns: 1fr 1fr; }
  .stage { width: 280px; }
}
@media (min-width: 760px) {
  :root { --section: 120px; }
  .nav { padding: 6px 6px 6px 8px; }
  .nav-cta { display: inline-flex; }
  .quick { display: none; }
  .projects { grid-template-columns: 1fr 1fr; gap: 18px; }
  .proj { padding: 36px; border-radius: 40px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .event-grid { grid-template-columns: repeat(3, 1fr); }
  .principles { grid-template-columns: repeat(3, 1fr); }
  .events { border-radius: 44px; padding: clamp(40px, 6vw, 80px); }
  .contact-card { padding: clamp(40px, 6vw, 64px); border-radius: 44px; }
  .footer { flex-direction: row; justify-content: space-between; border-radius: 999px; text-align: left; }
  .head { flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
  .clients { grid-template-columns: 1fr 1fr; }
  .t3d-ring { --size: 84px; padding: 10px; border-radius: 32px; }
  .scroll-cue { display: block; }
}
@media (min-width: 1024px) {
  .nav-links { display: flex; gap: 2px; }
  .menu-btn, .menu { display: none; }
  .hero { padding: 110px 0 70px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 40px; }
  .hero-copy { align-items: flex-start; text-align: left; gap: 18px; }
  .ventures { justify-content: flex-start; }
  .stage { width: 340px; }
  .t3d-ring { --size: 96px; }
  .about { grid-template-columns: 1fr 1fr; gap: 64px; }
  .about > .head { position: sticky; top: 110px; align-self: start; }
  .tl-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
  .tl-wrap > .head { position: sticky; top: 110px; align-self: start; }
}
@media (hover: none) {
  .sheen::after { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .hero-fade, .js .stage, .js .hero h1 .line > span { opacity: 1; transform: none; }
}
