/* ═══════════════════════════════════════════════════════
   DESIGN SYSTEM — AMBIROS NEURAL FACTORY
   Dark · Futuristic · Enterprise · High-Contrast
══════════════════════════════════════════════════════ */
:root {
  --neon: #00FFB4;
  --cyan: #00C8FF;
  --amber: #FFA000;
  --purple: #B060FF;
  --red: #FF3860;
  --bg: #000000;
  --bg1: #03070F;
  --bg2: #060D1C;
  --bg3: #091526;
  --border: rgba(0, 255, 180, 0.14);
  --border2: rgba(0, 255, 180, 0.35);
  --text: #E8F4F0;
  --muted: #5A8070;
  --dim: #2A4038;
  --font-display: 'Bebas Neue', sans-serif;
  --font-ui: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  font-size: 1rem
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 400;
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ─────────────────────────────────── */
#cursor {
  position: fixed;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--neon);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform .1s, width .3s, height .3s, background .3s;
  mix-blend-mode: exclusion;
}

#cursor-ring {
  position: fixed;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(0, 255, 180, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: left .12s ease, top .12s ease, width .3s, height .3s, border-color .3s;
}

body:has(a:hover) #cursor {
  width: 1.25rem;
  height: 1.25rem;
  background: var(--cyan);
}

body:has(button:hover) #cursor {
  width: 1.25rem;
  height: 1.25rem;
}

/* ── NOISE & SCANLINES ─────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9990;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, .06) 2px, rgba(0, 0, 0, .06) 0.25rem);
  pointer-events: none;
  z-index: 9989;
}

/* ── GLOW CURSOR TRAIL ─────────────────────────────── */
#cursor-glow {
  position: fixed;
  width: 25rem;
  height: 25rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 180, .04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9988;
  transform: translate(-50%, -50%);
  transition: left .08s, top .08s;
}

/* ── NAV ───────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.375rem;
  padding: 0 3.5rem;
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: background .4s, border-color .4s;
}

#nav.scrolled {
  background: rgba(0, 0, 0, .95);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo-img {
  width: 2.375rem;
  height: 2.375rem;
  object-fit: contain;
  filter: drop-shadow(0 0 0.625rem rgba(0, 255, 180, .6));
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 0.5rem rgba(0, 255, 180, .5));
  }

  50% {
    filter: drop-shadow(0 0 1.25rem rgba(0, 255, 180, .9));
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .08em;
  color: #fff;
}

.brand-name span {
  color: var(--neon);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: .52rem;
  color: var(--neon);
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-top: 2px;
  opacity: .8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: rgba(232, 244, 240, .62);
  text-decoration: none;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: color .3s;
  position: relative;
}

.nav-links a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 1px;
  background: var(--neon);
  transition: width .3s cubic-bezier(.25, .46, .45, .94);
}

.nav-links a:hover {
  color: var(--neon);
}

.nav-links a:hover::before {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--bg) !important;
  background: var(--neon);
  padding: 0.625rem 1.5rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .3s !important;
  box-shadow: 0 0 1.5625rem rgba(0, 255, 180, .4);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 0.5rem) 100%, 0% 100%);
}

.nav-cta:hover {
  background: #fff !important;
  box-shadow: 0 0 2.5rem rgba(255, 255, 255, .3) !important;
}

.nav-cta::before {
  display: none !important;
}

/* ── HERO SLIDER ───────────────────────────────────── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-top: 0;
}

.slide-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0s;
}

.slide.active {
  opacity: 1;
  pointer-events: all;
}

.slide.prev {
  opacity: 0;
}

.slide-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slide-img-wrap video,
.slide-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 8s ease-out;
  filter: brightness(.75) saturate(1.3);
}

.slide.active .slide-img-wrap img {
  transform: scale(1.0);
}

/* Glitch transition layer */
.glitch-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(135deg, rgba(0, 255, 180, .04) 0%, transparent 60%);
}

/* Clip-path sliding effect */
.slide-clip {
  position: absolute;
  inset: 0;
  z-index: 3;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 1.2s cubic-bezier(.77, 0, .175, 1);
}

.slide-clip-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5rem 6.25rem;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .3) 50%, transparent 100%),
    linear-gradient(to right, rgba(0, 0, 0, .6) 0%, transparent 60%);
}

/* Slide text animations */
.s-tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--neon);
  letter-spacing: .35em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity .6s .3s, transform .6s .3s;
}

.slide.active .s-tag {
  opacity: 1;
  transform: translateX(0);
}

.s-tag::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--neon);
}

.s-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1;
  letter-spacing: .03em;
  max-width: 51.25rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s .2s, transform .8s .2s;
}

.slide.active .s-title {
  opacity: 1;
  transform: translateY(0);
}

.s-title .accent {
  color: var(--neon);
}

.s-desc {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(232, 244, 240, .88);
  max-width: 32.5rem;
  line-height: 1.7;
  margin-top: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s .5s, transform .7s .5s;
}

.slide.active .s-desc {
  opacity: 1;
  transform: translateY(0);
}

.s-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--neon);
  padding: 0.875rem 2rem;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 0.625rem) 100%, 0% 100%);
  box-shadow: 0 0 1.875rem rgba(0, 255, 180, .5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s .7s, transform .7s .7s, background .3s, box-shadow .3s;
}

.slide.active .s-cta {
  opacity: 1;
  transform: translateY(0);
}

.s-cta:hover {
  background: #fff;
  box-shadow: 0 0 2.5rem rgba(255, 255, 255, .4);
}

.s-cta-arrow {
  font-size: 1.2rem;
  transition: transform .3s;
}

.s-cta:hover .s-cta-arrow {
  transform: translateX(6px);
}

/* Progress bar */
#slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 2px;
  background: rgba(255, 255, 255, .08);
}

#slider-progress-bar {
  display: none;
  height: 100%;
  background: var(--neon);
  width: 0%;
  box-shadow: 0 0 0.5rem var(--neon);
  transition: width .05s linear;
}

/* Slide controls */
#slide-controls {
  position: absolute;
  bottom: 2.5rem;
  right: 5rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sdot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  cursor: pointer;
  transition: all .3s;
  border: none;
}

.sdot.on {
  width: 2rem;
  border-radius: 0.1875rem;
  background: var(--neon);
}

#slide-prev,
#slide-next {
  position: absolute;
  top: 50%;
  z-index: 20;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--border2);
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(12px);
  color: var(--neon);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s;
}

#slide-prev {
  left: 2rem;
  transform: translateY(-50%);
}

#slide-next {
  right: 2rem;
  transform: translateY(-50%);
}

#slide-prev:hover,
#slide-next:hover {
  background: var(--neon);
  color: var(--bg);
  box-shadow: 0 0 1.25rem rgba(0, 255, 180, .5);
}

/* Slide counter */
#slide-counter {
  position: absolute;
  top: 50%;
  left: 2.5rem;
  transform: translateY(-50%) rotate(-90deg);
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--muted);
  letter-spacing: .2em;
  z-index: 20;
  transform-origin: center;
}

/* ── STATS STRIP ───────────────────────────────────── */
#stats-strip {
  display: flex;
  align-items: stretch;
  background: var(--bg1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1rem;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background .3s;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}

.stat-item:hover::before {
  transform: scaleX(1);
}

.stat-item:hover {
  background: rgba(0, 255, 180, .03);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--neon);
  line-height: 1;
  text-shadow: 0 0 1.25rem rgba(0, 255, 180, .4);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: .58rem;
  color: var(--muted);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: 0.375rem;
  text-align: center;
}

/* ── SECTION BASE ──────────────────────────────────── */
section {
  padding: 7.5rem 5rem;
}

.s-eyebrow {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--neon);
  letter-spacing: .35em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.s-eyebrow::before {
  content: '';
  width: 1.875rem;
  height: 1px;
  background: var(--neon);
}

.s-h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.0;
  letter-spacing: .04em;
  margin-bottom: 1.5rem;
}

.s-h2 em {
  font-style: normal;
  color: var(--neon);
}

.s-lead {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(232, 244, 240, .82);
  line-height: 1.85;
  max-width: 35rem;
}

/* Animate on scroll */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .8s, transform .8s;
}

.reveal-left.in {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .8s, transform .8s;
}

.reveal-right.in {
  opacity: 1;
  transform: translateX(0);
}

/* ── ABOUT ─────────────────────────────────────────── */
#about {
  background: var(--bg1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6.25rem;
  align-items: center;
}

.about-visual {
  position: relative;
  width: 100%;
  border: 1px solid var(--border);
  overflow: hidden;
}

.about-visual-video,
.about-visual img {
  width: 100%;
  height: auto;
  display: block;
  opacity: .9;
}

.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 180, .08) 0%, transparent 60%);
}

.about-corner {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border-color: var(--neon);
  border-style: solid;
  border-width: 0;
}

.about-corner.tl {
  top: 0.625rem;
  left: 0.625rem;
  border-top-width: 2px;
  border-left-width: 2px;
}

.about-corner.tr {
  top: 0.625rem;
  right: 0.625rem;
  border-top-width: 2px;
  border-right-width: 2px;
}

.about-corner.bl {
  bottom: 0.625rem;
  left: 0.625rem;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.about-corner.br {
  bottom: 0.625rem;
  right: 0.625rem;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.about-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  background: rgba(0, 0, 0, .85);
  border: 1px solid var(--border2);
  padding: 0.75rem 1.125rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--neon);
  letter-spacing: .15em;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 2.25rem;
}

.pill {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--neon);
  border: 1px solid var(--border2);
  padding: 0.375rem 0.875rem;
  letter-spacing: .1em;
  background: rgba(0, 255, 180, .06);
  transition: all .3s;
}

.pill:hover {
  background: rgba(0, 255, 180, .15);
  transform: translateY(-2px);
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 2rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: .95rem;
  font-weight: 400;
  color: rgba(232, 244, 240, .84);
  line-height: 1.5;
}

.check-list li::before {
  content: '►';
  color: var(--neon);
  font-size: .6rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* ── SERVICES ──────────────────────────────────────── */
#services {
  background: var(--bg);
}

.services-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.svc-card {
  background: var(--bg1);
  position: relative;
  overflow: hidden;
  min-height: 27.5rem;
  cursor: pointer;
  transition: transform .4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.svc-card:hover {
  transform: translateY(-8px);
  z-index: 2;
}

.svc-card-img {
  position: absolute;
  inset: 0;
}

.svc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.5) saturate(1.2);
  transition: filter .5s, transform .6s;
}

.svc-card:hover .svc-card-img img {
  filter: brightness(.7) saturate(1.5);
  transform: scale(1.06);
}

.svc-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .2) 70%, transparent 100%);
}

.svc-card-top {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border2);
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--neon);
  letter-spacing: .1em;
}

.svc-card-body {
  position: relative;
  z-index: 2;
  padding: 2rem;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-card:hover .svc-card-body {
  transform: translateY(-0.5rem);
}

.svc-card-num {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--neon);
  letter-spacing: .3em;
  margin-bottom: 0.625rem;
}

.svc-card-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: .05em;
  margin-bottom: 0.625rem;
}

/* Contenedor de reveal — CSS grid trick para animar de 0 a altura natural */
.svc-card-reveal {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-card-reveal > div {
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.28s ease 0.12s;
}

.svc-card:hover .svc-card-reveal {
  grid-template-rows: 1fr;
}

.svc-card:hover .svc-card-reveal > div {
  opacity: 1;
}

.svc-card-desc {
  font-size: .88rem;
  font-weight: 400;
  color: rgba(232, 244, 240, .82);
  line-height: 1.7;
  padding-top: 0.625rem;
}

.svc-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--neon);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 0.875rem;
}

.svc-card-border {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid transparent;
  transition: border-color .4s;
  z-index: 3;
}

.svc-card:hover .svc-card-border {
  border-color: var(--border2);
}

/* ── PROCESS ───────────────────────────────────────── */
#process {
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}

#process::before {
  content: '';
  position: absolute;
  top: -12.5rem;
  right: -12.5rem;
  width: 37.5rem;
  height: 37.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 180, .04) 0%, transparent 70%);
  pointer-events: none;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 4.5rem;
}

.process-step {
  background: var(--bg2);
  padding: 3rem 2.25rem;
  position: relative;
  overflow: hidden;
  transition: background .3s, transform .3s;
}

.process-step:hover {
  background: rgba(0, 255, 180, .025);
  transform: translateY(-4px);
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  transform: scaleX(0);
  transition: transform .5s;
}

.process-step:hover::before {
  transform: scaleX(1);
}

.ps-num {
  font-family: var(--font-display);
  font-size: 6rem;
  color: rgba(0, 255, 180, .07);
  line-height: 1;
  position: relative;
  margin-bottom: 1.75rem;
}

.ps-num::after {
  content: attr(data-n);
  position: absolute;
  top: 0.375rem;
  left: 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--neon);
  font-weight: 700;
}

.ps-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: .06em;
  margin-bottom: 0.875rem;
}

.ps-desc {
  font-size: .88rem;
  font-weight: 400;
  color: rgba(232, 244, 240, .80);
  line-height: 1.75;
}

/* ── TECH MARQUEE ──────────────────────────────────── */
#tech {
  background: var(--bg);
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee-wrap {
  display: flex;
  gap: 0;
  overflow: hidden;
  mask: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 4.5rem;
  flex-shrink: 0;
  animation: marquee 28s linear infinite;
}

.marquee-track:last-child {
  animation-direction: reverse;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.tech-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .1em;
  white-space: nowrap;
  text-transform: uppercase;
}

/* ── TRUST / TESTIMONIALS ──────────────────────────── */
#trust {
  background: var(--bg1);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 4rem;
}

.trust-card {
  background: var(--bg1);
  padding: 2.75rem 2.25rem;
  position: relative;
  transition: background .3s, transform .3s;
}

.trust-card:hover {
  background: rgba(0, 255, 180, .025);
  transform: translateY(-4px);
}

.trust-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.star {
  color: var(--amber);
  font-size: .9rem;
}

.trust-text {
  font-size: .95rem;
  font-weight: 400;
  color: rgba(232, 244, 240, .82);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.trust-text::before {
  content: '"';
  color: var(--neon);
  font-size: 1.8rem;
  line-height: 0;
  vertical-align: -.4em;
  margin-right: 0.25rem;
}

.trust-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.trust-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--neon);
  flex-shrink: 0;
}

.trust-name {
  font-weight: 600;
  font-size: .95rem;
}

.trust-role {
  font-family: var(--font-mono);
  font-size: .58rem;
  color: var(--muted);
  letter-spacing: .15em;
}

/* ── FAQ ──────────────────────────────────────────── */
#faq {
  background: var(--bg);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin-top: 4rem;
}

.faq-item {
  background: var(--bg1);
  border-bottom: 1px solid var(--border);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 2.25rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: .04em;
  transition: color .3s;
  gap: 1rem;
}

.faq-q:hover {
  color: var(--neon);
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--neon);
  flex-shrink: 0;
  transition: transform .4s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.25, .46, .45, .94), padding .4s;
  font-size: .9rem;
  font-weight: 400;
  color: rgba(232, 244, 240, .80);
  line-height: 1.8;
  padding: 0 2.25rem;
}

.faq-item.open .faq-a {
  max-height: 12.5rem;
  padding: 0 2.25rem 1.75rem;
}

/* ── CONTACT ──────────────────────────────────────── */
#contact {
  background: var(--bg1);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info-block {
  padding-top: 0.5rem;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 3rem;
}

.ci-row {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: var(--bg2);
  transition: border-color .3s;
}

.ci-row:hover {
  border-color: var(--border2);
}

.ci-icon {
  width: 2.625rem;
  height: 2.625rem;
  flex-shrink: 0;
  border: 1px solid var(--border2);
  background: rgba(0, 255, 180, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon);
  font-size: 1.1rem;
}

.ci-lbl {
  font-family: var(--font-mono);
  font-size: .58rem;
  color: var(--neon);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 0.3125rem;
}

.ci-val {
  font-size: .95rem;
  font-weight: 400;
  color: rgba(232, 244, 240, .84);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
}

.cf-field label {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--neon);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.cf-field input,
.cf-field textarea,
.cf-field select {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.875rem 1.125rem;
  font-family: var(--font-ui);
  font-size: .95rem;
  font-weight: 400;
  outline: none;
  resize: none;
  -webkit-appearance: none;
  transition: border-color .3s, box-shadow .3s;
}

.cf-field input:focus,
.cf-field textarea:focus,
.cf-field select:focus {
  border-color: var(--neon);
  box-shadow: 0 0 1.125rem rgba(0, 255, 180, .12);
}

.cf-field textarea {
  height: 8.125rem;
}

.cf-field select option {
  background: var(--bg2);
}

.cf-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--neon);
  color: var(--bg);
  border: none;
  padding: 1rem 2.5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 0.625rem) 100%, 0% 100%);
  box-shadow: 0 0 1.875rem rgba(0, 255, 180, .4);
  align-self: flex-start;
}

.cf-submit:hover {
  background: #fff;
  box-shadow: 0 0 2.5rem rgba(255, 255, 255, .3);
}

.cf-submit-arrow {
  transition: transform .3s;
}

.cf-submit:hover .cf-submit-arrow {
  transform: translateX(5px);
}

/* ── FOOTER ───────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3.75rem;
  padding: 4.5rem 5rem 3.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-about p {
  font-size: .88rem;
  font-weight: 400;
  color: rgba(232, 244, 240, .72);
  line-height: 1.75;
  margin-top: 1.125rem;
  max-width: 17.5rem;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--neon);
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 1.375rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8125rem;
}

.footer-col a {
  font-size: .88rem;
  font-weight: 400;
  color: rgba(232, 244, 240, .68);
  text-decoration: none;
  transition: color .3s;
}

.footer-col a:hover {
  color: var(--neon);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5rem;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--dim);
  letter-spacing: .12em;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 2.375rem;
  height: 2.375rem;
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .8rem;
  text-decoration: none;
  transition: all .3s;
}

.social-btn:hover {
  border-color: var(--border2);
  color: var(--neon);
  box-shadow: 0 0 0.875rem rgba(0, 255, 180, .2);
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media(max-width:68.75rem) {
  #nav {
    padding: 0 1.75rem;
  }

  section {
    padding: 5rem 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  #about {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  #contact {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 3.5rem 2rem 2.5rem;
  }

  .footer-bottom {
    padding: 1.25rem 2rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width:48rem) {
  .nav-links {
    display: none;
  }

  section {
    padding: 4rem 1.25rem;
  }

  .s-title {
    font-size: 2.5rem !important;
  }

  .slide-clip-content {
    padding: 0 1.75rem 5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .cf-row {
    grid-template-columns: 1fr;
  }

  #stats-strip {
    flex-wrap: wrap;
  }

  .stat-item {
    min-width: 50%;
  }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .85);
}

.modal-content {
  position: relative;
  max-width: 37.5rem;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  margin: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg1);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--neon);
}

.modal-body h3 {
  margin: 1.25rem 0 0.625rem;
  color: var(--neon);
  font-size: 1rem;
}

.modal-body p, .modal-body li {
  color: var(--text-dim);
  font-size: .9rem;
  line-height: 1.6;
}

.modal-body ul {
  padding-left: 1.25rem;
}
/* ═══════════════════════════════════════════════════════
   MÓVIL (<480px) - Mobile First Styles (Overrides for Agents & Structure)
═══════════════════════════════════════════════════════ */
@media (max-width: 29.99rem) {
  /* AGENT: Toast Notifications */
  .toast {
    max-width: calc(100vw - 2rem) !important;
    right: 1rem !important;
    left: 1rem !important;
    top: 1rem !important;
    font-size: 0.8rem !important;
  }
  
  /* AGENT: Install PWA Button */
  .pwa-install-btn {
    bottom: 5rem !important;
    right: 1rem !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
  }

  /* AGENT: Accessibility Contrast Button */
  .accessibility-toggle {
    width: 2.5rem !important;
    height: 2.5rem !important;
    bottom: 1rem !important;
    right: 1rem !important;
    font-size: 1rem !important;
  }

  /* AGENT: Back to Top Button */
  .back-to-top {
    width: 2.5rem !important;
    height: 2.5rem !important;
    bottom: 1rem !important;
    left: 1rem !important;
    font-size: 1.2rem !important;
  }

  /* GRID: Footer Layout fix */
  .footer-main {
    grid-template-columns: 1fr;
  }

  /* GRID: Process Grid fix */
  .process-grid {
    grid-template-columns: 1fr;
  }

  /* NAV: Hide desktop links on small mobile */
  .nav-links {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════
   TABLET (481px - 768px)
═══════════════════════════════════════════════════════ */
@media (min-width: 30rem) and (max-width: 48rem) {
  .toast {
    max-width: 20rem !important;
  }
}

/* ═══════════════════════════════════════════════════════
   DESKTOP (>769px)
═══════════════════════════════════════════════════════ */
@media (min-width: 48.0625rem) {
  /* Desktop styles are mostly base styles, but we can ensure layout here */
}

/* ═══════════════════════════════════════════════════════
   MOBILE MENU TOGGLE (HAMBURGER)
═══════════════════════════════════════════════════════ */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 5001;
}

.hamburger {
  display: block;
  width: 1.8rem;
  height: 0.15rem;
  background: var(--neon);
  position: relative;
  transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 1.8rem;
  height: 0.15rem;
  background: var(--neon);
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), top 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.hamburger::before { top: -0.5rem; }
.hamburger::after { top: 0.5rem; }

.menu-toggle.open .hamburger {
  background: transparent;
}

.menu-toggle.open .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.open .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 48rem) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    display: flex !important; /* Override previous display: none */
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(24px);
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 5000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1.5rem;
  }
  
  .nav-cta {
    font-size: 1.2rem;
    padding: 1rem 2rem;
  }
}
