/* =============================================================
   CORTO CABLE — styles.css
   Concept: el cortocircuito — una chispa de marca (accent + spark)
   que enciende una vez y se enfría al verde permanente, y un trazo
   de circuito que conecta cada "tramo" del método en una sola línea.
   Type system: Chakra Petch (display, technical cut-corners) +
   Fraunces italic (editorial accent) + Inter (body/UI) +
   JetBrains Mono (labels/data)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --my { syntax: "<percentage>"; inherits: true; initial-value: 50%; }

:root {
  --bg:        #0a0d0b;   /* near-black, faint circuit-board green undertone */
  --bg-2:      #10140f;
  --bg-3:      #171c15;
  --ink:       #f4f4ef;
  --ink-soft:  rgba(244,244,239,0.78);
  --mute:      #8b9186;
  --line:      rgba(244,244,239,0.12);
  --line-soft: rgba(244,244,239,0.07);

  --accent:    #14cd6c;   /* Corto Cable brand green — the signal, always on */
  --accent-ink:#04160c;
  --spark:     #ff8a3d;   /* the short circuit — used only at ignition moments */

  --sans:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display:   "Chakra Petch", var(--sans);
  --serif:     "Fraunces", Georgia, serif;
  --mono:      "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; letter-spacing: -0.01em; font-family: var(--sans); font-weight: 600; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Display (Chakra Petch) treatment — reserved for hero/section-level moments */
.display-caps {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--accent); color: var(--accent-ink);
  border-radius: 8px; font-weight: 600; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 720px)  { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

.mono { font-family: var(--mono); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.section-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.section-num { color: var(--accent); font-size: 0.78rem; letter-spacing: 0.06em; flex-shrink: 0; }

.section { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); }

.word-accent { color: var(--accent); }

/* Cable-pin highlight — brand-signature accent for a key phrase */
.pin-phrase {
  position: relative;
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  background: rgba(20,205,108,0.14);
  color: var(--accent);
  padding: 0.02em 0.42em;
  border-radius: 2px;
}
.pin-dot {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
}
.pin-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 14px;
  background: var(--accent);
  opacity: 0.65;
  transform: translateX(-50%);
}
.pin-dot-a { top: -3px; left: -3px; }
.pin-dot-a::after { bottom: 100%; }
.pin-dot-b { bottom: -3px; right: -3px; }
.pin-dot-b::after { top: 100%; }

/* =============================================================
   4. Reveal-on-scroll (universal)
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================================
   5. Cursor, grain & vignette
   ============================================================= */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  display: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px; background: var(--ink); border-radius: 50%; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px; border: 1px solid var(--ink); border-radius: 50%;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out);
}
.cursor.is-interactive .cursor-ring { width: 54px; height: 54px; margin: -27px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 35%, transparent 55%, rgba(0,0,0,0.5) 100%);
}

.chrome-tag {
  position: fixed; left: 1.5rem; bottom: 1.25rem; z-index: 150;
  font-size: 0.68rem; letter-spacing: 0.08em; color: var(--mute);
  opacity: 0.55; pointer-events: none;
  display: none;
}
@media (min-width: 1280px) { .chrome-tag { display: block; } }

.corner-mark {
  position: absolute;
  font-family: var(--mono); font-size: 1.1rem; color: var(--line);
  opacity: 0.6; pointer-events: none; user-select: none;
}
.corner-tl { top: calc(var(--nav-h) + 1.25rem); left: 1.25rem; }
.corner-br { bottom: 1.5rem; right: 1.25rem; }
@media (min-width: 720px) { .corner-tl { left: 2rem; } .corner-br { right: 2rem; } }

/* =============================================================
   6. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
  border-radius: 100px;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s, color .3s;
}
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 4px 20px rgba(20,205,108,0.18);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(20,205,108,0.3); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn-nav { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

/* =============================================================
   7. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: 1.25rem;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
@media (min-width: 720px) { .nav { padding-inline: 2rem; } }
.nav.is-scrolled {
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-brand { display: inline-flex; align-items: center; }
.nav-logo { height: 22px; width: auto; flex-shrink: 0; }
@media (min-width: 720px) { .nav-logo { height: 25px; } }

.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link { position: relative; padding: 0.25rem 0; font-size: 0.92rem; color: var(--ink-soft); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.btn-nav { display: none; }
@media (min-width: 720px) { .btn-nav { display: inline-flex; } }

.nav-burger {
  display: grid; place-items: center; gap: 5px;
  width: 44px; height: 44px;
}
@media (min-width: 720px) { .nav-burger { display: none; } }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .3s; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 190;
  background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile nav { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; }
.nav-mobile a { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; font-size: 2rem; }

/* =============================================================
   8. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: clip;
}
.hero-gradient {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle 620px at var(--mx, 30%) var(--my, 30%), rgba(20,205,108,0.32) 0%, transparent 60%),
    radial-gradient(circle 720px at calc(var(--mx, 30%) + 18%) calc(var(--my, 30%) - 12%), rgba(255,138,61,0.16) 0%, transparent 62%),
    var(--bg);
  filter: blur(60px) saturate(140%);
}
.hero-inner { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 720px)  { .hero-inner { padding-inline: 2rem; } }
@media (min-width: 1280px) { .hero-inner { padding-inline: 2.5rem; } }

.kicker { color: var(--mute); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.75rem; }

.hero-title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 7.8vw, 6.1rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 16ch;
}
.hero-title .word {
  display: inline-block;
  padding: 0 0.06em;
  border-radius: 0.08em;
  transition: background-color .28s var(--ease-out), color .28s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hero-title .word:hover { background: var(--ink); color: var(--bg); }
  .hero-title .word.word-accent:hover { background: var(--accent); color: var(--accent-ink); }
}

/* Signature moment: the short circuit. A spark ignites at brand-load,
   then cools to the same pad-dot mark reused at every "connection" on the page. */
.hero-title .word-accent {
  position: relative;
}
.hero-title .word-accent::after {
  content: "";
  position: absolute;
  top: 0.12em;
  right: -0.02em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px rgba(20,205,108,0.55);
  animation: spark-ignite 1.6s var(--ease-out) .85s both;
}
@keyframes spark-ignite {
  0%   { transform: scale(0);   opacity: 0; background: var(--spark); box-shadow: 0 0 0 0 rgba(255,138,61,0); }
  10%  { transform: scale(2.8); opacity: 1; background: var(--spark); box-shadow: 0 0 46px 16px rgba(255,138,61,0.85); }
  28%  { transform: scale(1);   background: var(--spark); box-shadow: 0 0 20px 5px rgba(255,138,61,0.6); }
  100% { transform: scale(1);   background: var(--accent); box-shadow: 0 0 12px 2px rgba(20,205,108,0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title .word-accent::after { animation: none; }
}

.hero-sub {
  margin-top: 1.75rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 44ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* =============================================================
   9. Manifesto
   ============================================================= */
.manifesto-section { padding-block: clamp(5rem, 11vw, 9rem); overflow: clip; }
.quote-mark {
  position: absolute;
  top: clamp(0.5rem, 3vw, 1.5rem);
  left: -0.4rem;
  font-family: var(--serif);
  font-size: clamp(6rem, 15vw, 12rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--spark);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}
.manifesto {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 440;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.34;
  letter-spacing: -0.005em;
  max-width: 24ch;
  color: var(--ink);
}

.philosophy-dashboard { margin-top: clamp(3rem, 7vw, 6rem); }
.dashboard-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20,205,108,.3);
  border-radius: 10px;
  background: #070a08;
  box-shadow: 0 30px 90px rgba(0,0,0,.42), 0 0 80px rgba(20,205,108,.08);
}
.dashboard-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(244,244,239,.04), inset 0 -80px 100px rgba(5,8,6,.12);
}
.dashboard-frame img { width: 100%; height: auto; filter: saturate(.94) contrast(1.03); display: block; }
.dashboard-live {
  position: absolute; top: .8rem; right: .8rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .7rem;
  border: 1px solid rgba(20,205,108,.28);
  border-radius: 100px;
  background: rgba(7,10,8,.88);
  color: var(--accent);
  font-size: .64rem; letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.dashboard-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.philosophy-dashboard figcaption {
  margin-top: .8rem;
  color: var(--mute);
  font-size: .67rem; letter-spacing: .08em; text-transform: uppercase;
  text-align: right;
}
@media (max-width: 719px) {
  .dashboard-frame { border-radius: 6px; }
  .dashboard-frame img { width: 145%; max-width: none; transform: translateX(-15%); }
  .dashboard-live { display: none; }
  .philosophy-dashboard figcaption { text-align: left; }
}

/* =============================================================
   10. Método / Pillars
   ============================================================= */
.section-title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.6vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.method-visual {
  position: relative;
  margin: 0 0 clamp(2.75rem, 6vw, 4.75rem);
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.method-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 80px rgba(10,13,11,.28);
}
.method-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 719px) { .method-visual { aspect-ratio: 4 / 3; } }
/* One wire, three tramos: a single continuous trace runs across the row;
   each pillar is a solder pad marking where that stretch of the line begins. */
.pillars {
  position: relative;
  display: grid;
  gap: 2.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .pillars::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(20,205,108,0.25) 100%);
    opacity: 0.55;
  }
}
.pillar { position: relative; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.pillar::before {
  content: "";
  position: absolute; top: -1px; left: 0;
  width: 7px; height: 7px; margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 1px rgba(20,205,108,0.6), 0 0 0 3px var(--bg);
}
.pillar-n { display: block; font-family: var(--mono); color: var(--accent); font-size: 0.85rem; margin-bottom: 1rem; }
.pillar h3 { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.8rem; }
.pillar p { color: var(--ink-soft); font-size: 0.96rem; }

/* =============================================================
   11. Servicio
   ============================================================= */
.service-section { background: var(--bg-2); }
.has-halo { position: relative; isolation: isolate; }
.has-halo::before {
  content: ""; position: absolute; inset: -10%; z-index: -1;
  background: radial-gradient(45% 50% at 15% 30%, rgba(20,205,108,0.14), transparent 70%);
  filter: blur(90px);
  pointer-events: none;
}
.service-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 960px) { .service-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.service-text { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; }

/* =============================================================
   12. Casos
   ============================================================= */
.stats {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
.stat {
  width: clamp(148px, 21vw, 202px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 1rem;
  transition: transform .45s var(--ease-soft), border-color .3s var(--ease-out);
}
.stat:nth-child(2) {
  border-color: rgba(20,205,108,0.5);
  background: radial-gradient(circle at 50% 32%, rgba(20,205,108,0.1), transparent 70%);
}
@media (hover: hover) and (pointer: fine) {
  .stat:hover { transform: translateY(-6px); border-color: var(--accent); }
}
.stat-value {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  color: var(--accent); line-height: 1;
}
.stat-label { display: block; margin-top: 0.5rem; color: var(--mute); font-size: 0.76rem; max-width: 14ch; }

.clients-eyebrow { margin-bottom: 1.5rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Client logos — two-row continuous marquee, edges feathered with a mask.
   Row A drifts left, row B drifts right — opposing motion reads as more
   alive than a single strip and lets each logo run bigger without the
   section feeling like a wall of marks. */
.clients-marquee {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-inline: -1.25rem;
  padding-inline: 1.25rem;
}
@media (min-width: 720px)  { .clients-marquee { margin-inline: -2rem; padding-inline: 2rem; } }
@media (min-width: 1280px) { .clients-marquee { margin-inline: -2.5rem; padding-inline: 2.5rem; } }

.marquee-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 42s linear infinite;
}
.marquee-row-b .marquee-track { animation-direction: reverse; animation-duration: 36s; }
@media (hover: hover) and (pointer: fine) {
  .marquee-row:hover .marquee-track { animation-play-state: paused; }
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(3rem, 6vw, 5.5rem);
  padding-right: clamp(3rem, 6vw, 5.5rem);
}

.client-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.client-logo img {
  height: 30px; width: auto; display: block;
  opacity: 0.55;
  transition: opacity .35s var(--ease-out);
}
@media (min-width: 720px)  { .client-logo img { height: 38px; } }
@media (min-width: 1280px) { .client-logo img { height: 44px; } }

.client-text {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: -0.005em; font-size: 1.5rem; white-space: nowrap;
  color: var(--ink); opacity: 0.55;
  transition: opacity .35s var(--ease-out);
}
@media (min-width: 720px) { .client-text { font-size: 1.9rem; } }

@media (hover: hover) and (pointer: fine) {
  .client-logo:hover img, .client-text:hover { opacity: 1; }
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-row { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .marquee-group:nth-child(2) { display: none; }
}

/* =============================================================
   13. Closing statement
   ============================================================= */
.closing-section { text-align: center; }
.closing {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.8rem, 5vw, 3.1rem);
  line-height: 1.16;
}

/* =============================================================
   14. Contacto
   ============================================================= */
.contact-section { text-align: center; background: var(--bg-2); }
.contact-intro { max-width: 34ch; margin: 0 auto 2rem; color: var(--ink-soft); font-size: 1.05rem; }
.contact-email {
  position: relative;
  display: inline-block;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.6rem, 5.4vw, 3.15rem);
  word-break: break-word;
}
.contact-email::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.08em;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.contact-email:hover::after { transform: scaleX(1); transform-origin: left; }
.contact-meta { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-top: 1.75rem; color: var(--mute); }
.contact-line { font-size: 0.95rem; }
a.contact-line:hover { color: var(--accent); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.5rem; }

/* =============================================================
   15. Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line); padding-block: 2rem; }
.footer-inner {
  display: flex; flex-direction: column; gap: 0.6rem;
  font-size: 0.85rem; color: var(--mute);
}
@media (min-width: 720px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-tag { color: var(--mute); }

/* =============================================================
   16. Reduced-motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-gradient { animation: none; }
  /* Do NOT disable: hover states, reveals, cursor, underlines, counters */
}
