/* ==========================================================================
   RAYS HON LINE S. DE R.L. — WEB3 & NEON GLASS HYBRID DESIGN SYSTEM
   High-End Tech Agency Aesthetic: Deep Dark, Centered 3D Hero, Ticker Marquee & Checklist Cards
   ========================================================================== */

:root {
  --bg-deep: #030712;
  --bg-dark: #070F1E;
  --bg-card: rgba(9, 18, 36, 0.75);
  --bg-card-hover: rgba(13, 27, 52, 0.88);
  
  --border-glass: rgba(0, 210, 255, 0.14);
  --border-glass-hover: rgba(0, 229, 255, 0.50);
  --border-light: rgba(255, 255, 255, 0.08);

  --neon-cyan: #00D2FF;
  --neon-teal: #00F5D4;
  --neon-blue: #0B5ED7;
  --neon-glow: rgba(0, 210, 255, 0.35);

  --accent-green: #7ED321;
  --accent-red: #E11D1D;

  --text-white: #FFFFFF;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-dark: #030712;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 9999px;

  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Space Grotesk', monospace;


  /* --- MASTER MOTION TOKENS (Guía Técnica de Movimiento) --- */
  --motion-duration-instant: 100ms;
  --motion-duration-fast: 180ms;
  --motion-duration-normal: 280ms;
  --motion-duration-slow: 420ms;

  --motion-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --motion-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --motion-distance-micro: 2px;
  --motion-distance-small: 6px;
  --motion-distance-medium: 16px;
  --motion-distance-large: 32px;

  --motion-scale-hover: 1.01;
  --motion-scale-pressed: 0.98;

  --max-width: 1300px;
  --nav-height: 84px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 8%, rgba(0, 210, 255, 0.12), transparent 45%),
    radial-gradient(circle at 90% 12%, rgba(225, 29, 29, 0.06), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(11, 94, 215, 0.08), transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(126, 211, 33, 0.06), transparent 40%);
  background-attachment: fixed;
}

.tech-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-size: 45px 45px;
  background-image: 
    linear-gradient(to right, rgba(0, 210, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 210, 255, 0.025) 1px, transparent 1px);
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.08), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 2;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  font-weight: 700;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.text-cyan-gradient {
  background: linear-gradient(90deg, #FFFFFF 0%, var(--neon-cyan) 50%, var(--neon-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-panel:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 210, 255, 0.2);
  transform: translateY(-4px);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--neon-cyan);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  white-space: nowrap;
}

.btn-cyan {
  background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--neon-teal) 100%);
  color: var(--text-dark) !important;
  box-shadow: 0 0 25px var(--neon-glow);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 210, 255, 0.6);
  filter: brightness(1.08);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-white) !important;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan) !important;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF !important;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.5);
}

section {
  padding: 85px 0;
  position: relative;
  z-index: 2;
}

.section-head-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

/* NAVBAR */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 15, 30, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo-img {
  transform: scale(1.1) rotate(4deg);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text-white);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-white);
  background: rgba(0, 210, 255, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn-cv {
  padding: 9px 18px;
  font-size: 0.84rem;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   HERO SECTION (CENTERED 3D LOGO LAYOUT LIKE REFERENCE 2)
   ========================================================================== */
.hero-section {
  padding-top: 140px;
  padding-bottom: 50px;
  position: relative;
  text-align: center;
}

.hero-header-center {
  max-width: 900px;
  margin: 0 auto 46px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--neon-cyan);
  margin-bottom: 22px;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-teal);
  box-shadow: 0 0 8px var(--neon-teal);
}

.hero-title {
  margin-bottom: 18px;
  line-height: 1.12;
}

/* 3-Column Stage: Left Stats | Center 3D Art | Right Pitch & Actions */
.hero-3col-stage {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr 0.85fr;
  gap: 30px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-stats-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.hero-stat-card {
  padding: 18px 24px;
  background: rgba(7, 15, 30, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.hero-stat-card:hover {
  border-color: var(--neon-cyan);
  transform: translateX(4px);
  box-shadow: 0 15px 35px rgba(0, 210, 255, 0.15);
}

.hero-stat-card .stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--neon-cyan);
  line-height: 1.1;
  margin-bottom: 4px;
}

.hero-stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Center 3D Logo Feature */
.hero-center-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-3d-orb {
  width: auto;
  height: auto;
  min-height: 350px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

@keyframes pulse-glow {
  0% { transform: scale(0.96); box-shadow: 0 0 50px rgba(0, 210, 255, 0.2); }
  100% { transform: scale(1.04); box-shadow: 0 0 80px rgba(0, 210, 255, 0.4); }
}

.hero-3d-logo {
  width: 340px;
  height: 340px;
  max-width: 90vw;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 35px rgba(4, 138, 251, 0.45));
  /* animation moved to wrap */
  position: relative;
  z-index: 3;
}

@keyframes float-logo {
  0% { transform: translateY(-8px); }
  100% { transform: translateY(8px); }
}
@keyframes logo-bob {
  0% { transform: translateY(-8px); }
  100% { transform: translateY(8px); }
}
  100% { transform: translateY(8px) rotate(3deg); }
}

.hero-code-pill-center {
  margin-top: 20px;
  padding: 10px 22px;
  background: rgba(7, 15, 30, 0.90);
  backdrop-filter: blur(20px);
  border: 1px solid var(--neon-cyan);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.25);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Right Pitch Column */
.hero-pitch-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.hero-pitch-column p {
  font-size: 0.98rem;
  line-height: 1.7;
}

.hero-pitch-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-quick-socials {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-circle-btn:hover {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-2px);
}

/* ==========================================================================
   INFINITE TICKER / MARQUEE RIBBON (LIKE REFERENCE 2)
   ========================================================================== */
.marquee-ribbon-section {
  padding: 24px 0;
  border-top: 1px solid rgba(0, 210, 255, 0.15);
  border-bottom: 1px solid rgba(0, 210, 255, 0.15);
  background: rgba(7, 15, 30, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.marquee-ribbon-track {
  display: inline-flex;
  align-items: center;
  animation: marquee-scroll 32s linear infinite;
}

.marquee-group {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.marquee-group span {
  display: inline-flex;
  align-items: center;
  gap: 36px;
}

.marquee-star {
  color: var(--neon-cyan);
  font-size: 1.1rem;
  text-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   SHOWCASE SERVICES WITH CHECKLISTS (LIKE REFERENCE 2)
   ========================================================================== */
.services-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.showcase-service-card {
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
}

.service-card-top-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  margin-bottom: 22px;
  transition: all 0.3s ease;
}

.showcase-service-card:hover .service-card-top-icon {
  background: var(--neon-cyan);
  color: var(--text-dark);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
  transform: scale(1.05);
}

.showcase-service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.showcase-service-card p {
  font-size: 0.92rem;
  margin-bottom: 24px;
}

/* Checklist like Reference */
.service-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.service-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
}

.check-icon-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(0, 245, 212, 0.15);
  border: 1px solid var(--neon-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-teal);
  font-size: 0.72rem;
  flex-shrink: 0;
}

.btn-service-learn {
  align-self: flex-start;
  font-size: 0.82rem;
  padding: 10px 20px;
}

/* Featured Wide Service Card (Soporte On-Demand & Outsourcing TI) */
.card-featured-wide {
  background: linear-gradient(135deg, rgba(8, 18, 38, 0.95), rgba(4, 138, 251, 0.08));
  border: 1px solid rgba(4, 138, 251, 0.35);
  position: relative;
  overflow: hidden;
  grid-column: 1 / -1;
}

.card-featured-wide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #048afb, #a2f31f, #f40001);
}

.featured-wide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(4, 138, 251, 0.15);
  border: 1px solid rgba(4, 138, 251, 0.4);
  color: #048afb;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  width: fit-content;
}

@media (min-width: 900px) {
  .showcase-service-card.card-featured-wide {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 36px;
    align-items: center;
    padding: 38px 40px;
  }

  .card-featured-wide .featured-wide-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .card-featured-wide .featured-wide-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .card-featured-wide .service-checklist {
    margin-bottom: 0;
  }
}

/* ==========================================================================
   ABOUT & EXPERTISE (2 COLUMNS MATCHING REFERENCE 1 & 2)
   ========================================================================== */
.about-grid-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.about-card-left {
  padding: 34px;
}

.about-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.meta-icon {
  color: var(--neon-cyan);
  margin-top: 2px;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.meta-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-white);
}

.meta-val.status-active {
  color: var(--neon-teal);
  display: flex;
  align-items: center;
  gap: 6px;
}

.expertise-card-right {
  padding: 34px;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.skill-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
}

.skill-pct {
  font-family: var(--font-mono);
  color: var(--neon-cyan);
}

.skill-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #0B5ED7 0%, var(--neon-cyan) 60%, var(--neon-teal) 100%);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

/* ==========================================================================
   SELECTED WORK (PROJECTS LIKE REFERENCE)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-box {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.project-preview-mockup {
  height: 170px;
  border-radius: var(--radius-md);
  background: #060D1A;
  border: 1px solid rgba(0, 210, 255, 0.15);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-badge-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.mockup-inner-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--neon-cyan);
}

.mockup-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
}

.project-box h3 {
  margin-bottom: 8px;
}

.project-box p {
  font-size: 0.88rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.project-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tag {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.btn-circle-arrow {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-circle-arrow:hover {
  background: var(--neon-cyan);
  color: var(--text-dark);
  transform: scale(1.1);
}

/* ==========================================================================
   WORK PROCESS TIMELINE
   ========================================================================== */
.process-timeline-card {
  padding: 40px;
}

.timeline-track-wrap {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 36px;
}

.timeline-track-wrap::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.2), var(--neon-cyan), rgba(0, 245, 212, 0.2));
  z-index: 1;
}

.timeline-step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 15%;
}

.timeline-node-circle {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--bg-deep);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.timeline-step-item:hover .timeline-node-circle {
  background: var(--neon-cyan);
  color: var(--text-dark);
  transform: scale(1.15);
}

.timeline-step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-step-title {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.timeline-step-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   METRICS ROW (5M+ / 450M+ STYLE IN REFERENCE 2)
   ========================================================================== */
.metrics-full-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  padding: 30px 0;
}

.metric-big-box {
  padding: 24px;
  background: rgba(7, 15, 30, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.metric-huge-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-huge-num.cyan {
  color: var(--neon-cyan);
}

.metric-sub-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-hero-panel {
  padding: 48px;
}

.contact-layout-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
}

.contact-left-col h3 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.contact-left-col p {
  margin-bottom: 30px;
}

.contact-list-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 34px;
}

.contact-item-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon-bubble {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-item-text a, .contact-item-text span {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.contact-item-text a:hover {
  color: var(--neon-cyan);
}

.form-grid-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-item label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.glass-input {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.glass-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px var(--neon-glow);
  background: rgba(255, 255, 255, 0.07);
}

select.glass-input {
  background-color: var(--bg-dark);
}

textarea.glass-input {
  min-height: 110px;
  resize: vertical;
}

/* FOOTER */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  background: var(--bg-deep);
}

.footer-inner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img-sm {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.4));
}

.footer-nav-side {
  display: flex;
  gap: 24px;
}

.footer-nav-side a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-nav-side a:hover {
  color: var(--neon-cyan);
}

.whatsapp-floating-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-pill);
  background: #25D366;
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.5);
  z-index: 999;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-floating-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 0 35px rgba(37, 211, 102, 0.7);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 100%;
  max-width: 620px;
  background: rgba(9, 18, 36, 0.95);
  border: 1px solid var(--neon-cyan);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 30px var(--neon-glow);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--text-white);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-3col-stage { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats-column { order: 2; flex-direction: row; justify-content: center; }
  .hero-center-feature { order: 1; }
  .hero-pitch-column { order: 3; text-align: center; }
  .hero-pitch-actions { align-items: center; }
  .hero-quick-socials { justify-content: center; }
  .about-grid-split { grid-template-columns: 1fr; }
  .services-showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-full-row { grid-template-columns: repeat(2, 1fr); }
  .contact-layout-split { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-stats-column { flex-direction: column; }
  .services-showcase-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .timeline-track-wrap { flex-direction: column; gap: 24px; }
  .timeline-track-wrap::before { display: none; }
  .timeline-step-item { width: 100%; flex-direction: row; text-align: left; gap: 16px; }
  .timeline-node-circle { margin-bottom: 0; flex-shrink: 0; }
  .form-two-cols { grid-template-columns: 1fr; }
  .footer-inner-row { flex-direction: column; text-align: center; }
}


/* ==========================================================================
   BRAND LOGO COLOR GRADIENTS FOR TYPOGRAPHY
   #a2f31f (Electric Lime Green)
   #048afb (Cyber Electric Blue)
   #f40001 (Vivid Crimson Red)
   ========================================================================== */

:root {
  --brand-green: #a2f31f;
  --brand-blue: #048afb;
  --brand-red: #f40001;
}

/* 1. Tricolor Brand Flow (Blue -> Green -> Red) */
.grad-brand-tri {
  background: linear-gradient(115deg, #048afb 0%, #a2f31f 52%, #f40001 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  font-weight: inherit;
}

/* 2. Tricolor Continuous Shimmer Animation */
.grad-brand-shimmer {
  background: linear-gradient(90deg, #048afb 0%, #a2f31f 33%, #f40001 66%, #048afb 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  font-weight: inherit;
  animation: brand-shimmer-flow 7s ease-in-out infinite;
}

@keyframes brand-shimmer-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 3. Blue to Green (High-Tech Engineering) */
.grad-blue-green {
  background: linear-gradient(90deg, #048afb 0%, #a2f31f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  font-weight: inherit;
}

/* 4. Green to Red (Energy & Dynamic Performance) */
.grad-green-red {
  background: linear-gradient(90deg, #a2f31f 0%, #f40001 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  font-weight: inherit;
}

/* 5. Blue to Red (Power & Security Contrast) */
.grad-blue-red {
  background: linear-gradient(90deg, #048afb 0%, #f40001 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  font-weight: inherit;
}

/* 6. White to Brand Blue / Green */
.grad-white-blue {
  background: linear-gradient(90deg, #FFFFFF 15%, #048afb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  font-weight: inherit;
}

.grad-white-green {
  background: linear-gradient(90deg, #FFFFFF 15%, #a2f31f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  font-weight: inherit;
}


/* WebGL Hero Wave Canvas */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-webgl-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
  mix-blend-mode: screen;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}




/* ==========================================================================
   HERO SPLIT STAGE: 3D MODULAR LOGO + PHILOSOPHY CARD
   ========================================================================== */
.hero-split-stage {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 48px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-visual-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-3d-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.hero-3d-logo {
  width: 360px;
  height: 360px;
  max-width: 90vw;
  object-fit: contain;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 45px rgba(4, 138, 251, 0.45));
  /* animation moved to wrap */
  position: relative;
  z-index: 3;
}

.hero-modular-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-modular-tag::before, .hero-modular-tag::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: rgba(0, 210, 255, 0.3);
}

/* Philosophy Glass Card - HIGH CONTRAST & READABILITY */
.hero-philosophy-card {
  background: rgba(6, 14, 30, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(0, 210, 255, 0.28);
  border-radius: var(--radius-xl);
  padding: 38px 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 35px rgba(4, 138, 251, 0.15);
  position: relative;
  z-index: 4;
  text-align: left;
}

.hero-philosophy-lead {
  font-size: 1.08rem;
  line-height: 1.68;
  color: #F8FAFC;
  font-weight: 500;
  margin-bottom: 22px;
}

.philosophy-manifesto-box {
  position: relative;
  padding: 18px 22px;
  background: rgba(3, 7, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--brand-green);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.manifesto-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.manifesto-body {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.manifesto-body strong {
  color: #FFFFFF;
}

.manifesto-body em {
  color: var(--brand-green);
  font-style: normal;
  font-weight: 600;
}

/* 3 Modular Pillars */
.philosophy-pillars-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.ph-pillar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ph-pillar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* LOWER STATS RIBBON SECTION */
.stats-ribbon-section {
  padding: 40px 0 60px;
  position: relative;
  z-index: 2;
}

.stats-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-ribbon-card {
  padding: 28px 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.35s ease;
}

.stat-ribbon-card:hover {
  transform: translateY(-4px);
  border-color: var(--neon-cyan);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 210, 255, 0.2);
}

.stat-ribbon-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--neon-cyan);
}

.stat-ribbon-content {
  display: flex;
  flex-direction: column;
}

.stat-ribbon-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-ribbon-title {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.stat-ribbon-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 992px) {
  .hero-split-stage {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stats-ribbon-grid {
    grid-template-columns: 1fr;
  }
  .hero-philosophy-card {
    padding: 30px 24px;
  }
}


/* ==========================================================================
   INTERACTIVE MODULAR HERO (FIT 100% ABOVE THE FOLD)
   Left: 3 Interactive Pillars | Center: 3D Rotating Logo | Right: Dynamic Philosophy Card
   ========================================================================== */
.hero-section {
  padding-top: 100px;
  padding-bottom: 24px;
  position: relative;
  text-align: center;
  overflow: hidden;
  background-color: #030712;
  min-height: auto;
}

.hero-header-center {
  max-width: 860px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--neon-cyan);
  margin-bottom: 12px;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 8px var(--brand-green);
}

.hero-title {
  margin-bottom: 0;
  line-height: 1.15;
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

/* 3-Column Central Stage */
.hero-interactive-stage {
  display: grid;
  grid-template-columns: 240px 300px 1fr;
  gap: 24px;
  align-items: center;
  max-width: 1240px;
  margin: 20px auto 0;
  position: relative;
  z-index: 3;
}

/* Left: 3 Stacked Interactive Pillar Buttons */
.pillar-selector-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.pillar-selector-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(7, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  text-align: left;
  width: 100%;
}

.pillar-selector-btn:hover {
  transform: translateX(4px);
  background: rgba(13, 27, 52, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
}

.pillar-selector-btn.active {
  background: rgba(9, 20, 42, 0.98);
  transform: translateX(6px);
}

.pillar-selector-btn[data-pillar="interoperabilidad"].active {
  border-color: var(--brand-blue);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(4, 138, 251, 0.4);
}

.pillar-selector-btn[data-pillar="evolucion"].active {
  border-color: var(--brand-green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(162, 243, 31, 0.4);
}

.pillar-selector-btn[data-pillar="obsolescencia"].active {
  border-color: var(--brand-red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(244, 0, 1, 0.4);
}

.pillar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.pillar-selector-btn.active .pillar-dot {
  transform: scale(1.3);
}

.pillar-btn-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.pillar-btn-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pillar-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-left: 4px;
}

/* Center: Rotating 3D Cube Logo */
.hero-center-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-3d-logo-wrap {
  width: 290px;
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-3d-logo {
  width: 280px;
  height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 35px rgba(4, 138, 251, 0.4));
  transition: transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
  cursor: pointer;
}

.hero-code-pill-center {
  margin-top: 8px;
  padding: 6px 18px;
  background: rgba(7, 15, 30, 0.90);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Right: High-Contrast Dynamic Philosophy Card */
.hero-philosophy-card {
  background: rgba(6, 14, 30, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: left;
  position: relative;
  z-index: 4;
}

.card-dynamic-container {
  min-height: 190px;
  transition: opacity 0.3s ease;
}

.card-dynamic-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-dynamic-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 10px;
  line-height: 1.2;
}

.card-dynamic-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.card-dynamic-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.dynamic-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions-row .btn {
  padding: 10px 20px;
  font-size: 0.86rem;
}

@media (max-width: 1024px) {
  .hero-interactive-stage {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .pillar-selector-column {
    flex-direction: row;
    justify-content: center;
  }
  .pillar-selector-btn {
    width: auto;
  }
  .hero-philosophy-card {
    text-align: center;
  }
  .hero-actions-row {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .pillar-selector-column {
    flex-direction: column;
  }
  .pillar-selector-btn {
    width: 100%;
  }
}


/* Fix: Explicit rotation rule without keyframe collision */
.hero-3d-logo-wrap {
  width: 290px;
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: logo-bob 5s ease-in-out infinite alternate !important;
}

#interactive-hero-logo, .hero-3d-logo {
  width: 280px;
  height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 35px rgba(4, 138, 251, 0.4));
  transition: transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  transform-origin: 50% 50% !important;
  animation: none !important;
  will-change: transform;
  cursor: pointer;
}


/* ==========================================================================
   SISTEMA DE MICROINTERACCIONES & REDUCED MOTION (Guía de Movimiento)
   ========================================================================== */
button, .btn, .pillar-selector-btn, .nav-action-btn, .hero-btn-primary, .hero-btn-secondary {
  transition: transform var(--motion-duration-fast) var(--motion-ease-standard),
              background-color var(--motion-duration-fast) var(--motion-ease-standard),
              border-color var(--motion-duration-fast) var(--motion-ease-standard),
              box-shadow var(--motion-duration-fast) var(--motion-ease-standard);
  will-change: transform;
}

button:hover, .btn:hover, .pillar-selector-btn:hover, .nav-action-btn:hover, .hero-btn-primary:hover, .hero-btn-secondary:hover {
  transform: translateY(-2px) scale(var(--motion-scale-hover));
}

button:active, .btn:active, .pillar-selector-btn:active, .nav-action-btn:active, .hero-btn-primary:active, .hero-btn-secondary:active {
  transform: translateY(0) scale(var(--motion-scale-pressed)) !important;
  transition-duration: var(--motion-duration-instant) !important;
}

@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;
  }
}


/* ==========================================================================
   BOTONES INSTITUCIONALES (Azul -> Verde en Hover -> Rojo en Click)
   ========================================================================== */
.btn,
.btn-cyan,
.btn-primary,
.nav-btn-cv,
.hero-btn-primary,
.btn-glass,
.btn-service-learn {
  background: linear-gradient(135deg, #048afb 0%, #036cdb 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(4, 138, 251, 0.45) !important;
  box-shadow: 0 4px 18px rgba(4, 138, 251, 0.35) !important;
  transition: background 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.16s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Hover: Pasa a Verde Institucional (#a2f31f) con texto oscuro para contraste AAA */
.btn:hover,
.btn-cyan:hover,
.btn-primary:hover,
.nav-btn-cv:hover,
.hero-btn-primary:hover,
.btn-glass:hover,
.btn-service-learn:hover {
  background: linear-gradient(135deg, #a2f31f 0%, #8de512 100%) !important;
  color: #030712 !important;
  border-color: rgba(162, 243, 31, 0.75) !important;
  box-shadow: 0 6px 26px rgba(162, 243, 31, 0.50) !important;
  transform: translateY(-2px) scale(1.01) !important;
}

/* Click / Active / Pressed: Pasa a Rojo Institucional (#f40001) */
.btn:active,
.btn-cyan:active,
.btn-primary:active,
.nav-btn-cv:active,
.hero-btn-primary:active,
.btn-glass:active,
.btn-service-learn:active,
.btn.btn-clicked,
.btn-cyan.btn-clicked,
.btn-glass.btn-clicked,
.btn-service-learn.btn-clicked,
.nav-btn-cv.btn-clicked {
  background: linear-gradient(135deg, #f40001 0%, #d50001 100%) !important;
  color: #FFFFFF !important;
  border-color: rgba(244, 0, 1, 0.85) !important;
  box-shadow: 0 2px 22px rgba(244, 0, 1, 0.65) !important;
  transform: translateY(0) scale(0.97) !important;
  transition-duration: 0.08s !important;
}

/* ==========================================================================
   TARJETAS OCULTAS POR DEFECTO PARA REVELADO PROGRESIVO POR SCROLL
   ========================================================================== */
.stats-ribbon-section .stat-ribbon-card,
#servicios .showcase-service-card,
#nosotros .glass-panel,
#experiencia .glass-panel,
#metodologia .glass-panel,
#contacto .glass-panel,
.scroll-reveal-init {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  will-change: opacity, transform;
}

.stat-ribbon-card.is-revealed,
.showcase-service-card.is-revealed,
.glass-panel.is-revealed,
.scroll-reveal-init.is-revealed {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1) !important;
}
