/* =========================================================
   TCUX 2026 — Stylesheet
   Sistema de diseño: B&N + amarillo de acento + tipografía Univers
   ========================================================= */

/* ----------- @font-face (dev: .otf; prod: cambiar a .woff2) ----------- */
@font-face {
  font-family: 'Univers';
  src: url('fonts/UniversLTStd-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Univers';
  src: url('fonts/UniversLTStd-Roman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Univers';
  src: url('fonts/UniversLTStd-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Univers';
  src: url('fonts/UniversLTStd-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni';
  src: url('fonts/BauerBodoniStd-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ----------- Tokens ----------- */
:root {
  /* Color — Yellow oficial TCUX + acentos Bauhaus del Old Site (tcux-bg-5.png) */
  --black: #0A0A0A;
  --white: #FFFFFF;
  --yellow: #FEEB00;          /* TCUX yellow oficial */
  --yellow-dark: #E5D200;     /* Hover state */
  --gray-1: #F2F2F2;
  --gray-2: #D3D3D3;
  --gray-3: #8A8A8A;
  --gray-4: #5C5D5D;
  --gray-5: #1A1A1A;
  --blue: #1830A8;            /* Bauhaus cobalt blue */
  --red:  #F03030;            /* Bauhaus vivid red */
  --cyan: #18A8D8;            /* Bauhaus cyan */

  /* Type */
  --font-display: 'Univers', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Univers', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-editorial: 'Bodoni', 'Didot', Georgia, serif;

  /* Spacing */
  --container: 1440px;
  --gutter: clamp(24px, 5vw, 96px);
  --section-y: clamp(96px, 12vw, 200px);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ----------- Reset ----------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
input, textarea, select { font: inherit; }

::selection { background: var(--yellow); color: var(--black); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ----------- Layout ----------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--dark { background: var(--black); color: var(--white); }
.section--soft { background: var(--gray-1); }

/* ----------- Type system ----------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 7vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: none;
}
.display__accent { position: relative; display: inline-block; }
.display__period { color: var(--yellow); }

.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.3;
  margin: 0;
}
.h3.weak { font-weight: 400; color: var(--gray-4); margin-top: 16px; max-width: 56ch; }
.section--dark .h3.weak { color: var(--gray-2); }

.body-l {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  max-width: 56ch;
  margin: 0;
}
.body-l.weak { color: var(--gray-2); }

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-4);
  margin: 0 0 24px;
}
.kicker--accent { color: var(--yellow); }
.kicker--light { color: var(--white); opacity: 0.9; }

.section__head { max-width: 880px; margin-bottom: 64px; }
.section__head--center { text-align: center; margin-inline: auto; }

/* ----------- Buttons ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  border-radius: 0;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn--block { width: 100%; justify-content: center; padding-block: 22px; font-size: 17px; }
.btn .arrow { transition: transform 0.25s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--yellow); color: var(--black); }
.btn--primary:hover { background: var(--yellow-dark); }

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4);
}
.btn--ghost-light:hover { box-shadow: inset 0 0 0 1.5px var(--white); background: rgba(255,255,255,0.06); }

.btn--ghost {
  background: transparent;
  color: var(--black);
  box-shadow: inset 0 0 0 1.5px var(--black);
}
.btn--ghost:hover { background: var(--black); color: var(--white); }

/* ----------- NAV ----------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  background: transparent;
  transition: background 0.25s var(--ease), padding 0.25s var(--ease), color 0.25s var(--ease);
  color: var(--white);
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  padding-block: 14px;
  color: var(--black);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  position: relative;
}
.nav__logo::after {
  content: "";
  width: 8px; height: 8px;
  background: var(--yellow);
  display: inline-block;
  margin-left: 2px;
}
.nav__logo-img {
  height: 22px;
  width: auto;
  display: block;
  transition: opacity 0.25s var(--ease);
}
/* Default state: nav over hero (dark bg) → show white logo */
.nav__logo-img--dark { display: none; }
.nav__logo-img--light { display: block; }
/* Scrolled state: nav on white bg → show black logo */
.nav.is-scrolled .nav__logo-img--light { display: none; }
.nav.is-scrolled .nav__logo-img--dark { display: block; }
.nav__links {
  display: flex;
  gap: 32px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width 0.25s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: 20px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 6px 4px;
}
.lang-toggle span { opacity: 0.5; transition: opacity 0.2s var(--ease); }
.lang-toggle .lang-toggle__sep { opacity: 0.3; }
.lang-toggle span[data-active="true"] { opacity: 1; color: var(--yellow); }

/* Burger (mobile) */
.nav__burger {
  display: none;
  width: 32px; height: 32px;
  position: relative;
}
.nav__burger span {
  display: block;
  position: absolute;
  left: 4px; right: 4px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), top 0.25s var(--ease);
}
.nav__burger span:nth-child(1) { top: 8px; }
.nav__burger span:nth-child(2) { top: 15px; }
.nav__burger span:nth-child(3) { top: 22px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

/* ----------- HERO ----------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  padding-bottom: clamp(64px, 10vw, 140px);
  padding-top: 120px;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(0.7);
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 35%, rgba(0,0,0,0.85) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}
.hero .display { color: var(--white); }
.hero__sub {
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.5;
  max-width: 56ch;
  margin: 32px 0 40px;
  color: rgba(255,255,255,0.88);
}
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 32px; height: 56px;
  display: flex; justify-content: center;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute;
  top: -40px; left: 0;
  width: 1px; height: 40px;
  background: var(--yellow);
  animation: scrollIndicator 2s var(--ease) infinite;
}
@keyframes scrollIndicator {
  0% { top: -40px; }
  100% { top: 40px; }
}

/* ----------- INTRO ----------- */
.intro__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.intro__editorial {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 0;
  position: relative;
  padding-left: 24px;
}
.intro__editorial::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  background: var(--yellow);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--black);
}
.metric { display: flex; flex-direction: column; gap: 6px; }
.metric__n {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.metric__plus { color: var(--yellow); }
.metric__l {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-4);
}

/* ----------- PROCESO ----------- */
.proceso__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.proceso__grid::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.15);
  z-index: 0;
}
.step { position: relative; z-index: 1; }
.step__num {
  display: inline-block;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  color: var(--white);
  background: var(--black);
  padding-right: 16px;
  margin-bottom: 24px;
  position: relative;
}
.step__num::after {
  content: "";
  position: absolute;
  bottom: 8px; left: 0;
  width: 32px; height: 3px;
  background: var(--yellow);
}
.step__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--white);
}
.step__desc {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 24px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.chip:hover { border-color: var(--yellow); color: var(--yellow); }

/* ----------- CLIENTES ----------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--gray-2);
  border-left: 1px solid var(--gray-2);
}
.logo-wall__cell {
  position: relative;
  border-right: 1px solid var(--gray-2);
  border-bottom: 1px solid var(--gray-2);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  transition: background 0.25s var(--ease);
}
.logo-wall__cell img {
  max-width: 100%;
  max-height: 112px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.05) opacity(0.7);
  transition: filter 0.3s var(--ease), opacity 0.25s var(--ease);
}
.logo-wall__name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--black);
  background: var(--yellow);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}
.logo-wall__cell:hover,
.logo-wall__cell:focus-within { background: var(--yellow); }
.logo-wall__cell:hover img,
.logo-wall__cell:focus-within img { opacity: 0; }
.logo-wall__cell:hover .logo-wall__name,
.logo-wall__cell:focus-within .logo-wall__name { opacity: 1; }

/* Text-only featured cells (no logo file) */
.logo-wall__cell--text {
  background: var(--white);
}
.logo-wall__cell--text .logo-wall__name {
  opacity: 1;
  background: transparent;
  font-size: clamp(15px, 1.3vw, 19px);
  color: var(--black);
}
.logo-wall__cell--text:hover,
.logo-wall__cell--text:focus-within { background: var(--black); }
.logo-wall__cell--text:hover .logo-wall__name,
.logo-wall__cell--text:focus-within .logo-wall__name { color: var(--yellow); }

.clientes__note {
  display: block;
  text-align: center;
  margin-top: 32px;
  color: var(--gray-4);
}

/* ----------- TRABAJO / CASOS ----------- */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.case {
  display: flex;
  flex-direction: column;
  background: var(--white);
  cursor: default;
  box-shadow: 0 1px 0 var(--gray-2);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.case:hover {
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}
.case__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: var(--gray-2);
}
.case__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.02);
  transition: filter 0.5s var(--ease), transform 0.6s var(--ease);
}
.case:hover .case__media img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.03);
}
.case__body { padding: 32px 32px 36px; }
.case__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-4);
  margin: 0 0 14px;
  padding-left: 14px;
  position: relative;
}
.case__tag::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--yellow);
}
.case__client {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
}
.case__location { color: var(--gray-4); font-size: 14px; margin: 0 0 18px; }
.case__desc { color: var(--gray-5); margin: 0; font-size: 16px; line-height: 1.55; }

/* ----------- EQUIPO ----------- */
.team {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}
.member { text-align: left; }
.member__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-2);
  margin-bottom: 20px;
  position: relative;
}
.member__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%) contrast(1.02);
  transition: filter 0.5s var(--ease);
}
.member:hover .member__photo img { filter: grayscale(0%); }

/* Placeholder mientras se consigue la foto */
.member__photo--placeholder {
  background: var(--gray-1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.member__photo--placeholder::before {
  content: attr(data-initials);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--black);
}
.member__photo--placeholder::after {
  content: "";
  position: absolute;
  top: 12px; right: 12px;
  width: 12px; height: 12px;
  background: var(--yellow);
}
.member__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  margin: 0 0 4px;
}
.member__role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin: 0 0 12px;
  min-height: 2.8em; /* reserva 2 líneas para alineación entre miembros */
  padding-left: 12px;
  position: relative;
}
.member__role::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  background: var(--yellow);
}
.member__bio { color: var(--gray-4); margin: 0; }

/* ----------- CONTACTO ----------- */
.contacto__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.contacto .display { font-size: clamp(48px, 6.5vw, 96px); margin: 24px 0; }
.contacto .display, .contacto .display__accent { color: var(--white); }

.contact-list { display: grid; gap: 20px; margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.15); }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; }
.contact-list__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}
.contact-list a { border-bottom: 1px solid rgba(255,255,255,0.2); transition: border-color 0.2s var(--ease); }
.contact-list a:hover { border-color: var(--yellow); }
.contact-list .dot { padding: 0 6px; color: rgba(255,255,255,0.3); }

.form {
  background: var(--white);
  color: var(--black);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 20px;
  position: relative;
}
.form::before {
  content: "";
  position: absolute;
  top: -8px; left: -8px;
  width: 64px; height: 64px;
  background: var(--yellow);
  z-index: -1;
}
.form .kicker { margin-bottom: 4px; color: var(--gray-4); }
.field { display: grid; gap: 8px; }
.field__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-4);
}
.field input, .field textarea {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1.5px solid var(--gray-2);
  background: transparent;
  font-size: 16px;
  color: var(--black);
  border-radius: 0;
  transition: border-color 0.2s var(--ease);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--black);
}
.field input:focus + .field__label { color: var(--black); }
.form__note { font-size: 13px; color: var(--gray-4); margin: 0; text-align: center; }

/* Honeypot — invisible to humans, visible to bots that auto-fill */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Loading state on submit button */
.btn.is-loading { opacity: 0.7; cursor: wait; }
.btn.is-loading .arrow {
  animation: btn-spin 1s linear infinite;
  transform-origin: center;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Inline feedback after submit */
.form__feedback {
  margin: 0;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  border-left: 4px solid var(--gray-3);
  background: var(--gray-1);
  color: var(--gray-5);
}
.form__feedback--success {
  border-left-color: var(--yellow);
  background: #FFF9CC;
  color: var(--black);
  font-weight: 700;
}
.form__feedback--error {
  border-left-color: var(--red);
  background: #FFEBEB;
  color: var(--black);
}

/* ----------- FOOTER ----------- */
.footer {
  background: var(--white);
  color: var(--black);
  padding-top: 80px;
  border-top: 1px solid var(--gray-2);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 64px;
}
.footer__logo {
  display: inline-block;
  line-height: 0;
}
.footer__logo img {
  height: 48px;
  width: auto;
}
.footer__tag {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 20px;
  color: var(--gray-4);
  margin: 16px 0 0;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__cols ul { display: grid; gap: 8px; font-size: 14px; }
.footer__cols a { color: var(--gray-4); transition: color 0.2s var(--ease); }
.footer__cols a:hover { color: var(--black); }

.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 24px;
  border-top: 1px solid var(--gray-2);
  font-size: 12px;
  color: var(--gray-4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bar > p { margin: 0; }
.footer__motto {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 13px;
  color: var(--gray-4);
}
.footer__legal { display: flex; align-items: center; gap: 8px; }
.footer__legal a,
.footer__cookie-btn {
  color: var(--gray-4);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  padding: 0;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.footer__legal a:hover,
.footer__cookie-btn:hover {
  color: var(--black);
  border-bottom-color: var(--yellow);
}
.footer__legal .dot { color: var(--gray-2); }

/* ----------- REVEAL ANIMATIONS ----------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 1ms);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   LEGAL / PRIVACY PAGES
   ============================================================ */
.legal-page .nav.is-static {
  position: sticky;
  top: 0;
}
.doc {
  padding-top: 140px;
  padding-bottom: var(--section-y);
  background: var(--white);
  min-height: 100vh;
}
.doc__inner { max-width: 880px; }
.doc__back {
  color: var(--gray-4);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.doc__back:hover { color: var(--black); border-bottom-color: var(--yellow); }
.doc__title {
  margin: 16px 0 24px;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.95;
}
.doc__meta {
  color: var(--gray-4);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0 0 56px;
}
.doc__lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--black);
  margin: 0 0 56px;
  padding: 24px;
  background: var(--gray-1);
  border-left: 4px solid var(--yellow);
}
.doc__body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.005em;
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-2);
}
.doc__body h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.doc__body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-5);
  margin: 0 0 16px;
}
.doc__body a {
  color: var(--black);
  border-bottom: 1.5px solid var(--yellow);
  transition: background 0.2s var(--ease);
}
.doc__body a:hover { background: var(--yellow); }
.doc__disclaimer {
  margin-top: 64px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--gray-4);
  background: var(--gray-1);
  border-left: 3px solid var(--gray-3);
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 520px;
  z-index: 200;
  background: var(--black);
  color: var(--white);
  padding: 24px;
  box-shadow: 0 16px 48px -16px rgba(0,0,0,0.4);
  display: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.cookie-banner.is-active {
  display: block;
}
.cookie-banner.is-in {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner::before {
  content: "";
  position: absolute;
  top: -8px; left: -8px;
  width: 40px; height: 40px;
  background: var(--yellow);
  z-index: -1;
}
.cookie-banner__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 8px;
}
.cookie-banner__body {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
  margin: 0 0 16px;
}
.cookie-banner__body a {
  color: var(--yellow);
  border-bottom: 1px solid rgba(254,235,0,0.4);
  transition: border-color 0.2s var(--ease);
}
.cookie-banner__body a:hover { border-color: var(--yellow); }
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  border: 0;
  flex: 1;
  min-width: 140px;
}
.cookie-banner__btn--primary { background: var(--yellow); color: var(--black); }
.cookie-banner__btn--primary:hover { background: var(--yellow-dark); }
.cookie-banner__btn--ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4);
}
.cookie-banner__btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1.5px var(--white);
}

@media (max-width: 520px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 20px; }
  .cookie-banner__actions { flex-direction: column; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .proceso__grid { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .proceso__grid::before { display: none; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .intro__grid { grid-template-columns: 1fr; gap: 56px; }
  .contacto__grid { grid-template-columns: 1fr; }
  .contact-list { margin-top: 32px; }
}

@media (max-width: 760px) {
  :root { --section-y: clamp(72px, 14vw, 120px); }
  .nav__links, .nav__right .btn { display: none; }
  .nav__burger { display: block; }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    padding: 20px var(--gutter);
    border-bottom: 1px solid var(--gray-2);
  }
  .nav.is-open .nav__links a { padding: 16px 0; border-bottom: 1px solid var(--gray-2); }
  .nav.is-open .nav__links a:last-child { border: 0; }

  .proceso__grid { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; gap: 40px; max-width: 480px; margin-inline: auto; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .metrics { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; margin-top: 32px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__cols { grid-template-columns: 1fr; gap: 24px; }
  .footer__logo img { height: 36px; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
  .form::before { width: 48px; height: 48px; }
}

@media (max-width: 420px) {
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
}
