/* EKUBYTE — Web principal */
@font-face {
  font-family: "OPTIEdgar";
  src: url("../fonts/OPTIEdgarBold-Extended.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Eurostile Black";
  src: url("../fonts/EurostileExtendedBlack.ttf") format("truetype");
  font-display: swap;
}
:root {
  --teal: #00808f;
  --teal-deep: #005f66;
  --teal-light: #00a3b5;
  --teal-glow: rgba(0, 128, 143, 0.35);
  --teal-subtle: rgba(0, 128, 143, 0.08);
  --teal-line: rgba(0, 128, 143, 0.18);
  --black: #000;
  --ink: #0e1a2b;
  --muted: #6b7a8d;
  --canvas: #f8fafb;
  --surface: #fff;
  --border: rgba(14, 26, 43, 0.08);
  --display: "OPTIEdgar", "Eurostile Black", "Arial Black", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-weight: 500;
  color: var(--ink);
  background: var(--ink);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000; background: #0a1420;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  transition: transform 0.9s var(--ease);
}
.preloader.done { transform: translateY(-100%); pointer-events: none; }
.pre-heart { display: grid; grid-template-columns: repeat(5, 16px); grid-auto-rows: 16px; gap: 5px; }
.pre-heart i { background: var(--teal-light); opacity: 0; animation: byteIn 0.4s var(--ease) forwards; }
.pre-heart i.off { background: transparent; animation: none; }
@keyframes byteIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.pre-word { font-family: var(--display); color: #fff; letter-spacing: 0.3em; font-size: 0.9rem; opacity: 0; animation: fadeUp 0.7s var(--ease) 0.9s forwards; }

/* ---------- cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 2px; transform: translate(-50%, -50%);
}
.cursor-dot { width: 8px; height: 8px; background: var(--teal-light); }
.cursor-ring {
  width: 34px; height: 34px; border: 1px solid var(--teal-light);
  opacity: 0.55; transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.25s;
}
body.cursor-hover .cursor-ring { width: 56px; height: 56px; opacity: 1; }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  z-index: 1000;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), box-shadow 0.4s;
}
.nav.scrolled, .nav.nav-dark {
  background: rgba(14, 26, 43, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0, 163, 181, 0.15);
}
.nav-logo img { height: 30px; filter: brightness(0) invert(1); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.78); position: relative; padding: 0.4rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--teal-light); transition: width 0.35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--teal); color: #fff !important; padding: 0.65rem 1.2rem;
  border-radius: 9px; letter-spacing: 0.08em !important;
}
.nav-cta::after { display: none; }
.nav-juridico { color: #d8b45c !important; }
@media (max-width: 900px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: radial-gradient(120% 90% at 70% 10%, #102438 0%, var(--ink) 55%, #0a1420 100%);
  overflow: hidden;
}
#byteCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-split {
  position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  padding: 6rem clamp(1.2rem, 4vw, 3rem) 7rem; gap: 2rem;
}
@media (max-width: 980px) { .hero-split { grid-template-columns: 1fr; padding-bottom: 5rem; } }
.hero-inner { position: relative; z-index: 2; width: 100%; }
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--teal-light); margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.eyebrow .bytes { display: inline-flex; gap: 4px; }
.eyebrow .bytes i { width: 8px; height: 8px; background: var(--teal-light); display: block; }
.hero h1 {
  font-family: var(--display); color: #fff; font-weight: 700;
  font-size: clamp(2rem, 4.8vw, 4.1rem); line-height: 1.02;
  letter-spacing: -0.01em; text-wrap: balance; max-width: 16ch;
}
.hero h1 .accent { color: var(--teal-light); display: inline-block; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: riseIn 0.9s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes riseIn { to { transform: translateY(0); } }
.hero-lead {
  color: rgba(255, 255, 255, 0.72); font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.55; max-width: 46ch; margin-top: 1.8rem;
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.45s forwards;
}
.hero-ctas { display: flex; gap: 1rem; margin-top: 2.6rem; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.9s var(--ease) 0.6s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700;
  font-size: 0.95rem; padding: 0.95rem 1.7rem; border-radius: 9px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.3s;
  will-change: transform;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 14px 34px -14px var(--teal-glow); }
.btn-primary:hover { background: var(--teal-light); box-shadow: 0 18px 44px -12px var(--teal-glow); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; }
.btn-ghost:hover { border-color: var(--teal-light); color: var(--teal-light); }
.btn-line { border: 1px solid rgba(14, 26, 43, 0.18); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--teal); color: var(--teal); }
.section-dark .btn-line { border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.section-dark .btn-line:hover { border-color: var(--teal-light); color: var(--teal-light); }
/* ---------- voxel heart 3D ---------- */
.voxel-wrap {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: clamp(320px, 44vw, 560px); cursor: grab; touch-action: none; user-select: none;
  perspective: 1100px;
}
.voxel-wrap:active { cursor: grabbing; }
@media (max-width: 980px) { .voxel-wrap { min-height: 320px; } }
.voxel-scene { position: relative; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.voxel { position: absolute; transform-style: preserve-3d; }
.voxel .f {
  position: absolute; width: var(--vs); height: var(--vs);
  background: var(--vc); border: 1px solid rgba(255, 255, 255, 0.14);
  backface-visibility: hidden;
}
.voxel .f.front  { transform: translateZ(calc(var(--vs) / 2)); }
.voxel .f.back   { transform: rotateY(180deg) translateZ(calc(var(--vs) / 2)); }
.voxel .f.right  { transform: rotateY(90deg) translateZ(calc(var(--vs) / 2)); filter: brightness(0.72); }
.voxel .f.left   { transform: rotateY(-90deg) translateZ(calc(var(--vs) / 2)); filter: brightness(0.72); }
.voxel .f.top    { transform: rotateX(90deg) translateZ(calc(var(--vs) / 2)); filter: brightness(1.25); }
.voxel .f.bottom { transform: rotateX(-90deg) translateZ(calc(var(--vs) / 2)); filter: brightness(0.5); }
.voxel-hint {
  position: absolute; bottom: 0.4rem; color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; text-align: center;
  animation: hintPulse 2.6s var(--ease) infinite;
}
@keyframes hintPulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ---------- ghost marquee del hero ---------- */
.hero-ghost {
  position: absolute; bottom: 0; left: 0; right: 0; overflow: hidden; z-index: 1;
  pointer-events: none; line-height: 0.8;
}
.hero-ghost-track { display: flex; white-space: nowrap; width: max-content; animation: marquee 40s linear infinite; }
.hero-ghost span {
  font-family: var(--display); font-size: clamp(4rem, 11vw, 10rem); text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(0, 163, 181, 0.22);
  transform: translateY(0.18em); display: inline-block;
}

/* ---------- Byte 3D (mascota) ---------- */
.byte-float { transform-style: preserve-3d; animation: byteBob 3.6s ease-in-out infinite; }
@keyframes byteBob { 0%, 100% { transform: translateY(-10px); } 50% { transform: translateY(14px); } }
.b3 { position: absolute; transform-style: preserve-3d; }
.bf { position: absolute; left: 50%; top: 50%; backface-visibility: hidden; border-radius: 7px; border: 1px solid rgba(14, 26, 43, 0.07); }
.byte-screen {
  position: absolute; inset: 9px; background: #fdfefe; border: 4px solid #0d7c86;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.byte-pix { display: grid; grid-template-columns: repeat(7, 12px); grid-auto-rows: 12px; gap: 0; animation: byteBlink 4.5s steps(1) infinite; }
@keyframes byteBlink { 0%, 92%, 100% { transform: scaleY(1); } 94%, 97% { transform: scaleY(0.12); } }
.byte-pix i { background: #0d7c86; }
.byte-pix i.off { background: transparent; }
.byte-panel { position: absolute; inset: 12px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 8px; }
.byte-panel b { width: 52px; height: 54px; background: #0d7c86; border-radius: 7px; display: block; }
.byte-panel i { width: 40px; height: 7px; background: #14bbc4; border-radius: 4px; display: block; }
.antenna-tip { animation: tipGlow 2.2s ease-in-out infinite; }
@keyframes tipGlow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.5); } }
.byte-flames { pointer-events: none; }
.flame {
  position: absolute; width: 52px; height: 96px; top: 0;
  background: linear-gradient(180deg, #7cd6f5 0%, #2b86cb 45%, rgba(43, 134, 203, 0) 100%);
  clip-path: polygon(50% 0, 78% 14%, 66% 30%, 92% 42%, 72% 62%, 58% 100%, 50% 78%, 42% 100%, 28% 62%, 8% 42%, 34% 30%, 22% 14%);
  filter: drop-shadow(0 0 18px rgba(43, 134, 203, 0.8)); backface-visibility: visible;
  transform-origin: 50% 0; animation: flick 0.34s ease-in-out infinite alternate;
}
.flame::before { content: ""; position: absolute; inset: 4% 30% 30%; background: linear-gradient(#fff, rgba(255, 255, 255, 0)); clip-path: inherit; }
@keyframes flick { from { transform: translate(-50%, 0) rotateY(var(--fr, 0deg)) scaleY(0.85); } to { transform: translate(-50%, 0) rotateY(var(--fr, 0deg)) scaleY(1.1); } }
.wave-rot { transform-origin: 6px 2px; animation: byteWave 1.15s ease-in-out infinite; }
@keyframes byteWave { 0%, 100% { transform: rotateZ(-16deg); } 50% { transform: rotateZ(30deg); } }
.byte-shadow {
  position: absolute; bottom: 14%; width: 190px; height: 30px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 163, 181, 0.35), transparent);
  animation: shadowPulse 3.6s ease-in-out infinite;
}
@keyframes shadowPulse { 0%, 100% { transform: scale(1.05); opacity: 0.8; } 50% { transform: scale(0.82); opacity: 0.5; } }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5); font-size: 0.72rem; letter-spacing: 0.3em;
  text-transform: uppercase; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 44px; background: linear-gradient(var(--teal-light), transparent);
  animation: scrollPulse 1.8s var(--ease) infinite;
}
@keyframes scrollPulse { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- marquee ---------- */
.marquee { background: var(--teal); overflow: hidden; padding: 1.1rem 0; transform: rotate(-1.2deg) scale(1.02); }
.marquee-track { display: flex; gap: 3rem; white-space: nowrap; width: max-content; animation: marquee 26s linear infinite; }
.marquee span {
  font-family: var(--display); color: #fff; font-size: 1.15rem; letter-spacing: 0.06em;
  text-transform: uppercase; display: flex; align-items: center; gap: 3rem;
}
.marquee i { width: 10px; height: 10px; background: rgba(255, 255, 255, 0.85); display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections base ---------- */
section { position: relative; }
.section-light { background: var(--canvas); color: var(--ink); }
.section-dark { background: var(--ink); color: #fff; }
.wrap { max-width: 1400px; margin: 0 auto; padding: clamp(4rem, 10vw, 8rem) clamp(1.2rem, 4vw, 3rem); }
.section-tab {
  display: inline-block; background: var(--teal); color: #fff;
  font-family: var(--display); text-transform: uppercase; font-size: 0.95rem;
  letter-spacing: 0.1em; padding: 0.55rem 1.3rem; border-radius: 4px 4px 22px 4px;
  margin-bottom: 1.6rem;
}
h2.title {
  font-family: var(--display); text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1.02; text-wrap: balance;
}
.section-dark h2.title { color: #fff; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.6; max-width: 58ch; margin-top: 1.2rem; }
.section-dark .lead { color: rgba(255, 255, 255, 0.68); }

/* reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-top: 3rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.traits { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .traits { grid-template-columns: 1fr; } }
.trait {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 1.5rem; box-shadow: 0 1px 0 rgba(14,26,43,0.02), 0 18px 40px -28px rgba(14,26,43,0.22);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.trait:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(14, 26, 43, 0.4); }
.trait .num { font-family: var(--display); color: var(--teal); font-size: 0.85rem; letter-spacing: 0.12em; }
.trait h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.05rem; margin: 0.5rem 0 0.4rem; }
.trait p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.quote-card {
  background: linear-gradient(160deg, #016570, var(--teal-deep) 55%, #00424a);
  border-radius: 18px; padding: clamp(1.8rem, 3vw, 2.6rem); color: #fff; position: relative; overflow: hidden;
}
.quote-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 80% 0%, rgba(0, 163, 181, 0.35), transparent 70%);
}
.quote-card blockquote { position: relative; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.5; font-weight: 600; }
.quote-card figcaption { position: relative; margin-top: 1.4rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }
.quote-card figcaption b { color: #fff; display: block; font-size: 1rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3.5rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stat { border-top: 2px solid var(--teal); padding-top: 1.2rem; }
.stat .n { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4rem); color: var(--teal-deep); line-height: 1; }
.stat .l { color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; }

/* ---------- servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; perspective: 1200px; }
@media (max-width: 1000px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }
.svc {
  position: relative; background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 18px;
  padding: 2rem 1.7rem; overflow: hidden; transform-style: preserve-3d;
  transition: border-color 0.3s; will-change: transform;
}
.svc:hover { border-color: var(--teal-light); }
.svc .glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(300px circle at var(--gx, 50%) var(--gy, 50%), rgba(0, 163, 181, 0.22), transparent 60%);
  transition: opacity 0.3s;
}
.svc:hover .glare { opacity: 1; }
.svc .icon { display: inline-flex; gap: 4px; margin-bottom: 1.3rem; transform: translateZ(30px); }
.svc .icon i { width: 11px; height: 11px; background: var(--teal-light); display: block; }
.svc .icon i:nth-child(2) { background: var(--teal); }
.svc h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.06rem; letter-spacing: 0.02em; color: #fff; transform: translateZ(26px); }
.svc p { color: rgba(255, 255, 255, 0.62); font-size: 0.93rem; line-height: 1.6; margin-top: 0.7rem; transform: translateZ(18px); }
.svc .tagrow { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.2rem; transform: translateZ(14px); }
.svc .tagrow em {
  font-style: normal; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--teal-light); border: 1px solid rgba(0, 163, 181, 0.35);
  padding: 0.25rem 0.6rem; border-radius: 999px;
}

/* ---------- proceso (scrolltelling) ---------- */
.process { background: var(--canvas); }
.process-sticky { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.process-stage { height: 440vh; position: relative; }
.process-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 3rem);
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center; width: 100%;
}
@media (max-width: 900px) { .process-inner { grid-template-columns: 1fr; gap: 2rem; } }
.pstep { position: absolute; opacity: 0; transform: translateY(30px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); max-width: 44ch; }
.pstep.on { position: relative; opacity: 1; transform: none; }
.pstep .k { font-family: var(--display); color: var(--teal); letter-spacing: 0.16em; font-size: 0.9rem; text-transform: uppercase; }
.pstep h3 { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.6rem); margin: 0.7rem 0; line-height: 1.05; }
.pstep p { color: var(--muted); line-height: 1.6; }
.process-dots { display: flex; gap: 0.5rem; margin-top: 2rem; }
.process-dots i { width: 10px; height: 10px; background: rgba(14, 26, 43, 0.15); transition: background 0.3s, transform 0.3s; }
.process-dots i.on { background: var(--teal); transform: scale(1.25); }
/* browser mockup */
.mock {
  background: var(--surface); border-radius: 14px; border: 1px solid var(--border);
  box-shadow: 0 30px 60px -34px rgba(14, 26, 43, 0.4); overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
.mock-bar { display: flex; align-items: center; gap: 0.5rem; background: #eef2f4; padding: 0.6rem 0.9rem; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3dbe0; }
.mock-bar .url {
  flex: 1; background: #fff; border-radius: 6px; font-size: 0.68rem; color: var(--muted);
  padding: 0.3rem 0.7rem; font-family: ui-monospace, monospace;
}
.mock-view { position: relative; height: clamp(280px, 38vw, 430px); background: var(--canvas); }
.mock-layer { position: absolute; inset: 0; padding: 1.4rem; opacity: 0; transition: opacity 0.6s var(--ease); }
.mock-layer.on { opacity: 1; }
/* wireframe layer */
.wf { display: grid; gap: 0.8rem; }
.wf .row { border: 1.5px dashed rgba(14, 26, 43, 0.22); border-radius: 8px; position: relative; }
.wf .row::after { content: attr(data-l); position: absolute; top: 6px; left: 8px; font: 700 0.58rem ui-monospace, monospace; letter-spacing: 0.1em; color: rgba(14, 26, 43, 0.35); }
/* design layer */
.dz-hero { background: linear-gradient(140deg, var(--teal-deep), var(--teal)); border-radius: 10px; height: 42%; position: relative; overflow: hidden; margin-bottom: 0.8rem; }
.dz-hero::after { content: ""; position: absolute; right: -20px; top: -20px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 70%); }
.dz-hero b { position: absolute; left: 1rem; bottom: 1rem; color: #fff; font-family: var(--display); text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.04em; }
.dz-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; height: 34%; }
.dz-cards div { background: #fff; border: 1px solid var(--border); border-radius: 10px; position: relative; }
.dz-cards div::before { content: ""; position: absolute; top: 10px; left: 10px; width: 12px; height: 12px; background: var(--teal); }
.dz-cards div::after { content: ""; position: absolute; top: 32px; left: 10px; right: 10px; height: 6px; border-radius: 3px; background: rgba(14, 26, 43, 0.1); }
.dz-cta { margin-top: 0.8rem; height: 12%; background: var(--teal); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; }
/* code layer */
.code-layer { background: var(--ink); border-radius: 10px; height: 100%; padding: 1.1rem; font: 500 0.72rem/1.7 ui-monospace, "SF Mono", monospace; color: #9fb3c8; overflow: hidden; }
.code-layer .ln { white-space: pre; opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.3s; }
.mock-layer.on .code-layer .ln { opacity: 1; transform: none; }
.code-layer .c1 { color: var(--teal-light); }
.code-layer .c2 { color: #7ee0a3; }
.code-layer .c3 { color: #e0c07e; }
/* launch layer */
.launch-layer { display: flex; align-items: center; justify-content: center; height: 100%; flex-direction: column; gap: 1rem; }
.launch-layer .badge {
  background: var(--teal); color: #fff; font-family: var(--display); text-transform: uppercase;
  padding: 0.8rem 1.6rem; border-radius: 4px 4px 22px 4px; font-size: 1rem; letter-spacing: 0.08em;
  box-shadow: 0 20px 44px -14px var(--teal-glow);
}
.launch-layer .m { color: var(--muted); font-size: 0.85rem; font-family: ui-monospace, monospace; }
.launch-layer .metrics { display: flex; gap: 2rem; margin-top: 0.6rem; }
.launch-layer .metrics b { font-family: var(--display); color: var(--teal-deep); font-size: 1.5rem; display: block; text-align: center; }
.launch-layer .metrics span { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- proyectos (horizontal) ---------- */
.projects { background: var(--ink); }
.projects-stage { height: 320vh; position: relative; }
.projects-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.projects-head { max-width: 1400px; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 3rem); width: 100%; margin-bottom: 2.2rem; }
.ptrack { display: flex; gap: 1.6rem; padding: 0 clamp(1.2rem, 4vw, 3rem); will-change: transform; width: max-content; }
.pcard {
  width: clamp(300px, 34vw, 460px); flex-shrink: 0; background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 18px; overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.pcard:hover { border-color: var(--teal-light); transform: translateY(-8px); }
.pcard .shot { height: 210px; position: relative; overflow: hidden; }
.pcard .shot .ph {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(0, 128, 143, 0.16) 0 14px, rgba(0, 128, 143, 0.05) 14px 28px);
  display: flex; align-items: center; justify-content: center;
}
.pcard .shot .ph span { font: 700 0.66rem ui-monospace, monospace; letter-spacing: 0.16em; color: var(--teal-light); background: rgba(14,26,43,0.75); padding: 0.4rem 0.8rem; border-radius: 6px; }
.pcard .body { padding: 1.4rem 1.5rem 1.6rem; }
.pcard .cat { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-light); }
.pcard h3 { font-family: var(--display); text-transform: uppercase; color: #fff; font-size: 1.12rem; margin: 0.5rem 0 0.4rem; }
.pcard p { color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; line-height: 1.55; }
.pcard .dom { display: inline-block; margin-top: 1rem; font-size: 0.78rem; font-weight: 700; color: var(--teal-light); border-bottom: 1px solid var(--teal-line); padding-bottom: 2px; }
.pbar { height: 2px; background: rgba(255, 255, 255, 0.1); margin: 2.4rem clamp(1.2rem, 4vw, 3rem) 0; position: relative; }
.pbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--teal-light); }
.pcard-more {
  width: clamp(300px, 34vw, 460px); flex-shrink: 0; border-radius: 18px; overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.02);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 0.9rem; padding: 2rem; min-height: 366px; text-decoration: none;
  transition: border-color 0.3s, transform 0.4s var(--ease), background 0.3s;
}
.pcard-more:hover { border-color: var(--teal-light); background: rgba(0, 163, 181, 0.07); transform: translateY(-8px); }
.pcard-more span.arrow {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--teal-light);
  transition: border-color 0.3s, background 0.3s;
}
.pcard-more:hover span.arrow { border-color: var(--teal-light); background: rgba(0, 163, 181, 0.14); }
.pcard-more h3 { font-family: var(--display); text-transform: uppercase; color: #fff; font-size: 1.1rem; }
.pcard-more p { color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; max-width: 24ch; }
.page-top { padding-top: clamp(7rem, 13vw, 10rem) !important; }

/* ---------- convenios ---------- */
.convenios { background: var(--canvas); }
.conv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 3rem; }
@media (max-width: 860px) { .conv-grid { grid-template-columns: 1fr; } }
.conv {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 2rem; display: flex; flex-direction: column; gap: 0.8rem;
  box-shadow: 0 1px 0 rgba(14,26,43,0.02), 0 18px 40px -28px rgba(14,26,43,0.22);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.conv:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(14, 26, 43, 0.4); }
.conv .off { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); color: var(--teal); line-height: 1; }
.conv h3 { font-size: 1.05rem; font-weight: 800; }
.conv p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.conv .chip {
  align-self: flex-start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-deep); background: var(--teal-subtle);
  border: 1px solid var(--teal-line); padding: 0.35rem 0.8rem; border-radius: 999px;
}
.juridico-banner {
  margin-top: 3rem; border-radius: 18px; overflow: hidden; position: relative;
  background: linear-gradient(150deg, #0a1526, #14243c 60%, #0e1a2b);
  padding: clamp(2rem, 5vw, 3.5rem); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.juridico-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 80% at 85% 20%, rgba(200, 162, 76, 0.18), transparent 65%);
}
.juridico-banner .k { color: #d8b45c; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; }
.juridico-banner h3 { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.4rem); margin-top: 0.6rem; position: relative; }
.juridico-banner p { color: rgba(255, 255, 255, 0.65); margin-top: 0.7rem; max-width: 52ch; position: relative; }
.btn-gold { background: #c8a24c; color: #14243c; position: relative; }
.btn-gold:hover { background: #d8b45c; }

/* ---------- video slot ---------- */
.video-slot { position: relative; border-radius: 18px; overflow: hidden; margin-top: 3rem; aspect-ratio: 16 / 9; background: var(--ink); }
.video-slot video { width: 100%; height: 100%; object-fit: cover; }
.video-slot .vs-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, rgba(0, 128, 143, 0.14) 0 16px, rgba(0, 128, 143, 0.04) 16px 32px);
}
.video-slot .vs-ph span { font: 700 0.7rem ui-monospace, monospace; letter-spacing: 0.16em; color: var(--teal-light); background: rgba(14,26,43,0.8); padding: 0.5rem 1rem; border-radius: 6px; text-align: center; }

/* ---------- brand reel (animación de marca) ---------- */
.brand-reel {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 25% 20%, rgba(0, 163, 181, 0.16), transparent 60%),
    radial-gradient(70% 80% at 85% 90%, rgba(0, 95, 102, 0.22), transparent 60%),
    var(--ink);
}
.brand-reel svg { width: 100%; height: 100%; display: block; }
.reel-line { fill: none; stroke: var(--teal-line); stroke-width: 1.4; }
.reel-pulse {
  fill: none; stroke: var(--teal-light); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 16 120; stroke-dashoffset: 0; opacity: 0;
  animation: reelPulse 3.15s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes reelPulse {
  0% { stroke-dashoffset: 100; opacity: 0; }
  8% { opacity: 1; }
  38%, 100% { stroke-dashoffset: -40; }
  30% { opacity: 1; }
  40% { opacity: 0; }
}
.reel-node { fill: var(--teal-light); filter: drop-shadow(0 0 6px rgba(0, 163, 181, 0.9)); animation: reelNode 3.15s ease-in-out infinite; }
.reel-web path.reel-pulse[style*="--d:0s"] ~ .reel-node { animation-delay: 0s; }
@keyframes reelNode { 0%, 100% { opacity: 0.55; r: 4; } 50% { opacity: 1; r: 5.4; } }
.reel-ring {
  fill: none; stroke: var(--teal-light); stroke-width: 1.5; opacity: 0.6;
  stroke-dasharray: 30 70; transform-box: fill-box; transform-origin: center;
  animation: reelSpin 7s linear infinite;
}
@keyframes reelSpin { to { transform: rotate(360deg); } }
.reel-core {
  fill: var(--teal-deep); stroke: var(--teal-light); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center;
  animation: reelCore 3.15s ease-in-out infinite;
}
@keyframes reelCore { 0%, 100% { transform: scale(0.94); } 50% { transform: scale(1.05); } }
.reel-glyph {
  font-family: var(--display); font-size: 30px; fill: #fff; text-anchor: middle;
  dominant-baseline: middle; letter-spacing: 0.02em;
  animation: reelGlyph 3.15s ease-in-out infinite;
}
@keyframes reelGlyph { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; text-shadow: 0 0 18px rgba(0, 163, 181, 0.8); } }
.reel-sheen {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent 30%, rgba(0, 200, 220, 0.16) 48%, transparent 66%);
  background-size: 260% 100%; animation: reelSheen 6s ease-in-out infinite;
}
@keyframes reelSheen { 0% { background-position: 120% 0; } 100% { background-position: -20% 0; } }
.reel-caption {
  position: absolute; left: 1.4rem; bottom: 1.4rem; display: inline-flex; align-items: center; gap: 0.55rem;
  font: 700 0.68rem ui-monospace, monospace; letter-spacing: 0.14em; color: var(--teal-light);
  background: rgba(14, 26, 43, 0.75); padding: 0.5rem 0.9rem; border-radius: 999px; border: 1px solid var(--teal-line);
}
.reel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-light); animation: hintPulse 1.6s ease-in-out infinite; }

/* ---------- footer ---------- */
footer { background: #0a1420; color: rgba(255, 255, 255, 0.7); }
.footer-cta { text-align: center; padding: clamp(4rem, 9vw, 7rem) 1.5rem 3rem; }
.footer-cta h2 {
  font-family: var(--display); text-transform: uppercase; color: #fff;
  font-size: clamp(2rem, 5.4vw, 4.4rem); line-height: 1; letter-spacing: -0.01em;
}
.footer-cta h2 span { color: var(--teal-light); }
.footer-cta .btn { margin-top: 2.2rem; }
.footer-grid {
  max-width: 1400px; margin: 0 auto; padding: 2.5rem clamp(1.2rem, 4vw, 3rem) 2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid img { height: 26px; filter: brightness(0) invert(1); }
.footer-grid .contact { display: flex; gap: 1.6rem; font-size: 0.85rem; flex-wrap: wrap; }
.footer-grid .contact a:hover { color: var(--teal-light); }
.footer-bottom { text-align: center; padding: 1.2rem; font-size: 0.72rem; color: rgba(255, 255, 255, 0.35); letter-spacing: 0.08em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- shot placeholder (reemplaza <image-slot> del editor de diseño) ---------- */
.shot-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem;
  background: repeating-linear-gradient(135deg, rgba(0, 128, 143, 0.14) 0 14px, rgba(0, 128, 143, 0.05) 14px 28px);
}
.shot-ph span {
  font: 700 0.66rem ui-monospace, monospace; letter-spacing: 0.16em; color: var(--teal-light);
  background: rgba(14, 26, 43, 0.75); padding: 0.4rem 0.8rem; border-radius: 6px; text-transform: uppercase;
}
