/* ============ ALMADA SINES — Web3 futurista minimalista ============ */

:root {
  --bg: #05060a;
  --bg-2: #0a0c14;
  --text: #f2f4f8;
  --text-dim: rgba(242, 244, 248, 0.55);
  --accent-1: #56f0ff;
  --accent-2: #7c5cff;
  --accent-3: #ff5ce1;
  --grad: linear-gradient(100deg, var(--accent-1), var(--accent-2) 50%, var(--accent-3));
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.09);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --size-hero: clamp(3rem, 10vw, 8.5rem);
  --size-title: clamp(2rem, 5.5vw, 4.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-2); color: #fff; }

em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Fondo global ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

.bg-noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.35;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

main, .footer { position: relative; z-index: 2; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
}
.preloader__inner { display: flex; align-items: baseline; gap: 1.5rem; }
.preloader__logo { font-family: var(--font-display); font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; }
.preloader__counter { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-dim); min-width: 3ch; }
.preloader__bar { width: min(280px, 60vw); height: 1px; background: rgba(255,255,255,0.1); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0%; background: var(--grad); }

/* ---------- Cursor ---------- */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 99; border-radius: 50%; }
.cursor { width: 8px; height: 8px; background: var(--accent-1); transform: translate(-50%, -50%); mix-blend-mode: difference; }
.cursor-ring {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.35);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
}
.cursor-ring.is-hover { width: 64px; height: 64px; border-color: var(--accent-1); }
@media (hover: none) { .cursor, .cursor-ring { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.5rem, 5vw, 4rem);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}
.nav.is-scrolled {
  background: rgba(5, 6, 10, 0.6);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.nav__logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.02em; color: var(--text); text-decoration: none;
}
.nav__logo span { color: var(--text-dim); font-weight: 400; margin-left: 0.35em; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); }
.nav__links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.88rem; font-weight: 400;
  transition: color 0.3s;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  border: 1px solid var(--glass-border); border-radius: 100px;
  padding: 0.55em 1.3em; color: var(--text) !important;
  background: var(--glass);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav__cta:hover { border-color: var(--accent-1); box-shadow: 0 0 24px rgba(86, 240, 255, 0.25); }

/* Hamburguesa */
.nav__burger {
  display: none; position: relative; z-index: 61;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glass-border);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav__burger span {
  display: block; width: 18px; height: 1.5px; background: var(--text);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.nav__burger.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(5, 6, 10, 0.92);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 2rem 3rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu__links a {
  font-family: var(--font-display); font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 600; letter-spacing: -0.02em; color: var(--text);
  text-decoration: none; padding: 0.35em 0; line-height: 1.1;
}
.mobile-menu__links a:active { color: var(--accent-1); }
.mobile-menu__cta {
  margin-top: 1.2rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
.mobile-menu__footer {
  position: absolute; bottom: 2rem; left: 2rem; right: 2rem;
  font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim);
}
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  padding: 8rem clamp(1.5rem, 5vw, 4rem) 6rem;
}
.hero__orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.hero__orb--1 { width: 480px; height: 480px; background: var(--accent-2); top: -10%; left: -8%; }
.hero__orb--2 { width: 420px; height: 420px; background: var(--accent-1); bottom: -15%; right: -6%; opacity: 0.32; }
.hero__orb--3 { width: 300px; height: 300px; background: var(--accent-3); top: 30%; right: 18%; opacity: 0.2; }

.hero__content { position: relative; z-index: 2; max-width: 1100px; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 0.82rem; color: var(--text-dim);
  border: 1px solid var(--glass-border); border-radius: 100px;
  padding: 0.5em 1.2em; margin-bottom: 2.2rem;
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-1); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(86, 240, 255, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(86, 240, 255, 0); }
}

.hero__title {
  font-family: var(--font-display); font-size: var(--size-hero);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.04em;
  margin-bottom: 2rem;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; }
.line--accent > span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__title .char { display: inline-block; white-space: pre; }

.hero__sub { font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--text-dim); line-height: 1.7; margin-bottom: 3rem; }

.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 500;
  text-decoration: none; border-radius: 100px; padding: 1em 2.2em;
  display: inline-block; position: relative;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
  will-change: transform;
}
.btn--primary {
  color: #05060a; background: var(--grad);
  box-shadow: 0 8px 40px rgba(124, 92, 255, 0.35);
}
.btn--primary:hover { box-shadow: 0 12px 56px rgba(86, 240, 255, 0.45); }
.btn--ghost { color: var(--text); border: 1px solid var(--glass-border); background: var(--glass); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--accent-1); }

.hero__scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-dim);
}
.hero__scroll-line { width: 1px; height: 48px; background: rgba(255,255,255,0.15); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--grad); animation: scrollLine 2s infinite var(--ease-out);
}
@keyframes scrollLine { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
  padding: 1.4rem 0; background: rgba(255,255,255,0.015);
}
.marquee__track { display: inline-flex; align-items: center; gap: 3rem; will-change: transform; }
.marquee__track span {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim);
}
.marquee__track i { font-style: normal; font-size: 0.6rem; color: var(--accent-2); }

/* ---------- Secciones base ---------- */
.eyebrow {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent-1);
  margin-bottom: 1.4rem;
}
.section-title {
  font-family: var(--font-display); font-size: var(--size-title);
  font-weight: 600; line-height: 1.08; letter-spacing: -0.03em;
}

/* ---------- Divisiones (horizontal) ---------- */
.divisions { position: relative; }
.divisions__pin {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; padding: 6rem 0;
}
.divisions__head { padding: 0 clamp(1.5rem, 5vw, 4rem); margin-bottom: 4rem; }
.divisions__track {
  display: flex; gap: 2rem; padding: 0 clamp(1.5rem, 5vw, 4rem);
  width: max-content; will-change: transform;
}
.division {
  width: clamp(300px, 34vw, 460px); flex-shrink: 0;
  border: 1px solid var(--glass-border); border-radius: 24px;
  padding: 2.6rem 2.2rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative; overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.division:hover { border-color: rgba(86, 240, 255, 0.4); transform: translateY(-6px); }
.division::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at 0% 0%, rgba(124, 92, 255, 0.12), transparent 45%);
  pointer-events: none;
}
.division__num {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 500;
  color: var(--accent-1); margin-bottom: 2.4rem; letter-spacing: 0.2em;
}
.division h3 {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 1.1rem;
}
.division p { color: var(--text-dim); line-height: 1.7; font-size: 0.95rem; margin-bottom: 2rem; }
.division__tag {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--glass-border); border-radius: 100px;
  padding: 0.45em 1em;
}

/* ---------- Servicios ---------- */
.services { padding: 10rem clamp(1.5rem, 5vw, 4rem); max-width: 1400px; margin: 0 auto; }
.services__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.4rem; margin-top: 4.5rem;
}
.card {
  border: 1px solid var(--glass-border); border-radius: 20px;
  padding: 2.4rem 2rem;
  background: var(--glass);
  position: relative; overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease-out), background 0.4s;
}
.card::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(86, 240, 255, 0.08), transparent 40%);
  transition: opacity 0.4s; pointer-events: none;
}
.card:hover { border-color: rgba(124, 92, 255, 0.45); transform: translateY(-5px); }
.card:hover::after { opacity: 1; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: linear-gradient(140deg, rgba(86,240,255,0.14), rgba(124,92,255,0.14));
  border: 1px solid var(--glass-border);
  margin-bottom: 1.6rem; color: var(--accent-1);
}
.card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.8rem; letter-spacing: -0.01em; }
.card p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.7; }

/* ---------- Stats ---------- */
.stats { padding: 6rem clamp(1.5rem, 5vw, 4rem); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); background: rgba(255,255,255,0.015); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 3rem; max-width: 1200px; margin: 0 auto; text-align: center; }
.stat__num {
  font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 0.6rem;
}
.stat__num em { font-size: 0.5em; }
.stat p { color: var(--text-dim); font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- Nosotros ---------- */
.about { padding: 12rem clamp(1.5rem, 5vw, 4rem); }
.about__inner { max-width: 1100px; margin: 0 auto; }
.about__statement {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.8rem);
  font-weight: 500; line-height: 1.35; letter-spacing: -0.02em;
}
.about__statement .word { opacity: 0.14; transition: opacity 0.3s; }
.about__meta { display: flex; flex-wrap: wrap; gap: 3.5rem; margin-top: 4.5rem; }
.about__meta div { font-size: 0.95rem; font-weight: 400; }
.about__meta span { display: block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.5rem; }

/* ---------- Contacto ---------- */
.contact {
  padding: 10rem clamp(1.5rem, 5vw, 4rem);
  position: relative; overflow: hidden;
}
.contact__grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 5rem;
  max-width: 1300px; margin: 0 auto; position: relative; z-index: 2;
  align-items: start;
}
.contact__hours { margin-top: 1rem; color: var(--text-dim); font-size: 0.88rem; }
.contact__form {
  display: flex; flex-direction: column; gap: 1.3rem;
  border: 1px solid var(--glass-border); border-radius: 24px;
  padding: 2.6rem 2.4rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.contact__form label { display: flex; flex-direction: column; gap: 0.5rem; }
.contact__form label span {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 500;
}
.contact__form input, .contact__form textarea {
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 0.9em 1.1em; color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 300;
  outline: none; resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact__form input:focus, .contact__form textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(86, 240, 255, 0.12);
}
.contact__form input::placeholder, .contact__form textarea::placeholder { color: rgba(242,244,248,0.3); }
.contact__form .btn { border: none; cursor: pointer; margin-top: 0.4rem; }
.contact__form.is-sent { pointer-events: none; opacity: 0.6; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; gap: 3.5rem; } }
.contact__orb {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,0.18), transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
.contact__title { font-family: var(--font-display); font-size: var(--size-title); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 3rem; }
.contact__mail {
  display: inline-block; font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2.2rem); font-weight: 500; color: var(--text);
  text-decoration: none; position: relative; letter-spacing: -0.01em;
  padding-bottom: 0.3em;
}
.contact__mail::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.contact__mail:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__address { margin-top: 3rem; color: var(--text-dim); font-size: 0.95rem; line-height: 1.8; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem clamp(1.5rem, 5vw, 4rem) 2rem;
  font-size: 0.88rem; color: var(--text-dim);
  background: rgba(255,255,255,0.015);
}
.footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 3rem; max-width: 1400px; margin: 0 auto 3.5rem;
}
.footer__brand p { margin-top: 1.2rem; line-height: 1.7; max-width: 320px; }
.footer__col { display: flex; flex-direction: column; gap: 0.8rem; }
.footer__col h4 {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text);
  margin-bottom: 0.4rem;
}
.footer__col a { color: var(--text-dim); text-decoration: none; transition: color 0.3s; }
.footer__col a:hover { color: var(--accent-1); }
.footer__col span { line-height: 1.7; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 2rem; border-top: 1px solid var(--glass-border);
  font-size: 0.8rem; max-width: 1400px; margin: 0 auto;
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; gap: 2.2rem; } }

/* ---------- Arte SVG 3D / hero ---------- */
.hero__art { position: absolute; z-index: 1; pointer-events: none; will-change: transform; }
.hero__art--left { left: clamp(-4rem, 2vw, 6rem); top: 16%; width: clamp(180px, 20vw, 300px); }
.hero__art--right { right: clamp(-3rem, 3vw, 7rem); bottom: 14%; width: clamp(150px, 17vw, 260px); }
.hero__art svg { width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero__art--left { opacity: 0.35; top: 6%; }
  .hero__art--right { opacity: 0.35; bottom: 4%; }
}

/* Animaciones del arte vectorial */
.float { animation: floatY 5s ease-in-out infinite; transform-origin: center; }
.float[data-float="2"] { animation-duration: 6.5s; animation-delay: -1.5s; }
.float[data-float="3"] { animation-duration: 4.2s; animation-delay: -0.8s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.orbit-ring { animation: orbitPulse 6s ease-in-out infinite; transform-origin: center; }
@keyframes orbitPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.8; } }

.blink { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }

.pulse-node { animation: nodePulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.pulse-node:nth-of-type(2n) { animation-delay: -1.2s; }
.pulse-node:nth-of-type(3n) { animation-delay: -0.6s; }
@keyframes nodePulse { 0%, 100% { opacity: 0.9; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.5); } }

.dash-anim { animation: dashMove 2.2s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -22; } }

.wave { animation: waveFade 2.8s ease-in-out infinite; }
.wave:nth-of-type(2) { animation-delay: 0.3s; }
.wave:nth-of-type(3) { animation-delay: 0.6s; }
@keyframes waveFade { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.2; } }

.lens-glow { animation: lensGlow 3s ease-in-out infinite; }
@keyframes lensGlow { 0%, 100% { fill-opacity: 0.9; r: 6; } 50% { fill-opacity: 0.4; r: 8; } }

.globe-spin { animation: globeSpin 26s linear infinite; transform-origin: center; }
@keyframes globeSpin { to { transform: rotate(360deg); } }

.net-line { stroke-dasharray: 160; stroke-dashoffset: 160; animation: netDraw 3s ease forwards; animation-play-state: paused; }
.net.is-inview .net-line { animation-play-state: running; }
@keyframes netDraw { to { stroke-dashoffset: 0; } }

.division__art { width: 64px; height: 64px; margin-bottom: 1.4rem; }

/* ---------- Proceso ---------- */
.process { padding: 10rem clamp(1.5rem, 5vw, 4rem); max-width: 1200px; margin: 0 auto; }
.process__wrap { display: flex; gap: clamp(1.5rem, 4vw, 4rem); margin-top: 4.5rem; position: relative; }
.process__line { width: 4px; flex-shrink: 0; align-self: stretch; height: auto; }
.process__steps { display: flex; flex-direction: column; gap: 4.5rem; flex: 1; }
.step { display: flex; gap: 2rem; align-items: flex-start; }
.step__num {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.2em; color: var(--accent-1);
  border: 1px solid var(--glass-border); border-radius: 100px;
  padding: 0.6em 1.1em; background: var(--glass); flex-shrink: 0;
}
.step h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.7rem; }
.step p { color: var(--text-dim); line-height: 1.75; max-width: 560px; }

/* ---------- Industrias ---------- */
.industries { padding: 10rem clamp(1.5rem, 5vw, 4rem); max-width: 1400px; margin: 0 auto; }
.industries__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.4rem; margin-top: 4.5rem;
}
.industry {
  border: 1px solid var(--glass-border); border-radius: 18px;
  padding: 1.9rem 1.8rem; background: var(--glass);
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.industry:hover { border-color: rgba(86, 240, 255, 0.4); transform: translateY(-4px); }
.industry span { color: var(--accent-2); font-size: 0.85rem; }
.industry h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin: 0.8rem 0 0.5rem; }
.industry p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.65; }

/* ---------- Casos de éxito ---------- */
.cases { padding: 10rem clamp(1.5rem, 5vw, 4rem); max-width: 1400px; margin: 0 auto; }
.cases__list { display: flex; flex-direction: column; gap: 2.5rem; margin-top: 4.5rem; }
.case {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 3rem; align-items: center;
  border: 1px solid var(--glass-border); border-radius: 28px;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative; overflow: hidden;
  transition: border-color 0.4s;
}
.case:hover { border-color: rgba(124, 92, 255, 0.45); }
.case--flip { grid-template-columns: 1.25fr 1fr; }
.case--flip .case__art { order: 2; }
.case__art svg { width: 100%; height: auto; max-height: 260px; }
.case__sector {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-1); margin-bottom: 1.1rem; font-weight: 500;
}
.case h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1rem; }
.case > .case__body > p { color: var(--text-dim); line-height: 1.75; margin-bottom: 2rem; }
.case__metrics { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.case__metrics strong {
  display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 0.3rem;
}
.case__metrics span { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
@media (max-width: 860px) {
  .case, .case--flip { grid-template-columns: 1fr; gap: 1.5rem; }
  .case--flip .case__art { order: 0; }
}

/* ---------- Testimonios ---------- */
.testimonials { padding: 10rem clamp(1.5rem, 5vw, 4rem); max-width: 1400px; margin: 0 auto; }
.testimonials__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.4rem; margin-top: 4.5rem;
}
.quote {
  border: 1px solid var(--glass-border); border-radius: 20px;
  padding: 2.4rem 2.2rem; background: var(--glass);
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.quote:hover { border-color: rgba(255, 92, 225, 0.4); transform: translateY(-5px); }
.quote__mark {
  font-family: var(--font-display); font-size: 3rem; line-height: 0.6;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.quote p { color: var(--text); font-size: 0.98rem; line-height: 1.75; font-weight: 300; flex: 1; }
.quote footer strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.quote footer span { font-size: 0.8rem; color: var(--text-dim); }

/* ---------- Marcas ---------- */
.brands { padding: 7rem 0 8rem; text-align: center; }
.brands .eyebrow { padding: 0 clamp(1.5rem, 5vw, 4rem); }
.brands__title {
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.8rem); font-weight: 500;
  color: var(--text-dim); max-width: 640px; margin: 0 auto 3.5rem; line-height: 1.4;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}
.marquee--brands .marquee__track span { color: var(--text); }

/* ---------- Globo nosotros ---------- */
.about__inner { position: relative; }
.about__globe {
  position: absolute; right: -2rem; top: -3rem;
  width: clamp(200px, 24vw, 320px); opacity: 0.55; pointer-events: none;
}
.about__globe svg { width: 100%; height: auto; }
@media (max-width: 900px) { .about__globe { opacity: 0.2; right: -4rem; } }

/* ---------- FAQ ---------- */
.faq { padding: 10rem clamp(1.5rem, 5vw, 4rem); max-width: 1000px; margin: 0 auto; }
.faq__list { margin-top: 4rem; display: flex; flex-direction: column; gap: 1rem; }
.faq__item {
  border: 1px solid var(--glass-border); border-radius: 16px;
  background: var(--glass); overflow: hidden;
  transition: border-color 0.3s;
}
.faq__item[open] { border-color: rgba(86, 240, 255, 0.4); }
.faq__item summary {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 500;
  padding: 1.5rem 1.8rem; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: color 0.3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--accent-1);
  transition: transform 0.35s var(--ease-out); flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 1.8rem 1.6rem; color: var(--text-dim); line-height: 1.75; font-size: 0.95rem; }

/* ---------- CTA banner ---------- */
.cta-banner { padding: 6rem clamp(1.5rem, 5vw, 4rem); }
.cta-banner__inner {
  max-width: 1300px; margin: 0 auto; text-align: center;
  border: 1px solid var(--glass-border); border-radius: 32px;
  padding: clamp(3.5rem, 7vw, 6rem) 2rem;
  background:
    radial-gradient(600px circle at 20% 0%, rgba(86,240,255,0.1), transparent 50%),
    radial-gradient(600px circle at 80% 100%, rgba(255,92,225,0.1), transparent 50%),
    linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cta-banner__inner h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 2.5rem;
}

/* ---------- Reveal defaults (JS toma control) ---------- */
[data-reveal], [data-card] { opacity: 0; transform: translateY(40px); }
[data-hero-fade] { opacity: 0; }

.no-js [data-reveal], .no-js [data-card], .no-js [data-hero-fade] { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-card], [data-hero-fade] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  /* Nav: hamburguesa */
  .nav { padding: 1rem 1.25rem; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  /* Espaciados compactos */
  .services, .process, .industries, .cases, .testimonials, .faq, .contact { padding-top: 6rem; padding-bottom: 6rem; }
  .about { padding: 7rem clamp(1.25rem, 5vw, 4rem); }
  .stats { padding: 4.5rem 1.25rem; }
  .cta-banner { padding: 3.5rem 1.25rem; }
  .brands { padding: 5rem 0 6rem; }
  .hero { padding: 7rem 1.25rem 5.5rem; }
  .hero__sub br { display: none; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; text-align: center; min-width: 0; }

  /* Divisiones: carrusel nativo */
  .divisions__pin { padding: 4rem 0; min-height: auto; }
  .divisions__head { margin-bottom: 2.5rem; }
  .divisions__track {
    width: auto; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    gap: 1rem; padding: 0 1.25rem 1rem;
  }
  .divisions__track::-webkit-scrollbar { display: none; }
  .division { width: 82vw; scroll-snap-align: center; padding: 2rem 1.6rem; }

  /* Stats en 2 columnas */
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1rem; }

  /* Proceso más compacto */
  .process__wrap { gap: 1.1rem; margin-top: 3rem; }
  .process__steps { gap: 3rem; }
  .step { gap: 1.1rem; flex-direction: column; }
  .step__num { align-self: flex-start; }

  /* Casos */
  .cases__list { gap: 1.4rem; margin-top: 3rem; }
  .case { padding: 1.6rem 1.4rem; }
  .case__metrics { gap: 1.4rem 2rem; }
  .case__metrics strong { font-size: 1.4rem; }
  .case__art svg { max-height: 190px; }

  /* Grids con menos aire */
  .services__grid, .industries__grid, .testimonials__grid { margin-top: 3rem; gap: 1rem; }
  .card, .quote { padding: 1.9rem 1.6rem; }

  /* Nosotros */
  .about__meta { gap: 2rem; flex-direction: column; margin-top: 3rem; }
  .about__globe { display: none; }

  /* FAQ y contacto */
  .faq__list { margin-top: 2.6rem; }
  .faq__item summary { padding: 1.2rem 1.3rem; font-size: 0.98rem; }
  .faq__item p { padding: 0 1.3rem 1.3rem; }
  .contact__form { padding: 1.9rem 1.5rem; }
  .cta-banner__inner { border-radius: 24px; }

  /* Marquee */
  .marquee { padding: 1.1rem 0; }
  .marquee__track { gap: 2rem; }
  .marquee__track span { font-size: 0.92rem; }

  /* Footer */
  .footer { padding-top: 3rem; }
}

/* Pantallas muy chicas */
@media (max-width: 380px) {
  :root { --size-hero: clamp(2.5rem, 12vw, 3rem); }
  .division { width: 88vw; }
  .hero__badge { font-size: 0.72rem; }
}

/* Ajustes extra de robustez */
.about { overflow: hidden; }
.contact__mail { overflow-wrap: anywhere; }
.hero__actions .btn { white-space: nowrap; }
