/* ═══════════════════════════════════════════════════
   RESET & ROOT
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #000000;
  --bg-card:  #111111;
  --bg-card2: #161616;
  --white:    #ffffff;
  --muted:    rgba(255,255,255,0.45);
  --border:   rgba(255,255,255,0.08);
  --border2:  rgba(255,255,255,0.14);
  --green:    #22c55e;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease:     cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout: margen lateral fluido y ancho maximo de contenido */
  --pad:  clamp(20px, 4.5vw, 64px);
  --maxw: 1400px;
}

/* Centra el contenido en pantallas grandes sin tocar el markup:
   el padding crece hasta que el contenido mide --maxw. */
.section,
.site-footer,
.hero-band {
  padding-left:  max(var(--pad), calc((100% - var(--maxw)) / 2));
  padding-right: max(var(--pad), calc((100% - var(--maxw)) / 2));
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* 'clip' en vez de 'hidden': recorta el sangrado del marquee (100vw incluye
     la barra de scroll) sin crear un scroll container, asi los titulos con
     position:sticky siguen funcionando. */
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: clip;
  cursor: none;
}
body.loading { overflow: hidden; }

img { display: block; width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

/* ═══════════════════════════════════════════════════
   PRELOADER
═══════════════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 60px;
  pointer-events: none;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
#preloader.done {
  opacity: 0;
  visibility: hidden;
}

.pre-bar {
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--white);
  transition: width linear;
}

.pre-count {
  font-family: var(--font-head);
  font-size: clamp(80px, 15vw, 200px);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.pre-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 8px;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════
   CUSTOM CURSOR
═══════════════════════════════════════════════════ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9000;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--white);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255,255,255,0.65);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
}

body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(255,255,255,0.3);
}
body:has(a:hover) .cursor-dot,
body:has(button:hover) .cursor-dot {
  opacity: 0;
}

/* ═══════════════════════════════════════════════════
   NAV OVERLAY
═══════════════════════════════════════════════════ */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8vw;
  transform: translateY(-100%);
  transition: transform 0.7s var(--ease);
  overflow: hidden;
}
.nav-overlay.open { transform: translateY(0); }

.nav-close {
  position: absolute;
  top: 28px;
  right: 36px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border2);
  border-radius: 50%;
  cursor: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px;
}
.nav-close span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--white);
}
.nav-close span:first-child { transform: rotate(45deg) translate(2px, 2px); }
.nav-close span:last-child  { transform: rotate(-45deg) translate(2px, -2px); }

.nav-overlay-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-overlay-link {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 5vw, 4.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 16px;
  line-height: 1.1;
  transition: color 0.25s;
  position: relative;
  overflow: hidden;
}
.nav-overlay-link::before {
  content: attr(data-num);
  font-size: 0.65rem;
  font-family: var(--font-body);
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 4px;
}
.nav-overlay-link:hover { color: var(--white); }

.nav-overlay-footer {
  position: absolute;
  bottom: 40px;
  left: 8vw;
  display: flex;
  gap: 28px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-overlay-footer a:hover { color: var(--white); }

/* ═══════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(16px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

/* Logo tomado de la v2: Instrument Sans, peso 500, tracking negativo */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'Instrument Sans', var(--font-body), sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--white);
  flex-shrink: 0;
  transition: opacity 0.25s;
}
.nav-logo:hover { opacity: 0.65; }
.nav-logo-dot {
  font-size: 0.5em;
  color: var(--muted);
  transition: color 0.25s;
}
.nav-logo:hover .nav-logo-dot { color: var(--white); }

.header-loc {
  font-size: 0.72rem;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-mail {
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.header-mail:hover { opacity: 1; }

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

/* ── Switch de idioma ─────────────────────────── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50px;
  padding: 2px;
  flex-shrink: 0;
}

.lang-opt {
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 50px;
  padding: 7px 11px;
  cursor: none;
  transition: color 0.25s, background 0.25s;
}
.lang-opt:hover { color: var(--white); }
.lang-opt.is-active {
  background: var(--white);
  color: var(--bg);
}

.navigate-btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50px;
  padding: 9px 20px;
  cursor: none;
  transition: background 0.25s, border-color 0.25s;
}
.navigate-btn:hover {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px var(--pad) 80px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero-name {
  font-family: var(--font-head);
  font-size: min(200px, 14vw, calc((100vw - 2 * var(--pad)) / 7));
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}

.hero-name-line {
  display: block;
  overflow: hidden;
}

.hero-meta {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  padding: 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-location {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-role {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.hero-role em {
  font-style: italic;
  color: var(--white);
  opacity: 0.8;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 2.5s forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to   { opacity: 0.4; transform: translate(-50%, 0); }
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.3); }
}
.hero-scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════
   HERO IMAGE
═══════════════════════════════════════════════════ */
.hero-band {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 56px;
  margin-bottom: -40px;
  position: relative;
  z-index: 1;
}

.hero-band-side { max-width: 320px; }
.hero-band-left  { justify-self: end;   text-align: right; }
.hero-band-right { justify-self: start; }

.band-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 14px;
}

.hero-band-side p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--muted);
}
.hero-band-side strong {
  font-weight: 500;
  color: rgba(255,255,255,0.82);
}

.hero-image-wrap {
  width: min(520px, 70vw);
  aspect-ratio: 3/4;
  margin: 0 auto;
  border-radius: 260px 260px 0 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  /* El JS anima el radio y la escala segun el scroll.
     Anclado abajo para que al escalar no se despegue de la seccion. */
  transform-origin: center bottom;
  will-change: transform, border-radius;
}
/* Sobredimensionada para que el parallax interno nunca deje bordes vacios */
.hero-full-img {
  position: absolute;
  top: -12.5%;
  left: 0;
  width: 100%;
  height: 125%;
  object-fit: cover;
  object-position: center top;
  will-change: transform;
}

/* Las secciones tapan la imagen con parallax al hacer scroll */
.section,
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--bg);
}

/* ═══════════════════════════════════════════════════
   SECTIONS BASE
═══════════════════════════════════════════════════ */
.section {
  padding-top: clamp(80px, 9vw, 120px);
  padding-bottom: clamp(80px, 9vw, 120px);
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════
   SECTION TITLES & LABELS
═══════════════════════════════════════════════════ */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(44px, 7.2vw, 112px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 60px;
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
}

.section-intro .section-title { margin-bottom: 0; }

.section-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 500px;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════
   PILL BUTTONS
═══════════════════════════════════════════════════ */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid var(--border2);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  cursor: none;
  transition: background 0.28s var(--ease), border-color 0.28s, color 0.28s;
}
.pill-btn:hover {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

/* ═══════════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.project-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  cursor: none;
  transition: transform 0.45s var(--ease);
}
.project-card:hover { transform: translateY(-6px); }

.project-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .project-img-wrap img { transform: scale(1.04); }

.project-img-placeholder {
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(140deg, #151515 0%, #0b0b0b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-mark {
  font-family: var(--font-head);
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(255,255,255,0.09);
  transition: color 0.5s var(--ease);
}
.project-card:hover .placeholder-mark { color: rgba(255,255,255,0.16); }

.placeholder-tag {
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-hover {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.35s;
}
.project-card:hover .project-hover { opacity: 1; }

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-top: 1px solid var(--border);
}
.project-info-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.project-name {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.project-cat {
  font-size: 0.73rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.project-year {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border2);
  border-radius: 50px;
  padding: 5px 14px;
  letter-spacing: 0.05em;
}

.section-cta-row { display: flex; justify-content: center; }

/* ═══════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════ */
.about-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-big-title {
  font-family: var(--font-head);
  font-size: clamp(52px, 10vw, 150px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 64px;
}

.about-photo-wrap {
  width: min(300px, 62vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 56px;
  position: relative;
  border: 1px solid var(--border2);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.03);
}
.about-photo {
  height: 100%;
  object-position: center;
}

.about-content {
  max-width: 720px;
  text-align: center;
}

.about-headline {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 28px;
}

.about-body {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 580px;
  margin-inline: auto;
}
.about-body em { font-style: italic; color: rgba(255,255,255,0.7); }

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

/* ═══════════════════════════════════════════════════
   MARQUEE
═══════════════════════════════════════════════════ */
.marquee-wrap {
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  margin-top: 80px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

.marquee-content {
  display: flex;
  align-items: center;
  gap: 0;
  padding-right: 0;
}
.marquee-content span {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding: 0 24px;
  transition: color 0.2s;
}
.marquee-content span:hover { color: var(--white); }
.marquee-dot {
  font-size: 0.5rem !important;
  padding: 0 !important;
  color: rgba(255,255,255,0.2) !important;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════
   EXPERTISE
═══════════════════════════════════════════════════ */
.expertise-section .section-title { margin-bottom: 48px; }

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Last row: 2 cards centered */
.expertise-section .expertise-grid .expertise-card:nth-child(4) { grid-column: 1 / 2; }
.expertise-section .expertise-grid .expertise-card:nth-child(5) { grid-column: 2 / 3; }

/* ═══════════════════════════════════════════════════
   SOPORTE IT — grid + herramientas
═══════════════════════════════════════════════════ */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tools-block {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.tools-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-chip {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  border: 1px solid var(--border2);
  border-radius: 50px;
  padding: 9px 18px;
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.tool-chip:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  background: var(--bg-card);
}

.expertise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}
.expertise-card:hover {
  border-color: var(--border2);
  background: var(--bg-card2);
}

.expertise-plus {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 1.2rem;
  color: var(--muted);
  transition: transform 0.35s var(--ease), color 0.25s;
}
.expertise-card:hover .expertise-plus {
  transform: rotate(45deg);
  color: var(--white);
}

.expertise-num {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: block;
  margin-bottom: 16px;
}

.expertise-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.expertise-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   MOTIVATION
═══════════════════════════════════════════════════ */
.motivation-section { padding-top: clamp(72px, 8vw, 100px); padding-bottom: clamp(72px, 8vw, 100px); }

.motivation-inner {
  display: grid;
  grid-template-columns: 35fr 65fr;
  gap: 60px;
  align-items: start;
}

.motivation-label {
  font-family: var(--font-head);
  font-size: clamp(36px, 4.9vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--white);
  position: sticky;
  top: 100px;
}

.motivation-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}
.motivation-text p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 62ch;
}
.motivation-text p em {
  font-style: italic;
  color: rgba(255,255,255,0.75);
}

/* ═══════════════════════════════════════════════════
   TWO-COL SECTIONS (Experience + Stack)
═══════════════════════════════════════════════════ */
.two-col-section {
  display: grid;
  grid-template-columns: 35fr 65fr;
  gap: 60px;
  align-items: start;
}

.two-col-left .section-title {
  font-size: clamp(36px, 4.9vw, 72px);
  margin-bottom: 0;
  position: sticky;
  top: 100px;
}

.two-col-right { display: flex; flex-direction: column; gap: 0; }

/* Experience */
.exp-item {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.exp-item:first-child { border-top: 1px solid var(--border); }

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 16px;
}
.exp-company {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.exp-year {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.exp-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.exp-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 560px;
}

/* Stack */
.stack-right { gap: 0; }

.stack-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}
.stack-card:first-child { border-top: 1px solid var(--border); padding-top: 0; }

.stack-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  color: rgba(255,255,255,0.62);
  transition: color 0.3s var(--ease), border-color 0.3s, background 0.3s, transform 0.4s var(--ease);
}
.stack-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.stack-card:hover .stack-icon {
  color: var(--white);
  border-color: var(--border2);
  background: var(--bg-card2);
  transform: translateY(-2px);
}

.stack-info { flex: 1; }

.stack-info-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}
.stack-info-top h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stack-pct {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.stack-type {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.stack-info p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  max-width: 70ch;
}

/* ═══════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════ */
.faq-section { display: grid; grid-template-columns: 35fr 65fr; gap: 60px; align-items: start; }

.faq-title {
  font-size: clamp(36px, 4.9vw, 72px);
  margin-bottom: 0;
  position: sticky;
  top: 100px;
}

.faq-list { display: flex; flex-direction: column; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: none;
  text-align: left;
  gap: 20px;
}
.faq-btn span:first-child {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s;
}
.faq-btn:hover span:first-child { color: rgba(255,255,255,0.7); }

.faq-icon {
  font-size: 1.3rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease), color 0.25s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.faq-item.open .faq-answer { max-height: 460px; }

.faq-answer p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  padding-bottom: 24px;
  max-width: 70ch;
}
.faq-answer a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.site-footer {
  padding-top: clamp(72px, 8vw, 100px);
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
  gap: 40px;
}

.footer-cta-text { display: flex; flex-direction: column; gap: 0; }

.footer-big {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(60px, 14vw, 200px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  overflow: hidden;
}

.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  border: 1px solid var(--border2);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  cursor: none;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.footer-contact-btn:hover {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 40px;
  gap: 40px;
}

.footer-bottom-left { flex: 1; }

.footer-bio {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 24px;
}
.footer-social a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--white); }

.footer-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.footer-bottom-right p {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.back-top {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.back-top:hover { color: var(--white); }

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
═══════════════════════════════════════════════════ */
.reveal-clip {
  overflow: hidden;
}
/* El reveal necesita recorte vertical; el horizontal cortaba los titulos. */
@supports (overflow: clip) {
  .reveal-clip {
    overflow-x: visible;
    overflow-y: clip;
  }
}
.reveal-clip-inner {
  display: block;
  transition: transform 0.9s var(--ease-out);
}
.js .reveal-clip-inner { transform: translateY(110%); }
.js .reveal-clip.visible .reveal-clip-inner { transform: translateY(0); }

.reveal-up {
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js .reveal-up { opacity: 0; transform: translateY(40px); }
.js .reveal-up.visible { opacity: 1; transform: translateY(0); }

/* Entrada lateral: los textos de la banda entran desde su propio costado */
.reveal-x {
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.js .reveal-x { opacity: 0; }
.js .reveal-x-left  { transform: translateX(-44px); }
.js .reveal-x-right { transform: translateX(44px); }
.js .reveal-x.visible { opacity: 1; transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal-up, .js .reveal-clip-inner, .js .reveal-x {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.d1 { transition-delay: 0.12s !important; }
.d2 { transition-delay: 0.24s !important; }
.d3 { transition-delay: 0.36s !important; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  .hero-band {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 40px;
    /* Apilado, el ultimo elemento de la banda es texto y no la foto:
       el margen negativo que mete el arco bajo la seccion se lo comeria. */
    margin-bottom: 0;
    padding-bottom: 36px;
  }
  .hero-image-wrap  { order: 1; }
  .hero-band-left   { order: 2; }
  .hero-band-right  { order: 3; }
  .hero-band-left,
  .hero-band-right {
    justify-self: center;
    text-align: center;
    max-width: 520px;
  }
  .section-intro { grid-template-columns: 1fr; }
  .expertise-grid,
  .support-grid { grid-template-columns: 1fr 1fr; }
  .expertise-section .expertise-grid .expertise-card:nth-child(4),
  .expertise-section .expertise-grid .expertise-card:nth-child(5) { grid-column: auto; }
  .two-col-section { grid-template-columns: 1fr; gap: 40px; }
  .two-col-left .section-title { position: static; }
  .faq-section { grid-template-columns: 1fr; }
  .faq-title { position: static; }
  .motivation-inner { grid-template-columns: 1fr; gap: 36px; }
  .motivation-label { position: static; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom-right { align-items: flex-start; }
}

@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  .hero { padding-bottom: 100px; }
  .hero-meta { padding: 0 var(--pad); flex-direction: column; gap: 6px; text-align: left; bottom: 22px; }
  .hero-scroll-hint { display: none; }
  .hero-role { text-align: left; }
  .projects-grid { grid-template-columns: 1fr; }
  .expertise-grid,
  .support-grid { grid-template-columns: 1fr; }
  .tools-block { margin-top: 40px; }
  .tool-chip { font-size: 0.66rem; padding: 8px 14px; }
  .hero-band { gap: 28px; }
  .site-footer { padding-bottom: 32px; }
  .footer-big { font-size: clamp(48px, 16vw, 80px); }
  .about-big-title { font-size: clamp(44px, 16vw, 80px); }
  .navigate-btn { font-size: 0.65rem; padding: 7px 14px; }
  .lang-opt { font-size: 0.6rem; padding: 6px 9px; }
  .header-right { gap: 8px; }
  .header-loc { font-size: 0.65rem; }
  .header-left { gap: 12px; }
}

@media (max-width: 480px) {
  .header-loc { display: none; }
  /* El switch ocupa el lugar del sobre; el mail sigue en el menu y el footer */
  .header-center { display: none; }
  .lang-opt { font-size: 0.58rem; padding: 6px 9px; letter-spacing: 0.06em; }
  .projects-grid { gap: 14px; }
  .nav-overlay { padding: 0 6vw; }
  .nav-overlay-link { font-size: clamp(1.7rem, 10vw, 3.2rem); }
}
