:root {
  --amarillo: #FFCB00;
  --negro: #000000;
  --blanco: #FFFFFF;
  --gris: #F2F2F2;
  --grafito: #444444;
  --linea: #DDDDDD;
  --suave: rgba(255, 255, 255, .7);
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1296px;
  --section-y: clamp(80px, 11vw, 160px);
  --radius: 28px;
  --corner: clamp(40px, 5vw, 80px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { margin: 0; }
body {
  background: var(--negro); color: var(--blanco);
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section-y) 0; overflow: hidden; }

/* Títulos: palabra principal en Black + complemento en Regular */
.title { margin: 0; text-transform: uppercase; line-height: .88; }
.title__main { display: block; font-weight: 900; font-size: clamp(2.7rem, 6.6vw, 6rem); letter-spacing: -.025em; }
.title__sub { display: block; font-weight: 400; font-size: clamp(1.1rem, 2.2vw, 2rem); letter-spacing: .01em; margin-top: .5em; }
.intro { margin: 0; max-width: 44ch; font-size: clamp(1rem, 1.2vw, 1.12rem); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 64px; align-items: end; margin-bottom: clamp(44px, 5.5vw, 80px); }
.head__side { display: grid; gap: 28px; justify-items: start; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: .92rem; text-transform: uppercase; letter-spacing: .03em; text-decoration: none;
  transition: transform .25s var(--ease), background-color .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--negro { background: var(--negro); color: var(--amarillo); }
.btn--negro:hover { background: #1d1d1d; }
.btn--linea { background: transparent; color: var(--negro); box-shadow: inset 0 0 0 2px var(--negro); }
.btn--linea:hover { background: var(--negro); color: var(--amarillo); }

/* ---------- Encabezado ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: transform .35s var(--ease), background-color .3s ease; }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.header__logo img { height: 44px; width: auto; }
.header__logo .logo-blanco { display: none; }
.header.is-solid { background: var(--negro); }
.header.is-solid .logo-negro { display: none; }
.header.is-solid .logo-blanco { display: block; }
.header.is-solid .nav__link { color: var(--blanco); }
.header.is-solid .nav__cta { background: var(--amarillo); color: var(--negro); }
.header.is-solid .menu-btn span { background: var(--blanco); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); }
.nav__link { position: relative; color: var(--negro); text-decoration: none; font-weight: 500; font-size: .94rem; padding: 6px 0; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.header.is-solid .nav__link.is-active { color: var(--amarillo); }
.nav__cta { min-height: 44px; padding: 0 22px; font-size: .82rem; background: var(--negro); color: var(--amarillo); }

.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: none; padding: 12px; cursor: pointer; }
.menu-btn span { display: block; height: 3px; background: var(--negro); margin: 5px 0; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: var(--amarillo); color: var(--negro); overflow: hidden; display: flex; flex-direction: column; }
.hero__body { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; padding-top: 120px; padding-bottom: 64px; }
.hero h1 { margin: 0; font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 7.4vw, 8.6rem); line-height: .88; letter-spacing: -.035em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .line > span { display: block; animation: rise 1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero__text { margin: clamp(24px, 2.6vw, 40px) 0 clamp(28px, 3vw, 44px); max-width: 42ch; font-size: clamp(1.02rem, 1.3vw, 1.25rem); line-height: 1.55; animation: fade .8s .45s ease both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; animation: fade .8s .55s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero__torus-wrap { position: absolute; z-index: 1; top: 46%; right: -11vw; width: min(48vw, 84vh); transform: translateY(-50%); pointer-events: none; }
.hero__torus { width: 100%; animation: torus-in 1.4s var(--ease) both; will-change: transform; transition: translate .6s var(--ease); }
@keyframes torus-in { from { opacity: 0; transform: translateX(10vw) rotate(12deg); } to { opacity: 1; transform: none; } }

/* Marquesina de clientes en el hero */
.ticker { position: relative; z-index: 3; display: flex; align-items: center; border-top: 2px solid var(--negro); height: 104px; }
.ticker__label { flex: none; padding: 0 28px 0 var(--gutter); font-weight: 700; font-size: .86rem; line-height: 1.3; max-width: 230px; border-right: 2px solid var(--negro); height: 100%; display: flex; align-items: center; background: var(--amarillo); position: relative; z-index: 1; }
.ticker__viewport { flex: 1; overflow: hidden; height: 100%; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker__track { display: flex; align-items: center; height: 100%; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track img { height: 44px; width: auto; max-width: 150px; object-fit: contain; margin: 0 clamp(24px, 2.6vw, 44px); }
.ticker__track .logo-texto { margin: 0 clamp(24px, 2.6vw, 44px); white-space: nowrap; color: var(--negro); font-size: 1.15rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Somos ---------- */
.somos { background: radial-gradient(120% 90% at 0% 0%, #C9A100 0%, #5A4800 28%, #0D0B00 58%, #000 75%); }
.somos::before { content: ""; position: absolute; inset: 0; background-image: var(--grano); opacity: .22; mix-blend-mode: overlay; pointer-events: none; }
.somos .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.somos h2 { margin: 0 0 clamp(28px, 3vw, 44px); font-weight: 900; text-transform: uppercase; font-size: clamp(3.8rem, 12vw, 11.5rem); line-height: .82; letter-spacing: -.04em; }
.somos p { margin: 0 0 1.1em; max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.6; color: var(--suave); }
.somos p strong { color: var(--blanco); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 20px clamp(32px, 5vw, 72px); margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; }
.stats div { border-top: 2px solid var(--amarillo); padding-top: 16px; }
.stats dt { font-weight: 900; font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: 1; color: var(--amarillo); letter-spacing: -.02em; }
.stats dd { margin: 8px 0 0; color: var(--suave); font-size: .95rem; max-width: 18ch; line-height: 1.4; }
.somos__torus { width: 100%; max-width: 560px; justify-self: end; margin-right: -6%; }

/* ---------- Servicios ---------- */
.servicios { background: var(--gris); color: var(--negro); padding-top: 0; }
.band { background: var(--amarillo); border-bottom-left-radius: clamp(48px, 7vw, 120px); padding: clamp(64px, 8vw, 120px) 0 clamp(52px, 6vw, 88px); margin-bottom: clamp(24px, 3vw, 40px); }
.band .head { margin-bottom: 0; }
.svc { list-style: none; margin: 0; padding: 0; }
.svc li { border-bottom: 2px solid var(--linea); }
.svc a {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 56px; gap: 24px 48px; align-items: center;
  padding: clamp(26px, 3vw, 40px) 0; text-decoration: none; isolation: isolate;
}
.svc a::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(var(--gutter) * -.5); background: var(--amarillo); border-radius: 20px; transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease); }
.svc a:hover::before, .svc a:focus-visible::before { transform: scaleY(1); }
.svc h3 { margin: 0; font-weight: 700; font-size: clamp(1.4rem, 2.5vw, 2.3rem); line-height: 1.12; letter-spacing: -.01em; transition: transform .4s var(--ease); }
.svc a:hover h3 { transform: translateX(12px); }
.svc p { margin: 0; color: var(--grafito); font-size: 1rem; line-height: 1.5; max-width: 40ch; }
.svc__go { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--negro); color: var(--amarillo); transition: transform .4s var(--ease); }
.svc__go svg { width: 22px; height: 22px; }
.svc a:hover .svc__go { transform: rotate(-45deg); }

/* ---------- Clientes ---------- */
.clientes { background: var(--blanco); color: var(--negro); }
.clientes .intro { color: var(--grafito); }
.count { display: flex; align-items: baseline; gap: 14px; }
.count strong { font-weight: 900; font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: 1; letter-spacing: -.02em; }
.count span { color: var(--grafito); font-size: .95rem; max-width: 16ch; line-height: 1.35; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--linea); border-left: 1px solid var(--linea); }
.logos li { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; padding: clamp(14px, 1.8vw, 28px); border-right: 1px solid var(--linea); border-bottom: 1px solid var(--linea); transition: background-color .25s ease; }
.logos li:hover { background: var(--gris); }
.logos img { max-height: 58px; max-width: 86%; width: auto; object-fit: contain; opacity: .78; transition: opacity .25s ease, transform .3s var(--ease); }
.logos li:hover img { opacity: 1; transform: scale(1.06); }
.logos .is-cta { grid-column: span var(--span, 3); aspect-ratio: auto; padding: 0; background: var(--amarillo); }
.logos .is-cta:hover { background: var(--amarillo); }
.logos .is-cta a { width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(20px, 2.4vw, 36px); text-decoration: none; font-weight: 900; text-transform: uppercase; font-size: clamp(1.1rem, 1.8vw, 1.7rem); line-height: 1; }
.logos .is-cta .svc__go { flex: none; transition: transform .4s var(--ease); }
.logos .is-cta a:hover .svc__go { transform: rotate(-45deg); }
.logo-texto { font-weight: 700; font-size: 1.15rem; color: #5c5c5c; text-align: center; line-height: 1.15; }
.rail__foot.mobile-only { display: none; }

/* ---------- Carruseles laterales ---------- */
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--card-w);
  gap: clamp(14px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 8px; margin: 0 calc(var(--gutter) * -1);
  scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain;
  cursor: grab;
}
.rail__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail__track.is-dragging * { pointer-events: none; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__foot { display: flex; align-items: center; gap: 24px; margin-top: clamp(28px, 3vw, 44px); }
.rail__bar { flex: 1; height: 2px; background: rgba(255, 255, 255, .2); position: relative; overflow: hidden; border-radius: 2px; }
.rail__bar i { position: absolute; inset: 0 auto 0 0; width: 30%; background: var(--amarillo); transition: width .2s linear, transform .2s linear; }
.rail__count { font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; color: var(--suave); min-width: 64px; }
.rail__nav { display: flex; gap: 10px; }
.rail__btn { width: 54px; height: 54px; border-radius: 50%; border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease; }
.rail__btn:hover:not(:disabled) { background: var(--amarillo); border-color: var(--amarillo); color: var(--negro); }
.rail__btn:disabled { opacity: .3; cursor: default; }
.rail__btn svg { width: 20px; height: 20px; }

/* Proyectos */
.proyectos { background: var(--negro); }
.proyectos .rail { --card-w: clamp(260px, 29vw, 400px); }
.proyecto { display: block; text-decoration: none; }
.proyecto figure { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-top-right-radius: var(--corner); background: #1a1a1a; }
.proyecto img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.proyecto figure::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); opacity: 0; transition: opacity .35s ease; }
.proyecto__ver { position: absolute; z-index: 1; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--amarillo); color: var(--negro); font-weight: 700; font-size: .85rem; text-transform: uppercase; opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s var(--ease); }
.proyecto__ver svg { width: 16px; height: 16px; }
.proyecto:hover img, .proyecto:focus-visible img { transform: scale(1.06); }
.proyecto:hover figure::after, .proyecto:focus-visible figure::after { opacity: 1; }
.proyecto:hover .proyecto__ver, .proyecto:focus-visible .proyecto__ver { opacity: 1; transform: none; }
.proyecto h3 { margin: 18px 0 2px; font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.proyecto p { margin: 0; color: var(--suave); font-size: .92rem; }

/* Equipo */
.equipo { background: var(--grafito); }
.equipo .rail { --card-w: clamp(230px, 22vw, 300px); }
.persona figure { position: relative; margin: 0; aspect-ratio: 230 / 264; overflow: hidden; border-top-right-radius: var(--corner); background: #0C0C0F; }
.persona figure::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--amarillo); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.persona:hover figure::after { transform: scaleX(1); }
.persona img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.persona:hover img { transform: scale(1.04); }
.persona h3 { margin: 18px 0 0; font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.persona p { margin: 2px 0 0; color: var(--suave); font-size: .94rem; }
.persona--pendiente figure { display: grid; place-items: center; border: 2px dashed rgba(255, 255, 255, .3); background: transparent; }
.persona--pendiente svg { width: 36%; color: rgba(255, 255, 255, .3); }
.persona--pendiente h3, .persona--pendiente p { color: rgba(255, 255, 255, .5); }

/* ---------- Plataformas ---------- */
.plataformas { background: var(--negro); }
.plat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.plat__card { background: #1C1C1C; border-radius: var(--radius); padding: clamp(28px, 3vw, 44px); min-height: 360px; display: flex; flex-direction: column; gap: 36px; transition: transform .35s var(--ease); }
.plat__card:hover { transform: translateY(-6px); }
.plat__card h3 { margin: 0; font-weight: 600; font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.2; }
.plat__logos { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 36px; }
.plat__logos img { height: 50px; width: auto; }
.plat__logos img.is-wide { height: 34px; }
.plat__logos img.is-tall { height: 76px; }
.plataformas .title__main { font-size: clamp(2.5rem, 5.2vw, 4.8rem); }
.plat__card--destacada { background: linear-gradient(140deg, #FFD21F, #FFCB00 45%, #F5A800); color: var(--negro); }

/* ---------- Contacto ---------- */
.contacto { background: var(--amarillo); color: var(--negro); padding: clamp(64px, 8vw, 112px) 0; }
.contacto .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contacto h2 { margin: 0; font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: .9; letter-spacing: -.025em; }
.contacto .lead { margin: 20px 0 0; font-size: clamp(1rem, 1.2vw, 1.12rem); max-width: 38ch; }
.datos { margin: 0; display: grid; }
.datos > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; border-top: 1px solid rgba(0, 0, 0, .18); align-items: baseline; }
.datos > div:last-child { border-bottom: 1px solid rgba(0, 0, 0, .18); }
.datos dt { font-size: .85rem; font-weight: 600; }
.datos dd { margin: 0; font-size: 1rem; line-height: 1.5; }
.datos a { text-decoration: none; font-weight: 600; }
.datos a:hover { text-decoration: underline; text-underline-offset: 4px; }
.datos .datos__mail { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.datos .datos__mail a { font-weight: 700; font-size: 1.15rem; word-break: break-all; }
.datos__quien { display: block; font-size: .88rem; opacity: .75; }
.copy { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(0, 0, 0, .4); background: transparent; color: var(--negro); border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.copy:hover { background: var(--negro); color: var(--amarillo); }
.copy svg { width: 13px; height: 13px; }
.contacto .btn { margin-top: 24px; }

/* ---------- Pie ---------- */
.footer { position: relative; background: #0A0A0A; padding: clamp(64px, 8vw, 112px) 0 0; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background-image: var(--grano); opacity: .12; pointer-events: none; }
.footer__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer .footer__claim { margin: 0; color: var(--blanco); font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: .95; max-width: 12ch; }
.footer h2 { margin: 0 0 14px; font-size: .9rem; font-weight: 700; color: var(--amarillo); }
.footer p, .footer ul { margin: 0; padding: 0; list-style: none; color: var(--suave); font-size: .95rem; line-height: 1.9; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--blanco); text-decoration: underline; text-underline-offset: 4px; }
.footer__logo { position: relative; margin-top: clamp(56px, 7vw, 104px); width: 100%; }
.footer__logo img { width: 100%; margin-bottom: clamp(20px, 2.4vw, 36px); }
.footer__legal { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 26px; font-size: .85rem; color: var(--suave); border-top: 1px solid rgba(255, 255, 255, .15); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .logos .is-cta { display: none; }
  .svc a { grid-template-columns: minmax(0, 1fr) 56px; }
  .svc p { grid-column: 1; }
  .svc__go { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 900px) {
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 100px var(--gutter) 40px; background: var(--negro); transform: translateY(-100%); transition: transform .4s var(--ease); }
  .nav__link { color: var(--blanco); font-size: 2rem; font-weight: 700; }
  .nav__cta { font-size: 1rem; min-height: 56px; background: var(--amarillo); color: var(--negro); margin-top: 14px; }
  .menu-btn { display: block; }
  .header.is-open { background: var(--negro); transform: none; }
  .header.is-open .nav { transform: none; }
  .header.is-open .logo-negro { display: none; }
  .header.is-open .logo-blanco { display: block; }
  .header.is-open .menu-btn span { background: var(--blanco); }
  .header.is-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .header.is-open .menu-btn span:nth-child(2) { opacity: 0; }
  .header.is-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .head { grid-template-columns: minmax(0, 1fr); }
  .somos .wrap { grid-template-columns: minmax(0, 1fr); }
  .somos__torus { width: 78vw; margin: 0 calc(var(--gutter) * -1 - 14vw) -8vw auto; order: -1; }
  .plat { grid-template-columns: minmax(0, 1fr); }
  .plat__card { min-height: 0; }
  .contacto .wrap { grid-template-columns: minmax(0, 1fr); }
  .datos > div { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .header__bar { height: 70px; }
  .header__logo img { height: 38px; }
  .hero__body { align-items: flex-end; padding-top: 0; padding-bottom: 40px; }
  .hero__torus-wrap { top: 58px; right: -24vw; width: 74vw; transform: none; }
  .hero h1 { font-size: clamp(2.2rem, 10.4vw, 5rem); }
  .hero__actions { flex-wrap: nowrap; gap: 10px; }
  .hero__actions .btn { flex: 1 1 0; padding: 0 14px; font-size: .8rem; }
  .ticker { height: 84px; }
  .ticker__label { display: none; }
  .ticker__track img { height: 34px; }

  .svc a { padding: 24px 0; gap: 10px 20px; }
  .svc__go { width: 44px; height: 44px; }
  .svc a::before { display: none; }
  .svc a:hover h3 { transform: none; }

  /* Clientes en móvil: tres filas que se deslizan de lado */
  .logos {
    grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(3, auto);
    grid-auto-columns: 42vw; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    border: 0; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-padding-inline: var(--gutter); gap: 10px;
  }
  .logos::-webkit-scrollbar { display: none; }
  .logos li { scroll-snap-align: start; border: 1px solid var(--linea); border-radius: 14px; }
  .logos img { max-height: 44px; }
  .rail__foot.mobile-only { display: flex; }
  .clientes .rail__bar { background: var(--linea); }

  .rail__nav { display: none; }
  .proyectos .rail { --card-w: 76vw; }
  .equipo .rail { --card-w: 64vw; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer__grid > :last-child { grid-column: 1 / -1; }
  .footer__grid > :last-child ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .footer p, .footer ul, .footer address { font-size: .88rem; }
  .footer__legal { flex-direction: column; gap: 6px; }
}

@media (hover: none) {
  .proyecto__ver { opacity: 1; transform: none; }
  .proyecto figure::after { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker__viewport { overflow-x: auto; }
}

/* ---------- Añadidos del tema de WordPress ---------- */
.proyecto p.proyecto__desc { margin: 4px 0 0; color: var(--suave); font-size: .92rem; line-height: 1.5; max-width: 40ch; }
.proyecto__ver span { white-space: nowrap; }

/* Páginas internas (políticas de privacidad, 404, etc.) */
.page-hero { background: var(--amarillo); color: var(--negro); padding: clamp(140px, 16vw, 200px) 0 clamp(56px, 7vw, 96px); border-bottom-left-radius: clamp(48px, 7vw, 120px); }
.page-hero h1 { margin: 0; font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: .9; letter-spacing: -.025em; max-width: 16ch; }
.page-body { background: var(--negro); padding: clamp(56px, 8vw, 112px) 0; }
.prose { max-width: 72ch; font-size: 1.05rem; line-height: 1.75; color: var(--suave); }
.prose h2, .prose h3 { color: var(--blanco); line-height: 1.2; margin: 2em 0 .6em; }
.prose h2 { font-size: 1.6rem; font-weight: 700; }
.prose h3 { font-size: 1.2rem; font-weight: 600; }
.prose a { color: var(--amarillo); }
.prose strong { color: var(--blanco); }
.prose ul, .prose ol { padding-left: 1.2em; }
.page-404 .page-hero p { margin: 24px 0 32px; font-size: 1.15rem; max-width: 40ch; }
.footer address { font-style: normal; color: var(--suave); font-size: .95rem; line-height: 1.9; }
.footer__redes { margin-top: 10px !important; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.rail__foot[hidden] { display: none !important; }
.proyecto:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 6px; border-top-right-radius: var(--corner); }

/* ======================================================================
 * Ajustes v3
 * ==================================================================== */
:root {
  --section-y: clamp(64px, 7.5vw, 112px);
  --inner: min(calc(100vw - 2 * var(--gutter)), var(--max));
}

/* Barra superior: nunca transparente, para que no se mezcle con el contenido */
.header { background: var(--amarillo); transition: transform .35s var(--ease), background-color .3s ease, box-shadow .3s ease; }
.header.is-scrolled:not(.is-solid) { box-shadow: 0 1px 0 rgba(0, 0, 0, .14); }
.header.is-solid { background: var(--negro); box-shadow: none; }

/* Títulos de sección compactos, en una línea */
.title { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .28em; line-height: .95; }
.title__main, .title__sub { display: inline; margin: 0; font-size: clamp(2rem, 3.8vw, 3.4rem); letter-spacing: -.02em; }
.title__sub { font-weight: 400; }
.plataformas .title__main { font-size: clamp(2rem, 3.8vw, 3.4rem); }
.head { margin-bottom: clamp(28px, 3.5vw, 48px); align-items: end; }
.head__nota { color: var(--grafito); font-size: 1rem; }
.band { padding: clamp(56px, 6vw, 88px) 0 clamp(40px, 4.5vw, 64px); margin-bottom: 8px; }

/* Servicios sin flecha: dos columnas, se iluminan al pasar el cursor */
.svc li {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px 48px; align-items: center;
  padding: clamp(22px, 2.4vw, 32px) 0; isolation: isolate;
}
.svc li::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(var(--gutter) * -.5); background: var(--amarillo); border-radius: 20px; transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease); }
.svc li:hover::before { transform: scaleY(1); }
.svc li:hover h3 { transform: translateX(12px); }
.svc h3 { font-size: clamp(1.3rem, 2.2vw, 2rem); }

/* Proyectos: tres tarjetas por vista en escritorio */
.proyecto h3 { margin-top: 16px; }

/* Equipo: fondo claro y cuatro personas a lo ancho */
.equipo { background: var(--gris); color: var(--negro); }
.equipo .intro { color: var(--grafito); }
.equipo .persona p { color: var(--grafito); }
.equipo .rail__bar { background: rgba(0, 0, 0, .14); }
.equipo .rail__count { color: var(--grafito); }
.equipo .rail__btn:hover:not(:disabled) { color: var(--negro); }

@media (min-width: 761px) {
  .proyectos .rail { --card-w: calc((var(--inner) - 48px) / 3); }
  .equipo .rail { --card-w: calc((var(--inner) - 72px) / 4); }
}

/* Plataformas: herramientas por categoría */
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.tools__grupo { border-top: 2px solid var(--amarillo); padding-top: 18px; }
.tools__grupo h3 { margin: 0 0 16px; font-size: 1rem; font-weight: 600; color: var(--blanco); }
.tools__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tool { height: 68px; display: flex; align-items: center; padding: 0 20px; background: #1C1C1C; border-radius: 14px; transition: background-color .2s ease; }
.tool:hover { background: #262626; }
.tool img { max-height: 30px; max-width: 75%; width: auto; height: auto; object-fit: contain; }
.tool span { font-weight: 600; font-size: 1.05rem; color: var(--blanco); }

/* Contacto: nombre primero, correo debajo */
.datos__nombre { display: block; font-size: 1.15rem; font-weight: 700; }
.datos__cargo { display: block; font-size: .88rem; opacity: .75; }
.datos .datos__correo { display: inline-block; margin-top: 6px; font-weight: 600; word-break: break-all; }

/* Pie sin logo grande */
.footer__grid { padding-bottom: clamp(40px, 5vw, 64px); }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .15); }

@media (max-width: 1080px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .svc li { grid-template-columns: minmax(0, 1fr); }
  .svc li::before { display: none; }
  .svc li:hover h3 { transform: none; }
  .tools { grid-template-columns: minmax(0, 1fr); }
  .tool { height: 58px; }
}
.tool img { height: 26px; max-height: none; max-width: 80%; }
@media (max-width: 760px) {
  .tools { gap: 28px; }
  .tools__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool { height: 54px; padding: 0 14px; }
  .tool img { height: 20px; }
  .tool span { font-size: .95rem; }
}
.head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (max-width: 900px) { .head { grid-template-columns: minmax(0, 1fr); } }
.tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .tools { grid-template-columns: minmax(0, 1fr); } .tools__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- v4: fotos del equipo, logos de clientes y plataformas ---------- */
/* Clientes: 8 por fila en escritorio, en gris y a color al pasar el cursor */
@media (min-width: 1081px) {
  .logos { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .logos li { aspect-ratio: 3 / 2; padding: 10px; }
}
.logos img { max-height: 76px; max-width: 100%; filter: grayscale(1); opacity: .78; transition: filter .3s ease, opacity .3s ease, transform .3s var(--ease); }
.logos li:hover img { filter: none; opacity: 1; }
@media (hover: none) { .logos img { filter: none; opacity: 1; } }
@media (max-width: 760px) { .logos img { max-height: 64px; } }

/* Marquesina del hero: logos en tono oscuro sobre el amarillo */
.ticker__track img { height: 68px; max-width: 140px; margin: 0 clamp(8px, 1.2vw, 20px); filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; }

/* Equipo: recortes sobre fondo negro, con un halo suave para separar la ropa oscura */
.equipo .persona figure { background: radial-gradient(90% 70% at 50% 35%, #2A2A2D 0%, #121214 60%, #0C0C0F 100%); }
.equipo .persona img { object-position: center top; }
.persona__iniciales { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: clamp(3rem, 6vw, 5rem); letter-spacing: -.03em; color: #3A3A3D; }

/* Plataformas: fichas blancas para que cada logo conserve sus colores */
.tool { background: #FFFFFF; justify-content: center; padding: 0 12px; }
.tool:hover { background: #F2F2F2; }
.tool img { height: 52px; max-width: 100%; }
.tool span { color: var(--negro); }
@media (max-width: 760px) { .tool img { height: 38px; } }

/* ---------- v5: clientes sin cuadrícula y a color; carruseles ---------- */
.logos { border: 0; row-gap: clamp(4px, 1vw, 12px); }
.logos li, .logos li:hover { border: 0; background: transparent; }
.logos img, .logos li:hover img { filter: none; opacity: 1; }
.logos li:hover img { transform: scale(1.07); }
.logos .is-cta { border-radius: 20px; margin: 6px 0 0 clamp(8px, 1vw, 16px); }
.logos .is-cta a { min-height: 96px; }
.clientes__cta { display: none; }
@media (max-width: 1080px) {
  .clientes__cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 18px 18px 18px 24px; background: var(--amarillo); color: var(--negro); border-radius: 20px; text-decoration: none; font-weight: 900; text-transform: uppercase; font-size: clamp(1.05rem, 4.2vw, 1.4rem); line-height: 1.1; }
  .clientes__cta .svc__go { flex: none; }
}
@media (max-width: 760px) {
  .logos li { border: 0; border-radius: 0; }
}

/* Carruseles: flechas flotantes sobre las imágenes y páginas en puntos */
.rail { position: relative; }
.proyectos .rail { --media-mid: calc(var(--card-w) * 1.25 / 2); }
.equipo .rail { --media-mid: calc(var(--card-w) * 264 / 230 / 2); }
.rail__arrow {
  position: absolute; z-index: 2; top: calc(var(--media-mid) + 4px); transform: translate(0, -50%);
  width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--amarillo); color: var(--negro); box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  transition: opacity .25s ease, transform .25s var(--ease), background-color .2s ease;
}
.rail__arrow svg { width: 22px; height: 22px; }
.rail__arrow--prev { left: -29px; }
.rail__arrow--next { right: -29px; }
.rail__arrow:hover { background: var(--blanco); }
.rail__arrow:active { transform: translate(0, -50%) scale(.94); }
.rail__arrow:disabled { opacity: 0; pointer-events: none; transform: translate(0, -50%) scale(.8); }
.rail:not(.has-overflow) .rail__arrow { display: none; }
.rail__foot { justify-content: flex-start; margin-top: clamp(20px, 2.4vw, 32px); }
.rail__dots { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rail__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .28); cursor: pointer; transition: width .35s var(--ease), background-color .25s ease; }
.rail__dot:hover { background: rgba(255, 255, 255, .55); }
.rail__dot.is-active { width: 36px; background: var(--amarillo); }
.equipo .rail__dot { background: rgba(0, 0, 0, .18); }
.equipo .rail__dot:hover { background: rgba(0, 0, 0, .35); }
.equipo .rail__dot.is-active { background: var(--negro); }
.equipo .rail__arrow:hover { background: var(--negro); color: var(--amarillo); }
@media (max-width: 1240px) {
  .rail__arrow--prev { left: 8px; }
  .rail__arrow--next { right: 8px; }
}
@media (max-width: 760px), (hover: none) {
  .rail__arrow { display: none !important; }
  .rail__dot { width: 8px; height: 8px; }
  .rail__dot.is-active { width: 26px; }
}
.rail__dots.is-bar { position: relative; width: min(100%, 260px); height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.rail__dots.is-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--amarillo); transition: transform .15s linear; }
.equipo .rail__dots.is-bar { background: rgba(0, 0, 0, .14); }
.equipo .rail__dots.is-bar i { background: var(--negro); }
@media (max-width: 760px) {
  .clientes .rail__foot { margin-top: 20px; }
  .clientes .rail__bar { flex: none; width: min(100%, 260px); height: 6px; border-radius: 99px; background: rgba(0, 0, 0, .1); }
  .clientes .rail__bar i { border-radius: 99px; background: var(--negro); }
}

/* v6: flechas debajo de las imágenes, junto a los puntos */
.rail__foot { justify-content: space-between; gap: 20px; }
.rail__nav { display: flex; gap: 10px; flex: none; }
.rail__arrow, .rail__arrow--prev, .rail__arrow--next {
  position: static; left: auto; right: auto; top: auto; transform: none;
  width: 52px; height: 52px; box-shadow: none;
}
.rail__arrow:active { transform: scale(.94); }
.rail__arrow:disabled { opacity: .3; pointer-events: none; transform: none; }
.equipo .rail__arrow:disabled { background: rgba(0, 0, 0, .12); color: var(--negro); }
.proyectos .rail__arrow:disabled { background: rgba(255, 255, 255, .15); color: var(--blanco); }
@media (max-width: 760px), (hover: none) { .rail__nav { display: none; } }

/* Menú móvil: oculto por completo cuando está cerrado (también en capturas y vistas previas de enlaces) */
@media (max-width: 900px) {
  .nav { visibility: hidden; transition: transform .4s var(--ease), visibility 0s linear .4s; }
  .header.is-open .nav { visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
}

/* v7: marquesina de clientes a color sobre franja blanca, fluida en celular */
.ticker { background: var(--blanco); border-top: 2px solid var(--negro); }
.ticker__label { background: var(--blanco); border-right: 1px solid var(--linea); color: var(--negro); }
.ticker__track { will-change: transform; animation-name: ticker3d; }
.ticker__track img { height: 60px; max-width: 132px; filter: none; mix-blend-mode: normal; margin: 0 clamp(10px, 1.4vw, 22px); }
@keyframes ticker3d { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.ticker:hover .ticker__track { animation-play-state: running; }
@media (hover: hover) and (pointer: fine) { .ticker:hover .ticker__track { animation-play-state: paused; } }
.ticker__viewport { touch-action: pan-y; }
@media (max-width: 760px) {
  .ticker__track img { height: 50px; max-width: 110px; margin: 0 10px; }
}
@media (prefers-reduced-motion: reduce) { .ticker__track { animation-duration: 240s !important; } }

/* v8: marquesina movida por JS para poder arrastrarla */
.ticker__track { animation: none !important; }
.ticker__viewport { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ticker__viewport.is-dragging { cursor: grabbing; }
.ticker__track img { pointer-events: none; }
