/* =========================================================
   klaguna.com · Kevin Laguna
   ========================================================= */

/* Fuente Inter alojada en el propio servidor (licencia SIL OFL 1.1, ver assets/fonts/OFL.txt) */
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin.woff2") format("woff2-variations"), url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2-variations"), url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Colores de cada proyecto (antes estaban en el HTML; así la política de seguridad puede ser estricta) */
.acc-gym { --accent: #F2C230; }
.acc-her { --accent: #D27A63; }
.acc-agv { --accent: #4F63FF; }
.ccard.c1 { --a: #2F6BFF; --b: #00E5FF; }
.ccard.c2 { --a: #B14BFF; --b: #2F6BFF; }
.ccard.c3 { --a: #00E5FF; --b: #B14BFF; }

:root {
  --bg: #000;
  --fg: #f5f5f7;
  --mut: #86868b;
  --soft: #a1a1a6;
  --line: rgba(255, 255, 255, .08);
  --card: #0b0b0f;
  --c1: #00E5FF;
  --c2: #2F6BFF;
  --c3: #B14BFF;
  --grad: linear-gradient(90deg, var(--c1), var(--c2) 50%, var(--c3));
  --max: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; }
::selection { background: var(--c2); color: #fff; }
:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: -999px; top: 10px; z-index: 100;
  background: #fff; color: #000; padding: 8px 16px; border-radius: 999px; font-weight: 500;
}
.skip:focus { left: 16px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Fondo ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; }
.g1 {
  background: radial-gradient(circle, rgba(47, 107, 255, .22), transparent 62%);
  top: -32vmax; left: -22vmax;
  animation: drift1 24s ease-in-out infinite alternate;
}
.g2 {
  background: radial-gradient(circle, rgba(177, 75, 255, .16), transparent 62%);
  bottom: -38vmax; right: -26vmax;
  animation: drift2 28s ease-in-out infinite alternate;
}
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 28%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 28%, #000 25%, transparent 75%);
}
@keyframes drift1 { to { transform: translate(14vmax, 10vmax); } }
@keyframes drift2 { to { transform: translate(-12vmax, -14vmax); } }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2 + 20px));
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s;
}
.nav.scrolled, .nav.open {
  background: rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
          backdrop-filter: saturate(180%) blur(18px);
  border-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 300; font-size: 13px; letter-spacing: 5px; }
.brand img { width: 30px; height: 30px; }
.menu { display: flex; gap: 30px; font-size: 14px; color: #c7c7cc; }
.menu a { position: relative; transition: color .2s; }
.menu a:hover, .menu a.active { color: #fff; }
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.menu a:hover::after, .menu a.active::after { transform: scaleX(1); }
.menu-btn { display: none; }

@media (max-width: 720px) {
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 10px; margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-btn span { display: block; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .menu {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 8px 20px 28px;
    background: rgba(0, 0, 0, .92);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-10px); pointer-events: none; visibility: hidden;
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .menu.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .menu a { padding: 16px 0; font-size: 20px; color: #fff; border-bottom: 1px solid var(--line); }
  .menu a::after { display: none; }
}

/* ---------- Botones ---------- */
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px; border-radius: 999px;
  font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1;
  border: 0; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .35s;
}
.btn.primary { background: #fff; color: #000; }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -10px rgba(47, 107, 255, .85); }
.btn.ghost { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 110px 20px 110px;
}
.firma { width: min(540px, 86vw); height: auto; margin-bottom: 26px; overflow: visible; }
.firma .t path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s .25s var(--ease) forwards; }
.firma .t path.b { animation-duration: 3.4s; animation-delay: .5s; }
.firma .halo { animation: flicker 7s 4.2s infinite; }
.firma .nombre { opacity: 0; animation: fade 1s 3.2s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes flicker {
  0%, 88%, 100% { opacity: 1; }
  89% { opacity: .55; } 90% { opacity: 1; } 91.5% { opacity: .7; } 93% { opacity: 1; }
}

.hero h1 {
  font-size: clamp(42px, 7.2vw, 88px);
  font-weight: 600; letter-spacing: -.035em; line-height: 1.02;
}
.lead { color: var(--mut); font-size: clamp(17px, 2vw, 21px); max-width: 560px; margin: 20px auto 0; }

.up { opacity: 0; transform: translateY(18px); animation: up 1s var(--ease) forwards; }
.u1 { animation-delay: 1.5s; }
.u2 { animation-delay: 1.7s; }
.u3 { animation-delay: 1.9s; }
@keyframes up { to { opacity: 1; transform: none; } }

.scroll {
  position: absolute; bottom: 30px; left: 50%; translate: -50% 0;
  width: 24px; height: 38px; border-radius: 14px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28);
  opacity: 0; transition: opacity .8s;
}
.scroll span {
  position: absolute; top: 8px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--c1); box-shadow: 0 0 8px var(--c1);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Cinta ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden; padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.track span {
  display: flex; align-items: center; gap: 26px; padding-right: 26px;
  white-space: nowrap; font-size: 14px; color: #c7c7cc; letter-spacing: .01em;
}
.track span::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--c1); box-shadow: 0 0 10px var(--c1);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 140px 20px; }
.head { max-width: 700px; margin-bottom: 72px; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--c1);
}
h2 { font-size: clamp(34px, 4.8vw, 58px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.head p { color: var(--mut); font-size: 18px; margin-top: 18px; }

/* ---------- Proyectos ---------- */
.projects { display: grid; gap: 140px; }
.project { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: center; }
.project:nth-child(even) { grid-template-columns: 1fr 1.3fr; }
.project:nth-child(even) .mock { order: 2; }

.mock { position: relative; z-index: 0; display: block; padding-bottom: 44px; transition: rotate .6s var(--ease); }
.mock::before {
  content: ""; position: absolute; inset: 12% 8% 4%; z-index: -1;
  background: var(--accent); opacity: .22; filter: blur(70px); border-radius: 50%;
  transition: opacity .5s;
}
.project:hover .mock::before { opacity: .34; }

.browser {
  border-radius: 14px; overflow: hidden;
  background: #111; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -30px rgba(0, 0, 0, .9);
  transition: transform .7s var(--ease);
}
.bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; background: #1a1a1f; }
.bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a41; }
.bar span {
  margin: 0 auto; transform: translateX(-17px);
  font-size: 11px; color: #8e8e93; background: #0e0e11; padding: 3px 16px; border-radius: 6px;
  max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #0e0e11; }

.phone {
  position: absolute; right: -3%; bottom: 0; width: 23%;
  padding: 5px; border-radius: 24px; background: #0e0e11;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 30px 60px -20px rgba(0, 0, 0, .95);
  transition: transform .7s var(--ease);
}
.phone img { width: 100%; height: auto; border-radius: 19px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: #0e0e11; }
.project:nth-child(even) .phone { right: auto; left: -3%; }
.project:hover .browser { transform: translateY(-6px); }
.project:hover .phone { transform: translateY(-16px); }

.num { display: block; font-size: 13px; color: var(--mut); font-variant-numeric: tabular-nums; }
.cat {
  display: block; margin: 12px 0 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.info h3 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.info p { color: var(--soft); font-size: 17px; margin-top: 16px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li {
  font-size: 13px; padding: 7px 13px; border-radius: 999px; color: #d1d1d6;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.link { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; font-weight: 500; position: relative; }
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
  background: var(--accent); transform: scaleX(.3); transform-origin: left; transition: transform .4s var(--ease);
}
.link span { transition: transform .3s var(--ease); }
.link:hover::after { transform: scaleX(1); }
.link:hover span { transform: translate(3px, -3px); }

/* Antes / ahora */
.ba {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
  margin-top: 22px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.ba span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.ba div:last-child span { color: var(--accent); }
.info .ba p { font-size: 14px; line-height: 1.4; margin-top: 4px; color: #d1d1d6; }
.info .ba div:first-child p { color: var(--mut); }
.ba svg { width: 20px; height: 20px; color: var(--accent); }

/* ---------- Opiniones ---------- */
.reviews { padding-top: 40px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review {
  position: relative; overflow: hidden; margin: 0;
  display: flex; flex-direction: column; gap: 22px;
  padding: 30px 28px; border-radius: 22px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.review::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.review .q { width: 30px; height: auto; fill: var(--accent); }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { font-size: 16.5px; line-height: 1.6; color: var(--soft); }
.review blockquote .pull { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: #fff; margin-bottom: 12px; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.av {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: #000; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 22px -6px var(--accent);
}
.av img { width: 66%; height: 66%; object-fit: contain; }
.review figcaption b { display: block; font-size: 15px; font-weight: 600; }
.review figcaption small { display: block; color: var(--mut); font-size: 13px; }

/* ---------- Colaboraciones ---------- */
.collab { padding-top: 40px; }
.collab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ccard {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.fake { position: absolute; inset: 0; padding: 16px; filter: blur(9px); opacity: .75; transform: scale(1.06); }
.fake i { display: block; border-radius: 8px; background: rgba(255, 255, 255, .1); }
.fake .f-nav { height: 10px; width: 55%; margin-bottom: 14px; }
.fake .f-hero { height: 42%; background: linear-gradient(120deg, var(--a), var(--b)); opacity: .7; }
.fake .f-l1 { height: 10px; width: 70%; margin-top: 14px; }
.fake .f-l2 { height: 10px; width: 45%; margin-top: 8px; }
.fake .f-row { height: 18%; margin-top: 14px; background: linear-gradient(90deg, rgba(255,255,255,.08) 0 31%, transparent 31% 34.5%, rgba(255,255,255,.08) 34.5% 65.5%, transparent 65.5% 69%, rgba(255,255,255,.08) 69%); }
.lock {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .25), rgba(0, 0, 0, .6));
}
.lock svg { width: 28px; height: 28px; color: #fff; margin-bottom: 6px; }
.lock b { font-weight: 600; font-size: 16px; }
.lock small { color: var(--soft); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Sobre mí ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.about-text p { color: var(--soft); font-size: 18px; margin-top: 20px; }
.about-text h2 { margin-bottom: 8px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pillar {
  position: relative; overflow: hidden;
  padding: 26px 24px; border-radius: 20px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.pillar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 107, 255, .2), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.pillar:hover::before { opacity: 1; }
.pillar svg { width: 28px; height: 28px; color: var(--c1); }
.pillar h3 { font-size: 18px; font-weight: 600; margin-top: 18px; }
.pillar p { color: var(--mut); font-size: 15px; margin-top: 6px; }

/* ---------- Nombre y correo ---------- */
.contact { padding-bottom: 120px; }
.contact-card {
  position: relative; overflow: hidden; text-align: center;
  padding: 96px 24px; border-radius: 32px;
  background: radial-gradient(120% 110% at 50% 0%, rgba(47, 107, 255, .2), transparent 55%), var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.contact-card::before {
  content: ""; position: absolute; top: 0; left: 18%; right: 18%; height: 1px;
  background: var(--grad); box-shadow: 0 0 24px 2px rgba(47, 107, 255, .7);
}
.sign-icon { width: 56px; height: 56px; margin: 0 auto 26px; filter: drop-shadow(0 0 18px rgba(47, 107, 255, .55)); }
.fullname { font-size: clamp(30px, 5vw, 56px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.email {
  position: relative; display: inline-block; margin-top: 18px;
  font-size: clamp(18px, 2.4vw, 26px); font-weight: 400; color: var(--soft);
  word-break: break-word; transition: color .25s;
}
.email:hover { color: #fff; }

.socials { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: #c7c7cc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: color .25s, background .25s, box-shadow .3s, transform .25s var(--ease);
}
.socials a:hover {
  color: #fff; background: rgba(47, 107, 255, .15); transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, .6), 0 0 24px -4px rgba(47, 107, 255, .7);
}
.socials svg { width: 20px; height: 20px; }
[hidden] { display: none !important; }
.email::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--grad); transform: scaleX(.22); transform-origin: left; transition: transform .6s var(--ease);
}
.email:hover::after { transform: scaleX(1); }

/* ---------- Pie ---------- */
.footer {
  max-width: var(--max); margin: 0 auto; padding: 36px 20px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--line); color: var(--mut); font-size: 13px;
}
.f-brand { display: flex; align-items: center; gap: 10px; }
.f-brand img { width: 24px; height: 24px; }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); filter: blur(10px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.pillars .pillar:nth-child(2), .collab-grid .ccard:nth-child(2), .reviews-grid .review:nth-child(2) { transition-delay: .08s; }
.pillars .pillar:nth-child(3), .collab-grid .ccard:nth-child(3), .reviews-grid .review:nth-child(3) { transition-delay: .16s; }
.pillars .pillar:nth-child(4) { transition-delay: .24s; }

/* =========================================================
   ANIMACIONES
   ========================================================= */

/* Barra de progreso de lectura */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70;
  background: var(--grad); transform-origin: left; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(47, 107, 255, .8);
}

/* La barra se esconde al bajar y vuelve al subir */
.nav { transition: background .35s, border-color .35s, transform .5s var(--ease); }
.nav.hide { transform: translateY(-100%); }

/* Luz que sigue al ratón */
.aura {
  position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none;
  width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, .13), rgba(177, 75, 255, .05) 40%, transparent 66%);
  opacity: 0; transition: opacity .8s;
}
.aura.on { opacity: 1; }

/* Red de nodos en la portada */
.hero { isolation: isolate; overflow: hidden; }
#net {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  opacity: 0; animation: fade 2s .6s forwards;
  -webkit-mask-image: radial-gradient(ellipse 48% 42% at 50% 52%, rgba(0, 0, 0, .22), #000 100%);
          mask-image: radial-gradient(ellipse 48% 42% at 50% 52%, rgba(0, 0, 0, .22), #000 100%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; will-change: translate, opacity; }

/* Titulares que suben palabra a palabra */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em; margin: 0 -.02em -.1em; }
.wi { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: left bottom; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.in .wi, .go .wi { transform: none; }

/* Imagen de cada proyecto que se descubre como una cortina */
.js .project .browser img { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease) .25s; }
.js .project.in .browser img { clip-path: inset(0 0 0 0); }
.js .project .phone { opacity: 0; scale: .9; transition: opacity 1s var(--ease) .6s, scale 1s var(--ease) .6s, transform .7s var(--ease); }
.js .project.in .phone { opacity: 1; scale: 1; }
.project { perspective: 1400px; }
.phone { will-change: translate; }

/* Logo de cada proyecto */
.meta { display: flex; align-items: center; gap: 12px; }
.plogo {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: #000; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 20px -6px var(--accent);
}
.plogo img { width: 64%; height: 64%; object-fit: contain; }

/* Opiniones: borde de luz que gira */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.reviews-grid { perspective: 1200px; }
.js .review.reveal { transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease), rotate .5s var(--ease); }
.review::after, .contact-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 62%, var(--accent, var(--c2)) 80%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite; opacity: .55; transition: opacity .4s;
}
.review:hover::after { opacity: 1; }
.review:nth-child(2)::after { animation-delay: -2s; }
.review:nth-child(3)::after { animation-delay: -4s; }
@keyframes spin { to { --ang: 360deg; } }

/* Colaboraciones: brillo que pasa */
.ccard::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .09) 50%, transparent 62%);
  transform: translateX(-120%); animation: shimmer 4.5s ease-in-out infinite;
}
.ccard:nth-child(2)::after { animation-delay: .7s; }
.ccard:nth-child(3)::after { animation-delay: 1.4s; }
.lock { z-index: 2; }
@keyframes shimmer { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }

/* Tarjetas de "Sobre mí" */
.js .pillar.reveal { transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease), box-shadow .4s, translate .4s var(--ease); }
.pillar:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px rgba(47, 107, 255, .35), 0 20px 50px -25px rgba(47, 107, 255, .6); }
.pillar svg { transition: transform .6s var(--ease); }
.pillar:hover svg { transform: translateY(-3px) scale(1.15) rotate(-6deg); }

/* Botones y redes que se acercan al ratón */
.btn, .socials a { transition: transform .25s var(--ease), background .25s, box-shadow .35s, color .25s, translate .35s var(--ease); }

/* Gracias: el texto se enciende al bajar */
.thanks { padding-top: 120px; padding-bottom: 120px; }
.thanks .eyebrow { margin-bottom: 26px; }
.thanks-text { max-width: 980px; font-size: clamp(28px, 4.4vw, 54px); font-weight: 600; letter-spacing: -.03em; line-height: 1.3; }
.hw { opacity: .14; transition: opacity .35s, box-shadow .5s, background .5s; }
.hw.on { opacity: 1; }
.tp {
  display: inline-block; white-space: nowrap;
  padding: .02em .42em .06em .12em; border-radius: 999px;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.tp img {
  display: inline-block; vertical-align: -.2em; margin-right: .22em;
  width: 1.05em; height: 1.05em; padding: .14em; border-radius: 50%;
  background: #000; object-fit: contain; box-shadow: inset 0 0 0 1.5px var(--accent);
}
.tp.on { box-shadow: inset 0 0 0 1px var(--accent), 0 0 36px -10px var(--accent); background: rgba(255, 255, 255, .07); }

/* Tarjeta final */
.contact-card { --accent: var(--c2); }
.contact-card::after { animation-duration: 8s; opacity: .7; }
.sign-icon { animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Adaptación a pantallas ---------- */
@media (max-width: 960px) {
  .project, .project:nth-child(even) { grid-template-columns: 1fr; gap: 40px; }
  .project:nth-child(even) .mock { order: 0; }
  .project:nth-child(even) .phone { left: auto; right: -2%; }
  .phone { right: -2%; width: 25%; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .reviews-grid { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 820px) {
  .collab-grid { grid-template-columns: 1fr 1fr; }
  .collab-grid .ccard:last-child { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 100px 20px; }
  .head { margin-bottom: 52px; }
  .projects { gap: 100px; }
  .phone { width: 30%; border-radius: 18px; padding: 4px; }
  .phone img { border-radius: 14px; }
  .bar { height: 26px; }
  .bar i { width: 8px; height: 8px; }
  .collab-grid { grid-template-columns: 1fr; }
  .collab-grid .ccard:last-child { display: block; }
  .collab-grid { gap: 12px; }
  .ccard { aspect-ratio: 3 / 1; }
  .lock { flex-direction: row; gap: 10px; }
  .lock svg { width: 22px; height: 22px; margin: 0 4px 0 0; }
  .lock small { font-size: 11px; }
  .pillars { grid-template-columns: 1fr; }
  .ba { gap: 10px; padding: 12px 14px; }
  .review { padding: 26px 22px; }
  .review blockquote .pull { font-size: 22px; }
  .contact-card { padding: 72px 20px; border-radius: 26px; }
  .cta .btn { flex: 1 1 100%; max-width: 320px; }
  .footer { justify-content: center; text-align: center; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .track { animation: none !important; }
  .glow { animation: none !important; }
  .aura { display: none; }
  .hw { opacity: 1; }
  .js .reveal { filter: none; }
}
