/* ============================================================
   GROW. — Design System
   Paleta, tipografías, componentes compartidos
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* Griffiths — acento editorial (cursivas, nombres de casos, frases destacadas) */
@font-face {
  font-family: 'Griffiths';
  src: url('../GROW.%20-%20WEB/Griffiths.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --ink:      #0A1628;
  --ink2:     #0d1c33;
  --navy:     #1B2D4F;
  --navy2:    #1B3A6B;
  --line:     #22375f;
  --electric: #14008F;
  --electric2:#2a14c0;
  --light:    #F4F6F8;
  --muted:    #D6D5D5;
  --white:    #fff;
  --serif:    'Griffiths', Georgia, serif;
  --sans:     'Poppins', system-ui, sans-serif;
  --radius-card: 20px;
  --radius-sm:   12px;
  /* Sistema de espaciado — todas las secciones usan esta variable */
  --section-v: 88px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: #0A1628;
}
/* Lienzo único fijo: gradiente pegado al viewport, las secciones pasan por encima */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    #0A1628  0%,
    #0A1628  8%,
    #0d1e38 22%,
    #1B2D4F 38%,
    #1B3A6B 52%,
    #1B2D4F 66%,
    #0d1c33 78%,
    #0A1628 100%
  );
  pointer-events: none;
}
body {
  font-family: var(--sans);
  background: transparent;
  color: var(--light);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  position: relative;
}

/* Patrón de puntos muy sutil — da profundidad sin ensuciar */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(90,110,150,0.07) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 9997;
}

/* Grain texture — premium, ligeramente más visible */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.042;
  pointer-events: none;
  z-index: 9999;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ── Eyebrow + acento ───────────────────────────────────── */
.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  display: block;
}
.acc {
  width: 36px; height: 2px;
  background: var(--electric);
  border: 0; border-radius: 2px;
  margin: 14px 0 0;
}
.acc-purple { background: #8a78ff; }
.hr { height: 1px; border: 0; background: var(--line); }

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  padding: 14px 26px; border-radius: 44px; border: none; cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .2s;
}
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary { background: var(--electric); color: #fff; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(20,0,143,.45);
}
.btn-ghost {
  background: transparent;
  border: 1px solid #36507f;
  color: #dbe2ee;
}
.btn-ghost:hover { border-color: #fff; color: #fff; }

.btn-white { background: #fff; color: var(--electric); font-weight: 700; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.25); }

/* ── NAV ─────────────────────────────────────────────────── */
/* Selector específico #nav para no afectar otros <nav> (footer, mobile) */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .3s, border-color .3s;
}
#nav.scrolled {
  background: rgba(10,22,40,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
#nav > .wrap {
  display: flex; align-items: center;
  justify-content: space-between; height: 100px;
}
.brand {
  font-family: var(--serif);
  font-style: italic; font-weight: 700;
  font-size: 30px; line-height: .78;
  color: var(--white); letter-spacing: .01em;
  display: inline-flex; align-items: center;
}
.brand img { height: 116px; display: block; width: auto; }
.brand span { display: block; }
.brand .l2 { margin-left: .5em; }
footer .brand img { height: 90px; }

.navlinks { display: flex; gap: 34px; align-items: center; font-size: 13.5px; font-weight: 500; }
.navlinks a { color: #c4ccda; transition: color .2s; }
.navlinks a:hover { color: #fff; }
.navcta {
  color: #fff !important;
  background: var(--electric);
  padding: 10px 22px; border-radius: 40px;
  font-weight: 600; font-size: 13px;
  transition: transform .18s, box-shadow .18s;
}
.navcta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,0,143,.45); }

/* hamburger */
.ham { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.ham span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column;
  background: rgba(10,22,40,.97);
  border-top: 1px solid var(--line);
  padding: 20px 32px 28px;
  gap: 18px;
}
.nav-mobile a { font-size: 16px; font-weight: 500; color: #c4ccda; }
.nav-mobile a:hover { color: #fff; }
.nav-mobile.open { display: flex; }

@media (max-width: 820px) {
  .navlinks a:not(.navcta) { display: none; }
  .ham { display: flex; }
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  color: var(--light);
  background: var(--ink);
  padding-top: 120px;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10,22,40,.18) 0%,
    rgba(10,22,40,.52) 50%,
    rgba(10,22,40,1)   100%
  );
  pointer-events: none;
}

/* Hero content — centrado */
.hero-content {
  position: relative; z-index: 2;
  padding: 0 0 88px;
  display: flex; flex-direction: column; align-items: center;
}
.hero-content .wrap { text-align: center; }

.hero .eyebrow { color: #8a78ff; }
.hero .acc { margin: 16px auto 0; }

/* Titular en pirámide — Griffiths cursiva, tres escalas */
.hero h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  line-height: 1.0;
  color: #fff;
  margin: 20px 0 0;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
}
.hero h1 .l1 { font-size: clamp(32px, 4.8vw, 56px);  letter-spacing: .025em; }
.hero h1 .l2 { font-size: clamp(48px, 7.2vw, 82px);  letter-spacing: .020em; }
.hero h1 .l3 { font-size: clamp(72px, 11.5vw, 128px); letter-spacing: .012em; }

.hero .sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(16px, 1.8vw, 20px);
  color: #8a96b0; margin-top: 20px;
}
.hero .cta { display: flex; justify-content: center; margin-top: 32px; }

/* Botón "Ver trabajo ↓" — flecha limpia sin círculo */
.btn-hero {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  color: #fff; background: none; border: none;
  cursor: pointer; text-decoration: none;
}
.btn-hero .c-arrow {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .22s, opacity .22s;
  opacity: .7;
}
.btn-hero:hover .c-arrow {
  transform: translateY(4px);
  opacity: 1;
}
.btn-hero .c-arrow svg { width: 20px; height: 20px; }

@media (max-width: 820px) {
  .hero h1 .l1 { font-size: clamp(26px, 5.5vw, 44px); }
  .hero h1 .l2 { font-size: clamp(38px, 8.5vw, 66px); }
  .hero h1 .l3 { font-size: clamp(54px, 12.5vw, 100px); }
}
@media (max-width: 480px) {
  .hero h1 .l1 { font-size: clamp(22px, 7vw, 34px); }
  .hero h1 .l2 { font-size: clamp(32px, 10vw, 50px); }
  .hero h1 .l3 { font-size: clamp(46px, 13.5vw, 68px); }
}

/* ── MARQUEE DE LOGOS ────────────────────────────────────── */
.marquee {
  background: transparent;
  padding: 28px 0;
  overflow: hidden;
}
.marquee .tag {
  text-align: center;
  font-size: 10.5px; letter-spacing: .15em;
  text-transform: uppercase; color: #4e5d74;
  margin-bottom: 20px;
}
.mwin {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.mtrack {
  display: flex; align-items: center; gap: 56px;
  width: max-content;
  animation: mscroll 32s linear infinite;
}
.marquee:hover .mtrack { animation-play-state: paused; }
@keyframes mscroll { to { transform: translateX(-50%); } }

.mitem {
  display: flex; align-items: center;
  flex-shrink: 0;
}
.mitem img {
  height: 36px;
  filter: none;
  opacity: .75;
  transition: opacity .25s;
  object-fit: contain;
}
.mitem:hover img { opacity: 1; }
/* PMP — asegurar presencia visual igual al resto */
.mitem img[src*="pmp"] { opacity: .95; }

/* separador entre logos */
.mdot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
}

/* ── ABOUT TEASER ────────────────────────────────────────── */
.about-teaser {
  background: transparent;
  padding: var(--section-v) 0;
}
.about-teaser .grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.about-teaser .grid.single-col {
  grid-template-columns: 1fr;
  max-width: 720px;
}
.about-teaser .eyebrow { color: #8a78ff; }
.about-teaser h2 {
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.02; letter-spacing: -.025em;
  color: #fff; margin: 16px 0 0;
}
/* "De la idea a la ejecución." — acento editorial Griffiths */
.nosotros-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  color: #8a78ff;
  margin-top: 10px;
}
.about-teaser p {
  color: #9aa6bd; font-size: 16px;
  margin-top: 20px; max-width: 460px; line-height: 1.75;
}
.values {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 32px;
}
.value-item {
  background: rgba(10,22,40,.5);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.value-item .n {
  font-weight: 800; font-size: 28px;
  letter-spacing: -.02em; color: #fff;
}
.value-item .l {
  font-size: 12px; color: #6c7e9c;
  margin-top: 3px; text-transform: uppercase;
  letter-spacing: .04em;
}
.about-imgwrap {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
}
.about-imgwrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.about-imgwrap:hover img { transform: scale(1.04); }

@media (max-width: 860px) {
  .about-teaser .grid { grid-template-columns: 1fr; gap: 40px; }
  .about-imgwrap { aspect-ratio: 16/9; }
}

/* ── SERVICIOS ───────────────────────────────────────────── */
.servicios {
  background: transparent;
  padding: var(--section-v) 0;
}
.servicios .head { max-width: 540px; margin-bottom: 48px; }
.servicios .eyebrow { color: #8a78ff; }
.servicios h2 {
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.02; letter-spacing: -.025em;
  color: #fff; margin: 14px 0 0;
}
.sgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .sgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sgrid { grid-template-columns: 1fr; } }

.scard {
  background: rgba(27,45,79,.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 26px 30px;
  position: relative;
  transition: border-color .25s, transform .25s, box-shadow .25s, background .25s;
}
.scard:hover {
  border-color: var(--electric);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(20,0,143,.22);
  background: rgba(27,45,79,.95);
}
.scard .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(20,0,143,.25);
  display: flex; align-items: center; justify-content: center;
  color: #8a78ff; margin-bottom: 20px;
}
.scard .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.scard h3 { font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: #fff; }
.scard p { color: #7a8fac; font-size: 14px; margin-top: 8px; line-height: 1.65; }

/* ── PERSONAL BRANDING ───────────────────────────────────── */
.personal-branding {
  background: transparent;
  padding: var(--section-v) 0;
  border-top: 1px solid rgba(34,55,95,.4);
}
.pb-head { max-width: 640px; margin-bottom: 48px; }
.pb-head h2 {
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.02; letter-spacing: -.025em;
  color: #fff; margin: 14px 0 0;
}
.pb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) { .pb-grid { grid-template-columns: 1fr; } }
.pb-card {
  background: rgba(27,45,79,.5);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px 28px 28px;
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color .25s, background .25s;
}
a.pb-card { display: flex; text-decoration: none; cursor: pointer; color: inherit; line-height: inherit; }
a.pb-card:hover { border-color: rgba(138,120,255,.4); background: rgba(27,45,79,.8); }
.pb-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(138,120,255,.3);
  flex-shrink: 0;
  overflow: hidden;
}
.pb-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; display: block; }
.pb-card-subtitle {
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: #6c7a93; margin-top: -4px;
}
.pb-card-title {
  font-size: 20px; font-weight: 700; color: #e2eaf6;
  letter-spacing: -.01em; line-height: 1.2;
}
.pb-services {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 9px;
}
.pb-services li {
  font-size: 14px; color: #9aa6bd; line-height: 1.5;
  padding-left: 18px; position: relative;
}
.pb-services li::before {
  content: '·';
  position: absolute; left: 0; color: #8a78ff; font-weight: 700;
}
.pb-audience {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 5px;
}
.pb-audience-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #6c7a93;
}
.pb-audience-text {
  font-size: 13px; color: #7a8da6; line-height: 1.55;
}

/* ── CASOS DESTACADOS ────────────────────────────────────── */
.casos-preview {
  background: transparent;
  padding: var(--section-v) 0;
}
.casos-preview .head {
  display: flex; align-items: baseline;
  justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: 52px;
}
.casos-preview .head .eyebrow { color: #8a78ff; }
.casos-preview .head h2 {
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 46px);
  letter-spacing: -.025em; color: #fff;
  margin-top: 14px;
}
.casos-preview .head .ver-todos {
  color: #8a78ff; font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.casos-preview .head .ver-todos:hover { gap: 10px; }

.casos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .casos-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .casos-grid { grid-template-columns: 1fr; } }

.caso-card {
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: block;
}
.caso-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.caso-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--navy2);
}
.caso-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s ease;
}
.caso-card:hover .thumb img { transform: scale(1.06); }
.caso-card .thumb .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.7) 0%, transparent 50%);
}
.caso-card .thumb .logo-over {
  position: absolute; bottom: 14px; left: 16px;
}
.caso-card .thumb .logo-over img {
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.caso-card .body { padding: 22px 22px 24px; }
.caso-card .tag {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: #8a78ff; margin-bottom: 10px;
}
.caso-card h3 {
  font-family: var(--serif); font-style: italic;
  font-weight: 500; font-size: 22px;
  color: #fff; line-height: 1.15; margin-bottom: 10px;
}
.caso-card p { color: #8090a8; font-size: 13.5px; line-height: 1.6; }
.caso-card .arrow-link {
  margin-top: 16px;
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: #8a78ff;
  transition: gap .2s;
}
.caso-card:hover .arrow-link { gap: 11px; }

/* ── BAND CTA ────────────────────────────────────────────── */
.band {
  background: var(--electric);
  padding: 72px 0;
}
.band .inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.band h2 {
  font-family: var(--serif); font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.12; letter-spacing: .01em;
  max-width: 620px; color: #fff;
}

/* ── CONTACTO ────────────────────────────────────────────── */
.contacto {
  background: var(--light);
  color: var(--ink);
  padding: var(--section-v) 0;
}
.contacto .grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
}
.contacto .eyebrow { color: var(--electric); }
.contacto h2 {
  font-weight: 800;
  font-size: clamp(32px, 5vw, 58px);
  line-height: .98; letter-spacing: -.03em;
  margin-top: 16px;
}
.contacto .sub {
  color: #54606f; font-size: 17px;
  margin-top: 20px; max-width: 380px;
}
.contacto .mailto {
  margin-top: 26px;
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--electric);
  display: block;
}
.contacto .mailto:hover { text-decoration: underline; }
.contacto .whatsapp {
  margin-top: 14px;
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; color: #4a5568;
}
.divider-vert {
  position: relative;
}
.divider-vert::before {
  content: '';
  position: absolute; top: 6%; bottom: 6%; left: 0;
  width: 1px; background: #e1e5eb;
}
@media (max-width: 820px) {
  .contacto .grid { grid-template-columns: 1fr; gap: 36px; }
  .divider-vert::before { display: none; }
}

.form {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: var(--radius-card);
  padding: 30px;
}
.form label {
  display: block; font-size: 13px;
  font-weight: 600; color: #3a4554;
  margin: 0 0 7px;
}
.form .field { margin-bottom: 18px; }
.form input, .form textarea, .form select {
  width: 100%;
  border: 1px solid #dde1e7;
  border-radius: 11px;
  padding: 13px 15px;
  font-family: var(--sans); font-size: 15px;
  color: var(--ink); background: #fbfcfd;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(20,0,143,.12);
}
.form textarea { resize: vertical; min-height: 110px; }
.form .send {
  width: 100%;
  background: var(--ink); color: #fff;
  font-family: var(--sans); font-weight: 600;
  font-size: 15px; border: none;
  border-radius: 44px; padding: 15px;
  cursor: pointer; transition: background .2s;
}
.form .send:hover { background: var(--electric); }
.form .note {
  font-size: 12px; color: #9aa2ad;
  text-align: center; margin-top: 12px;
}
.form-message {
  display: none; margin-top: 14px;
  padding: 13px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 500; text-align: center;
}
.form-message:not(:empty) { display: block; }
.form-success { background: rgba(20,143,60,.12); color: #4ecb71; border: 1px solid rgba(78,203,113,.25); }
.form-error   { background: rgba(200,40,40,.12);  color: #e05e5e; border: 1px solid rgba(200,40,40,.25); }
.form .send:disabled { opacity: .6; cursor: not-allowed; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: #7a8da6;
  padding: 44px 0;
}
footer .inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
footer .brand {
  font-family: var(--serif); font-style: italic;
  font-weight: 700; font-size: 26px;
  line-height: .82; color: var(--white);
}
footer .brand span { display: block; }
footer .brand .l2 { margin-left: .5em; }
footer small { font-size: 13px; }
footer .fnav {
  display: flex; gap: 24px;
  font-size: 13px; font-weight: 500;
}
footer .fnav a:hover { color: #fff; }

/* ── FICHA DE CASO ───────────────────────────────────────── */
.case-hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  /* padding-bottom responsivo: mantiene el contenido en el tercio inferior sin pegarlo al borde */
  padding-bottom: clamp(80px, 18vh, 180px);
}
.case-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.case-hero-bg img, .case-hero-bg video {
  width: 100%; height: 100%; object-fit: cover;
}
.case-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10,22,40,.3) 0%,
    rgba(10,22,40,.55) 50%,
    rgba(10,22,40,.95) 100%
  );
}
.case-hero-content {
  position: relative; z-index: 2;
  color: var(--light);
  width: 100%; /* garantiza que .wrap herede el ancho del flex container */
}
.case-hero-logo { height: 40px; margin-bottom: 24px; }
.case-hero-logo img {
  height: 100%;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #8a78ff;
  margin-bottom: 24px;
  transition: gap .2s;
}
.back-link:hover { gap: 4px; }
.case-hero .eyebrow { color: #8a78ff; margin-bottom: 12px; }
.case-hero h1 {
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: .98; letter-spacing: -.03em;
  color: #fff; margin-bottom: 18px;
}
.case-hero .desc {
  font-size: 18px; color: #aab4cc;
  max-width: 560px; line-height: 1.65;
}

/* Cuerpo del caso */
.case-body { padding: var(--section-v) 0; }
.case-body-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 64px;
}
@media (max-width: 900px) { .case-body-grid { grid-template-columns: 1fr; gap: 44px; } }

/* Coberturas — thumbnails con proporción uniforme */
.cob-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.cob-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s;
}
.cob-thumb:hover img { transform: scale(1.05); }

.case-story h2 {
  font-weight: 800; font-size: clamp(24px, 3.5vw, 36px);
  letter-spacing: -.02em; color: #fff; margin-bottom: 20px;
}
.case-story p {
  color: #9aa6bd; font-size: 16px; line-height: 1.78;
  margin-bottom: 18px;
}
.case-story p:last-child { margin-bottom: 0; }

/* Tags de servicios */
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.service-tags span {
  font-size: 12.5px; color: #c3cbdb;
  border: 1px solid #2c3f63;
  border-radius: 40px; padding: 6px 15px;
}

/* Proof / métricas */
.proof-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 32px;
}
.proof-item {
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px;
}
.proof-item .k {
  font-size: 11px; color: #6c7e9c;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 6px;
}
.proof-item .v {
  font-size: 14px; font-weight: 600;
  color: #fff; line-height: 1.35;
}
.proof-item a.v { color: #9fb4ff; }
.proof-item a.v:hover { text-decoration: underline; }

/* Galería */
.gallery {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gallery figure {
  margin: 0; overflow: hidden;
  border-radius: 16px; position: relative;
  background: var(--navy);
}
.gallery .big { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.gallery .sm  { aspect-ratio: 1 / 1; }
.gallery .wide { grid-column: 1 / -1; aspect-ratio: 16 / 7; }

.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px;
  font-size: 11.5px; color: rgba(255,255,255,.8);
  background: linear-gradient(to top, rgba(10,22,40,.85), transparent);
  letter-spacing: .02em;
}

/* Video en galería */
.gallery .vid-wrap {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden; border-radius: 16px;
}
.gallery .vid-wrap video {
  width: 100%; height: 100%; object-fit: cover;
}

/* Next case */
.next-case {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.next-case .label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: #6c7a93; margin-bottom: 14px;
}
.next-case a {
  font-family: var(--serif); font-style: italic;
  font-size: 28px; font-weight: 500;
  color: #fff; display: flex; align-items: center; gap: 14px;
  transition: gap .2s;
}
.next-case a:hover { gap: 20px; color: #8a78ff; }

/* ── COBERTURAS — links de lista ─────────────────────────── */
.cob-link {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,22,40,.5);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 22px;
  transition: border-color .2s;
}
.cob-link:hover { border-color: #8a78ff; }
.cob-link-tag {
  font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: #8a78ff; margin-bottom: 5px;
}
.cob-link-title {
  font-weight: 700; font-size: 16px; color: #fff;
}
.cob-link-arr { color: #8a78ff; font-size: 20px; }

/* ── TRANSICIONES ENTRE SECCIONES ───────────────────────── */
.blend { display: block; height: 72px; pointer-events: none; }
.blend-ink-navy   { background: linear-gradient(var(--ink),      var(--navy));     }
.blend-navy-ink   { background: linear-gradient(var(--navy),     var(--ink));      }
.blend-ink-navy2  { background: linear-gradient(var(--ink),      var(--ink2));     }
.blend-navy-elec  { background: linear-gradient(var(--navy),     var(--electric)); }
.blend-elec-light { background: linear-gradient(var(--electric), var(--light));    }
.blend-light-ink  { background: linear-gradient(var(--light),    var(--ink));      }

/* ── VIDEO REEL — media integrada al flujo, sin encuadre ─── */
.reel {
  background: transparent;
  line-height: 0;
}
.reel-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050c18;
  position: relative;
  overflow: hidden;
}
.reel-media video {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
/* Sound toggle button */
.reel-sound-btn {
  position: absolute;
  bottom: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, transform .15s;
  z-index: 10;
}
.reel-sound-btn:hover {
  background: rgba(10, 22, 40, 0.8);
  color: #fff;
  transform: scale(1.08);
}
.reel-sound-btn svg {
  width: 18px; height: 18px;
  display: none;
  pointer-events: none;
}
/* default state: muted — show X icon */
.reel-sound-btn .icon-muted { display: block; }
.reel-sound-btn .icon-sound { display: none; }
/* unmuted state */
.reel-sound-btn.is-sound .icon-muted { display: none; }
.reel-sound-btn.is-sound .icon-sound { display: block; }

/* ── COBERTURAS (clase — reemplaza los inline styles) ─────── */
.coberturas {
  background: transparent;
  padding: var(--section-v) 0;
}
.coberturas-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.coberturas-thumbs {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 12px;
}
/* Foto principal (Holanda) — grande, ocupa las dos filas */
.coberturas-thumbs .cob-thumb:first-child {
  grid-row: span 2;
  aspect-ratio: unset;
  align-self: stretch;
}
/* Las dos secundarias mantienen proporción 4/3 */
.coberturas-thumbs .cob-thumb:not(:first-child) {
  aspect-ratio: 4 / 3;
}
@media (max-width: 860px) {
  .coberturas-inner  { grid-template-columns: 1fr; gap: 40px; }
  .coberturas-thumbs { grid-template-columns: 1fr 1fr; }
  .coberturas-thumbs .cob-thumb:first-child { grid-row: auto; aspect-ratio: 4/3; align-self: auto; }
}
@media (max-width: 480px) {
  .coberturas-thumbs { grid-template-columns: 1fr; }
}

/* ── FICHA DE CASO — Video del cliente (patrón reel) ─────── */
.case-reel {
  background: #050c18;
  line-height: 0;
}
.case-reel video {
  width: 100%; display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* ── FICHA DE CASO — Galería principal (3 columnas) ──────── */
.case-gallery-section { padding: var(--section-v) 0; }
.gallery-case {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-case figure {
  margin: 0; overflow: hidden; border-radius: 16px;
  position: relative; background: var(--navy); cursor: pointer;
}
.gallery-case .g-big  { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery-case .g-sm   { aspect-ratio: 1 / 1; }
.gallery-case img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .55s ease;
}
.gallery-case figure:hover img { transform: scale(1.04); }

/* ── FICHA DE CASO — Videos destacados ───────────────────── */
.case-videos-section { padding: var(--section-v) 0; }
.case-videos-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.case-video-item {
  border-radius: 16px; overflow: hidden;
  background: #000; border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}
.case-video-item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.case-video-label {
  font-size: 12px; color: #6c7a93; margin-top: 8px; letter-spacing: .03em;
}

/* ── FICHA DE CASO — Testimonio + CTA ────────────────────── */
.case-testimonial-section { padding: var(--section-v) 0; }
.case-testimonial-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: start;
}

@media (max-width: 820px) {
  .case-testimonial-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .gallery-case { grid-template-columns: 1fr 1fr; }
  .gallery-case .g-big { grid-column: 1 / -1; }
  .case-videos-grid { grid-template-columns: 1fr; }
  .case-testimonial-grid { grid-template-columns: 1fr; }
}

/* ── ANIMACIONES DE ENTRADA ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mtrack { animation: none; }
  .gallery img { transition: none; }
  .scroll-hint { animation: none; }
}
