/* ============================================================
   COBOS PORTFOLIO V1 — "REACTOR"
   Macroestructura: Bento Grid
   Firma: hero bento vivo + tipo cinético monumental
   Paleta: papel #EFE9DE · tinta #0B0A0C · negro/hueso (monocromo) · bone #F2EDE4
   Tipografía: Syne 700/800/900 · Manrope 300/400/500
   Esquinas: redondeadas (soft-brutalism)
   ============================================================ */

/* ── VARIABLES ───────────────────────────────────────────── */
:root {
  /* Superficies oscuras (cards/bloques tinta — se mantienen oscuras) */
  --ink:        #0B0A0C;
  --ink-2:      #131114;
  --ink-3:      #1A171B;
  --accent:     #0B0A0C;  /* acento sobre papel = tinta */
  --accent-2:   #2A2521;
  --accent-ink: #F2EDE4;  /* texto sobre acento negro */
  --accent-d:   #F2EDE4;  /* acento sobre superficies oscuras = hueso */
  --bone:       #F2EDE4;  /* texto sobre superficies oscuras */
  --muted:      #9B938B;  /* texto secundario sobre oscuro */
  --dim:        #57504C;
  --line:       #272227;
  --line-soft:  #1C181C;

  /* TEMA CLARO — papel cálido (fondo de página + texto sobre papel) */
  --paper:      #EFE9DE;  /* fondo de página */
  --paper-2:    #E7E0D3;  /* papel sutil / tints */
  --ink-text:   #14110F;  /* texto principal sobre papel */
  --muted-paper:#6B635C;  /* texto secundario sobre papel */
  --line-paper: rgba(15, 13, 12, 0.14);  /* hairline sobre papel */

  --font-display: 'Syne', system-ui, sans-serif;
  --font-future:  'Chakra Petch', system-ui, sans-serif;
  --font-body:    'General Sans', system-ui, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;

  --r-xl:   32px;
  --r-lg:   24px;
  --r-md:   16px;
  --r-sm:   10px;
  --r-pill: 100px;

  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.28s var(--ease);
  --max-w: 1280px;
  --nav-h: 76px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
html, body { overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.accent-text { color: var(--accent); }
.muted { color: var(--dim); font-weight: 400; }

/* Tipografía — balance de líneas (evita títulos con muchas líneas / palabras huérfanas) */
h1, h2, h3, .bridge-title, .sec-h2, .manifesto-text, .footer-statement,
.contact-h2, .offer-h2, .testi-quote, .service-title, .project-name, .about-h2 { text-wrap: balance; }
p, .bridge-lede, .sec-sub, .service-problem, .service-outcome, .offer-body { text-wrap: pretty; }

/* ── GRAIN OVERLAY ───────────────────────────────────────── */
.grain-overlay {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* ── LAYOUT UTILS ────────────────────────────────────────── */
.container {
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.section { padding: var(--space-xl) 0; }

/* ── PRELOADER ───────────────────────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 10000; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}
.preloader.hidden { opacity: 0; pointer-events: none; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.preloader-initials {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 9vw, 7rem); letter-spacing: -0.05em; color: var(--bone);
}
.preloader-initials .accent { color: var(--accent); }
.preloader-bar { width: clamp(160px, 30vw, 300px); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader-fill { height: 100%; width: 0%; background: var(--accent); animation: preload-fill 1.4s var(--ease) forwards; }
@keyframes preload-fill { to { width: 100%; } }

/* ── NAV (pill flotante) ─────────────────────────────────── */
.nav-wrap {
  position: fixed; top: 16px; left: 0; right: 0; margin: 0 auto;
  z-index: 1000; width: calc(100% - 24px); max-width: var(--max-w);
}
/* Bulles separados (no barra larga) */
.nav { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.bubble {
  background: rgba(19, 17, 20, 0.72);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  transition: background var(--transition), border-color var(--transition);
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding: 12px 20px; }
.nav-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent-d);
  box-shadow: 0 0 12px rgba(242,237,228,0.45); flex-shrink: 0;
}
.nav-name {
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-sm);
  letter-spacing: -0.01em; color: var(--bone);
}
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; padding: 13px 26px; }
.nav-link {
  font-size: var(--text-sm); font-weight: 500; color: var(--muted);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--bone); }
.nav-cta { flex-shrink: 0; padding: 12px 22px; }
.nav-wrap.scrolled .nav-logo, .nav-wrap.scrolled .nav-links { background: rgba(19, 17, 20, 0.92); }
.nav-burger { display: none; flex-direction: column; gap: 5px; margin-left: auto; padding: 14px; }
.burger-line { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--bone); transition: transform var(--transition), opacity var(--transition); transform-origin: center; }
.nav-burger[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-line:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 1;
  background: var(--ink);
  padding: calc(var(--nav-h) + 40px) clamp(1.5rem, 6vw, 4rem) var(--space-lg);
  flex-direction: column; gap: var(--space-md);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 9vw, 3.5rem);
  letter-spacing: -0.03em; color: var(--bone);
}
.mobile-cta { margin-top: auto; align-self: flex-start; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-sm);
  letter-spacing: 0.01em; border-radius: var(--r-pill);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  will-change: transform;
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.4);
}
.btn-primary i { transition: transform var(--transition); }
.btn-primary:hover i { transform: translateX(4px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border: 1px solid var(--line); color: var(--bone);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm);
  border-radius: var(--r-pill);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.btn-ghost:hover { border-color: var(--muted); background: var(--ink-2); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; padding: 16px; }
.btn-loading { display: none; }

/* ── SECTION LABELS ──────────────────────────────────────── */
.sec-label {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-weight: 400; font-size: var(--text-xs);
  letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase;
  margin-bottom: var(--space-lg);
}
.sec-h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -0.04em;
  color: var(--bone); line-height: 0.95;
}
.sec-sub {
  font-size: var(--text-base); font-weight: 300; color: var(--muted);
  margin-top: 18px; max-width: 520px; line-height: 1.7;
}

/* ── IMAGE PLACEHOLDERS ──────────────────────────────────── */
.img-placeholder {
  background: var(--ink-3); border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  display: flex; align-items: flex-end; padding: 20px;
  min-height: 220px; position: relative; overflow: hidden;
}
.img-placeholder::before {
  content: '[ IMAGEN PENDIENTE ]'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.18em; color: var(--dim);
}
.img-placeholder-label {
  font-family: var(--font-body); font-size: 11px; line-height: 1.5;
  color: var(--dim); font-weight: 300; position: relative; z-index: 1;
}
.img-section { min-height: 300px; }
.img-project-featured { min-height: 360px; border-radius: var(--r-lg); }

/* ── IMÁGENES REALES ──────────────────────────────────────── */
.about-img {
  width: 100%; height: 360px; object-fit: cover; object-position: top center;
  border-radius: var(--r-lg); display: block;
}
.project-img img {
  width: 100%; height: 220px; object-fit: cover; display: block;
}
.project-card-featured .project-img img { height: 320px; }
.project-img img.img-cover-top { object-position: top center; }
.project-img-logo {
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  padding: clamp(36px, 6vw, 80px); min-height: 320px;
}
.project-card-featured .project-img-logo .brand-logo {
  width: 100%; max-width: 340px; height: auto; object-fit: contain;
}

/* ── SCROLL REVEALS ──────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(30px); filter: blur(7px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease), filter 0.75s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; filter: blur(0); }

/* Smooth scroll (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
[data-magnetic] { will-change: transform; }

/* ══════════════════════════════════════════════════════════
   HERO — BENTO
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 24px) clamp(1.25rem, 4vw, 3rem) var(--space-lg);
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 110vw; height: 80vh; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 38%, transparent 66%);
  animation: glow-breathe 12s ease-in-out infinite alternate;
}
@keyframes glow-breathe {
  from { opacity: 0.6; transform: translateX(-50%) scale(1); }
  to   { opacity: 0.95; transform: translateX(-50%) scale(1.08); }
}
/* Partículas — confinadas a la esquina superior-derecha del bloque del nombre */
.hero-particles {
  position: absolute; top: 0; right: 0; width: 52%; height: 56%;
  z-index: 0; pointer-events: none;
}

.hero-bento {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr;
  grid-template-areas:
    "photo name   name"
    "photo status metric"
    "photo meta   tags";
  gap: 14px;
}

.bento {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-2);
  padding: clamp(20px, 2.4vw, 34px);
  position: relative; overflow: hidden;
  opacity: 0; /* animado por JS */
}
html:not(.js) .bento { opacity: 1; }
/* El bloque del nombre no recorta el tipo monumental ni la animación cinética */
.bento-name { overflow: visible; }

.bento-label {
  display: block;
  font-family: var(--font-body); font-weight: 500; font-size: var(--text-xs);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
  margin-bottom: 14px;
}
.bento-k { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--bone); letter-spacing: -0.01em; line-height: 1.2; }
.bento-sub { display: block; font-size: var(--text-sm); font-weight: 300; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* Bloque nombre */
.bento-name {
  grid-area: name;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: clamp(16px, 2.4vw, 28px);
  background: linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 100%);
  min-height: clamp(200px, 26vh, 280px);
}
/* Bloque foto — retrato a la izquierda, columna alta */
.bento-photo {
  grid-area: photo; padding: 0; overflow: hidden;
  min-height: clamp(320px, 58vh, 600px);
}
.bento-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  filter: grayscale(1) contrast(1.02);
  transition: filter var(--transition), transform 0.6s var(--ease);
}
.bento-photo:hover img { filter: grayscale(0); transform: scale(1.03); }
.bento-name > .bento-eyebrow,
.bento-name > .hero-title,
.bento-name > .bento-name-foot { position: relative; z-index: 1; }
.bento-eyebrow {
  font-family: var(--font-body); font-weight: 500; font-size: var(--text-xs);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.hero-title { display: flex; flex-direction: column; line-height: 0.84; letter-spacing: -0.04em; overflow: visible; }
.hero-line {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  color: var(--bone); display: block;
  white-space: nowrap; max-width: 100%; letter-spacing: -0.03em;
}
.hero-line-accent { color: var(--accent); }
.hero-line .char { display: inline-block; will-change: transform; }

.bento-name-foot { display: flex; flex-direction: column; gap: 22px; }
.hero-tagline {
  font-family: var(--font-body); font-size: clamp(var(--text-base), 1.5vw, var(--text-xl));
  font-weight: 300; color: var(--muted); max-width: 520px; letter-spacing: 0.005em;
}
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Bloque status */
.bento-status {
  grid-area: status; display: flex; align-items: center; gap: 14px;
}
.bento-status .status-dot { width: 12px; height: 12px; flex-shrink: 0; }

/* Bloque métrica */
.bento-metric { grid-area: metric; display: flex; flex-direction: column; justify-content: center; }
.metric-reduction { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 4px 0 10px; }
.metric-old {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--dim); text-decoration: line-through; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; letter-spacing: -0.03em; line-height: 1;
}
.metric-arrow { font-family: var(--font-display); font-size: clamp(1.2rem, 2.5vw, 2rem); color: var(--accent); }
.metric-new {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--bone); letter-spacing: -0.04em; line-height: 1;
}

/* Bloque meta */
.bento-meta { grid-area: meta; display: flex; flex-direction: column; justify-content: center; }
.bento-meta .bento-k { font-size: var(--text-base); }

/* Bloque tags */
.bento-tags { grid-area: tags; display: flex; flex-direction: column; justify-content: center; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500;
  color: var(--muted); padding: 8px 16px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.chip:hover { border-color: var(--muted); color: var(--bone); transform: translateY(-2px); }
.chip-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.chip-accent:hover { color: var(--accent-ink); background: var(--accent-2); border-color: var(--accent-2); }

/* status dot (reusable) */
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-d);
  box-shadow: 0 0 10px rgba(242,237,228,0.45); flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.8); } }

/* ── ABOUT ───────────────────────────────────────────────── */
.about-section { background: var(--ink); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about-h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 3rem); letter-spacing: -0.03em;
  line-height: 1.08; color: var(--bone); margin-bottom: var(--space-md);
}
.about-body {
  font-size: var(--text-lg); font-weight: 300; color: var(--muted);
  line-height: 1.75; max-width: 520px; margin-bottom: var(--space-md);
}
.about-facts { display: flex; flex-direction: column; gap: 12px; }
.fact-chip {
  display: inline-flex; align-items: center; gap: 12px; width: fit-content;
  font-size: var(--text-sm); font-weight: 400; color: var(--bone);
  padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--ink-2);
}
.fact-chip i { color: var(--accent-d); font-size: 13px; width: 16px; flex-shrink: 0; }
.about-right { display: flex; flex-direction: column; gap: var(--space-md); }

.timeline { border-top: 1px solid var(--line-soft); }
.timeline-item { display: grid; grid-template-columns: 76px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.timeline-period { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.08em; color: var(--dim); padding-top: 3px; }
.timeline-now { color: var(--accent); font-weight: 600; }
.timeline-role { font-family: var(--font-display); font-weight: 700; font-size: clamp(0.95rem, 1.2vw, 1.1rem); color: var(--bone); letter-spacing: -0.01em; margin-bottom: 5px; }
.timeline-org { font-size: var(--text-sm); color: var(--muted); }

/* ── MANIFESTO ───────────────────────────────────────────── */
.manifesto-section { background: var(--accent); padding: clamp(3.25rem, 6.5vw, 5.5rem) 0; }
.manifesto-text {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.45rem, 3.2vw, 2.9rem); color: var(--accent-ink);
  line-height: 1.14; letter-spacing: -0.03em; max-width: min(1120px, 94vw);
}
.manifesto-mark { position: relative; white-space: nowrap; }
.manifesto-mark::after {
  content: ''; position: absolute; left: -2px; right: -2px; bottom: 0.08em; height: 0.12em;
  background: var(--accent-ink); opacity: 0.85;
}
.manifesto-cite {
  display: block; margin-top: 36px;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500;
  letter-spacing: 0.1em; color: rgba(244, 247, 255, 0.72); font-style: normal; text-transform: uppercase;
}

/* ── STATS ───────────────────────────────────────────────── */
.stats-section { background: var(--ink); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: var(--space-lg); }
.stat-item {
  padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--ink-2);
  transition: border-color var(--transition), transform var(--transition);
}
.stat-item:hover { border-color: var(--line); transform: translateY(-4px); }
.stat-display { display: flex; align-items: baseline; gap: 2px; margin-bottom: 12px; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.8rem, 6vw, 5rem); color: var(--bone); letter-spacing: -0.05em; line-height: 1; }
.stat-suffix { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--accent-d); line-height: 1; }
.stat-label { font-size: var(--text-sm); font-weight: 400; color: var(--muted); line-height: 1.4; }

/* Ticker */
.tools-ticker {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; gap: 22px; align-items: center; white-space: nowrap; width: max-content; animation: ticker 38s linear infinite; }
.tools-ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; letter-spacing: 0.01em; color: var(--muted); flex-shrink: 0; }
.ticker-dot { color: var(--accent) !important; font-weight: 400 !important; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── CAPABILITIES ────────────────────────────────────────── */
.capabilities-section { background: var(--ink); }
.cap-header { margin-bottom: var(--space-md); }
.capabilities-list { border-top: 1px solid var(--line); }
.cap-item {
  display: grid; grid-template-columns: 56px 1fr 40px; gap: 0 clamp(20px, 4vw, 56px);
  align-items: center; padding: clamp(24px, 3vw, 38px) clamp(8px, 2vw, 24px);
  border-bottom: 1px solid var(--line); border-radius: var(--r-md);
  transition: background var(--transition), padding-left var(--transition);
}
.cap-item:hover { background: var(--ink-2); }
.cap-item:hover .cap-arrow { color: var(--accent); transform: translateX(6px); }
.cap-item:hover .cap-title { color: var(--accent); }
.cap-num { font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; letter-spacing: 0.04em; color: var(--accent); }
.cap-title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 2.6vw, 2rem);
  color: var(--bone); letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.1;
  transition: color var(--transition);
}
.cap-desc { font-size: var(--text-sm); font-weight: 300; color: var(--muted); line-height: 1.7; max-width: 640px; }
.cap-arrow { font-size: var(--text-lg); color: var(--dim); transition: color var(--transition), transform var(--transition); justify-self: end; }

/* ── PROJECTS ────────────────────────────────────────────── */
.projects-section { background: var(--ink); }
.projects-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: var(--space-lg); }
.projects-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-btn {
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500;
  color: var(--muted); padding: 9px 18px; border: 1px solid var(--line);
  border-radius: var(--r-pill); transition: var(--transition);
}
.filter-btn:hover { color: var(--bone); border-color: var(--muted); }
.filter-btn.active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 700; }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.project-card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: border-color var(--transition), transform var(--transition);
}
.project-card:hover { border-color: var(--muted); transform: translateY(-5px); }
.project-card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.project-card .project-img { border-radius: 0; border: none; border-bottom: 1px solid var(--line-soft); }
.project-card-featured .project-img { min-height: 320px; border-bottom: none; border-right: 1px solid var(--line-soft); }
.project-info { padding: clamp(20px, 2.5vw, 32px); }
.project-card-featured .project-info { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.project-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.project-tag { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; }
.project-status {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.03em; color: var(--muted);
  padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--r-pill);
}
.project-status-active { color: var(--accent-d); border-color: rgba(242, 237, 228, 0.28); background: rgba(242, 237, 228, 0.06); }
.project-status-pending { color: #E5C07B; border-color: rgba(229, 192, 123, 0.3); background: rgba(229, 192, 123, 0.05); }
.project-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: -0.03em; color: var(--bone); margin-bottom: 10px; }
.project-card-featured .project-name { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.project-desc { font-size: var(--text-sm); font-weight: 300; color: var(--muted); line-height: 1.7; }
.filtered-out { display: none !important; }
.project-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-d); border-bottom: 1px solid rgba(242,237,228,0.3);
  padding-bottom: 2px; transition: border-color var(--transition), opacity var(--transition);
}
.project-link:hover { border-color: var(--accent-d); opacity: 0.8; }

/* ── ARSENAL ─────────────────────────────────────────────── */
.arsenal-section { background: var(--ink); }
.arsenal-header { margin-bottom: var(--space-lg); }
.arsenal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.arsenal-cat { padding: clamp(22px, 2.5vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-2); }
.arsenal-cat-title {
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700;
  letter-spacing: 0.02em; color: var(--accent-d); margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-soft);
}
.arsenal-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-chip {
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--r-pill);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.tool-chip:hover { border-color: var(--muted); color: var(--bone); transform: translateY(-2px); }
.tool-chip-accent { color: var(--accent-d); border-color: rgba(242, 237, 228, 0.28); background: rgba(242, 237, 228, 0.05); font-weight: 600; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-section { background: var(--ink); }
.contact-bento { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-info {
  padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line);
  border-radius: var(--r-xl); background: linear-gradient(160deg, var(--ink-2), var(--ink));
  display: flex; flex-direction: column; justify-content: center;
}
.contact-h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.04em; line-height: 0.95; color: var(--bone); margin-bottom: 20px; }
.contact-body { font-size: var(--text-base); font-weight: 300; color: var(--muted); line-height: 1.75; margin-bottom: var(--space-md); max-width: 420px; }
.contact-meta { display: flex; flex-direction: column; gap: 20px; }
.contact-mail { font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 2vw, 1.4rem); color: var(--accent-d); letter-spacing: -0.01em; transition: opacity var(--transition); width: fit-content; }
.contact-mail:hover { opacity: 0.8; }
.contact-whatsapp {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg);
  color: var(--bone); letter-spacing: -0.01em; transition: color var(--transition);
}
.contact-whatsapp i { color: #25D366; font-size: 1.3em; }
.contact-whatsapp:hover { color: #25D366; }
.contact-row { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-xs); font-weight: 500; color: var(--muted);
  padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r-pill);
}

.contact-form-wrap { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--ink-2); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.form-group input, .form-group textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 18px;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 300;
  color: var(--bone); transition: border-color var(--transition); resize: none; outline: none; -webkit-appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--dim); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-d); }
.form-group.field-error input, .form-group.field-error textarea { border-color: #E5715B; }
.field-error-msg { display: none; font-size: var(--text-xs); color: #E5715B; margin-top: 6px; }
.form-group.field-error .field-error-msg { display: block; }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-feedback { margin-top: 16px; padding: 14px 18px; font-size: var(--text-sm); border-radius: var(--r-md); }
.form-feedback.error { background: rgba(229, 113, 91, 0.08); border: 1px solid rgba(229, 113, 91, 0.25); color: #E5715B; }
.form-feedback a { color: #E5715B; text-decoration: underline; }
#submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
#submit-btn.loading .btn-text { display: none; }
#submit-btn.loading .btn-loading { display: block; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { padding: var(--space-xl) 0 var(--space-lg); border-top: 1px solid var(--line-soft); }
.footer-statement {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 7rem); letter-spacing: -0.05em; line-height: 0.9;
  color: var(--bone); margin-bottom: var(--space-lg);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: var(--space-md); border-top: 1px solid var(--line-soft); }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); color: var(--bone); }
.footer-right { font-size: var(--text-xs); font-weight: 400; letter-spacing: 0.04em; color: var(--dim); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-bento {
    grid-template-columns: 0.85fr 1fr 1fr;
    grid-template-areas:
      "photo name   name"
      "photo status metric"
      "photo meta   tags";
  }
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .hero-bento {
    grid-template-columns: 1fr;
    grid-template-areas: "name" "photo" "status" "metric" "meta" "tags";
  }
  .bento-photo { min-height: clamp(300px, 60vh, 440px); }
  .about-grid { grid-template-columns: 1fr; }
  .project-card-featured { grid-template-columns: 1fr; }
  .project-card-featured .project-img { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .contact-bento { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --space-xl: 4.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card-featured { grid-column: auto; }
  .cap-item { grid-template-columns: 36px 1fr 28px; gap: 0 14px; }
}

@media (max-width: 480px) {
  :root { --space-lg: 2.5rem; --space-xl: 3.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .arsenal-grid { grid-template-columns: 1fr; }
  .projects-header { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { justify-content: center; }
}

/* ── WHATSAPP FLOTANTE ───────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 9990;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff; font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 0 rgba(37,211,102,0.5);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: wa-pulse 2.6s ease-out infinite;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
@keyframes wa-pulse {
  0%   { box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 0 rgba(37,211,102,0.45); }
  70%  { box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 600px) {
  .wa-float { bottom: 18px; right: 18px; width: 52px; height: 52px; font-size: 1.5rem; }
}

/* ══════════════════════════════════════════════════════════
   TEMA CLARO — overrides nivel página (papel + texto tinta)
   Las cards/bloques siguen oscuros; solo cambia lo que vive
   directamente sobre el papel.
   ══════════════════════════════════════════════════════════ */
.about-section, .stats-section, .capabilities-section,
.projects-section, .arsenal-section, .contact-section { background: var(--paper); }

.preloader { background: var(--paper); }
.preloader-initials { color: var(--ink-text); }

/* Headings y copy sobre papel */
.sec-h2 { color: var(--ink-text); }
.sec-sub { color: var(--muted-paper); }
.about-h2 { color: var(--ink-text); }
.about-body { color: var(--muted-paper); }

/* Timeline */
.timeline { border-top-color: var(--line-paper); }
.timeline-item { border-bottom-color: var(--line-paper); }
.timeline-role { color: var(--ink-text); }
.timeline-org, .timeline-period { color: var(--muted-paper); }

/* Capabilities — fila en papel, hover en wash tangerina (no oscuro) */
.capabilities-list { border-top-color: var(--line-paper); }
.cap-item { border-bottom-color: var(--line-paper); }
.cap-title { color: var(--ink-text); }
.cap-desc { color: var(--muted-paper); }
.cap-item:hover { background: rgba(0, 0, 0, 0.045); }
.cap-item:hover .cap-title { color: var(--accent); }

/* Ticker de herramientas */
.tools-ticker { border-color: var(--line-paper); }
.ticker-track span { color: var(--muted-paper); }

/* Filtro de proyectos */
.filter-btn { color: var(--muted-paper); border-color: var(--line-paper); }
.filter-btn:hover { color: var(--ink-text); border-color: var(--ink-text); }

/* Footer */
.footer { border-top-color: var(--line-paper); }
.footer-statement { color: var(--ink-text); }
.footer-inner { border-top-color: var(--line-paper); }
.footer-name { color: var(--ink-text); }
.footer-right { color: var(--muted-paper); }

/* Halo del hero — más sutil sobre papel */
.hero-glow {
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 38%, transparent 66%);
}

/* ── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ticker-track, .hero-glow, .status-dot, .wa-float { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .bento { opacity: 1 !important; }
}

/* ── JS GATE ─────────────────────────────────────────────── */
html:not(.js) .reveal { opacity: 1; transform: none; filter: none; }

/* ══════════════════════════════════════════════════════════
   HERO — UMBRAL · el nombre cruza tinta→papel (diseño ⇄ sistemas)
   Negro arriba, papel abajo · partículas SOLO en la costura
   ══════════════════════════════════════════════════════════ */
.hero-umbral {
  position: relative; padding: 0; align-items: stretch; overflow: hidden;
  background: linear-gradient(180deg,
    #0B0A0C 0%, #0B0A0C 46%, #211d1b 56%, #b3a499 67%, #EFE9DE 78%, #EFE9DE 100%);
}
/* Banda de partículas: la zona donde el nombre se diluye */
.hero-field { position: absolute; left: 0; right: 0; top: 34%; height: 36%; z-index: 2; pointer-events: none; }

.umbral-content { position: relative; z-index: 3; width: 100%; max-width: var(--max-w); margin: 0 auto; min-height: 100svh; }

/* Nombre monumental, blanco, que se diluye con el degradado */
.umbral-name {
  position: absolute; left: 50%; top: 41%; transform: translate(-50%, -50%);
  margin: 0; z-index: 3; width: 100%;
  display: flex; flex-direction: column; align-items: center; line-height: 0.82;
}
.uname-1 {
  font-family: var(--font-display); font-weight: 800; color: var(--bone);
  font-size: clamp(2.8rem, 8.5vw, 7.5rem); letter-spacing: -0.04em;
}
/* VARGAS: hueso arriba → se desvanece a transparente abajo (se disuelve en las partículas) */
.uname-2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.8rem, 12vw, 11rem); letter-spacing: -0.05em;
  color: var(--bone); /* fallback */
  background: linear-gradient(180deg, #F2EDE4 0%, #F2EDE4 34%, rgba(242,237,228,0.25) 82%, rgba(242,237,228,0) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Base: 01 (extremo izq) · CTA (centro) · 02 (extremo der), bajo el desvanecido, sobre papel */
.umbral-base {
  position: absolute; left: 0; right: 0; bottom: clamp(40px, 8vh, 84px);
  z-index: 3; padding: 0 clamp(20px, 5vw, 60px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 4vw, 48px);
}
.ub-col { display: flex; flex-direction: column; gap: 8px; }
.ub-left { align-items: flex-start; text-align: left; }
.ub-right { align-items: flex-end; text-align: right; }
.ub-center { align-items: center; gap: 12px; }
.ub-num {
  font-family: var(--font-display); font-weight: 800; line-height: 0.9;
  font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -0.03em; color: var(--ink-text);
}
.ub-desc {
  font-family: var(--font-mono); font-size: clamp(10px, 1vw, 12px); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-paper); line-height: 1.5;
}
.ub-contact {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-paper); border-bottom: 1px solid var(--line-paper); padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.ub-contact:hover { color: var(--ink-text); border-color: var(--ink-text); }

@media (max-width: 860px) {
  .hero-umbral {
    background: linear-gradient(180deg,
      #0B0A0C 0%, #0B0A0C 42%, #211d1b 53%, #b3a499 64%, #EFE9DE 76%, #EFE9DE 100%);
  }
  .hero-field { top: 30%; height: 34%; }
  .umbral-name { top: 38%; }
  .uname-1 { font-size: clamp(2.4rem, 13vw, 4rem); }
  .uname-2 { font-size: clamp(3.2rem, 18vw, 5.5rem); }
  .umbral-base { grid-template-columns: 1fr 1fr; gap: 20px clamp(16px, 6vw, 40px); padding: 0 clamp(22px, 6vw, 34px); bottom: clamp(34px, 7vh, 64px); }
  .ub-center { grid-column: 1 / -1; order: -1; margin-bottom: 8px; }
}

/* ══ CLIENTES — tira de confianza (prueba social) ══ */
.clients-section { padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line-paper); }
.clients-strip { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.clients-label {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-paper); flex-shrink: 0;
}
.clients-list { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 2.5vw, 36px); }
.clients-list li {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.05rem, 2vw, 1.55rem);
  letter-spacing: -0.01em; color: var(--ink-text); opacity: 0.7; transition: opacity var(--transition);
}
.clients-list li:hover { opacity: 1; }

/* ══ SERVICIOS PRODUCTIZADOS — cards tinta sobre papel ══ */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.service-card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px;
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover { border-color: var(--muted); transform: translateY(-4px); }
.service-num { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; color: var(--accent-d); }
.service-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.02em; color: var(--bone); }
.service-problem { font-size: var(--text-sm); color: var(--muted); line-height: 1.6; }
.service-outcome {
  font-family: var(--font-body); font-weight: 500; font-size: var(--text-base);
  color: var(--bone); line-height: 1.5; padding-left: 16px; border-left: 2px solid var(--accent-d);
}
.service-includes { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 6px; }
.service-includes li { position: relative; padding-left: 22px; font-size: var(--text-sm); color: var(--muted); line-height: 1.5; }
.service-includes li::before { content: '→'; position: absolute; left: 0; color: var(--accent-d); }

/* ══ TESTIMONIOS — cards tinta sobre papel ══ */
.testimonials-section { background: var(--paper); }
.testi-header { margin-bottom: var(--space-lg); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.testi-card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 22px;
  margin: 0;
}
.testi-quote {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.35; color: var(--bone); letter-spacing: -0.01em;
}
.testi-quote::before { content: '“'; color: var(--accent-d); margin-right: 2px; }
.testi-by { display: flex; flex-direction: column; gap: 3px; margin-top: auto; }
.testi-name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--bone); }
.testi-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted); }

@media (max-width: 880px) { .testi-grid { grid-template-columns: 1fr; } }

/* ══ OFERTA DE ENTRADA — banda tinta sobre papel ══ */
.offer-band {
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
.offer-eyebrow { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-d); }
.offer-h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.5vw, 3rem); letter-spacing: -0.03em; color: var(--bone); margin: 14px 0 16px; line-height: 1.05; }
.offer-body { font-size: var(--text-base); font-weight: 300; color: #C7C1B8; line-height: 1.7; max-width: 48ch; }
.offer-body strong { color: var(--bone); font-weight: 500; }
.offer-actions { display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .offer-band { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ── B&N · overrides de contexto ── */
.nav-cta { background: var(--bone); color: var(--ink); }
.nav-cta:hover { background: #ffffff; }
.contact-h2 .accent-text { color: var(--accent-d); }
/* Banda de oferta (fondo oscuro): el acento debe ser hueso y más grueso para destacar */
.offer-h2 .accent-text { color: var(--accent-d); font-weight: 800; }

/* ══════════════════════════════════════════════════════════
   INTERACCIONES POR SECCIÓN — spotlight, zoom, pausa off-screen
   ══════════════════════════════════════════════════════════ */
/* Spotlight monocromo que sigue el cursor (cards de Servicios y Proyectos) */
.service-card, .project-card { position: relative; }
.service-card::after, .project-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(242, 237, 228, 0.07), transparent 60%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.service-card:hover::after, .project-card:hover::after { opacity: 1; }
/* contenido por encima del spotlight */
.service-card > *, .project-card > * { position: relative; z-index: 1; }

/* Zoom sutil de imagen al hover de la card (no en el logo de Mutuo) */
.project-img:not(.project-img-logo) img { transition: transform 0.6s var(--ease); }
.project-card:hover .project-img:not(.project-img-logo) img { transform: scale(1.045); }

/* Ticker: corre solo cuando su sección está en viewport (y no al hover) */
.ticker-track { animation-play-state: paused; }
.stats-section.in-view .tools-ticker:not(:hover) .ticker-track { animation-play-state: running; }

@media (prefers-reduced-motion: reduce) {
  .service-card::after, .project-card::after { display: none; }
  .project-card:hover .project-img img { transform: none !important; }
}

/* ══════════════════════════════════════════════════════════
   MOBILE POLISH
   ══════════════════════════════════════════════════════════ */

/* 1 · Menú móvil — CTA visible sobre fondo tinta (bug: negro sobre negro) */
.mobile-cta { background: var(--bone) !important; color: var(--ink) !important; }
.mobile-cta:hover { background: #ffffff !important; }

/* 2+3 · Hero umbral — labels legibles + CTA ancho completo */
@media (max-width: 860px) {
  .ub-desc { font-size: clamp(11px, 2.8vw, 13px); }
  .ub-center .btn-primary { width: 100%; justify-content: center; }
}

/* 4 · Hero — gradient ajustado para pantallas cortas (≤ 700px, ej. iPhone SE) */
@media (max-height: 700px) and (max-width: 860px) {
  .hero-umbral {
    background: linear-gradient(180deg,
      #0B0A0C 0%, #0B0A0C 24%, #211d1b 38%, #b3a499 52%, #EFE9DE 66%, #EFE9DE 100%);
  }
  .hero-field  { top: 22%; height: 28%; }
  .umbral-name { top: 30%; }
}

/* 5 · Clientes — apilar label + lista en pantallas muy estrechas */
@media (max-width: 500px) {
  .clients-strip { flex-direction: column; align-items: flex-start; gap: 10px; }
  .clients-list  { gap: 8px 14px; }
}

/* 6+7 · Sobre mí — imagen menos alta + <br> sin líneas vacías al wrappear */
@media (max-width: 880px) {
  .about-img  { height: 260px; }
  .about-h2 br { display: none; }
}

/* 8 · Footer — declaración más compacta en pantallas estrechas */
@media (max-width: 480px) {
  .footer-statement { font-size: clamp(1.6rem, 7.5vw, 2.4rem); }
}

/* 9 · Hero nombres — VARGAS no se corta en móvil estándar (375–540px) */
@media (max-width: 540px) {
  .uname-1 { font-size: clamp(1.9rem, 10.5vw, 2.8rem); }
  .uname-2 { font-size: clamp(2.4rem, 14vw,  3.6rem); }
}
