/* =========================================================
   KEIKO LABS · Landing Page
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --bg: #000000;
  --bg-soft: #09090b;
  --surface: #111113;
  --surface-2: #18181b;
  --surface-3: #202024;
  --surface-4: #27272a;

  --white: #ffffff;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;

  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --indigo-600: #4f46e5;

  --border: rgba(168, 85, 247, 0.2);
  --border-soft: rgba(168, 85, 247, 0.1);
  --border-strong: rgba(168, 85, 247, 0.3);

  --grad-btn: linear-gradient(90deg, #7e22ce 0%, #9333ea 50%, #4f46e5 100%);

  --font-display: "Geist", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1280px;
  --gutter: 80px;
  --header-h: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(168, 85, 247, 0.4); color: #fff; }

.icon {
  width: 16px; height: 16px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--lg { width: 20px; height: 20px; }
.text-accent { color: var(--purple-400); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Elementos comunes ---------- */
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--purple-400); flex-shrink: 0;
}
.dot--glow { width: 6px; height: 6px; box-shadow: 0 0 8px rgba(192, 132, 252, 0.8); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 16px;
  border-radius: 999px;
  background: rgba(32, 32, 36, 0.9);
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-weight: 600; font-size: 12px; line-height: 16px;
  letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--purple-300);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pill--glow { box-shadow: 0 0 15px rgba(168, 85, 247, 0.25); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600; font-size: 12px; line-height: 16px;
  letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--purple-400);
  margin-bottom: 4px;
}
.eyebrow__muted { color: var(--zinc-400); letter-spacing: 0.96px; }

.h2 {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.2;
  letter-spacing: -1px;
  color: var(--white);
}
.lead { margin-top: 12px; font-size: 18px; line-height: 28px; color: var(--zinc-400); }
.lead--sm { font-size: 15px; line-height: 24px; }

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 40px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px; line-height: 24px;
  letter-spacing: 0.375px;
  color: var(--white);
  transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, filter .25s ease;
  white-space: nowrap;
}
.btn .icon { width: 14px; height: 14px; stroke-width: 2.4; transition: transform .2s ease; }
.btn--primary {
  background: var(--grad-btn);
  border: 1px solid rgba(192, 132, 252, 0.3);
  box-shadow: 0 20px 25px -5px rgba(88, 28, 135, 0.4), 0 8px 10px -6px rgba(88, 28, 135, 0.4);
}
.btn--primary:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 22px 34px -6px rgba(126, 34, 206, 0.6), 0 8px 12px -6px rgba(88, 28, 135, 0.5); }
.btn--primary:hover .icon { transform: translateX(3px); }
.btn--dark {
  background: rgba(32, 32, 36, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  letter-spacing: 0;
}
.btn--dark:hover { border-color: rgba(168, 85, 247, 0.5); background: rgba(40, 40, 46, 0.95); transform: translateY(-1px); }
.btn--dark:hover .icon { transform: translate(2px, 2px); }
.btn--block { width: 100%; }

:focus-visible { outline: 2px solid var(--purple-400); outline-offset: 3px; border-radius: 4px; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 4px 25px rgba(124, 58, 237, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.08);
}
.header__inner {
  height: var(--header-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 80px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__logo {
  width: auto; height: 46px;
  filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.45));
  transition: filter .25s ease, transform .25s ease;
}
.brand:hover .brand__logo {
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.7));
  transform: scale(1.04);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 20px; letter-spacing: -0.4px;
}

.nav {
  display: flex; align-items: center; gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(17, 17, 19, 0.95);
  border: 1px solid rgba(168, 85, 247, 0.12);
  backdrop-filter: blur(12px);
}
.nav__link {
  padding: 4px 16px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 500; line-height: 16px;
  letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--zinc-400);
  transition: color .2s, background-color .2s;
}
.nav__link:hover { color: var(--white); }
.nav__link.is-active { color: var(--white); background: rgba(168, 85, 247, 0.14); }

.header__actions { display: flex; align-items: center; gap: 16px; }
.btn-header {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 24px;
  border-radius: 4px;
  background: var(--grad-btn);
  border: 1px solid rgba(192, 132, 252, 0.35);
  box-shadow: 0 0 18px rgba(147, 51, 234, 0.35);
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600; line-height: 16px;
  letter-spacing: 1.1px; text-transform: uppercase;
  white-space: nowrap;
  transition: filter .2s, transform .2s;
}
.btn-header .icon { width: 12px; height: 12px; stroke-width: 2.6; }
/* Link a Instagram: badge con el degradé de la marca + texto */
.btn-ig {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(32, 32, 36, 0.8);
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600; line-height: 16px;
  letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--zinc-300);
  white-space: nowrap;
  transition: border-color .2s, color .2s, transform .2s;
}
.btn-ig:hover { color: var(--white); border-color: rgba(225, 48, 108, 0.6); transform: translateY(-1px); }
.btn-ig__badge {
  display: grid; place-items: center; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: #fff;
}
.btn-ig__badge .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.btn-header:hover { filter: brightness(1.15); transform: translateY(-1px); }
/* Feedback al tocar/clickear */
.btn:active        { transform: translateY(1px) scale(0.98); filter: brightness(0.93); }
.btn-header:active { transform: translateY(1px); filter: brightness(0.93); }
.icon-btn:active   { transform: scale(0.9); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(59, 7, 100, 0.35);
  border: 1px solid var(--border-strong);
  color: var(--purple-300);
  transition: background-color .2s, border-color .2s, transform .15s ease;
}
.icon-btn:hover { background: rgba(126, 34, 206, 0.35); border-color: rgba(192, 132, 252, 0.6); }
.menu-toggle { display: none; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

.mobile-menu {
  display: flex; flex-direction: column; gap: 4px;
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.96);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  /* visibility: los links del menú cerrado no reciben foco con Tab ni los lee el lector de pantalla */
  visibility: hidden;
  pointer-events: none;
  transition:
    max-height .38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity .28s ease,
    padding .38s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow .38s ease,
    visibility 0s linear .38s;
}
.mobile-menu.is-open {
  max-height: 420px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  padding: 12px 20px 24px;
  /* línea superior como sombra interna: no ocupa espacio cuando el menú está cerrado */
  box-shadow: inset 0 1px 0 var(--border-soft);
  transition-delay: 0s;
}
.mobile-menu__link {
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--zinc-300);
}
.mobile-menu__link:hover, .mobile-menu__link.is-active { color: var(--purple-300); }
.mobile-menu__cta { margin-top: 16px; }
.mobile-menu__ig { display: flex; align-items: center; gap: 10px; }

/* =========================================================
   MAIN + LUCES AMBIENTALES
   ========================================================= */
main { position: relative; padding-top: var(--header-h); overflow: hidden; }
.ambient {
  position: absolute; pointer-events: none; z-index: 0;
  border-radius: 12px;
}
.ambient--1 { width: 850px; height: 450px; left: calc(50% - 425px); top: -80px; background: rgba(126, 34, 206, 0.25); filter: blur(140px); }
.ambient--2 { width: 600px; height: 400px; right: -128px; top: 980px; background: rgba(192, 38, 211, 0.15); filter: blur(140px); }
.ambient--3 { width: 650px; height: 500px; left: -128px; top: 2480px; background: rgba(109, 40, 217, 0.2); filter: blur(160px); }
main > section { position: relative; z-index: 1; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 592px;
  padding: 80px 24px 112px;
  display: flex; justify-content: center;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
#particles { width: 100%; height: 100%; display: block; opacity: 0; animation: particleFadeIn 1.4s ease forwards 0.2s; }
@keyframes particleFadeIn { to { opacity: 0.75; } }
.hero__fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50%, #000 100%);
}
.hero__content {
  max-width: 896px; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero__content .pill { margin-bottom: 24px; }
.hero__title {
  font-family: var(--font-body);
  font-weight: 600; font-size: 64px; line-height: 72px;
  letter-spacing: -1.92px;
  margin-bottom: 22px;
}
.hero__line { display: block; }
.hero__line--gradient {
  padding: 2.5px 0;
  background: linear-gradient(90deg, #ffffff 0%, #d8b4fe 50%, #a855f7 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 50px rgba(168, 85, 247, 0.35));
}
.hero__lead {
  max-width: 668px;
  font-size: 18px; line-height: 28px;
  color: var(--zinc-300);
  margin-bottom: 40px;
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* =========================================================
   SECCIONES
   ========================================================= */
.section { padding: 64px 0; }
.section-head { max-width: 768px; }
.section-head--split {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.section-head--split > div { max-width: 614px; }
.section-head__aside { max-width: 448px; font-size: 15px; line-height: 24px; color: var(--zinc-400); }

/* ---------- 01 Proyectos ---------- */
.section--projects {
  background: rgba(9, 9, 11, 0.8);
  border-top: 1px solid var(--border-soft);
}
.projects {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 34px;
}
.project {
  position: relative;
  display: flex; flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
/* Sin translateY en hover: mover la tarjeta bajo el cursor hace que en los bordes
   entre y salga del hover en bucle. Se resalta con borde y sombra. */
.project { cursor: pointer; }
.js .project.reveal.is-visible {
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .3s ease;
}
.project:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 20px 40px -12px rgba(88, 28, 135, 0.45);
}
/* Elementos decorativos: que no tapen la zona clickeable de la tarjeta */
.project__badge, .project__media img { pointer-events: none; }
.project__media {
  position: relative;
  height: 224px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-4);
}
/* Logo centrado sobre el color de su propio fondo, sin recortar */
.project__media--logo { background: #000; }
.project__media.project__media--logo img { object-fit: contain; padding: 6px 0; }
.project__media--logo::after { display: none; } /* el degradé de las capturas taparía la base del logo */
.project__media--prode { background: #021432; }    /* mismo azul que el fondo del logo */
.project__media--avispero { background: #171815; } /* mismo negro que el fondo del logo */
/* Indara: logo chico y transparente con texto gris; fondo claro y a tamaño real para que no se pixele */
.project__media--indara { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f1ece6 100%); }
.project__media.project__media--indara img { width: auto; height: 140px; object-fit: contain; }
.project__media--indara::after { display: none; }
.project__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.project:hover .project__media img { transform: scale(1.04); }
.project__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, #111113 0%, rgba(17,17,19,0) 50%, rgba(17,17,19,0) 100%);
}
.project__badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(32, 32, 36, 0.9);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  color: var(--purple-300);
}
.project__meta {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 12px; line-height: 16px;
}
.project__cat { color: var(--purple-400); letter-spacing: 0.6px; text-transform: uppercase; }
.status { display: inline-flex; align-items: center; gap: 4px; color: var(--zinc-400); letter-spacing: 0.96px; white-space: nowrap; }
.status--live { color: var(--purple-300); }
.status .dot { width: 6px; height: 6px; }
.project__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 28px; line-height: 36px;
  letter-spacing: -0.56px;
}
.project__desc {
  margin-top: 15px;
  font-size: 13px; line-height: 21px;
  color: var(--zinc-400);
  flex-grow: 1;
}
.project__foot {
  margin-top: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 2px 8px;
  background: var(--surface-2);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 11px; line-height: 14px;
  letter-spacing: 0.55px;
  color: var(--zinc-300);
}
.project__link {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  color: var(--purple-400);
  transition: color .2s ease;
}
.project__link .icon { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .2s ease; }
/* La animación va en el ícono, no en el link: un transform en el link lo vuelve
   el bloque contenedor de su ::after (que cubre toda la tarjeta) y el hover parpadea. */
.project:hover .project__link { color: var(--purple-300); }
.project:hover .project__link .icon { transform: translate(2px, -2px); }
/* Toda la tarjeta clicable */
.project__link::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }

/* ---------- 02 Servicios ---------- */
.section--services { background: transparent; }
.services {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.service {
  padding: 40px;
  background: var(--surface);
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.service:hover { border-color: rgba(168, 85, 247, 0.4); transform: translateY(-3px); box-shadow: 0 20px 40px -18px rgba(88, 28, 135, 0.5); }
.service__top { display: flex; justify-content: space-between; align-items: flex-start; }
.service__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 4px;
  background: var(--surface-3);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--purple-400);
  transition: background-color .3s, box-shadow .3s;
}
.service:hover .service__icon { background: rgba(88, 28, 135, 0.4); box-shadow: 0 0 20px rgba(168, 85, 247, 0.3); }
.service__icon .icon { width: 24px; height: 24px; stroke-width: 1.8; }
.service__num {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px; line-height: 28px;
  color: var(--zinc-600);
}
.service__title {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 28px; line-height: 36px;
  letter-spacing: -0.56px;
}
.service__desc { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--zinc-400); }
.checklist { margin-top: 32px; display: flex; flex-direction: column; gap: 8px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; line-height: 20px;
  color: var(--zinc-300);
}
.checklist .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--purple-400); }

/* ---------- 03 Estudio ---------- */
.section--studio {
  background: var(--bg-soft);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.studio-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.studio-intro .section-head { max-width: 504px; }
.origin {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: linear-gradient(135deg, #18181b 0%, #1b1426 45%, #2a0f45 100%);
  box-shadow: 0 25px 50px -12px rgba(59, 7, 100, 0.35);
}
.origin__glow {
  position: absolute; right: -80px; top: -60px;
  width: 260px; height: 260px;
  background: rgba(147, 51, 234, 0.18); filter: blur(64px);
  pointer-events: none;
}
.origin__head { position: relative; display: flex; align-items: center; gap: 16px; }
.origin__logo {
  width: 64px; height: 64px; flex-shrink: 0;
  padding: 9px;
  object-fit: contain;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, rgba(88, 28, 135, 0.45) 0%, #0c0a12 75%);
  border: 1px solid rgba(216, 180, 254, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 18px rgba(168, 85, 247, 0.45);
}
.origin__name { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 28px; }
.origin__tagline {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.96px;
  color: var(--purple-400);
}
.origin__quote {
  position: relative;
  margin-top: 24px;
  font-style: italic;
  font-size: 15px; line-height: 24px;
  color: var(--zinc-300);
}
.origin__quote strong {
  font-weight: 600; color: var(--white);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--purple-400);
}
.origin__est {
  position: relative;
  margin-top: 20px; padding-top: 12px;
  border-top: 1px solid rgba(168, 85, 247, 0.25);
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.96px;
  color: var(--purple-300);
}
.steps {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.step {
  padding: 24px;
  background: var(--surface);
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: border-color .3s, transform .3s;
}
.step:hover { border-color: rgba(168, 85, 247, 0.4); transform: translateY(-3px); }
.step__top { display: flex; align-items: center; justify-content: space-between; }
.step__num {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: 0.96px;
  color: var(--purple-300);
}
.step__icon { width: 18px; height: 18px; color: var(--purple-400); }
.step__title { margin-top: 20px; font-family: var(--font-body); font-size: 20px; font-weight: 600; line-height: 28px; }
.step__desc { margin-top: 4px; font-size: 13px; line-height: 21px; color: var(--zinc-400); }

/* ---------- 04 Stack ---------- */
.stack { margin-top: 48px; display: flex; flex-direction: column; gap: 8px; }
.stack__row {
  display: flex; align-items: center; gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: border-color .3s;
}
.stack__row:hover { border-color: rgba(168, 85, 247, 0.35); }
.stack__cat {
  flex: 0 0 208px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 18px; font-weight: 600; line-height: 28px;
}
.stack__cat .icon { width: 20px; height: 20px; color: var(--purple-400); stroke-width: 1.8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 4px 16px;
  background: var(--surface-3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; line-height: 16px;
  letter-spacing: 0.96px;
  color: var(--white);
  transition: border-color .2s, color .2s;
}
.chips li:hover { border-color: rgba(168, 85, 247, 0.5); }
.chips .chip--accent { color: var(--purple-300); border-color: rgba(168, 85, 247, 0.3); background: rgba(59, 7, 100, 0.25); }
.chips .chip--muted { background: var(--surface-2); border-color: transparent; color: var(--zinc-400); }

/* ---------- CTA ---------- */
.section--cta { padding: 64px 0 96px; }
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: center;
  padding: 64px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #111113 0%, #000000 100%);
  box-shadow: 0 25px 50px -12px rgba(59, 7, 100, 0.4);
}
.cta__glow { position: absolute; width: 320px; height: 320px; border-radius: 50%; z-index: -1; filter: blur(64px); pointer-events: none; }
.cta__glow--1 { left: -127px; top: -127px; background: rgba(147, 51, 234, 0.3); }
.cta__glow--2 { right: -127px; bottom: -127px; background: rgba(79, 70, 229, 0.25); }
.pill--sm { padding: 4px 12px 4px 10px; gap: 6px; font-size: 12px; }
.pill--sm .dot { width: 7px; height: 7px; }
.cta__title {
  margin-top: 24px;
  font-family: var(--font-body);
  font-weight: 600; font-size: clamp(38px, 6vw, 72px); line-height: 1.1;
  letter-spacing: -2.4px;
}
.cta__title span { display: block; }
.cta__title-gradient {
  background: linear-gradient(90deg, #d8b4fe 0%, #c084fc 50%, #a5b4fc 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.35));
  padding-bottom: 6px;
}
.cta__lead { margin-top: 32px; max-width: 520px; font-size: 18px; line-height: 28px; color: var(--zinc-300); }

.contact-card {
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(17, 17, 19, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}
.contact-card__title { font-family: var(--font-body); font-size: 18px; font-weight: 600; line-height: 28px; margin-bottom: 20px; }
.contact-email {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  min-height: 56px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color .2s, background-color .2s;
}
.contact-email:hover { border-color: rgba(168, 85, 247, 0.45); background: #1c1c20; }
.contact-email__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.contact-email__link::after { content: ""; position: absolute; inset: 0; }
.contact-email__icon { width: 18px; height: 18px; color: var(--purple-400); }
.contact-email__text {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: 0.6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.contact-email__copy {
  position: absolute; z-index: 1; right: 40px; top: 50%; translate: 0 -50%;
  background: #1c1c20;
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 4px;
  color: var(--zinc-400);
  opacity: 0; transition: opacity .2s, color .2s, background-color .2s;
}
.contact-email:hover .contact-email__copy, .contact-email__copy:focus-visible { opacity: 1; }
.contact-email__copy:hover { color: var(--white); background: rgba(168, 85, 247, 0.2); }
.contact-email__copy .icon { width: 14px; height: 14px; }
.contact-email__arrow { width: 16px; height: 16px; color: var(--purple-400); transition: transform .2s; }
.contact-email:hover .contact-email__arrow { transform: translateX(3px); }

.contact-wa {
  margin-top: 16px;
  justify-content: flex-start;
  gap: 14px;
  padding: 12px 18px 12px 12px;
  font-size: 16px; letter-spacing: 0;
}
.contact-wa__badge {
  position: relative;
  display: grid; place-items: center;
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #5cf08f 0%, #25d366 45%, #128c7e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 6px rgba(7, 94, 84, 0.45),
    0 0 0 3px rgba(255, 255, 255, 0.12),
    0 6px 16px -4px rgba(37, 211, 102, 0.55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-wa__badge::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  opacity: 0; transform: scale(.9);
  animation: wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%   { opacity: .8; transform: scale(.95); }
  70%  { opacity: 0;  transform: scale(1.35); }
  100% { opacity: 0;  transform: scale(1.35); }
}
.contact-wa__logo {
  width: 24px; height: 24px; color: #fff;
  filter: drop-shadow(0 1px 1px rgba(7, 94, 84, 0.5));
}
.contact-wa__text { flex: 1; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.contact-wa__label { font-size: 16px; font-weight: 600; }
.contact-wa__sub {
  margin-top: 3px;
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.contact-wa:hover .contact-wa__badge {
  transform: scale(1.06) rotate(-6deg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 6px rgba(7, 94, 84, 0.45),
    0 0 0 3px rgba(255, 255, 255, 0.18),
    0 8px 22px -4px rgba(37, 211, 102, 0.75);
}
.contact-wa .contact-wa__arrow { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) {
  .contact-wa__badge::after { animation: none; }
}
.contact-card__meta {
  margin-top: 16px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600; letter-spacing: 0.55px;
  color: var(--zinc-400);
}

.pre-footer { height: 72px; background: var(--bg-soft); position: relative; z-index: 1; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 64px 0 40px;
  border-top: 1px solid rgba(168, 85, 247, 0.15);
  background: var(--bg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 0.65fr 0.55fr;
  gap: 40px;
}
.footer__logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 20px; font-weight: 600; letter-spacing: -0.4px;
}
.footer__logo img {
  width: 40px; height: 40px; border-radius: 10px;
  border: 2px solid rgba(216, 180, 254, 0.7);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.6);
}
.footer__about { margin-top: 20px; max-width: 360px; font-size: 15px; line-height: 24px; color: var(--zinc-400); }
.footer__location {
  margin-top: 20px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.96px;
  color: var(--zinc-300);
}
.footer__location .icon { width: 14px; height: 14px; color: var(--purple-400); }
.pill--available {
  margin-top: 16px;
  text-transform: none;
  letter-spacing: 0.96px;
  font-size: 12px;
  padding: 6px 16px 6px 12px;
}
.pill--available .dot { width: 7px; height: 7px; box-shadow: 0 0 8px rgba(192, 132, 252, 0.8); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 15px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 20px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 13px; line-height: 18px; color: var(--zinc-400); transition: color .2s; }
.footer__col a:hover { color: var(--purple-300); }
.footer__bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.96px;
  color: var(--zinc-500);
}
.footer__legal { display: flex; align-items: center; gap: 16px; }
.footer__legal a { color: var(--zinc-300); transition: color .2s; }
.footer__legal a:hover { color: var(--purple-300); }
.footer__time { display: inline-flex; align-items: center; gap: 4px; color: var(--zinc-400); }
.footer__time .icon { width: 13px; height: 13px; color: var(--purple-400); }

/* =========================================================
   MODAL + TOAST
   ========================================================= */
.modal {
  margin: auto;
  max-width: 560px; width: calc(100% - 32px);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--white);
  padding: 0;
}
.modal::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); }
.modal__box { position: relative; padding: 32px; }
.modal__close { position: absolute; top: 16px; right: 16px; }
.modal__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 16px; padding-right: 40px; }
.modal__body p { font-size: 14px; line-height: 22px; color: var(--zinc-400); }
.modal__body p + p { margin-top: 12px; }

/* Carrusel de capturas */
.gallery { max-width: 1100px; overflow: hidden; }
.gallery .modal__close { z-index: 1; background: rgba(0, 0, 0, 0.7); }
.gallery__stage { background: #000; touch-action: pan-y; }
.gallery__img { display: block; width: 100%; height: auto; max-height: calc(100vh - 140px); object-fit: contain; }
.gallery__bar { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 12px; }
.gallery__nav { width: 40px; height: 40px; }
.gallery__prev { transform: rotate(180deg); }
.gallery__count { min-width: 48px; text-align: center; font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--zinc-300); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(32, 32, 36, 0.95);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  color: var(--purple-300);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   ANIMACIONES DE ENTRADA
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #particles { opacity: 0.75; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Laptops chicas */
@media (max-width: 1180px) {
  :root { --gutter: 48px; }
  .header__inner { padding: 0 48px; }
  .projects { gap: 24px; }
  .cta { padding: 48px; gap: 40px; grid-template-columns: minmax(0, 1fr) 340px; }
  .cta__title { font-size: 56px; line-height: 64px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 0.8fr; }
}

/* Laptops angostas: el link de Instagram queda solo con el logo para que el header entre */
@media (max-width: 1100px) {
  .btn-ig { padding: 4px; }
  .btn-ig__text { display: none; }
}

/* Tablets */
@media (max-width: 1024px) {
  .nav, .btn-header, .btn-ig { display: none; }
  .menu-toggle { display: inline-grid; width: 40px; height: 40px; }
  .menu-toggle .icon { width: 20px; height: 20px; }

  .projects { grid-template-columns: repeat(2, 1fr); }
  .section-head--split { flex-direction: column; align-items: flex-start; gap: 16px; }
  .studio-intro { grid-template-columns: 1fr; gap: 40px; }
  .studio-intro .section-head { max-width: 768px; }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta__lead { max-width: 640px; }
  .stack__cat { flex-basis: 180px; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Celulares */
@media (max-width: 720px) {
  :root { --gutter: 20px; --header-h: 64px; }
  body { font-size: 14px; }
  .header__inner { padding: 0 20px; }
  .brand__name { font-size: 18px; }
  .brand__logo { height: 38px; }
  .brand { gap: 10px; }

  .hero { min-height: auto; padding: 64px 20px 88px; }
  .hero__title { font-size: clamp(32px, 10vw, 40px); line-height: 46px; letter-spacing: -1.2px; }
  .hero__lead { font-size: 16px; line-height: 26px; margin-bottom: 32px; }
  .hero__lead br { display: none; }
  .pill { font-size: 10px; letter-spacing: 0.5px; padding: 4px 12px; }
  .hero__actions { flex-direction: column; width: 100%; max-width: 360px; }
  .hero__actions .btn { width: 100%; padding: 14px 24px; }

  .section { padding: 56px 0; }
  .h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.75px; }
  .lead { font-size: 16px; line-height: 26px; }
  .lead--sm { font-size: 15px; line-height: 24px; }

  .projects, .services, .steps { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .project { padding: 20px; }
  .project__media { height: 200px; }
  .project__title, .service__title { font-size: 24px; line-height: 30px; }

  .service { padding: 28px 24px; }
  .service__title { margin-top: 24px; }
  .checklist { margin-top: 24px; }

  .steps { margin-top: 40px; }

  .stack { margin-top: 32px; }
  .stack__row { flex-direction: column; align-items: flex-start; padding: 20px; gap: 14px; }
  .stack__cat { flex-basis: auto; }
  .chips li { padding: 4px 12px; font-size: 11px; letter-spacing: 0.6px; }

  .section--cta { padding: 40px 0 64px; }
  .cta { padding: 32px 20px; gap: 32px; border-radius: 12px; }
  .cta__title { font-size: clamp(30px, 9.4vw, 42px); line-height: 1.15; letter-spacing: -1.2px; margin-top: 20px; }
  .cta__lead { font-size: 16px; line-height: 26px; margin-top: 20px; }
  .contact-card { padding: 20px 16px; }
  .contact-email__copy { opacity: 1; position: relative; top: auto; right: auto; translate: none; background: transparent; margin-left: auto; }
  .contact-email { gap: 8px; padding: 0 12px; }
  .contact-email__text { letter-spacing: 0.2px; font-size: 12.5px; }
  .pre-footer { height: 40px; }

  .footer { padding-top: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; margin-top: 40px; }
  .footer__legal { flex-wrap: wrap; }

  .ambient--1 { width: 420px; left: calc(50% - 210px); }
  .ambient--2, .ambient--3 { width: 320px; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 34px; line-height: 40px; }
  .footer__grid { grid-template-columns: 1fr; }
}
