/* ===================================================================
   Gioser — estilos
   Tres capas con identidades visuales independientes.
   =================================================================== */

:root {
  --brand: #2456a6;
  --brand-deep: #18407e;
  --brand-soft: #d9e3f4;

  --l1-bg: #fbfaf7;
  --l1-bg-alt: #11172a;
  --l1-fg: #14213d;
  --l1-fg-soft: #4d5773;
  --l1-fg-mute: #8590a8;
  --l1-line: #e7e3d8;
  --l1-accent: var(--brand);

  --l2-bg: #0c0e10;
  --l2-bg-soft: #14171b;
  --l2-fg: #c6cdd3;
  --l2-fg-dim: #6c757f;
  --l2-fg-bright: #e6ebef;
  --l2-accent: #6acb88;
  --l2-accent-alt: #b58cff;
  --l2-line: #1f242a;

  --l3-bg: #050608;
  --l3-fg: #d8d2c0;
  --l3-fg-soft: #8b8472;
  --l3-glow: #f4ecd0;
  --l3-flame: #d97757;
  --l3-violet: #6b5b95;

  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%;
  height: 100%;
  background: var(--l1-bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { font-family: var(--font-display); color: var(--l1-fg); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Capas — base: cada capa es su propio viewport con scroll independiente */
.layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.6s ease;
}
.layer.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Estado "cayendo" — animación que dispara el paso 1 → 2 */
.layer.falling {
  animation: layerFall 1.2s cubic-bezier(0.7, 0, 0.3, 1) forwards;
  transform-origin: 50% 0%;
  perspective-origin: 50% 0%;
}
@keyframes layerFall {
  0%   { transform: perspective(1400px) rotateX(0)    translateY(0)     scale(1); filter: blur(0); opacity: 1; }
  35%  { transform: perspective(1400px) rotateX(8deg) translateY(40px)  scale(0.99); filter: blur(0.5px); opacity: 1; }
  100% { transform: perspective(1400px) rotateX(75deg) translateY(120vh) scale(0.6); filter: blur(8px); opacity: 0; }
}

/* Estado "disolviendo" — 2 → 3 */
.layer.dissolving { animation: layerDissolve 1.4s ease forwards; }
@keyframes layerDissolve {
  0%   { transform: scale(1); filter: blur(0) brightness(1); opacity: 1; }
  50%  { transform: scale(1.04); filter: blur(2px) brightness(0.6); opacity: 0.6; }
  100% { transform: scale(1.2); filter: blur(20px) brightness(0); opacity: 0; }
}

/* ===================================================================
   CAPA 1 — Superficie ejecutiva
   =================================================================== */

.layer-1 {
  background: var(--l1-bg);
  color: var(--l1-fg);
  font-family: var(--font-display);
}

/* =====================================================================
   Campo de blobs entrelazado — recorre toda la página, separa
   secciones blancas sin línea dura. Cada blob tiene color y posición
   propios; el conjunto forma una figura semi-escondida.
   ===================================================================== */
.l1-blob-field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 600vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.l1-blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(110px);
  will-change: transform;
  animation: blobBreath 18s ease-in-out infinite;
}
.l1-blob-1 {
  top: 2vh; left: -12vw;
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(36,86,166,0.55), transparent 65%);
  opacity: 0.7;
  animation-delay: -2s;
}
.l1-blob-2 {
  top: 38vh; right: -10vw;
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, rgba(217,119,87,0.40), transparent 65%);
  opacity: 0.55;
  animation-delay: -6s;
}
.l1-blob-3 {
  top: 85vh; left: 18vw;
  width: 38vw; height: 38vw;
  background: radial-gradient(circle, rgba(181,140,255,0.32), transparent 65%);
  opacity: 0.45;
  animation-delay: -10s;
}
.l1-blob-4 {
  top: 140vh; right: 5vw;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(36,86,166,0.35), transparent 65%);
  opacity: 0.5;
  animation-delay: -4s;
}
.l1-blob-5 {
  top: 200vh; left: -8vw;
  width: 52vw; height: 52vw;
  background: radial-gradient(circle, rgba(106,203,136,0.22), transparent 65%);
  opacity: 0.5;
  animation-delay: -12s;
}
.l1-blob-6 {
  top: 270vh; right: 12vw;
  width: 42vw; height: 42vw;
  background: radial-gradient(circle, rgba(232,168,56,0.25), transparent 65%);
  opacity: 0.45;
  animation-delay: -8s;
}
.l1-blob-7 {
  top: 330vh; left: 22vw;
  width: 48vw; height: 48vw;
  background: radial-gradient(circle, rgba(36,86,166,0.32), transparent 65%);
  opacity: 0.5;
  animation-delay: -14s;
}
.l1-blob-8 {
  top: 400vh; right: -6vw;
  width: 46vw; height: 46vw;
  background: radial-gradient(circle, rgba(217,119,87,0.28), transparent 65%);
  opacity: 0.45;
  animation-delay: -3s;
}
@keyframes blobBreath {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50%      { transform: translate3d(0,-30px,0) scale(1.08); }
}

/* =====================================================================
   Imagen banner del hero — sticky de verdad: queda quieta mientras
   el contenido crema sube por encima.
   ===================================================================== */
.l1-hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
}
.l1-hero-image {
  position: sticky;
  top: 0;
  width: 100%;
  height: 70vh;
  z-index: 0;
  overflow: hidden;
  background: #0a1024;
}
.l1-hero-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* viñeta inferior que ayuda al empate con la tarjeta crema */
.l1-hero-image::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(10, 16, 36, 0.55));
  pointer-events: none;
  z-index: 1;
}
/* contenido del hero: tarjeta crema con borde redondeado que sube sobre la imagen */
.l1-hero .l1-hero-inner {
  position: relative;
  z-index: 2;
  background: var(--l1-bg);
  border-radius: 28px 28px 0 0;
  margin-top: -8vh;
  padding: 9vh 6vw 12vh;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -20px 50px -30px rgba(10, 16, 36, 0.35);
}
.l1-hero-inner > * { max-width: 880px; width: 100%; }

.l1-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4vw;
  backdrop-filter: blur(14px);
  background: rgba(251, 250, 247, 0.72);
  border-bottom: 1px solid rgba(20, 33, 61, 0.06);
}
.l1-brand { display: flex; align-items: center; gap: 0.75rem; }
.l1-logo { width: 36px; height: 36px; }
.l1-wordmark {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--l1-fg);
}
.l1-nav { display: flex; gap: 2rem; }
.l1-nav a {
  font-size: 0.92rem;
  color: var(--l1-fg-soft);
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.l1-nav a:hover { color: var(--l1-accent); }
.l1-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--l1-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.l1-nav a:hover::after { transform: scaleX(1); }

.l1-nav .l1-lang {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--l1-fg-mute);
  border: 1px solid var(--l1-line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}
.l1-nav .l1-lang:hover { color: var(--l1-accent); border-color: var(--l1-accent); }
.l1-nav .l1-lang::after { display: none; }

.l1-hero-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 2.5rem;
  filter: drop-shadow(0 8px 28px rgba(36, 86, 166, 0.18));
  animation: heroMarkBreath 7s ease-in-out infinite;
}
@keyframes heroMarkBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); filter: drop-shadow(0 14px 36px rgba(36, 86, 166, 0.32)); }
}
.l1-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--l1-accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.l1-headline {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--l1-fg);
  margin-bottom: 2rem;
}
.l1-headline em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--l1-accent);
}
/* enlace oculto — el punto final del titular: cursor de enlace, leve respiración al pasar */
.l1-period {
  display: inline-block;
  cursor: pointer;
  color: inherit;
  font-style: normal;
  font-family: inherit;
  transition: color 0.35s ease, transform 0.35s ease;
  transform-origin: 50% 70%;
}
.l1-period:hover {
  color: var(--l1-accent);
  transform: translateY(-3px) scale(1.5);
}

.l1-sub {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--l1-fg-soft);
  max-width: 620px;
  margin: 0 auto 2.75rem;
}
.l1-cta-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.l1-cta-primary,
.l1-cta-ghost {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.l1-cta-primary {
  background: var(--l1-accent);
  color: white;
  box-shadow: 0 8px 28px rgba(36, 86, 166, 0.25);
}
.l1-cta-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(36, 86, 166, 0.35);
}
.l1-cta-ghost {
  color: var(--l1-fg);
  border: 1px solid var(--l1-line);
  background: white;
}
.l1-cta-ghost:hover {
  border-color: var(--l1-accent);
  color: var(--l1-accent);
}

/* Secciones */
.l1-section {
  position: relative;
  z-index: 1;
  padding: 14vh 6vw;
  max-width: 1400px;
  margin: 0 auto;
}
.l1-section-dark {
  background: var(--l1-bg-alt);
  color: var(--l1-bg);
  max-width: none;
  margin: 0;
  padding: 14vh 8vw;
  border-radius: 24px 24px 0 0;
  margin-top: 6vh;
}
.l1-section-dark + .l1-section { margin-top: 0; }
.l1-section-dark .l1-section-head h2 { color: white; }
.l1-section-dark .l1-section-head p { color: rgba(255,255,255,0.65); }
.l1-section-dark .l1-tag { color: rgba(255,255,255,0.55); }

.l1-section-head {
  max-width: 720px;
  margin-bottom: 4rem;
}
.l1-tag {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--l1-fg-mute);
  font-weight: 500;
  font-family: var(--font-mono);
}
.l1-section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 1rem 0 1.25rem;
  color: var(--l1-fg);
}
.l1-section-head p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--l1-fg-soft);
}

/* enlace disimulado — capa 1 */
.l1-hidden-link {
  color: inherit;
  border-bottom: 1px dotted rgba(36, 86, 166, 0.35);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.l1-hidden-link:hover {
  border-bottom-color: var(--l1-accent);
  color: var(--l1-accent);
}

/* Cards de capacidades */
.l1-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.l1-card {
  background: white;
  border: 1px solid var(--l1-line);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.l1-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--l1-accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.l1-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(20, 33, 61, 0.08); border-color: rgba(36, 86, 166, 0.2); }
.l1-card:hover::before { transform: scaleX(1); }
.l1-card-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--l1-accent);
  margin-bottom: 1rem;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), letter-spacing 0.4s ease;
  transform-origin: left center;
  display: inline-block;
}
.l1-card:hover .l1-card-num {
  transform: scale(1.1) translateX(2px);
  letter-spacing: 0.05em;
}
.l1-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.l1-card p {
  color: var(--l1-fg-soft);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-size: 0.96rem;
}
.l1-card ul {
  list-style: none;
  border-top: 1px solid var(--l1-line);
  padding-top: 1rem;
}
.l1-card li {
  font-size: 0.88rem;
  color: var(--l1-fg-soft);
  padding: 0.35rem 0;
  position: relative;
  padding-left: 1.2rem;
}
.l1-card li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--l1-accent);
  font-weight: 700;
}

/* Pilares (enfoque) — leyes de operación */
.l1-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem 3rem;
}
.l1-pillar {
  padding-left: 1.25rem;
  border-left: 2px solid var(--l1-accent);
}
.l1-pillar h4 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--l1-fg);
  letter-spacing: -0.01em;
}
.l1-pillar p {
  color: var(--l1-fg-soft);
  line-height: 1.6;
  font-size: 0.98rem;
}
.l1-pillar em { color: var(--l1-fg); font-style: italic; font-family: var(--font-mono); font-size: 0.92em; }
/* Override cuando el pillar va sobre fondo oscuro */
.l1-section-dark .l1-pillar h4 { color: white; }
.l1-section-dark .l1-pillar p { color: rgba(255,255,255,0.7); }
.l1-section-dark .l1-pillar em { color: rgba(255,255,255,0.9); font-family: var(--font-serif); font-size: 1em; }
.l1-section-dark .l1-pillar { border-left-color: rgba(255,255,255,0.4); }

/* Proyectos — lista editorial con thumbnail */
.l1-projects {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--l1-line);
}
.l1-project {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--l1-line);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
  transition: transform 0.3s ease;
}
.l1-project:hover { transform: translateX(6px); }
.l1-project-text { display: flex; flex-direction: column; gap: 0.85rem; }
.l1-project h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  color: var(--l1-fg);
  letter-spacing: -0.01em;
}
.l1-project p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--l1-fg-soft);
}

/* Placeholder de screenshot — gradiente por proyecto + chrome de ventana */
.l1-project-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.18), transparent 60%),
    linear-gradient(135deg, var(--shot-a, #2a3a5a), var(--shot-b, #6a7a9a));
  background-size: 110% 110%;
  background-position: center;
  border: 1px solid var(--l1-line);
  box-shadow:
    0 1px 2px rgba(20,33,61,0.04),
    0 12px 32px -8px rgba(20,33,61,0.18);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s ease,
    background-size 0.8s ease,
    background-position 1.2s ease;
}
.l1-project:hover .l1-project-shot {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(20,33,61,0.05), 0 22px 48px -8px rgba(20,33,61,0.28);
  background-size: 140% 140%;
  background-position: 60% 40%;
}
.l1-project h3 {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.4s ease;
}
.l1-project:hover h3 {
  transform: translateX(4px);
  color: var(--l1-accent);
}
/* barra superior de la ventana */
.l1-project-shot::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 22px;
  background: rgba(0,0,0,0.22);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1;
}
/* tres puntitos */
.l1-project-shot::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  box-shadow:
    14px 0 0 rgba(255,255,255,0.35),
    28px 0 0 rgba(255,255,255,0.2);
  z-index: 2;
}
.l1-shot-tag {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  z-index: 2;
}

/* ---------- Visión: layout magazine — cabecera sticky con banner ---------- */
.l1-vision-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}
.l1-vision-head {
  position: sticky;
  top: 100px;
  align-self: start;
}
.l1-vision-head .l1-tag,
.l1-vision-head h2,
.l1-vision-head p {
  /* heredan colores blancos via .l1-section-dark .l1-section-head */
}
.l1-vision-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 1rem 0 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.l1-vision-banner {
  position: relative;
  height: clamp(220px, 28vh, 320px);
  width: 100%;
  margin: 2rem 0 0;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  background: #0a1024;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.5);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}
.l1-vision-banner:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.l1-vision-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.l1-vision-banner:hover .l1-vision-banner-img { transform: scale(1.04); }

/* ---------- Barra de progreso fina arriba ---------- */
.l1-progress {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  margin-bottom: -2px;
  pointer-events: none;
  background: rgba(20, 33, 61, 0.04);
}
.l1-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--l1-accent), #d97757);
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(36, 86, 166, 0.4);
}

/* ---------- Stagger reveal: cada item entra con un delay creciente ---------- */
.l1-cards .l1-card[data-reveal]:nth-child(1) { transition-delay: 0s; }
.l1-cards .l1-card[data-reveal]:nth-child(2) { transition-delay: 0.10s; }
.l1-cards .l1-card[data-reveal]:nth-child(3) { transition-delay: 0.20s; }
.l1-vision .l1-vision-item[data-reveal]:nth-child(1) { transition-delay: 0s; }
.l1-vision .l1-vision-item[data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.l1-vision .l1-vision-item[data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.l1-vision .l1-vision-item[data-reveal]:nth-child(4) { transition-delay: 0.24s; }
.l1-vision .l1-vision-item[data-reveal]:nth-child(5) { transition-delay: 0.32s; }
.l1-pillars .l1-pillar[data-reveal]:nth-child(1) { transition-delay: 0s; }
.l1-pillars .l1-pillar[data-reveal]:nth-child(2) { transition-delay: 0.10s; }
.l1-pillars .l1-pillar[data-reveal]:nth-child(3) { transition-delay: 0.20s; }
.l1-pillars .l1-pillar[data-reveal]:nth-child(4) { transition-delay: 0.30s; }

/* Visión — flex-wrap centrado: 3+2 o 2+2+1 se acomodan limpios */
.l1-vision {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem 2.5rem;
}
.l1-vision-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1 1 280px;
  max-width: 360px;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.l1-vision-item:hover { transform: translateY(-3px); }
.l1-vision-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: rgba(217, 119, 87, 0.7);
  line-height: 1;
  margin-bottom: 0.4rem;
  transition: color 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-block;
}
.l1-vision-item:hover .l1-vision-num {
  color: #f4ecd0;
  transform: translateX(8px);
}
.l1-vision-item h4 {
  transition: color 0.4s ease;
}
.l1-vision-item:hover h4 { color: #f4ecd0; }
.l1-vision-item h4 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.55rem;
  color: white;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
  line-height: 1.15;
}
.l1-vision-item p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}
.l1-vision-item p em { color: white; font-style: italic; font-family: var(--font-mono); font-size: 0.92em; }

/* Contacto */
.l1-contact { padding-bottom: 8vh; }
.l1-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.l1-contact-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: white;
  border: 1px solid var(--l1-line);
  border-radius: 12px;
  transition: all 0.3s;
}
.l1-contact-card:not(.l1-contact-static):hover {
  border-color: var(--l1-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(20,33,61,0.06);
}
.l1-contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--l1-fg-mute);
  margin-bottom: 0.5rem;
}
.l1-contact-value {
  font-size: 1.05rem;
  color: var(--l1-fg);
  font-weight: 500;
}

/* Footer capa 1 */
.l1-footer {
  background: var(--l1-bg-alt);
  color: rgba(255,255,255,0.6);
  padding: 4rem 6vw 3rem;
  text-align: center;
}
.l1-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.l1-footer-logo { width: 44px; opacity: 0.85; }
.l1-footer p { font-size: 0.88rem; }
.l1-footer-fine { color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* Reveal — animación de scroll en capa 1 */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* ===================================================================
   CAPA 2 — Arquitectura técnica
   =================================================================== */

.layer-2 {
  background: var(--l2-bg);
  color: var(--l2-fg);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  transform: translateY(40px);
  transition: transform 0.8s ease, opacity 0.6s ease;
}
.layer-2.active { transform: translateY(0); }

.l2-scanlines {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  margin-bottom: -100vh;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.015) 0px,
    rgba(255,255,255,0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 1;
}
.l2-grain {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  margin-bottom: -100vh;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  z-index: 1;
}

.l2-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 4vw;
  background: rgba(12, 14, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--l2-line);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.l2-header.l2-faded {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
.l2-prompt {
  font-size: 0.92rem;
  color: var(--l2-fg-bright);
}
.l2-prompt-user { color: var(--l2-accent); }
.l2-prompt-at { color: var(--l2-fg-dim); }
.l2-prompt-host { color: var(--l2-accent-alt); }
.l2-prompt-colon { color: var(--l2-fg-dim); }
.l2-prompt-path { color: var(--l2-fg); }
.l2-prompt-tip { color: var(--l2-fg-dim); margin: 0 0.5rem; }
.l2-typed { color: var(--l2-fg-bright); }
.l2-caret { color: var(--l2-accent); animation: caret 1s steps(2) infinite; margin-left: 1px; }
@keyframes caret { 50% { opacity: 0; } }

.l2-section {
  position: relative;
  z-index: 2;
  max-width: 940px;
  margin: 0 auto;
  padding: 5vh 4vw;
}
.l2-frame {
  border: 1px solid var(--l2-line);
  padding: 1.5rem 2rem;
  background: var(--l2-bg-soft);
  border-radius: 4px;
}
.l2-ascii {
  font-family: var(--font-mono);
  color: var(--l2-accent);
  font-size: 0.78rem;
  line-height: 1.3;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.l2-text {
  color: var(--l2-fg);
  font-size: 0.96rem;
  line-height: 1.7;
  font-family: var(--font-display);
  font-weight: 300;
}
.l2-text em { color: var(--l2-fg-bright); font-style: italic; }
.l2-text strong { color: var(--l2-fg-bright); font-weight: 600; }
.l2-text-lead { color: var(--l2-fg-dim); margin: 0.5rem 0 2rem; }

.l2-h2 {
  position: sticky;
  top: 56px;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  color: var(--l2-accent);
  letter-spacing: 0.05em;
  background: rgba(12, 14, 16, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--l2-line);
  padding: 0.85rem 0 0.55rem;
  margin: 0 -1rem 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.l2-projects {
  display: grid;
  gap: 1.5rem;
}
.l2-project {
  border: 1px solid var(--l2-line);
  background: var(--l2-bg-soft);
  padding: 1.75rem 2rem;
  border-radius: 4px;
  transition: border-color 0.25s;
}
.l2-project:hover { border-color: var(--l2-accent-alt); }
.l2-project header { margin-bottom: 1rem; }
.l2-tag-mono {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--l2-accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.l2-project h3 {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--l2-fg-bright);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.l2-project > p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--l2-fg);
  margin-bottom: 1.25rem;
}
.l2-project code,
.l2-text code,
.l2-table code {
  background: rgba(106, 203, 136, 0.08);
  color: var(--l2-accent);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.88em;
  font-family: var(--font-mono);
}
.l2-bullets {
  list-style: none;
  border-top: 1px dashed var(--l2-line);
  padding-top: 1rem;
}
.l2-bullets li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.92rem;
  color: var(--l2-fg);
  line-height: 1.5;
}
.l2-bullets li::before {
  content: '─';
  position: absolute;
  left: 0;
  color: var(--l2-accent);
}
.l2-bullets li strong { color: var(--l2-fg-bright); font-weight: 600; }

.l2-philos {
  display: grid;
  gap: 1.25rem;
}
.l2-phil {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--l2-line);
}
.l2-phil-num {
  font-family: var(--font-mono);
  color: var(--l2-accent-alt);
  font-size: 0.85rem;
  font-weight: 500;
}
.l2-phil p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--l2-fg);
}
.l2-phil strong { color: var(--l2-fg-bright); font-weight: 600; }
.l2-phil em { color: var(--l2-accent-alt); font-style: italic; font-family: var(--font-mono); font-size: 0.92em; }
.l2-phil code {
  background: rgba(106, 203, 136, 0.08);
  color: var(--l2-accent);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.88em;
  font-family: var(--font-mono);
}

/* Enlace disimulado capa 2 → 3 */
.l2-hidden-link {
  color: var(--l2-fg);
  border-bottom: 1px dotted rgba(181, 140, 255, 0.4);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.l2-hidden-link:hover {
  color: var(--l2-accent-alt);
  border-bottom-color: var(--l2-accent-alt);
  text-shadow: 0 0 12px rgba(181,140,255,0.4);
}

.l2-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.l2-table th, .l2-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--l2-line);
  font-weight: 400;
  vertical-align: top;
}
.l2-table th {
  color: var(--l2-accent);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  width: 30%;
}
.l2-table td {
  color: var(--l2-fg);
  font-family: var(--font-display);
  font-weight: 300;
}

.l2-services {
  list-style: none;
}
.l2-services li {
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--l2-line);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1rem;
  color: var(--l2-fg);
  display: flex;
  gap: 0.75rem;
}
.l2-services li span {
  color: var(--l2-accent);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.l2-services li strong { color: var(--l2-fg-bright); font-weight: 600; }

.l2-footer {
  padding: 4rem 4vw 6rem;
  max-width: 940px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.l2-footer pre {
  font-family: var(--font-mono);
  color: var(--l2-fg-dim);
  font-size: 0.82rem;
  line-height: 1.6;
  border-top: 1px dashed var(--l2-line);
  padding-top: 1.5rem;
}

/* acrónimo bajo el título del proyecto */
.l2-acronym {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--l2-fg-dim);
  background: rgba(106, 203, 136, 0.04);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  border-left: 2px solid var(--l2-accent);
  width: fit-content;
  max-width: 100%;
}
/* acrónimo inline en bullets */
.l2-acronym-inline {
  display: inline-block;
  margin: 0 0.25rem 0 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--l2-fg-dim);
  background: rgba(106, 203, 136, 0.06);
  padding: 0.05rem 0.4rem;
  border-radius: 3px;
  vertical-align: 1px;
}

/* enlaces tipo readme — discretos, monoespaciados, color violeta */
.l2-readme {
  display: inline-block;
  margin-left: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--l2-accent-alt);
  border-bottom: 1px dashed transparent;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.l2-readme:hover {
  color: var(--l2-fg-bright);
  border-bottom-color: var(--l2-accent-alt);
  transform: translateY(-1px);
}

/* ---------- Prompt interactivo de abajo ---------- */
.l2-prompt-bottom {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0.85rem 4vw 1rem;
  background: rgba(12, 14, 16, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--l2-line);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.l2-prompt-bottom.l2-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.l2-history {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--l2-fg-dim);
  line-height: 1.55;
  max-height: 9.5rem;
  overflow-y: auto;
  white-space: pre-wrap;
  margin: 0 0 0.5rem;
  scrollbar-width: thin;
}
.l2-history:empty { display: none; }
.l2-history .l2-history-cmd {
  color: var(--l2-fg-bright);
}
.l2-history .l2-history-err {
  color: var(--l2-flame, #d97757);
}
.l2-history .l2-history-ok {
  color: var(--l2-accent);
}
.l2-input-line {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--l2-fg-bright);
}
.l2-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--l2-fg-bright);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  margin-left: 0.5rem;
  caret-color: var(--l2-accent);
}
.l2-input::placeholder { color: var(--l2-fg-dim); opacity: 0.4; }

/* ===================================================================
   CAPA 3 — Explorador de la consciencia
   =================================================================== */

.layer-3 {
  background: var(--l3-bg);
  color: var(--l3-fg);
  font-family: var(--font-serif);
  overflow: hidden;
}

.l3-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.l3-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.l3-stage::-webkit-scrollbar { display: none; }

.l3-pane {
  scroll-snap-align: start;
  min-height: 100vh;
  width: 100%;
  padding: 8vh 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.l3-overline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--l3-fg-soft);
  margin-bottom: 2rem;
  opacity: 0.7;
}

.l3-h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--l3-fg);
  margin-bottom: 2.5rem;
}
.l3-h1 em {
  font-style: italic;
  color: var(--l3-glow);
  font-weight: 300;
}
.l3-h1 span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: l3reveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.l3-h1 span:nth-child(1) { animation-delay: 0.3s; }
.l3-h1 span:nth-child(3) { animation-delay: 0.6s; }
.l3-h1 em { animation-delay: 1.0s; }
@keyframes l3reveal { to { opacity: 1; transform: none; } }

.l3-h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--l3-fg);
  margin-bottom: 2.5rem;
}
.l3-h2 em {
  font-style: italic;
  color: var(--l3-glow);
}

.l3-lede {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.7;
  color: var(--l3-fg);
  max-width: 720px;
  margin-bottom: 1.5rem;
  font-weight: 300;
}
.l3-lede-soft { color: var(--l3-fg-soft); font-style: italic; }

.l3-advance {
  align-self: flex-start;
  margin-top: 3rem;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--l3-fg-soft);
  cursor: pointer;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(216, 210, 192, 0.25);
  transition: all 0.4s ease;
}
.l3-advance:hover {
  color: var(--l3-glow);
  border-color: var(--l3-glow);
  letter-spacing: 0.4em;
}
/* Quadrants */
.l3-quadrants {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: rgba(216, 210, 192, 0.12);
  border: 1px solid rgba(216, 210, 192, 0.12);
  margin-bottom: 2rem;
  min-height: 50vh;
}
.l3-quadrant {
  background: var(--l3-bg);
  padding: 2rem 2rem;
  position: relative;
  transition: all 0.5s ease;
  cursor: default;
}
.l3-quadrant:hover {
  background: rgba(216, 210, 192, 0.04);
}
.l3-quadrant:hover .l3-q-glyph {
  color: var(--l3-glow);
  transform: rotate(360deg);
}
.l3-q-glyph {
  font-size: 2rem;
  color: var(--l3-fg-soft);
  display: inline-block;
  transition: transform 1.5s ease, color 0.5s;
  margin-bottom: 1rem;
}
.l3-quadrant h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.8rem;
  color: var(--l3-glow);
  letter-spacing: -0.01em;
}
.l3-q-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--l3-flame);
  margin: 0.25rem 0 1rem;
}
.l3-quadrant p {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--l3-fg-soft);
}
.l3-quadrant p em { color: var(--l3-fg); font-style: italic; }

.l3-aside {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--l3-fg-soft);
  border-left: 1px solid var(--l3-flame);
  padding: 0.5rem 0 0.5rem 1.5rem;
  max-width: 800px;
  line-height: 1.6;
}

/* Thesis */
.l3-theses {
  list-style: none;
  display: grid;
  gap: 2rem;
  max-width: 820px;
}
.l3-theses li {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: start;
  gap: 1rem;
}
.l3-thesis-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--l3-flame);
}
.l3-theses p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--l3-fg);
  font-weight: 300;
}
.l3-theses p strong { color: var(--l3-glow); font-weight: 500; }
.l3-theses p em { color: var(--l3-fg-soft); font-style: italic; }

/* Coda contact */
.l3-contact {
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid rgba(244, 236, 208, 0.15);
  border-radius: 4px;
  max-width: 560px;
  background: rgba(244, 236, 208, 0.02);
}
.l3-mail {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--l3-glow);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  transition: text-shadow 0.4s;
}
.l3-mail:hover { text-shadow: 0 0 18px rgba(244, 236, 208, 0.5); }
.l3-contact-fine {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--l3-fg-soft);
  font-style: italic;
  line-height: 1.5;
}

/* Frecuencia (HUD) */
.l3-frequency {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--l3-fg-soft);
}
.l3-freq-bar {
  display: inline-block;
  width: 90px;
  height: 2px;
  background: rgba(216, 210, 192, 0.15);
  border-radius: 2px;
  overflow: hidden;
}
.l3-freq-fill {
  display: block;
  height: 100%;
  width: 5%;
  background: var(--l3-glow);
  transition: width 0.5s ease;
  box-shadow: 0 0 8px var(--l3-glow);
}

/* ===================================================================
   Overlay de transición
   =================================================================== */

.transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}
.transition.active {
  opacity: 1;
  pointer-events: auto;
}
.transition-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, transparent 70%);
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.transition.active .transition-burst {
  animation: burst 1.4s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
@keyframes burst {
  0% { width: 0; height: 0; opacity: 0; }
  40% { width: 200vmax; height: 200vmax; opacity: 1; }
  100% { width: 200vmax; height: 200vmax; opacity: 0; }
}
.transition-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  transform: scaleX(0);
}
.transition.active .transition-line {
  animation: linePulse 0.8s ease forwards;
}
@keyframes linePulse {
  0% { transform: scaleX(0); opacity: 1; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 900px) {
  .l1-hero { padding: 10vh 6vw 14vh; }
  .l1-hero-mark { width: 60px; height: 60px; margin-bottom: 1.75rem; }
  .l1-nav { gap: 1rem; font-size: 0.85rem; }
  .l1-project { grid-template-columns: 1fr; gap: 1.25rem; padding: 2rem 0; }
  .l1-project-shot { max-width: 280px; }
  .l1-vision-item { max-width: 100%; }
  .l1-vision-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .l1-vision-head { position: static; }
  .l1-nav a { font-size: 0.82rem; }
  .l1-section { padding: 10vh 6vw; }
  .l3-quadrants { grid-template-columns: 1fr; grid-template-rows: auto; min-height: auto; }
  .l3-pane { padding: 6vh 6vw; }
}

@media (max-width: 600px) {
  /* en móvil solo sobrevive el toggle de idioma */
  .l1-nav a:not(.l1-lang) { display: none; }
  .l1-headline { font-size: 2.2rem; }
  .l1-cta-row { flex-direction: column; align-items: stretch; }
  .l1-cta-primary, .l1-cta-ghost { text-align: center; }
  .l2-section { padding: 4vh 5vw; }
  .l2-table th { display: block; width: auto; border-bottom: none; padding-bottom: 0; }
  .l2-table td { display: block; padding-top: 0.25rem; padding-bottom: 1rem; }
  .l3-theses li { grid-template-columns: 40px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Screenshots reales dentro de las miniaturas de proyectos: llenan la
   tarjeta 16:10 con cover; el gradiente queda de fallback mientras carga. */
.l1-project-shot .l1-shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: inherit;
}
