/* ==========================================================================
   SUMATEC — CAPA DE EXPERIENCIA PREMIUM
   Preloader · Transiciones de página · Revelados · Parallax · Cursor · Tilt
   ========================================================================== */

:root {
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);
}

/* --- Lenis smooth scroll --- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

html.is-loading,
html.is-loading body { overflow: hidden; }

/* ==========================================================================
   1. PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: preloaderFailsafe 0.01s 5.5s forwards;
}

.preloader::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14vh;
  background: var(--lime);
}

.preloader.exit {
  animation: preloaderExit 1.05s var(--ease-inout) forwards;
}

@keyframes preloaderExit {
  to { transform: translateY(-115%); }
}

@keyframes preloaderFailsafe {
  to { visibility: hidden; opacity: 0; pointer-events: none; }
}

.reduced-motion .preloader { display: none; }

.preloader-inner {
  width: min(420px, 80vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.preloader-lambda {
  width: 86px;
  height: 86px;
  fill: none;
  stroke: var(--lime);
  stroke-width: 13;
  stroke-linejoin: round;
  stroke-dasharray: 165;
  stroke-dashoffset: 165;
  animation: drawLambda 1s var(--ease-premium) 0.15s forwards;
  filter: drop-shadow(0 0 22px rgba(213, 241, 28, 0.35));
}

@keyframes drawLambda {
  to { stroke-dashoffset: 0; }
}

.preloader-logo {
  width: 230px;
  clip-path: inset(0 100% 0 0);
  animation: wipeIn 1s var(--ease-premium) 0.6s forwards;
}

@keyframes wipeIn {
  to { clip-path: inset(0 0 0 0); }
}

.preloader-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8E8E8E;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-premium) 0.9s forwards;
}

.preloader-count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.preloader-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: -0.9rem;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   2. ENTRADAS GLOBALES (cabecera, WhatsApp)
   ========================================================================== */
.js:not(.reduced-motion) .site-header {
  translate: 0 -110%;
  transition: translate 1s var(--ease-premium) 0.25s, transform 0.55s var(--ease-premium), height 0.25s ease, box-shadow 0.25s ease;
}

.js.is-ready .site-header { translate: 0 0; }

.site-header.header-hidden { transform: translateY(-110%); }

.js:not(.reduced-motion) .floating-wa {
  translate: 0 140px;
  transition: translate 1s var(--ease-premium) 0.9s, background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

.js.is-ready .floating-wa { translate: 0 0; }

/* Barra de progreso de lectura */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1100;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(213, 241, 28, 0.6);
}

/* Grano cinematográfico sutil */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.reduced-motion body::after { animation: none; }

/* ==========================================================================
   3. NAVEGACIÓN — INDICADOR DESLIZANTE
   ========================================================================== */
.main-nav { position: relative; }
.main-nav .nav-tab { position: relative; z-index: 1; }

.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 999px;
  background: var(--black);
  box-shadow: 0 6px 18px rgba(10, 10, 10, 0.22);
  z-index: 0;
  pointer-events: none;
  transition: transform 0.65s var(--ease-premium), width 0.65s var(--ease-premium), height 0.3s ease;
}

@media (min-width: 821px) {
  .main-nav.has-indicator .nav-tab.active {
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 820px) {
  .nav-indicator { display: none; }
}

/* ==========================================================================
   4. TRANSICIÓN ENTRE PESTAÑAS (CORTINA Λ)
   ========================================================================== */
.tab-panel,
.tab-panel.active {
  transition: none;
  transform: none;
  opacity: 1;
}

.tab-panel.active {
  animation: panelIn 0.9s var(--ease-premium) both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.tab-curtain {
  position: fixed;
  inset: 0;
  z-index: 5000;
  visibility: hidden;
  pointer-events: none;
}

.tab-curtain.active {
  visibility: visible;
  pointer-events: all;
}

.tc-panel {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
}

.tc-lime { background: var(--lime); }

.tc-dark {
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}

.tc-lambda {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: var(--lime);
  stroke-width: 13;
  stroke-linejoin: round;
  stroke-dasharray: 165;
  stroke-dashoffset: 165;
}

.tab-curtain.show-label .tc-lambda {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.7s var(--ease-premium);
}

.tc-label {
  overflow: hidden;
  padding: 0.06em 0 0.14em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--white);
}

.tc-label span {
  display: inline-block;
  translate: 0 110%;
  transition: translate 0.6s var(--ease-premium);
}

.tab-curtain.show-label .tc-label span { translate: 0 0; }

.tc-sub {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8E8E8E;
}

/* ==========================================================================
   5. REVELADOS AL HACER SCROLL
   ========================================================================== */
[data-reveal],
.tilt-card {
  transition:
    opacity 1s var(--ease-premium) var(--d, 0ms),
    translate 1.15s var(--ease-premium) var(--d, 0ms),
    scale 1.15s var(--ease-premium) var(--d, 0ms),
    transform 0.5s var(--ease-premium),
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    background 0.4s ease,
    color 0.3s ease;
}

.js:not(.reduced-motion):not(.reveal-all) [data-reveal]:not(.is-visible) {
  opacity: 0;
  translate: 0 46px;
}

.js:not(.reduced-motion):not(.reveal-all) [data-reveal="scale"]:not(.is-visible) {
  translate: 0 30px;
  scale: 0.94;
}

.js:not(.reduced-motion):not(.reveal-all) [data-reveal="left"]:not(.is-visible) { translate: -60px 0; }
.js:not(.reduced-motion):not(.reveal-all) [data-reveal="right"]:not(.is-visible) { translate: 60px 0; }

.js [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* Titulares palabra por palabra */
.split .sw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.split .sw-i {
  display: inline-block;
  transition: translate 1.1s var(--ease-premium) calc(var(--wi, 0) * 55ms + var(--d, 0ms));
}

.js:not(.reduced-motion):not(.reveal-all) .split:not(.is-visible) .sw-i { translate: 0 112%; }

.split .lime-underline::after {
  transform-origin: left;
  transition: transform 1s var(--ease-premium) 0.45s;
}

.js:not(.reduced-motion):not(.reveal-all) .split:not(.is-visible) .lime-underline::after {
  transform: scaleX(0);
}

.split .text-lime-box {
  transition: clip-path 1s var(--ease-premium) 0.35s;
}

.js:not(.reduced-motion):not(.reveal-all) .split:not(.is-visible) .text-lime-box {
  clip-path: inset(0 100% 0 0);
}

/* Revelado de imágenes tipo cortina (el recorte va en el hijo para no afectar al observer) */
.js:not(.reduced-motion):not(.reveal-all) .img-reveal:not(.is-visible) > img,
.js:not(.reduced-motion):not(.reveal-all) .img-reveal:not(.is-visible) > .team-avatar-monogram {
  clip-path: inset(100% 0 0 0);
}

.img-reveal > img,
.img-reveal > .team-avatar-monogram {
  transition: clip-path 1.35s var(--ease-inout) var(--d, 0ms);
}

/* Tarjetas del explorador dinámico */
.archive-in {
  animation: archiveIn 0.8s var(--ease-premium) both;
  animation-delay: var(--d, 0ms);
}

@keyframes archiveIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   6. PARALLAX DE IMÁGENES
   ========================================================================== */
img.parallax-img {
  transform: none !important;
  translate: 0 var(--py, 0px);
  scale: var(--ps, 1.14);
  transition: scale 1.2s var(--ease-premium), clip-path 1.35s var(--ease-inout) var(--d, 0ms), filter 0.6s ease, opacity 0.6s ease !important;
  will-change: translate;
}

.js:not(.reduced-motion) .img-reveal:not(.is-visible) img.parallax-img { --ps: 1.38; }

.project-feature-card:hover img.parallax-img,
.flagship-case-card:hover img.parallax-img,
.team-card:hover img.parallax-img,
.hero-visual-frame:hover img.parallax-img,
.nosotros-main-photo:hover img.parallax-img { --ps: 1.21; }

.hero-main-img.swap-in { animation: imgSwap 0.9s var(--ease-premium); }

@keyframes imgSwap {
  from { opacity: 0.15; filter: blur(14px) saturate(0.2); }
  to { opacity: 1; filter: contrast(1.06); }
}

/* Λ decorativos gigantes en secciones oscuras */
.has-deco { overflow: hidden; }
.has-deco > .container { position: relative; z-index: 1; }

.deco-lambda {
  position: absolute;
  width: 560px;
  height: 560px;
  right: -140px;
  top: 8%;
  fill: none;
  stroke: var(--lime);
  stroke-width: 10;
  stroke-linejoin: round;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.deco-lambda.alt {
  left: -180px;
  right: auto;
  top: auto;
  bottom: -18%;
  width: 420px;
  height: 420px;
  opacity: 0.04;
}

/* ==========================================================================
   7. TILT 3D + SPOTLIGHT
   ========================================================================== */
.tilt-card { position: relative; }

body .tilt-card,
body .tilt-card:hover {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
}

body .tilt-card:hover { --lift: -6px; }

.tilt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(213, 241, 28, 0.15), transparent 45%);
  transition: opacity 0.45s ease;
}

.tilt-card:hover::after { opacity: 1; }

.bg-black .tilt-card::after,
.stat-card.tilt-card::after,
.mv-card-mission.tilt-card::after {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(213, 241, 28, 0.13), transparent 50%);
}

/* Brillo en botones lima */
.btn-lime::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.btn-lime:hover::after { animation: btnShine 0.85s var(--ease-premium); }

@keyframes btnShine {
  to { left: 130%; }
}

/* ==========================================================================
   8. CURSOR PERSONALIZADO
   ========================================================================== */
.has-cursor,
.has-cursor body,
.has-cursor a,
.has-cursor button,
.has-cursor [data-tab-target],
.has-cursor .bcard-scene { cursor: none; }

.has-cursor input,
.has-cursor textarea,
.has-cursor select { cursor: auto; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: #fff;
  mix-blend-mode: difference;
  transition: opacity 0.25s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid #fff;
  mix-blend-mode: difference;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.45s var(--ease-premium), height 0.45s var(--ease-premium), margin 0.45s var(--ease-premium), background 0.35s ease, border-color 0.35s ease, opacity 0.3s ease;
}

.cursor-ring span {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--black);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-premium);
}

.cursor-ring.is-hover {
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  background: rgba(255, 255, 255, 0.12);
}

.cursor-ring.is-label {
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  background: var(--lime);
  border-color: var(--lime);
  mix-blend-mode: normal;
}

.cursor-ring.is-label span { opacity: 1; transform: none; }
.cursor-dot.is-label { opacity: 0; }

.cursor-hidden .cursor-dot,
.cursor-hidden .cursor-ring { opacity: 0; }

/* ==========================================================================
   9. BARRA ARQUITECTÓNICA DE PULSO 360° (Exclusiva SUMATEC)
   ========================================================================== */
.st-pulse-deck {
  position: relative;
  background: #080808;
  color: var(--white);
  border-top: 1px solid rgba(213, 241, 28, 0.28);
  border-bottom: 1px solid #1E1E1E;
  overflow: hidden;
}

.st-pulse-deck::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.st-pulse-inner {
  position: relative;
  z-index: 2;
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
}

.st-pulse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.st-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--lime);
}

.st-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: stPulseDot 1.8s ease-in-out infinite;
}

@keyframes stPulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.55; }
}

.st-pulse-coords {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #9A9A9A;
}

.st-pulse-sep {
  color: var(--lime);
}

.st-pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 1024px) {
  .st-pulse-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .st-pulse-grid {
    grid-template-columns: 1fr;
  }
}

.st-pulse-card {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 1.25rem 1.2rem;
  cursor: pointer;
  transition: transform 0.45s var(--ease-premium), border-color 0.35s ease, background 0.35s ease, box-shadow 0.45s ease;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.st-pulse-card:hover,
.st-pulse-card.active {
  background: rgba(213, 241, 28, 0.06);
  border-color: var(--lime);
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -18px rgba(213, 241, 28, 0.25);
}

.st-pulse-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #A0A0A0;
}

.st-pulse-card:hover .st-pulse-top,
.st-pulse-card.active .st-pulse-top {
  color: var(--lime);
}

.st-pulse-lambda {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--lime);
  transition: transform 0.35s var(--ease-premium);
}

.st-pulse-card:hover .st-pulse-lambda,
.st-pulse-card.active .st-pulse-lambda {
  transform: translateY(-2px) scale(1.15);
}

.st-pulse-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--white);
}

.st-pulse-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #A8A8A8;
  flex: 1;
}

.st-pulse-meter {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.st-pulse-meter span {
  display: block;
  height: 100%;
  width: var(--w, 90%);
  background: linear-gradient(90deg, var(--lime), #ffffff);
  border-radius: 999px;
  transform-origin: left center;
  transition: transform 0.6s var(--ease-premium);
}

.st-pulse-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.73rem;
  color: #8E8E8E;
  padding-top: 0.35rem;
}

.st-pulse-foot strong {
  color: var(--lime);
  font-weight: 700;
}

.st-rail {
  position: relative;
  background: var(--lime);
  color: var(--black);
  padding: 0.62rem 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(10, 10, 10, 0.15);
}

. vm-track,
.st-rail .vm-track {
  display: inline-flex;
  align-items: center;
  will-change: transform;
}

.st-rail-item {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 1.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.st-rail-item strong {
  font-weight: 900;
  font-size: 0.95rem;
}

/* ==========================================================================
   10. HERO — PROFUNDIDAD Y SCROLL CUE
   ========================================================================== */
.hero-visual-stage {
  transform: perspective(1400px) rotateY(var(--hx, 0deg)) rotateX(var(--hy, 0deg));
  transition: transform 0.9s var(--ease-premium), opacity 1s var(--ease-premium) var(--d, 0ms), translate 1.15s var(--ease-premium) var(--d, 0ms), scale 1.15s var(--ease-premium) var(--d, 0ms);
  transform-style: preserve-3d;
}

.hero-floating-badge {
  transform: translate3d(var(--bx, 0px), var(--by, 0px), 0);
  transition: transform 0.9s var(--ease-premium), opacity 1s var(--ease-premium) var(--d, 0ms), translate 1.15s var(--ease-premium) var(--d, 0ms);
}

.hero-home-grid > div:first-child { will-change: transform, opacity; }

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.3rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8E8E8E;
  pointer-events: none;
}

.hero-scroll-cue .mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-cue .wheel {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--lime);
  animation: wheel 1.8s var(--ease-premium) infinite;
}

@keyframes wheel {
  0% { opacity: 0; transform: translateY(-3px); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

@media (max-width: 1080px) {
  .hero-scroll-cue { display: none; }
}

/* ==========================================================================
   11. MICRO-INTERACCIONES DE CONTENIDO
   ========================================================================== */
.swap-anim { animation: swapIn 0.65s var(--ease-premium); }

@keyframes swapIn {
  from { opacity: 0.2; transform: translateY(12px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Rueda orbital viva */
.orbital-wheel-stage { border-color: transparent; }

.orbital-wheel-stage::before,
.orbital-wheel-stage::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orbital-wheel-stage::before {
  inset: -1px;
  border: 1.5px dashed rgba(10, 10, 10, 0.25);
  animation: spin 60s linear infinite;
}

.orbital-wheel-stage::after {
  inset: 58px;
  border: 2px solid transparent;
  border-top-color: var(--lime);
  border-right-color: rgba(213, 241, 28, 0.35);
  animation: spin 7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.orbital-core { animation: corePulse 3.2s ease-in-out infinite; position: relative; z-index: 1; }

@keyframes corePulse {
  0%, 100% { box-shadow: var(--shadow-strong), 0 0 0 0 rgba(213, 241, 28, 0.45); }
  50% { box-shadow: var(--shadow-strong), 0 0 0 18px rgba(213, 241, 28, 0); }
}

/* Estadísticas con brillo al entrar */
.stat-card.is-visible .stat-number { animation: numberGlow 1.8s var(--ease-premium) 0.3s; }

@keyframes numberGlow {
  0% { text-shadow: 0 0 0 rgba(213, 241, 28, 0); }
  40% { text-shadow: 0 0 28px rgba(213, 241, 28, 0.55); }
  100% { text-shadow: 0 0 0 rgba(213, 241, 28, 0); }
}

/* Logo de cabecera — reacción sutil */
.brand-logo-img { transition: transform 0.5s var(--ease-premium); }

/* ==========================================================================
   12. ACCESIBILIDAD — MOVIMIENTO REDUCIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
