/* CyberNext 2026 — capa de rediseño sobre site.css.
   Base Trilitech (casi negro y un solo color fuerte: el rojo de la X del logo), recorrido comercial de TechSpeed
   y tres técnicas vistas en Codrops («Wide», «Sticky Grid Scroll», partículas), escritas desde cero. */

:root {
  --bg: #0B0B0C;
  --surface: #141416;
  --accent: #FF3D1F;
  --cyan: var(--accent);      /* site.css usa --cyan como acento en todas partes */
  --warm: var(--accent);
  --line: rgba(243, 241, 236, .12);
}
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
::selection { color: #fff; }

/* botones rectos, rojos */
.btn { border-radius: 0; --b: var(--accent); background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-lg { background: #000; border-color: #000; color: #fff; }
.btn-lg:hover { background: #fff; border-color: #fff; color: #000; }
.kicker::before { width: 8px; height: 8px; }

/* lienzo de partículas */
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }

/* ---------- cabecera ---------- */
.home .hero .display { font-size: clamp(2.5rem, 1.1rem + 5.4vw, 6.8rem); max-width: 12.5em; letter-spacing: -.045em; }
.display em, .hero .display em { color: var(--accent); }
#hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
#hero-title .w > span { display: inline-block; }
.hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; max-width: 52rem; font-size: .875rem; }
.hero-meta li { align-items: flex-start; padding-top: 4px; }
.hero-meta li::before, .hero-meta li:nth-child(2)::before { content: "✓"; width: auto; height: auto; border-radius: 0; background: none; color: var(--accent); font-weight: 700; }
@media (max-width: 760px) { .hero-meta { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- capacidades («Wide») ---------- */
.wide { position: relative; }
.wide-stage { position: relative; height: 100vh; overflow: hidden; }
.wide-kicker { position: absolute; top: calc(var(--nav-h) + 24px); left: var(--gutter); z-index: 3; }
.wide-word { position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; translate: 0 -50%; font-size: clamp(3rem, 10.5vw, 13rem); line-height: .86; letter-spacing: -.06em; font-weight: 600; z-index: 1; pointer-events: none; transition: top 1.1s var(--ease), translate 1.1s var(--ease); }
.wide-word span { display: block; }
.wide-word span:last-child { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.wide.l1 .wide-word { top: 36%; text-align: right; }
.wide.l2 .wide-word { top: 100%; translate: 0 -112%; }
.cards { position: absolute; inset: 0; z-index: 2; }
.card { position: absolute; width: 18.5%; padding: 22px 22px 26px; background: rgba(20, 20, 22, .92); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); will-change: transform; }
.card .n { display: block; font-size: .75rem; font-weight: 600; color: var(--accent); letter-spacing: .1em; margin-bottom: 26px; }
.card h3 { font-size: 1.2rem; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.card p { font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.card:first-child { border-top: 3px solid var(--accent); }
@media (max-width: 1000px) {
  .wide-stage { height: auto; overflow: visible; padding: calc(var(--nav-h) + 40px) var(--gutter) 40px; }
  .wide-kicker { position: static; margin-bottom: 20px; }
  .wide-word { position: static; translate: none; font-size: clamp(3.2rem, 15vw, 7rem); margin-bottom: 36px; }
  .cards { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
  .card { position: static; width: auto; transform: none !important; }
}
.reduce .wide-stage { height: auto; overflow: visible; padding: calc(var(--nav-h) + 60px) var(--gutter) 60px; }
.reduce .wide-kicker { position: static; margin-bottom: 20px; }
.reduce .wide-word { position: static; translate: none; margin-bottom: 40px; }
.reduce .cards { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.reduce .card { position: static; width: auto; }

/* ---------- proyectos («Sticky Grid Scroll») ---------- */
.projects { padding-top: 0; }
.sg { position: relative; }
.sg-stage { position: relative; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.sg-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4vw; padding: 1.4vw; transform-origin: 50% 50%; }
.sg-grid .col { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 1.4vw; min-height: 0; }
/* una imagen de cada web: ventana de navegador, televisor o montaje, sobre el color de la marca */
.tile { position: relative; margin: 0; min-height: 0; overflow: hidden; background: var(--tc); container-type: size; }
.tile.full > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.tile.contain > img { object-fit: contain; object-position: 50% 50%; }
.tile .win { position: absolute; left: 7%; right: 7%; top: 13%; bottom: -2%; display: flex; flex-direction: column; border-radius: 10px 10px 0 0; overflow: hidden; background: #1c1f25; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -20px rgba(0, 0, 0, .7); }
.tile .bar, .m-web .bar { flex: none; display: flex; align-items: center; gap: 6px; height: clamp(16px, 6cqh, 26px); padding: 0 10px; background: #2a2e36; }
.tile .bar i, .m-web .bar i { width: 8px; height: 8px; border-radius: 50%; background: #5b616c; }
.tile .bar i:first-child, .m-web .bar i:first-child { background: #ff5f57; }
.tile .win img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top left; display: block; }
.tile .tv { position: absolute; left: 50%; top: 47%; translate: -50% -50%; width: min(84cqw, 132cqh); aspect-ratio: 16 / 10; border: solid #08090b; border-width: max(5px, 1.3cqw); border-bottom-width: max(8px, 2.2cqw); border-radius: 6px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 34px 60px -20px rgba(0, 0, 0, .8); }
.tile .tv::after { content: ""; position: absolute; left: 50%; top: 100%; translate: -50% max(8px, 2.2cqw); width: 30%; height: max(8px, 3.5cqh); background: linear-gradient(#202329, #0b0c0f); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.tile .tv img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
/* logos en las esquinas, cada uno con su propio movimiento */
.badge { position: absolute; z-index: 2; width: clamp(28px, min(19cqh, 22cqw), 60px); aspect-ratio: 1; border-radius: 24%; overflow: hidden; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .18); }
.badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge.free { border-radius: 50%; padding: 4%; background: radial-gradient(circle, #1f2a26, #0b0f0d); width: clamp(34px, min(26cqh, 30cqw), 78px); }
.badge.free img { object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55)); }
.badge.tl { top: 7%; left: 6%; } .badge.tr { top: 7%; right: 6%; }
.badge.bl { bottom: 7%; left: 6%; } .badge.br { bottom: 7%; right: 6%; }
@media (prefers-reduced-motion: no-preference) {
  .a-pulse { animation: b-pulse 2.6s ease-in-out infinite; }
  .a-bounce { animation: b-bounce 2.2s cubic-bezier(.3, 0, .3, 1) infinite; }
  .a-swing { transform-origin: 50% 0; animation: b-swing 3s ease-in-out infinite; }
  .a-flip { animation: b-flip 5s cubic-bezier(.7, 0, .3, 1) infinite; }
  .a-float { animation: b-float 4s ease-in-out infinite; }
  .a-spin { animation: b-spin 6s cubic-bezier(.7, 0, .3, 1) infinite; }
  .a-pop { animation: b-pop 3.4s ease-out infinite; }
  .a-orbit { animation: b-orbit 7s linear infinite; }
}
@keyframes b-pulse { 0%, 100% { scale: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 50% { scale: 1.07; box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }
@keyframes b-bounce { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 -26%; } 45% { translate: 0 0; } 52% { translate: 0 -8%; } }
@keyframes b-swing { 0%, 100% { rotate: -9deg; } 50% { rotate: 9deg; } }
@keyframes b-flip { 0%, 55% { transform: perspective(300px) rotateY(0); } 80%, 100% { transform: perspective(300px) rotateY(360deg); } }
@keyframes b-float { 0%, 100% { translate: 0 0; rotate: -4deg; } 50% { translate: 0 -14%; rotate: 4deg; } }
@keyframes b-spin { 0%, 65% { rotate: 0deg; } 90%, 100% { rotate: 360deg; } }
@keyframes b-pop { 0%, 70%, 100% { scale: 1; } 78% { scale: .82; } 86% { scale: 1.16; } 93% { scale: .97; } }
@keyframes b-orbit { from { transform: rotate(0deg) translateX(6px) rotate(0deg); } to { transform: rotate(360deg) translateX(6px) rotate(-360deg); } }
.sg-text { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; text-align: center; padding: 48px clamp(20px, 5vw, 64px); background: rgba(11, 11, 12, .92); border: 1px solid var(--line); max-width: min(92vw, 820px); }
.sg-text h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -.035em; font-weight: 500; }
.sg-text .lead { color: var(--ink-2); max-width: 36em; }
@media (max-width: 760px) {
  .sg-grid, .sg-grid .col { gap: 2vw; }
  .tile .win { left: 5%; right: 5%; top: 18%; }
  .sg-text { padding: 32px 20px; }
}
.reduce .sg-grid .tile { opacity: .45; }
.cases { padding-top: clamp(64px, 8vw, 120px); }
.case-meta .num { color: var(--accent); }

/* ---------- por qué CyberNext ---------- */
.why { position: relative; padding-block: clamp(90px, 10vw, 140px) 0; background: var(--surface); }
.why-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.why-head { display: grid; gap: 24px; justify-items: start; }
.why-head h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -.035em; font-weight: 500; }
.why-body { display: grid; gap: 14px; color: var(--ink-2); font-size: var(--fs-lead); max-width: 36em; }
.presence { color: var(--ink-2); font-size: .95rem; max-width: 36em; }
.presence b { color: var(--ink); font-weight: 600; }
.why-side .kicker { margin-bottom: 20px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.why-grid li { padding: 28px 24px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.why-grid h3 { color: var(--ink); font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; line-height: 1.2; }
.why-grid h3::before { content: "✓"; color: var(--accent); margin-right: 10px; }
.clients { margin-top: clamp(70px, 8vw, 110px); border-block: 1px solid var(--line); overflow: hidden; padding-block: 26px; }
.clients .track { display: flex; gap: 64px; width: max-content; animation: marquee 40s linear infinite; }
.clients li { font-size: clamp(1.2rem, 1rem + 1vw, 1.9rem); font-weight: 500; letter-spacing: -.02em; color: var(--ink-2); white-space: nowrap; }
.clients li:nth-child(odd) { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 960px) { .why-wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .clients .track { animation: none; flex-wrap: wrap; width: auto; padding-inline: var(--gutter); gap: 12px 40px; }
  .clients li[aria-hidden] { display: none; }
}

/* ---------- contacto: bloque rojo ---------- */
.final { min-height: auto; place-items: center; padding-block: clamp(110px, 14vw, 180px); background: var(--accent); color: #fff; }
.final .display em { color: #000; }
.final .lead { color: rgba(255, 255, 255, .88); }
.final-mail, .final-mail a { color: #fff; }
.final-mail a, .final .lead { text-shadow: none; }
.sg-text .btn::after { content: none; }

/* fichas de Ariappna y la Oca: tres pantallas reales en teléfonos, como Platti */
.m-ariappna::before { background: radial-gradient(circle at 50% 45%, rgba(233, 225, 210, .12), transparent 62%), linear-gradient(160deg, #1d2a24, #0e1512); }
.m-oca::before { background: radial-gradient(circle at 50% 45%, rgba(201, 161, 91, .16), transparent 62%), linear-gradient(160deg, #1a1712, #0b0b0c); }
.m-platti::before { background: radial-gradient(circle at 50% 45%, rgba(255, 138, 61, .14), transparent 62%), linear-gradient(160deg, #241815, #0b0b0c); }
