.hidden {
  display: none !important;
}

:root {
  --color-bg: #0f172a;
  /* Lighter, slate-navy */
  --color-bg-soft: #1e293b;
  --color-panel: #334155;
  --color-gold: #00C6FF;
  --color-gold-light: #7B1FA2;
  --color-gold-dark: #0091EA;
  --color-text: #f1f5f9;
  --color-text-muted: #cbd5e1;
  --color-border: #334155;
  --color-accent: #7B1FA2;

  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 198, 255, 0.3);

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==================== CURSOR PERSONALIZADO (ELIMINADO) ==================== */
/* Se restauran los cursores nativos para mejor UX */
a,
button,
.service-card,
.card-3d,
.btn-magnetic {
  cursor: pointer !important;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(123, 31, 162, 0.15) 0%, rgba(5, 10, 24, 0) 70%);
}

.hero-gradient {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
  animation: float 10s infinite ease-in-out;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 31, 162, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
}

/* ==================== PARTÍCULAS ==================== */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 20s infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  25% {
    transform: translateY(-100px) translateX(50px);
  }

  50% {
    transform: translateY(-200px) translateX(-50px);
  }

  75% {
    transform: translateY(-100px) translateX(100px);
  }
}

/* ==================== SCROLL PROGRESS ==================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-accent));
  z-index: 9998;
  transition: width 0.1s ease;
}

/* ==================== NAVEGACIÓN ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.5rem 0;
  /* Minimal padding to keep header slim with large logo */
  backdrop-filter: blur(20px);
  background: rgba(2, 6, 23, 0.8);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  transition: all var(--transition-base);
}

.nav.scrolled {
  padding: 0.4rem 0;
  /* Ultra compact on scroll */
  background: rgba(2, 6, 23, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Groups items to the left instead of spreading them */
  gap: 0;
  /* Control spacing manually on children for precision */
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  margin-right: 0.5rem;
  /* Drastically reduced to remove gap */
  padding-right: 0.5rem;
  /* Drastically reduced to bring line closer */
}

/* Vertical Gradient Separator */
.nav-brand::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 40px;
  /* Partial height */
  background: linear-gradient(to bottom, #06b6d4, #d946ef);
  /* Cyan to Purple gradient */
  border-radius: 2px;
  opacity: 0.8;
}

.nav-logo {
  width: auto;
  height: 75px;
  /* Restored to 75px to match the user's desired prominence */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  transition: transform var(--transition-base);
  margin-right: 0;
}

.nav-logo:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 15px rgba(0, 198, 255, 0.4));
}

.nav-logo img {
  width: auto;
  height: 100%;
  max-height: 75px;
  object-fit: contain;
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
}

.nav-text {
  display: none;
  /* Hidden as the logo image contains the text */
}

.nav-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-left: 1.5rem;
  /* The ONLY space between Logo-Line and Menu */
}

/* Mobile elements hidden on desktop */
.mobile-menu-close,
.mobile-socials,
.mobile-text,
.mobile-about-label {
  display: none;
}

/* Push the button to the far right */
.nav-container .btn-magnetic {
  margin-left: auto;
}

/* Nav Button Call - Updated for Responsiveness */
.btn-nav-call {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  /* Reduced padding */
  font-size: 0.9rem;
  /* Match nav-link roughly (0.95rem might be too big for a button, 0.9 is safer) */
  border-radius: 12px;
  font-weight: 600;
  /* Match nav-link weight closer */
  text-transform: none;
  /* Remove uppercase to match "Inicio", "Servicios" */
  letter-spacing: 0.5px;
  margin-left: auto;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-nav-call span {
  display: inline-block;
}

@media (max-width: 768px) {

  .btn-nav-call,
  .neural-access-btn,
  #langToggle,
  .nav-toggle {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 0.85rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 8px !important;
    background: rgba(139, 92, 246, 0.1) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
  }

  .btn-nav-call i,
  .neural-access-btn i {
    font-size: 1rem !important;
    margin: 0 !important;
  }

  .btn-nav-call span {
    display: none !important;
  }

  /* Explicit Fix for Mobile Menu Icon */
  .nav-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    width: 38px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;

    /* Shape & Color - Match 'Brain' Button */
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    background: rgba(139, 92, 246, 0.1) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin-left: 8px !important;
  }

  button#navToggle span {
    width: 18px !important;
    height: 2px !important;
    background: #f8fafc !important;
    /* Bright white lines */
    margin: 0 !important;
    border-radius: 2px;
  }
}


.btn-nav-call i {
  font-size: 0.9rem;
}


.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition-base);
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-accent));
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
  transform: scale(1.05);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-base);
}

/* Brain Button in Nav */
.nav-brain-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
  margin-left: auto;
  margin-right: 0.75rem;
}

.nav-brain-btn:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
}

.nav-brain-btn i {
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* ==================== GLOBAL STYLES ==================== */
.nova-dex-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.gradient-text {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-weight: 800;
  text-transform: uppercase;
}

.highlight-purple {
  color: inherit;
  font-weight: inherit;
}

.card-subtitle {
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-weight: 700;
}

/* ==================== BOTONES ==================== */
.btn-magnetic {
  position: relative;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  overflow: hidden;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  /* Cyan to Blue */
  color: white;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #a855f7;
  /* Purple border on hover */
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.btn-nova {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  /* Violet to Fuchsia */
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-nova:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.btn-large {
  padding: 0.8rem 1.5rem;
  /* Reduced from 1.125rem 2rem */
  font-size: 0.95rem;
  /* Reduced from 1.05rem */
}

.btn-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
  pointer-events: none;
  z-index: -1;
}

.btn-magnetic:hover .btn-glow {
  transform: translate(-50%, -50%) scale(2);
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  /* Reduced from 1rem */
  margin-bottom: 3rem;
  flex-wrap: wrap;
  /* Keep wrap for mobile safety, but size normally prevents it now */
  align-items: center;
  justify-content: start;
}

.btn-service {
  width: 100%;
  justify-content: space-between;
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.75rem 1.25rem;
}

.btn-service:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--color-gold);
  transform: translateX(4px);
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  min-height: auto;
  /* Changed from 100vh to remove empty space */
  display: flex;
  align-items: flex-start;
  /* Aligns content to top */
  padding: 140px 0 2rem;
  /* Adjusted padding to create natural bottom spacing */
  /* Fixed top spacing */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  /* Reduced from 4rem to fix empty space */
  align-items: start;
  /* Changed from center to start */
}

.hero-content {
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: rgba(248, 250, 252, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
  /* Drastically reduced */
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  width: 100%;
}

.title-line {
  display: block !important;
  white-space: nowrap !important;
  /* Force single line */
  animation: slideIn 0.8s ease;
}

.title-line:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-description-text {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  /* Remove bottom margin here, applying to container */
  line-height: 1.8;
}

.hero-description-container {
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* Mobile Layout Unificaiton - STYLES MOVED TO MAIN MEDIA QUERY @ line 6245 */


.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* ==================== NOVA SEPARATOR ==================== */
.nova-separator {
  grid-column: 1 / -1;
  width: 85%;
  /* Not full width */
  height: 2px;
  margin: 0.5rem auto;
  /* Centered */
  /* Gradient with transparent ends for "puntas" effect */
  background: linear-gradient(90deg,
      transparent 0%,
      #06b6d4 15%,
      #8b5cf6 50%,
      #d946ef 85%,
      transparent 100%);
  border-radius: 100%;
  /* Smooth tapered look */
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
  /* Enhanced centered glow */
  opacity: 1;
}

/* ==================== HERO FOOTER UNIFIED ==================== */
.hero-footer-unified {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2rem;
  /* Reduced padding for compact look */
  background: rgba(2, 6, 23, 0.6);
  /* Slightly darker for better contrast */
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  /* Slightly tighter radius */
  margin-top: 0.5rem;
  /* Small margin after separator */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  flex-wrap: wrap;
  /* Responsive wrap */
  width: 100%;
}

.hero-footer-unified:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* --- Stats Side --- */
.footer-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-stat-divider {
  width: 1px;
  height: 30px;
  /* Shorter divider */
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* --- Socials Side --- */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
  /* Tighter social gap */
}

/* --- Unified Icon Style (Blue Square) --- */
.icon-box-blue {
  width: 42px;
  /* Smaller, more compact icons */
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #3b82f6;
  /* Blue-500 from Tailwind/Ref */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.social-btn-unified {
  width: 42px;
  /* Smaller, more compact icons */
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #3b82f6;
  /* Blue icon default */
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-btn-unified:hover {
  background: #3b82f6;
  /* Blue background on hover */
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
  border-color: transparent;
}

/* Override text colors for stats */
.footer-stat-item .stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  /* Adjusted for balance */
  font-weight: 800;
  line-height: 1;
  color: white;
  /* Clean white numbers */
}

.footer-stat-item .stat-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}


/* ==================== FLASH-CALL MODAL (NEON GLASS) ==================== */
.flash-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.flash-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.flash-modal-glass {
  width: 90%;
  max-width: 420px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 198, 255, 0.15);
  /* Blue Glow */
  border-radius: 24px;
  padding: 2.5rem 2rem;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(20px);
}

.flash-modal-overlay.active .flash-modal-glass {
  transform: translateY(0) scale(1);
}

/* Close Button */
.flash-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.flash-close-btn:hover {
  color: #ef4444;
  /* Red for close */
}

/* Header */
.flash-header {
  text-align: center;
  margin-bottom: 2rem;
}

.flash-icon-pulse {
  width: 60px;
  height: 60px;
  background: rgba(0, 198, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #00C6FF;
  /* Start Cyan */
  font-size: 1.5rem;
  border: 1px solid rgba(0, 198, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.2);
  animation: flashPulse 2s infinite;
}

@keyframes flashPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 198, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(0, 198, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 198, 255, 0);
  }
}

.flash-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.flash-header p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Smart Inputs */
.flash-input-group {
  position: relative;
  margin-bottom: 1rem;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 1.1rem;
  pointer-events: none;
  transition: color 0.3s ease;
}

.flash-input-group input {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1rem 1rem 3rem;
  /* Space for icon */
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.flash-input-group input:focus {
  outline: none;
  border-color: var(--color-gold);
  /* Cyan */
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 4px rgba(0, 198, 255, 0.1);
}

.flash-input-group input:focus+.input-glow+.input-icon {
  color: var(--color-gold);
}

/* Power Switch */
.flash-switch-container {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  padding: 0.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.switch-option {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
}

.switch-option.active {
  color: white;
}

.switch-slider {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  width: calc(50% - 0.3rem);
  height: calc(100% - 0.6rem);
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  /* Cyan Gradient */
  border-radius: 10px;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Schedule Options */
.schedule-options {
  margin-bottom: 1.5rem;
  display: none;
  /* Hidden by default */
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.selector-row {
  display: flex;
  gap: 0.75rem;
}

.flash-select {
  flex: 1;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.75rem;
  border-radius: 12px;
  font-family: var(--font-primary);
  cursor: pointer;
}

.schedule-hint {
  font-size: 0.75rem;
  text-align: center;
  margin-top: 0.5rem;
  color: #10b981;
  /* Green success */
}

.privacy-micro {
  text-align: center;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  opacity: 0.7;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ==================== HERO FOOTER UNIFIED ==================== */
.hero-footer-unified {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(10, 15, 30, 0.7) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  /* Matches reference image roundedness */
  padding: 0.85rem 1.8rem !important;
  /* Más alto */
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 0.8rem !important;
  /* Aún más arriba */
  gap: 1.5rem !important;
  animation: fadeInUp 1s ease 0.6s both;
}

.footer-stats {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
  flex: 1 !important;
}

.footer-stat-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.footer-stat-item:hover {
  transform: translateY(-2px) !important;
}

.footer-stat-item:hover .icon-box-blue {
  background: rgba(59, 130, 246, 0.2) !important;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3) !important;
  color: #4facfe !important;
}

.footer-stat-item:hover .stat-number {
  color: #4facfe !important;
  text-shadow: 0 0 10px rgba(79, 172, 254, 0.5) !important;
}

.stat-arrow {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  color: var(--color-gold) !important;
}

.footer-stat-item:hover .stat-arrow {
  transform: translateY(8px) scaleY(1.4) !important;
  /* Se alarga hacia abajo */
  color: #4facfe !important;
  text-shadow: 0 0 10px rgba(79, 172, 254, 0.8) !important;
}

.footer-stat-item:hover .stat-label,
.footer-stat-item:hover .stat-text-static {
  color: #fff !important;
  opacity: 1 !important;
}

.footer-stat-divider {
  width: 1px !important;
  height: 24px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  display: block !important;
}

.footer-socials {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  border: none !important;
  padding: 0 !important;
  width: auto !important;
}

.icon-box-blue {
  width: 32px !important;
  height: 32px !important;
  background: rgba(59, 130, 246, 0.1) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #3b82f6 !important;
  font-size: 0.9rem !important;
}

.social-btn-unified {
  width: 32px !important;
  height: 32px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  font-size: 0.85rem !important;
  transition: all 0.3s ease !important;
}

.social-btn-unified:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  border-color: #3b82f6 !important;
  color: #3b82f6 !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 991px) {
  .hero-footer-unified {
    flex-direction: column !important;
    padding: 1.5rem !important;
    gap: 1rem !important;
  }

  .footer-stats {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1rem !important;
  }

  .footer-stat-divider {
    display: none !important;
  }

  .footer-socials {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-top: 1rem !important;
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ==================== HERO VISUAL ==================== */
.hero-visual {
  animation: fadeIn 1.2s ease 0.4s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.card-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.hero-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 0;
  /* Removed padding for full-width HUD */
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  /* Ensure HUD doesn't overflow rounded corners */
}

/* ... */

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  /* Added padding here */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  /* Optional separator */
  background: rgba(5, 10, 24, 0.5);
  position: relative;
  z-index: 10;
}

/* ... */

.card-body {
  display: block;
  /* Reset grid */
  width: 100%;
  padding: 0;
}

.card-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  padding: 0.75rem;
  background: var(--color-bg);
  box-shadow: var(--shadow-glow);
}

.card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}

.card-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==================== SERVICES SECTION ==================== */
#servicios {
  padding: 8rem 0 8rem 0;
  /* INCREASED TOP & BOTTOM PADDING */
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

/* New Inline Wrapper for Tag + Title */
.section-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  /* Safe wrapping on small screens */
}

.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 50px;
  /* Pill shape */
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c084fc;
  /* Violet */
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: white;
  margin: 0;
  line-height: 1.1;
}

.case-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  /* Ligeramente más pequeño para elegancia */
  font-weight: 700;
  /* Menos pesado */
  margin: 0.5rem 0;
  color: #ffffff;
  /* Blanco puro, sin degradados */
  letter-spacing: -0.02em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.case-hero-description {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  margin-top: 1rem;
  opacity: 0.9;
  font-weight: 300;
}

.case-hero-description strong {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  /* Sutil brillo */
}

.section-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 700px;
  margin: 0.5rem auto 0;
}

/* --- Services Grid Refined --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: rgba(5, 10, 24, 0.95);
  /* Nearly solid dark background */
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Subtle border initially */
  border-radius: 20px;
  padding: 1.5rem;
  /* Reduced from 2rem to gain width */
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.03);
  /* Lift + Zoom */
  z-index: 10;
  /* Ensure it stays on top while zooming */
  border-color: rgba(139, 92, 246, 0.9);
  /* Almost solid neon border */
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.6),
    /* Deeper shadow */
    0 0 40px rgba(139, 92, 246, 0.5);
  /* Even stronger glow */
  background: rgba(15, 25, 45, 0.95);
}

/* Horizontal Header within Card */
.service-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  /* Dark Glass */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  margin-bottom: 0;
}

.service-icon i {
  background: linear-gradient(135deg, #00f2fe 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.3));
}

.service-card:hover .service-icon {
  background: rgba(15, 23, 42, 0.9);
  border-color: #00f2fe;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
  transform: scale(1.05) rotate(-5deg);
}

/* Service Card Title - Pink/Purple Gradient match */
.service-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
  background: linear-gradient(90deg, #A855F7 0%, #EC4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
}

.service-description {
  color: #94a3b8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Meta Data (Price & Benefit) */
.service-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: #cbd5e1;
  flex-wrap: nowrap !important;
  gap: 0.5rem;
}

.service-price {
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  /* Changed from baseline to center */
  font-size: 0.85rem;
  line-height: normal !important;
  /* Reset line height */
}

.price-highlight {
  /* USER REQUEST: "los colores del precio deben ser rosas como el boton" */
  background: linear-gradient(90deg, #A855F7 0%, #EC4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 1.5rem !important;
  margin-left: 0.3rem;
  white-space: nowrap !important;
  display: flex !important;
  align-items: baseline !important;
  line-height: normal !important;
  filter: drop-shadow(0 0 5px rgba(236, 72, 153, 0.3));
}

.service-time {
  /* USER REQUEST: "lo que esta escrito en amarillo debe ser de color como el titulo" */
  background: linear-gradient(135deg, #00f2fe 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.6rem !important;
  /* Tiny */
  letter-spacing: 0.05em;
  white-space: nowrap !important;
  /* Force Single Line */
  text-align: right;
  line-height: normal !important;
}

.service-time i {
  /* USER REQUEST: "junto a su icono" (Gradient too) */
  background: linear-gradient(135deg, #00f2fe 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  /* Force gradient visibility */
  font-size: 0.75rem;
}

/* Specific Style for Small MXN in Main Card */
.service-price .price-curr,
.service-price-main .service-price-curr {
  font-size: 0.4em !important;
  /* Smaller MXN */
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.6) !important;
  /* NOT white, consistent with design */
  margin-left: 6px;
  transform: none;
  display: inline-block;
}

/* Tagline below button */
.service-tag-bottom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: -5px;
  /* Pull it UP closer to the lifted button */
  color: #00f2fe;
  /* Cyan Match */
  font-size: 0.7rem;
  /* Slightly smaller */
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-left: 2px;
  /* Align with button visual start */
}

.service-tag-bottom i {
  font-size: 0.9rem;
}

/* ==================== RESTORED SERVICE ACTION ROW ==================== */
.service-action-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 1rem;
  /* Reduced from 1.5rem to "raise" button */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
}

.service-action-row .btn-nova-sm {
  margin-bottom: 10px;
  /* USER REQUEST: "el boton subelo un poco mas" - Lifts button relative to price */
}

.service-price-container {
  text-align: right;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  /* Force Right Alignment of children */
  height: 100%;
  cursor: pointer;
  /* USER REQUEST: Make it interactive */
  transition: transform 0.3s ease;
}

.service-price-container:hover {
  transform: scale(1.05);
  /* Pop effect */
}

.service-price-main {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.service-price-label {
  display: block;
  font-size: 0.7rem;
  color: #00f2fe;
  /* Cyan match */
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 0;
  margin-right: 0;
  /* Ensure flush right */
  width: 100%;
  /* Take full width to respect text-align */
  text-align: right;
  /* Explicitly align text right */
}

/* Nova Small Button */
.btn-nova-sm {
  background: linear-gradient(90deg, #A855F7 0%, #EC4899 100%);
  /* Purple -> Pink (Modal Match) */
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.btn-nova-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
  filter: brightness(1.1);
}

/* Card Glow Effect */
.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover .card-glow {
  opacity: 1;
}

/* ==================== SERVICES CONNECTORS ==================== */
.services-connectors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  /* Was 0, maybe covered by container */
  overflow: hidden;
  opacity: 1;
  /* Fully opaque to ensure visibility, animation handles inner opacity */
}

.services-connectors svg {
  width: 100%;
  height: 100%;
}

.connector-path {
  stroke: url(#connectorGrad);
  stroke-width: 4;
  stroke-dasharray: 400 800;
  /* Longer beam, longer gap for longer path */
  stroke-dashoffset: 1600;
  /* Start hidden (path is approx 1200px long now) */
  stroke-linecap: square;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6));
  animation: drawEnergy 3s linear infinite;
}

.connector-path.right {
  animation-delay: 1.5s;
}

@keyframes drawEnergy {
  0% {
    stroke-dashoffset: 1600;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: -400;
    /* Travel full length */
    opacity: 0;
  }
}

.service-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--radius-md);
  display: inline-block;
}

/* ==================== TECH FLOATING ICONS ==================== */
.tech-floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  /* Behind content */
}

.float-icon {
  position: absolute;
  font-size: 2.5rem;
  /* Large but not huge */
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(217, 70, 239, 0.4));
  background-clip: text;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* Fallback */
}

/* Staggered Animations */
.float-icon.icon-1 {
  animation-delay: 0s;
  font-size: 3rem;
}

.float-icon.icon-2 {
  animation-delay: 2s;
  font-size: 2rem;
  transform: rotate(15deg);
}

.float-icon.icon-3 {
  animation-delay: 4s;
  font-size: 2.5rem;
}

.float-icon.icon-4 {
  animation-delay: 1s;
  font-size: 3.5rem;
}

.float-icon.icon-5 {
  animation-delay: 3s;
  font-size: 2.2rem;
  transform: rotate(-10deg);
}

.float-icon.icon-6 {
  animation-delay: 5s;
  font-size: 2.8rem;
}

/* Lower Icons */
.float-icon.icon-7 {
  animation-delay: 0.5s;
  font-size: 2.6rem;
}

/* ==================== APPS SECTION ==================== */
#apps {
  padding-top: 6rem;
  /* SPACED OUT from Services */
  position: relative;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.app-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  /* Fills remaining space */
  text-align: left;
}

.app-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.app-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  /* Pushes button down */
}

/* Align buttons to bottom */
.app-info .btn-magnetic {
  margin-top: auto;
  align-self: flex-start;
  /* Align left */
}

@media (max-width: 991px) {
  .apps-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

.float-icon.icon-8 {
  animation-delay: 2.5s;
  font-size: 3rem;
  opacity: 0.5;
}

.float-icon.icon-9 {
  animation-delay: 4.5s;
  font-size: 2.2rem;
  transform: rotate(-5deg);
}

.float-icon.icon-10 {
  animation-delay: 1.5s;
  font-size: 2.8rem;
}

.float-icon.icon-11 {
  animation-delay: 3.5s;
  font-size: 2.4rem;
  transform: rotate(10deg);
}

.float-icon.icon-12 {
  animation-delay: 5.5s;
  font-size: 3.2rem;
}

@keyframes hologramFloat {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }

  20% {
    opacity: 0.6;
    /* Semi-transparent peak */
    transform: translateY(0) scale(1);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
    /* Glow pulse */
  }

  80% {
    opacity: 0.6;
    transform: translateY(-20px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-40px) scale(1.1);
  }
}

/* ==================== MODAL ==================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  overflow-y: auto;
  animation: slideUp 0.4s ease;
  z-index: 1;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-base);
  transition: all var(--transition-base);
}

.modal-close:hover {
  background: rgba(248, 250, 252, 0.1);
  border-color: var(--color-gold);
  transform: rotate(90deg);
}

/* ==================== CONTACT SECTION ==================== */
.contact {
  padding: 8rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.info-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item svg {
  color: var(--color-gold);
}

/* ==================== TECH MARQUEE (SEPARADOR) ==================== */
.tech-marquee-section {
  position: relative;
  width: 100%;
  height: 120px;
  /* Reduced height for cleaner look without text */
  /* Franja compacta */
  background: #0f0518;
  /* Dark base to match theme */
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  overflow: visible !important;
  /* Allow Ribbon to float out */
  margin: 0;
  /* REMOVED GAP: Now touches Hero directly to prevent "blue body" show-through */
  box-shadow: none;
  /* USER REQUEST: Remove glow/shadow specific colors */
  border: none;
  /* USER REQUEST: Remove colored borders */
  z-index: 10;
}

/* Adjust Marquee Mask to sit centered */
.tech-marquee-mask {
  margin-top: 0px;
}

/* CLIPPER WRAPPER for Marquee */
.tech-marquee-mask {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

/* Purple Overlay Gradient - Moved to Mask to respect overflow */
.tech-marquee-mask::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(15, 5, 24, 1) 0%,
      rgba(168, 85, 247, 0.1) 50%,
      rgba(15, 5, 24, 1) 100%);
  z-index: 2;
  /* Sits above icons partially? No, icons need to be visible. */
  pointer-events: none;
  /* Let clicks pass through if any */
}

/* Ensure icons are clickable/hoverable */
.tech-track {
  display: flex;
  width: fit-content;
  animation: scrollTech 40s linear infinite;
  z-index: 1;
}

.tech-track:hover {
  animation-play-state: paused;
  /* Pause on hover for easier viewing */
}

.tech-slide {
  display: flex;
  align-items: center;
  gap: 4rem;
  /* Spacing between icons */
  padding: 0 2rem;
  white-space: nowrap;
}

.tech-slide i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.3);
  /* Base Opacity */
  filter: grayscale(100%);
  /* B&W by default */
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* SUBTLE NAME BELOW */
.tech-slide i::after {
  content: attr(data-name);
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  font-size: 0.65rem;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  color: inherit;
  /* Matches icon color */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tech-slide i:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-5px) scale(1.15);
  text-shadow: 0 0 15px currentColor;
}

.tech-slide i:hover::after {
  opacity: 0.7;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Specific Brand Colors for Hover (Optional Polish) */
.tech-slide i.fa-react:hover {
  color: #61DAFB;
}

.tech-slide i.fa-js:hover {
  color: #F7DF1E;
}

.tech-slide i.fa-html5:hover {
  color: #E34F26;
}

.tech-slide i.fa-css3-alt:hover {
  color: #1572B6;
}

.tech-slide i.fa-python:hover {
  color: #3776AB;
}

.tech-slide i.fa-node-js:hover {
  color: #339933;
}

.tech-slide i.fa-aws:hover {
  color: #FF9900;
}

.tech-slide i.fa-docker:hover {
  color: #2496ED;
}

.tech-slide i.fa-git-alt:hover {
  color: #F05032;
}

.tech-slide i.fa-figma:hover {
  color: #F24E1E;
}

.tech-slide i.fa-google:hover {
  color: #4285F4;
}

.tech-slide i.fa-meta:hover {
  color: #0668E1;
}

.tech-slide i.fa-tiktok:hover {
  color: #FE2C55;
}

.tech-slide i.fa-robot:hover {
  color: #00f2fe;
}

/* Brand Cyan for Generic AI */


@keyframes scrollTech {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Move half the width (since we duplicated) */
}

/* ==================== FOOTER (SINGLE LINE & CARDBOX STYLE) ==================== */
.footer {
  background: rgba(5, 5, 16, 0.95) !important;
  /* Solid dark but glass-like */
  backdrop-filter: blur(10px);
  padding: 1.2rem 0;
  border-top: 1px solid rgba(168, 85, 247, 0.3);
  /* Purple tint border */
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
  /* Subtle bottom border */
  font-family: var(--font-primary);
  font-size: 0.9rem;
  box-shadow: 0 -5px 20px rgba(168, 85, 247, 0.15);
  /* Purple glow upwards */
  position: relative;
  z-index: 10;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo-text {
  font-family: 'Orbitron', sans-serif !important;
  font-weight: 900;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #fff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.5));
  /* Glow effect */
}

.footer-copyright {
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.03);
  /* Subtle pill background */
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-nav a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
  /* Text glow on hover */
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .footer-row {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    background: transparent;
    border: none;
    padding: 0;
  }
}

/* ==================== PORTFOLIO SECTION ==================== */
.portfolio {
  padding: 2rem 0;
  /* Aggressively reduced */
  position: relative;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: scale(1);
}

.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  position: absolute;
  pointer-events: none;
}

.portfolio-item:hover {
  border-color: var(--color-gold);
  transform: translateY(-5px);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(245, 158, 11, 0.1),
    0 0 20px rgba(245, 158, 11, 0.2);
}

.portfolio-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: transparent;
  overflow: visible;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(241, 245, 249, 0.5) 100%);
  z-index: 0;
  pointer-events: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.03) translateY(-5px);
  filter: drop-shadow(0 10px 20px rgba(245, 158, 11, 0.2));
}

.portfolio-item:hover .portfolio-image img {
  transform: none;
  filter: none;
}

.service-tag {
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-gold);
  transition: all var(--transition-base);
}

/* ... existing styles ... */

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.7), rgba(217, 119, 6, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  backdrop-filter: blur(4px);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  /* Adjust for fixed header */
}

@media (max-width: 768px) {
  .package-card .btn-magnetic {
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
  }
}


/* ... existing styles ... */

.btn-view {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  border: 1px solid var(--color-gold);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
}

.portfolio-item:hover .btn-view {
  transform: translateY(0);
  opacity: 1;
}

.btn-view:hover {
  background: var(--color-gold);
  color: #0f172a;
  /* Dark blue/slate color matching the theme */
  border-color: var(--color-gold);
  transform: scale(1.05) !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.portfolio-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.meta-item svg {
  color: var(--color-gold);
  flex-shrink: 0;
}

.meta-divider {
  color: var(--color-border);
  font-size: 0.75rem;
}

.portfolio-services {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.service-tag {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold);
  transition: all var(--transition-base);
}

.service-tag:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.25));
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.portfolio-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.portfolio-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.portfolio-tags span {
  padding: 0.375rem 0.75rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  color: var(--color-gold);
}

/* ==================== PROCESS TIMELINE ==================== */
.process {
  padding: 8rem 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.5), transparent);
}

.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-gold), var(--color-accent));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.timeline-item:nth-child(odd) .timeline-content {
  grid-column: 1;
}

.timeline-item:nth-child(even) .timeline-content {
  grid-column: 3;
}

.timeline-number {
  grid-column: 2;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-bg);
  box-shadow: var(--shadow-glow);
  z-index: 2;
}

.timeline-content {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.timeline-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--radius-lg);
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.timeline-content p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.timeline-duration {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--color-gold);
  font-weight: 600;
}

/* ==================== TESTIMONIALS CAROUSEL ==================== */
.testimonials {
  padding: 8rem 0;
}

.testimonials-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 4rem;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  min-width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  backdrop-filter: blur(10px);
}

.testimonial-stars {
  color: var(--color-gold);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.25rem;
}

.testimonial-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-bg);
}

.author-info h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.3);
  border: 1px solid var(--color-border);
  background: rgba(148, 163, 184, 0.3);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-base);
  transition: all var(--transition-base);
}

.carousel-dot.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  transform: scale(1.2);
}

/* ==================== FAQ SECTION ==================== */
.faq {
  padding: 8rem 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item.active {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-base);
}

.faq-question:hover {
  color: var(--color-gold);
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(59, 130, 246, 0.1));
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
  animation: gradientShift 8s ease infinite;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content>p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cta-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    grid-column: 1;
  }

  .timeline-number {
    grid-column: 1;
    justify-self: start;
    margin-bottom: 1rem;
  }

  .process-timeline::before {
    left: 30px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-carousel {
    padding: 0 3rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-note {
    flex-direction: column;
    gap: 0.5rem;
  }

  body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-outline {
    display: none;
  }
}

/* ==================== WHY VALKYRIA SECTION ==================== */
.why-nova {
  padding: 8rem 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.3), transparent);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.why-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition-base);
}

.why-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.why-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
  border-radius: var(--radius-lg);
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  transition: all var(--transition-base);
}

.why-card:hover .why-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.3));
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.why-card p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ==================== TECH STACK V2: ICON GRID HUD ==================== */
.tech-stack {
  text-align: center;
  padding: 2rem 0 6rem 0;
  border-top: none;
  position: relative;
  /* More tech, less heavy */
  background: radial-gradient(circle at center top, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
}

/* Neural Connector: Subtle Data Line */
.tech-stack::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent, #06b6d4, transparent);
  opacity: 0.6;
}

/* Title: Clean & Technical (Request: "Ni al caso" -> Fixed) */
.tech-stack h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  /* Smaller, HUD style */
  color: #64748b;
  /* Muted tech color */
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 3rem;
  display: inline-block;
  border-bottom: 1px solid rgba(6, 182, 212, 0.3);
  padding-bottom: 10px;
}

/* Grid Layout */
.tech-grid-hud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  /* Airy spacing */
  max-width: 900px;
  margin: 0 auto;
}

/* Individual Tech Node */
.tech-node.small {
  position: relative;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==================== SIDE-BY-SIDE SPLIT LAYOUT ==================== */
.split-layout-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 3rem !important;
  /* Proper spacing between Card and Icons */
  width: 100% !important;
  margin-bottom: 2rem !important;
}

.split-layout-wrapper.reverse {
  flex-direction: row-reverse !important;
  /* Zig-Zag: Tech Stack */
}

/* Children Sizing - Fill the Void */
.split-layout-wrapper .header-card-box {
  flex: 0 0 500px !important;
  /* Fixed ideal width */
  max-width: 45%;
  /* Responsive max */
  margin-bottom: 0 !important;
  /* Remove bottom margin in flex context */
}

.split-layout-wrapper .why-timeline-wrapper,
.split-layout-wrapper .tech-grid-hud {
  flex: 1 !important;
  /* Grow to fill ANY remaining space */
  width: auto !important;
  padding: 0 !important;
  /* Reset padding to fit */
}

/* Ensure Timeline/Grid children behave in flex parent */
.split-layout-wrapper .timeline-nodes,
.split-layout-wrapper .tech-grid-row {
  width: 100% !important;
}

/* ==================== SINGLE LINE TITLE ENFORCEMENT & CLIPPING FIX ==================== */
/* ==================== SINGLE LINE TITLE ENFORCEMENT & CLIPPING FIX ==================== */
.header-card-box h2 {
  white-space: nowrap !important;
  /* Force Single Line */
  /* Aggressively Reduced: scales from 0.75rem to 1.35rem max */
  font-size: clamp(0.75rem, 1.3vw, 1.35rem) !important;
  margin-bottom: 0.5rem !important;
  width: 100% !important;
  text-overflow: ellipsis !important;
  /* Graceful fallback */
  overflow: hidden !important;
  /* Ensure clip if it somehow still overflows */
}

/* Description Sizing to avoid clip */
.header-card-box .section-description {
  font-size: clamp(0.85rem, 1vw, 1rem) !important;
  line-height: 1.4 !important;
}

/* ==================== POPOVER DIRECTION: DOWNWARDS ==================== */
.tech-popover,
.why-popover {
  bottom: auto !important;
  /* Reset bottom */
  top: 130% !important;
  /* Push Down */
  transform: translateX(-50%) translateY(10px) !important;
  /* Start slightly lower */
}

.tech-node:hover .tech-popover,
.timeline-item:hover .why-popover {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
  /* Move up to final pos */
  pointer-events: auto !important;
}

/* Arrow adjustment for Top-pointing arrow since it's below */
.tech-popover::after,
.why-popover::after {
  top: -6px !important;
  /* Arrow at top of popover */
  bottom: auto !important;
  border-color: transparent transparent rgba(15, 23, 42, 0.95) transparent !important;
  /* Point Up */
}

/* Responsive Stack for Mobile */
@media (max-width: 991px) {

  .split-layout-wrapper,
  .split-layout-wrapper.reverse {
    flex-direction: column !important;
    /* Stack Vertical */
    /* Stack Vertical */
    gap: 2rem !important;
    text-align: center !important;
  }

  .split-layout-wrapper .header-card-box {
    max-width: 100% !important;
    flex: auto !important;
  }

  .header-card-box h2 {
    white-space: normal !important;
    /* Allow wrap on mobile if needed, or keep scaled down */
    font-size: 1.5rem !important;
  }
}

/* ==================== HEADER CARD BOXES (Refined Compact) ==================== */
.header-card-box {
  background: rgba(15, 23, 42, 0.7);
  /* Deep Glass */
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Subtle Border */
  padding: 1.5rem 2rem;
  /* Reduced Padding (Compact) */
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: fit-content;
  max-width: 600px;
  /* Slightly narrower */
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.header-card-box:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Alignment Variants with accent gradient */
.header-card-box.align-left {
  margin-right: auto;
  text-align: left;
  border-left: 3px solid #a855f7;
  /* Thinner border */
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.05) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.header-card-box.align-right {
  margin-left: auto;
  text-align: right;
  border-right: 3px solid #06b6d4;
  /* Thinner border */
  background: linear-gradient(-90deg, rgba(6, 182, 212, 0.05) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.header-card-box .section-description {
  white-space: normal !important;
  max-width: 100% !important;
  margin-top: 0.5rem;
  /* Tighter gap */
  font-size: 1rem;
  /* Slightly smaller text */
}

/* ==================== TIMELINE CONNECTIVITY (Blue Line) ==================== */
.why-timeline-wrapper {
  position: relative;
  padding: 2rem 0;
  width: 100%;
}

/* The Blue Connecting Line */
.timeline-track {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #06b6d4;
  /* Visible Cyan/Blue Line */
  transform: translateY(-50%);
  z-index: 0;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
  /* Glow */
}

.timeline-nodes {
  display: flex;
  justify-content: space-between;
  /* Full width distribution */
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.timeline-item {
  position: relative;
  background: #0f172a;
  /* Hide line behind icon if needed */
  border-radius: 50%;
  z-index: 2;
  padding: 0 10px;
  /* Gap for line entry/exit if we wanted gaps, but we want continuous line behind or through */
  /* Actually, simply removing finding will let line pass behind. */
  padding: 0;
  background: transparent;
}

/* Ensure Icons are visible and buttons style */
.timeline-btn {
  width: 60px;
  /* Standard size */
  height: 60px;
  border-radius: 50%;
  border: 2px solid #06b6d4;
  /* Blue Border matching line */
  background: #0f172a;
  /* Dark bg to block line behind it */
  color: #fff;
  font-size: 1.5rem;
  display: flex !important;
  /* Force flex */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
  position: relative;
  z-index: 2;
}

.timeline-btn:hover {
  background: #06b6d4;
  color: #fff;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
  transform: scale(1.1);
}

/* Timeline styles fix */
.timeline-card.right {
  text-align: right;
  border-right: 4px solid #06b6d4;
  background: linear-gradient(-90deg, rgba(6, 182, 212, 0.05) 0%, rgba(15, 23, 42, 0.7) 100%);
}

/* Ensure Description wraps inside card */
.header-card-box .section-description {
  white-space: normal !important;
  max-width: 100% !important;
  margin-top: 1rem;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.stat-icon-box {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.mini-stat-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1;
}

.mini-stat-info span {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Icon Circle - Translucent Blue "Shiny" Style */
.tech-icon-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.05);
  /* Transparent Blue */
  border: 1px solid rgba(6, 182, 212, 0.4);
  /* Visible Blue Border */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06b6d4;
  /* Icon Color Cyan/Blue */
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
  /* Subtle Glow */
}

/* HOVER STATES - Intense Glow */
.tech-node.small:hover .tech-icon-circle {
  color: #fff;
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.2);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5), inset 0 0 10px rgba(6, 182, 212, 0.2);
  transform: scale(1.1);
}

/* POPOVER TOOLTIP (Data) */
.tech-popover {
  position: absolute;
  bottom: 65px;
  /* Above icon */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 160px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.3);
  backdrop-filter: blur(8px);
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.tech-popover::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(15, 23, 42, 0.95);
  border-right: 1px solid rgba(6, 182, 212, 0.3);
  border-bottom: 1px solid rgba(6, 182, 212, 0.3);
}

.tech-node.small:hover .tech-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tech-name {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  margin-bottom: 4px;
}

.tech-desc {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.2;
}

.tech-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Tech Items - Glass Pills */
.tech-item {
  padding: 0.8rem 2rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 50px;
  /* Full Pill Shape */
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #94a3b8;
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: default;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tech-item:hover {
  border-color: #06b6d4;
  color: #fff;
  transform: translateY(-5px) scale(1.05);
  background: rgba(6, 182, 212, 0.1);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.2);
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

/* ==================== STATS SECTION ==================== */
.stats-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(59, 130, 246, 0.05));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}

.stat-card:nth-child(2) .stat-icon {
  animation-delay: 0.5s;
}

.stat-card:nth-child(3) .stat-icon {
  animation-delay: 1s;
}

.stat-card:nth-child(4) .stat-icon {
  animation-delay: 1.5s;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==================== PROJECT MODAL ==================== */
.project-modal .modal-content {
  max-width: 1000px;
  width: 95%;
  padding: 0;
  overflow: hidden;
  background: var(--color-bg);
}

.project-body {
  padding: 0;
  max-height: 85vh;
  overflow-y: auto;
}

.project-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 600px;
}

.project-info-col {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: rgba(15, 23, 42, 0.3);
  border-right: 1px solid var(--color-border);
}

.project-gallery-col {
  background: #000;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.project-gallery-image {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.project-gallery-image img {
  width: 100%;
  height: auto;
  display: block;
}

.project-client-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.project-title-modal {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-tags-modal {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tags-modal span {
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.project-description-modal p {
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 1rem;
}

.project-stats-modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.p-stat {
  display: flex;
  flex-direction: column;
}

.p-stat-val {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-gold);
  font-weight: 700;
}

.p-stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .project-grid-layout {
    grid-template-columns: 1fr;
  }

  .project-info-col {
    padding: 2rem;
    order: 2;
  }

  .project-gallery-col {
    min-height: 300px;
    order: 1;
  }
}

/* ==================== PROJECT SECTIONS (ROUZ) ==================== */
.project-section-block {
  margin-bottom: 3rem;
}

.project-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding-bottom: 0.5rem;
}

.project-section-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.project-section-grid .project-gallery-image {
  aspect-ratio: 1/1;
  border: 8px solid #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: zoom-in;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.project-section-grid .project-gallery-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--color-gold);
}

.project-section-grid .project-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-section-grid .project-gallery-image:hover img {
  transform: scale(1.1);
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border: 10px solid #fff;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 10px;
}

.lightbox-close svg {
  width: 30px;
  height: 30px;
  stroke-width: 2;
}

/* ==================== CASE STUDY VIEW (FULL SCREEN) ==================== */
.case-study-view {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 9999;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
}

.case-study-view.active {
  transform: translateY(0);
}

.case-study-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-back {
  background: none;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-back:hover {
  color: var(--color-gold);
}

.case-client-name {
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 1.1rem;
}

.case-study-content {
  flex: 1;
  padding-bottom: 4rem;
}

/* Case Hero */
.case-hero {
  height: 70vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 4rem 2rem;
  overflow: hidden;
}

.case-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
}

.case-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-bg), transparent);
  z-index: 1;
}

.case-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.case-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 700;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.3);
}

.case-hero-content p {
  font-size: 0.95rem;
  color: var(--color-gold);
  text-transform: none;
  letter-spacing: 0.5px;
  font-weight: 400;
}

/* Case Narrative */
.case-narrative {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.case-section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.case-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(245, 158, 11, 0.3);
}

.case-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* Reuse existing project section styles for the "Solution" part */
.case-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Case Results */
.case-results {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 4rem 2rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-xl);
  text-align: center;
}

.case-stats-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .case-hero-content h1 {
    font-size: 2.5rem;
  }

  .case-stats-grid {
    gap: 2rem;
    flex-direction: column;
  }
}

/* ==================== SOCIAL STATS (ROUZ) ==================== */
.social-stats-container {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-stats-title {
  font-family: var(--font-display);
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  text-align: center;
}

.social-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.social-stat-card {
  background: rgba(15, 23, 42, 0.6);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--color-gold);
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.social-icon svg {
  width: 28px;
  height: 28px;
}

.social-icon.facebook {
  background: #1877F2;
}

.social-icon.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.tiktok {
  background: #000000;
  border: 1px solid #333;
}

.social-info {
  flex: 1;
}

.social-platform {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.social-growth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.growth-item {
  display: flex;
  flex-direction: column;
}

.growth-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.growth-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.growth-val.highlight {
  color: var(--color-gold);
}

.growth-arrow {
  color: var(--color-gold);
  font-weight: bold;
}

.social-metric-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* ==================== HORIZONTAL SLIDER (ROUZ) ==================== */
.slider-container-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  padding: 1rem 0.5rem;
  width: 100%;
}

.slider-container::-webkit-scrollbar {
  display: none;
}

.slider-track {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  /* 2 Rows */
  grid-auto-flow: column;
  /* Flow horizontally */
  gap: 1rem;
  width: max-content;
  /* Ensure track expands */
}

.slider-item {
  width: 200px;
  height: 200px;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.slider-item:hover {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  flex-shrink: 0;
  z-index: 10;
}

.slider-btn:hover {
  background: var(--color-gold);
  color: #0f172a;
  transform: scale(1.1);
}

.slider-btn.prev {
  order: -1;
}

@media (max-width: 768px) {
  .slider-track {
    grid-template-rows: 1fr;
    /* 1 Row on mobile */
  }

  .slider-item {
    width: 150px;
    height: 150px;
  }
}

/* ==================== SOCIAL TIMELINE (ROUZ) ==================== */
.timeline-grid {
  grid-template-columns: 1fr;
  /* Stack vertically on mobile/tablet for better view */
}

@media (min-width: 1024px) {
  .timeline-grid {
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns on desktop */
  }
}

.timeline-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  background: rgba(15, 23, 42, 0.8);
}

.social-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.social-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.timeline-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.timeline-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-val {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.timeline-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.timeline-line {
  position: absolute;
  top: 20px;
  /* Center with icon */
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, var(--color-gold) 50%, rgba(255, 255, 255, 0.1) 100%);
  z-index: 1;
  transform: translateY(-50%);
}

/* Hide line for last item handled by logic, but ensuring CSS safety */
.timeline-point:last-child .timeline-line {
  display: none;
}

/* ==================== PROCESS TIMELINE (3D SECTION) ==================== */
.process-timeline-container {
  position: relative;
  padding: 4rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

/* Central Line */
.process-timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
  z-index: 0;
  opacity: 0.5;
}

.process-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6rem;
  position: relative;
  z-index: 1;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-image,
.step-content {
  width: 45%;
}


/* --- HERO SOCIAL ICONS PREMIUM RESTORATION --- */
.hero-social-icon-box {
  width: 42px;
  height: 42px;
  background: rgba(0, 198, 255, 0.08);
  /* Subtle Blue Glass */
  border: 1px solid rgba(0, 198, 255, 0.2);
  border-radius: 10px;
  /* Slightly rounded squares */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.hero-social-icon-box:hover {
  background: rgba(0, 198, 255, 0.2);
  border-color: #00C6FF;
  transform: translateY(-3px) scale(1.05);
  /* Micro-animation pop */
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.4);
  color: #00C6FF;
}

.hero-social-icon-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.hero-social-icon-box:hover::before {
  left: 100%;
}


/* Image Styling */
.step-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 1/1;
  transition: transform 0.3s ease;
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-step:hover .step-image {
  transform: translateY(-10px);
  border-color: var(--color-gold);
}

.process-step:hover .step-image img {
  transform: scale(1.1);
}

/* Number Badge (Center) */
.step-number {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: #0a0a0a;
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-weight: 700;
  font-size: 1.2rem;
  font-family: var(--font-display);
  z-index: 2;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

/* Content Styling */
.step-content {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.process-step:hover .step-content {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-5px);
}

.step-content h4 {
  color: var(--color-gold);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.step-content p {
  color: #ccc;
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

/* Alternating Layout */
.process-step:nth-child(even) {
  flex-direction: row-reverse;
}

.process-step:nth-child(even) .step-content {
  text-align: right;
}

/* Mobile Responsiveness */

/* ==================== IRON MAN HUD ANIMATION ==================== */
.nova-hud-interface {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(5, 10, 24, 0.8) 0%, #050a18 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', Courier, monospace;
  /* Tech font */
  overflow: hidden;
}

/* Background Grid */
.hud-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 198, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 198, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
  mask-image: radial-gradient(circle, black 40%, transparent 80%);
}

/* Reactor Core */
.hud-reactor-container {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.reactor-outer-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(0, 198, 255, 0.3);
  border-radius: 50%;
  animation: spin-slow 10s linear infinite;
}

.reactor-inner-ring {
  position: absolute;
  width: 80%;
  height: 80%;
  border: 2px solid rgba(123, 31, 162, 0.5);
  border-radius: 50%;
  border-top-color: transparent;
  border-bottom-color: transparent;
  animation: spin-fast 4s linear infinite reverse;
}

.reactor-core {
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, #fff 0%, var(--color-gold) 50%, transparent 100%);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--color-gold), 0 0 40px var(--color-gold);
  position: relative;
  z-index: 3;
  animation: pulse-core 2s infinite ease-in-out;
}

.core-pulse {
  position: absolute;
  inset: -5px;
  border: 1px solid #fff;
  border-radius: 50%;
  opacity: 0;
  animation: ping 2s infinite;
}

.reactor-ticks span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  /* Extend beyond outer ring */
  height: 2px;
  background: linear-gradient(90deg, transparent 40%, rgba(0, 198, 255, 0.2) 50%, transparent 60%);
  transform-origin: center;
}

.reactor-ticks span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(0deg);
}

.reactor-ticks span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.reactor-ticks span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(90deg);
}

.reactor-ticks span:nth-child(4) {
  transform: translate(-50%, -50%) rotate(135deg);
}

/* Stats Panels */
.hud-stats-panel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  z-index: 2;
}

.hud-stats-panel.left {
  left: 20px;
}

.hud-stats-panel.right {
  right: 20px;
}

.hud-stat-row {
  margin-bottom: 10px;
}

.hud-label {
  display: block;
  font-size: 10px;
  color: var(--color-gold);
  margin-bottom: 2px;
}

.hud-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.hud-bar-fill {
  height: 100%;
  background: var(--color-gold);
  box-shadow: 0 0 5px var(--color-gold);
  animation: bar-fluctuate 3s infinite ease-in-out;
}

.fill-cpu {
  width: 40%;
  animation-delay: 0s;
}

.fill-mem {
  width: 70%;
  animation-delay: 1s;
}

/* Circular Stat */
.circular-chart {
  display: block;
  margin: 0 auto;
  max-width: 80%;
  max-height: 250px;
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 3.8;
}

.circle {
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke: var(--color-accent);
  animation: progress 1s ease-out forwards;
  filter: drop-shadow(0 0 2px var(--color-accent));
}

.circular-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.circular-text .val {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
}

.circular-text .label {
  font-size: 8px;
  color: var(--color-text-muted);
}

/* Scanline */
.hud-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0, 198, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
  animation: scan 4s linear infinite;
  z-index: 10;
  opacity: 0.5;
}

/* Footer */
.hud-footer {
  position: absolute;
  bottom: 15px;
  width: 90%;
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hud-stream {
  font-size: 8px;
  color: rgba(0, 198, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  border-top: 1px solid rgba(0, 198, 255, 0.2);
  padding-top: 5px;
}

.hud-stream span {
  display: inline-block;
  animation: marquee 10s linear infinite;
}

.hud-status-line {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.hud-status-text .blink {
  color: #00ff88;
  animation: blink 1s infinite;
}

/* Decorative Corners */
.hud-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-gold);
  opacity: 0.7;
  z-index: 1;
}

.top-left {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.top-right {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
}

.bottom-left {
  bottom: 10px;
  left: 10px;
  border-right: none;
  border-top: none;
}

.bottom-right {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

/* Side Scales */
.hud-scale {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}

.left-scale {
  left: 10px;
  align-items: flex-start;
}

.right-scale {
  right: 10px;
  align-items: flex-end;
}

.hud-scale span {
  height: 2px;
  background: rgba(0, 198, 255, 0.3);
}

.left-scale span {
  width: 8px;
}

.left-scale span:nth-child(3n) {
  width: 15px;
  background: var(--color-gold);
}

.right-scale span {
  width: 8px;
}

.right-scale span:nth-child(3n) {
  width: 15px;
  background: var(--color-accent);
}

/* Data Blocks */
.hud-data-block {
  margin-top: 10px;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-data-block.right-align {
  text-align: right;
}

/* Animations */
@keyframes marquee {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes spin-slow {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-fast {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse-core {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ==================== AI HERO ANIMATION ==================== */
.ai-orbit-system {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.ai-core-center {
  position: absolute;
  width: 130px;
  height: 130px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: float-logo 4s ease-in-out infinite;
}

.core-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
  z-index: 11;
}

.core-logo-glow {
  position: absolute;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.2) 0%, rgba(0, 242, 254, 0.1) 50%, transparent 70%);
  filter: blur(20px);
  z-index: 9;
  animation: pulse-glow 3s ease-in-out infinite;
}

.core-icon {
  display: none;
}

.orbit-track {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Fainter tracks to focus on logo */
  border-radius: 50%;
  transform-style: preserve-3d;
}

.track-1 {
  width: 170px;
  height: 170px;
  border-color: rgba(79, 172, 254, 0.15);
  animation: spin-slow 20s linear infinite;
}

.track-2 {
  width: 230px;
  height: 230px;
  border-color: rgba(16, 163, 127, 0.15);
  animation: spin-reverse 25s linear infinite;
}

.track-3 {
  width: 290px;
  height: 290px;
  border-color: rgba(245, 158, 11, 0.15);
  animation: spin-slow 30s linear infinite;
}

.ai-node {
  position: absolute;
  width: 36px;
  /* Slightly smaller nodes to emphasize center */
  height: 36px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  z-index: 5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.ai-node:hover {
  transform: scale(1.3);
  z-index: 20;
  border-color: #fff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.ai-node svg {
  width: 20px;
  height: 20px;
  margin-bottom: 0;
}

.ai-label {
  font-size: 9px;
  color: #fff;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: absolute;
  bottom: -20px;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.8);
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-node:hover .ai-label {
  opacity: 1;
}

/* Positioning Nodes on Orbit */
/* Animations handle rotation, keyframes define path */

/* Simple Orbit Animation via rotation */
@keyframes orbit-cw {
  from {
    transform: rotate(0deg) translateX(70px) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(70px) rotate(-360deg);
  }

  /* rotate counter to keep icon upright */
}

@keyframes orbit-ccw {
  from {
    transform: rotate(360deg) translateX(100px) rotate(-360deg);
  }

  to {
    transform: rotate(0deg) translateX(100px) rotate(0deg);
  }
}

@keyframes orbit-wide {
  from {
    transform: rotate(0deg) translateX(130px) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(130px) rotate(-360deg);
  }
}

/*
   Since simple translate inside rotate rotates the object with it,
   we need a wrapper or counter-rotation.
   Simplification: Use absolute positioning and keyframes for circular motion
   OR just stick nodes on the rotating tracks?
   No, nodes need to be children of a rotating container or have complex keyframes.
   Let's use the 'rotating container' approach but keep icons upright.
*/

/* Float animation for central logo */
@keyframes float-logo {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Adjusted Orbits for Larger Center and 3 Tracks - Denser Population */
.node-gemini {
  animation: orbit-gemini 15s linear infinite;
  top: 50%;
  left: 50%;
  margin-top: -18px;
  margin-left: -18px;
}

.node-gpt {
  animation: orbit-gpt 20s linear infinite;
  top: 50%;
  left: 50%;
  margin-top: -18px;
  margin-left: -18px;
}

.node-grok {
  animation: orbit-grok 25s linear infinite;
  top: 50%;
  left: 50%;
  margin-top: -18px;
  margin-left: -18px;
}

.node-zai {
  animation: orbit-zai 18s linear infinite reverse;
  top: 50%;
  left: 50%;
  margin-top: -18px;
  margin-left: -18px;
}

/* New Nodes */
.node-claude {
  animation: orbit-claude 22s linear infinite;
  top: 50%;
  left: 50%;
  margin-top: -18px;
  margin-left: -18px;
}

.node-llama {
  animation: orbit-llama 28s linear infinite reverse;
  top: 50%;
  left: 50%;
  margin-top: -18px;
  margin-left: -18px;
}

.node-brain {
  animation: orbit-brain 35s linear infinite;
  top: 50%;
  left: 50%;
  margin-top: -18px;
  margin-left: -18px;
}

/* Increase Orbit Radii */
@keyframes orbit-gemini {
  0% {
    transform: rotate(0deg) translateY(-85px) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translateY(-85px) rotate(-360deg);
  }
}

@keyframes orbit-gpt {
  0% {
    transform: rotate(120deg) translateY(-115px) rotate(-120deg);
  }

  100% {
    transform: rotate(480deg) translateY(-115px) rotate(-480deg);
  }
}

@keyframes orbit-grok {
  0% {
    transform: rotate(240deg) translateY(-145px) rotate(-240deg);
  }

  100% {
    transform: rotate(600deg) translateY(-145px) rotate(-600deg);
  }
}

@keyframes orbit-zai {
  0% {
    transform: rotate(180deg) translateY(-115px) rotate(-180deg);
  }

  100% {
    transform: rotate(540deg) translateY(-115px) rotate(-540deg);
  }
}

/* New Orbits - carefully spaced angles */
@keyframes orbit-claude {
  0% {
    transform: rotate(60deg) translateY(-145px) rotate(-60deg);
  }

  100% {
    transform: rotate(420deg) translateY(-145px) rotate(-420deg);
  }
}

@keyframes orbit-llama {
  0% {
    transform: rotate(300deg) translateY(-85px) rotate(-300deg);
  }

  100% {
    transform: rotate(660deg) translateY(-85px) rotate(-660deg);
  }
}

@keyframes orbit-brain {
  0% {
    transform: rotate(0deg) translateY(-115px) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translateY(-115px) rotate(-360deg);
  }
}

/* Specific Glows */
.node-gemini {
  box-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
  border-color: rgba(79, 172, 254, 0.4);
}

.node-gpt {
  box-shadow: 0 0 10px rgba(16, 163, 127, 0.3);
  border-color: rgba(16, 163, 127, 0.4);
}

.node-grok {
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.node-zai {
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
  border-color: rgba(245, 158, 11, 0.4);
}

.node-claude {
  box-shadow: 0 0 10px rgba(217, 119, 87, 0.3);
  border-color: rgba(217, 119, 87, 0.4);
}

.node-llama {
  box-shadow: 0 0 10px rgba(6, 104, 225, 0.3);
  border-color: rgba(6, 104, 225, 0.4);
}

.node-brain {
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
  border-color: rgba(168, 85, 247, 0.5);
}

/* Animation Utils */
@keyframes spin-reverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

/* ==================== MOBILE RESPONSIVENESS (HUD) ==================== */
@media (max-width: 768px) {
  .nova-hud-interface {
    font-size: 0.8em;
    /* Scale down text */
  }

  .hud-reactor-container {
    width: 80px;
    height: 80px;
  }

  .hud-stats-panel {
    width: 60px;
  }

  .hud-stats-panel.left {
    left: 10px;
  }

  .hud-stats-panel.right {
    right: 10px;
  }

  .hud-scale {
    display: none;
    /* Hide scales on very small screens to avoid clutter */
  }

  .circular-chart {
    max-width: 60%;
  }

  .hud-data-block {
    display: none;
    /* Hide extra data on mobile */
  }
}

/* ==================== TECH STATUS PANEL ==================== */
.tech-status-panel {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.status-row:last-child {
  margin-bottom: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
}

.status-dot.active {
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
  animation: blink 2s infinite;
}

.status-dot.processing {
  background: var(--color-gold);
  box-shadow: 0 0 8px var(--color-gold);
  animation: blink 1s infinite;
}

.status-ok {
  color: #00ff88;
  font-weight: 700;
  margin-left: auto;
}

.status-proc {
  color: var(--color-gold);
  font-weight: 700;
  margin-left: auto;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@media (max-width: 900px) {
  .process-timeline-container {
    padding: 2rem 0;
  }

  .process-timeline-container::before {
    left: 30px;
    transform: none;
  }

  .process-step {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 80px;
    gap: 1.5rem;
    margin-bottom: 4rem;
  }

  .process-step:nth-child(even) {
    flex-direction: column;
  }

  .step-image,
  .step-content {
    width: 100%;
  }

  .step-image {
    aspect-ratio: 16/9;
  }

  .step-content {
    text-align: left !important;
    padding: 1.5rem;
  }

  .step-number {
    left: 30px;
    top: 0;
    /* Align with top of image or content? Let's stick to top left relative to container */
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ==================== HORIZONTAL TESTIMONIALS ==================== */
.horizontal-testimonial {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  min-width: 100%;
  /* Ensure it takes full width of slide */
  box-sizing: border-box;
}

.horizontal-testimonial:hover {
  transform: translateY(-5px) scale(1.01);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-image-wrapper {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  position: relative;
}

.testimonial-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.horizontal-testimonial:hover .testimonial-image-wrapper img {
  transform: scale(1.1);
}

.testimonial-content {
  flex-grow: 1;
  text-align: left;
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.author-info h4 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
}

.author-role {
  color: #aaa;
  font-size: 0.95rem;
  margin: 0;
}

.company-highlight {
  color: var(--color-gold);
  font-weight: 600;
}

.testimonial-stars {
  color: var(--color-gold);
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ddd;
  font-style: italic;
  margin: 0;
}

/* Mobile Adaptation */
@media (max-width: 768px) {
  .horizontal-testimonial {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    gap: 1.5rem;
  }

  .testimonial-header {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  }

  .testimonial-content {
    text-align: center;
  }

  .testimonial-image-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }
}

/* ==================== SYSTEMS SECTION ==================== */
.systems {
  padding: 8rem 0;
  background: var(--color-bg);
  position: relative;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.system-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.system-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.system-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.system-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.system-card p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.system-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.system-features li {
  color: #aaa;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.system-features li::before {
  content: '';
  /* Checkmark is in HTML text for simplicity, but could be here */
}

/* ==================== APPS SECTION ==================== */
.apps-section {
  padding: 2rem 0 6rem 0;
  /* Reduced top padding significantly */
  background: #050505;
  position: relative;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Force 3 columns on desktop */
  gap: 3rem;
  margin-top: 5rem;
}

.app-card {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  position: relative;
  gap: 2.5rem;
}

/* Featured App (Middle) */
.featured-app {
  transform: scale(1.05);
  z-index: 2;
}

@media (max-width: 900px) {
  .featured-app {
    transform: none;
  }
}

.app-mockup {
  width: 170px;
  height: 340px;
  background: #000;
  border-radius: 30px;
  border: 4px solid #333;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .app-mockup {
    width: 140px;
    height: 280px;
    border-width: 3px;
  }
}

.phone-frame {
  width: 100%;
  height: 100%;
  background: #111;
  position: relative;
  overflow: hidden;
  border-radius: 19px;
}

/* Screen Content Styles */
.screen-content {
  width: 100%;
  height: 100%;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.simple-app {
  background: linear-gradient(135deg, #0f172a, #334155);
  /* Slate/Dark Blue */
}

.interactive-app {
  background: linear-gradient(135deg, #2e0235, #7e1e9c);
  /* NOVA Purple */
}

.ecommerce-app {
  background: linear-gradient(135deg, #022c22, #0d9488);
  /* Deep Teal/Cyan */
}

.app-ui-header {
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  width: 60%;
}

.app-ui-body {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.app-ui-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.app-ui-grid span {
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.app-ui-btn {
  height: 40px;
  background: #fff;
  border-radius: 20px;
  margin-top: auto;
}

.app-ui-products {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-ui-products .prod {
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

/* Hover Effects */
.app-card:hover .app-mockup {
  transform: translateY(-15px) rotateY(10deg);
  box-shadow: 0 30px 60px rgba(255, 215, 0, 0.15);
  border-color: #444;
}

.app-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.app-desc {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: none;
}

.app-tag {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 215, 0, 0.1);
  color: var(--color-gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.app-info {
  flex: 1;
}

@media (max-width: 768px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .app-mockup {
    margin-bottom: 1rem;
  }
}

/* ==================== ENHANCED APPS SECTION ==================== */
.apps-section {
  background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #050505 100%);
  overflow: hidden;
}

.apps-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  pointer-events: none;
}

/* Floating Animation */
@keyframes float-phone {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.app-mockup {
  animation: float-phone 6s ease-in-out infinite;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.app-card:nth-child(2) .app-mockup {
  animation-delay: 1s;
  border-color: var(--color-gold);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(255, 215, 0, 0.3);
}

.app-card:nth-child(3) .app-mockup {
  animation-delay: 2s;
}

/* Glow Effect for Featured App */
.featured-app::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(40px);
}

/* Enhanced Hover */
.app-card:hover .app-mockup {
  animation-play-state: paused;
  transform: translateY(-20px) scale(1.05) rotateY(10deg);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.2);
  border-color: var(--color-gold);
}

.app-info h3 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.app-tag {
  background: rgba(255, 215, 0, 0.15);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
  transition: all 0.3s ease;
}

.app-card:hover .app-tag {
  background: var(--color-gold);
  color: #000;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

@media (max-width: 900px) {
  .nav-container {
    gap: 8px !important;
  }

  .btn-nav-call {
    margin-left: auto !important;
    /* This pushes everyone else to the right */
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
    background: #ff00ff !important;
    /* Fuchsia Pink as requested */
    border-radius: 8px;
    padding: 8px;
    margin-left: 0 !important;
    /* Reset since parent gap handles it or btn-nav-call pushed it */
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 300px;
    height: 100vh;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    /* Fix: Show even if display:none in other queries */
    flex-direction: column;
    justify-content: flex-start;
    /* Changed from center to fix spacing */
    align-items: center;
    padding-top: 5rem;
    gap: 1.5rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
  }

  .mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: block;
    /* Visible manually */
  }

  .mobile-socials {
    margin-top: auto;
    /* Push to bottom */
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
  }

  .mobile-socials a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: color 0.3s;
  }

  .mobile-socials a:hover {
    color: #a855f7;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.25rem;
  }


  .hero {
    padding-top: 110px !important;
    /* Increased from 80px to separate from fixed header */
    min-height: auto;
    padding-bottom: 2rem;
  }

  .hero .container {
    padding-top: 2.5rem;
    /* Increased from 2rem to avoid 'stuck to top' feeling */
    display: flex;
    flex-direction: column;
  }

  .hero-actions {
    justify-content: center;
    /* Styles moved to specific block below */
  }

  .hero-stats {
    justify-content: center;
    grid-template-columns: repeat(3, 1fr);
    font-size: 0.8rem;
  }

  .hero-visual {
    display: block !important;
    /* Ensure visibility for reordering */
    order: 2;
    /* Visual second */
    width: 100%;
    margin-top: -1rem;
    /* Pull closer to Title */
    margin-bottom: 0.5rem;
    /* Pull Description closer */
    transform: none;
    /* Reset desktop scale */
  }

  /* UNWRAP hero-content to allow reordering of its children */
  .hero-content {
    display: contents;
  }

  /* 1. Title at the very top */
  .hero-title {
    order: 1;
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 0;
    /* Remove gap below title */
    text-align: center;
    line-height: 1.1;
    /* Tighter lines */
  }

  /* 2. HUD after Title */
  .hero-visual {
    order: 2;
  }

  /* 3. Line after HUD */
  .nova-separator {
    order: 3;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }

  /* 4. NOSOTROS Card after Line */
  .hero-description-container {
    order: 4;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    text-align: center;
    /* Reduce margins significantly for mobile compactness */
    margin-bottom: 1rem !important;
  }

  /* Compacting Section Spacing (Mobile) */
  #apps {
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
  }

  #servicios {
    padding-bottom: 1rem !important;
  }

  /* FAQ List Mode (Mobile) - ULTRA COMPACT */
  .faq {
    padding: 2rem 0 !important;
  }

  .faq-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  /* Why Valkyria Neural System (Mobile Fix) */
  .why-nova .node-row {
    gap: 1.5rem !important;
    margin: 1.2rem 0 !important;
  }

  .why-nova .circuit-node {
    width: 42px !important;
    height: 42px !important;
  }

  .why-nova .circuit-node i {
    font-size: 0.9rem !important;
  }

  .why-nova .spinal-line {
    opacity: 0.3 !important;
  }

  .why-nova h2 {
    font-size: 1.5rem !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  .why-nova .section-description {
    font-size: 0.9rem !important;
    padding: 0 1rem !important;
  }

  .why-nova {
    padding-bottom: 1rem !important;
    margin-bottom: 0 !important;
  }

  .systems {
    padding-top: 0 !important;
    margin-top: -1rem !important;
    /* Pull up to close the gap further */
  }

  /* Software a la medida (Mobile Fix) */
  #sistemas .section-title {
    font-size: 1.6rem !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }

  /* Utility: Hide on Mobile */
  .hide-on-mobile {
    display: none !important;
  }

  /* Hide Case Study View when not active to prevent spacing gaps */
  #caseStudyView {
    display: none !important;
  }

  #caseStudyView.active {
    display: flex !important;
  }

  /* Why Nova Compact 2-Column Grid (Mobile) */
  .why-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    margin-top: 1.5rem !important;
  }

  .why-card {
    padding: 1rem !important;
    border-radius: 12px !important;
    gap: 0.5rem !important;
    text-align: center !important;
    align-items: center !important;
  }

  .why-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
    margin: 0 auto !important;
  }

  .why-card h3 {
    font-size: 0.9rem !important;
    margin-bottom: 0.2rem !important;
  }

  .why-card p {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
  }

  .faq-item {
    width: 100% !important;
    border-radius: 12px !important;
  }

  .faq-question {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
    min-height: auto !important;
  }

  .faq-answer p {
    padding: 0 1rem 1rem !important;
    font-size: 0.85rem !important;
  }

  /* Fix Apps Section Title Overflow */
  #apps .section-title {
    white-space: normal !important;
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    word-wrap: break-word !important;
  }

  /* 2-Column Mobile Apps Grid */
  .apps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem !important;
    padding: 0 0.5rem !important;
  }

  .app-card {
    padding: 0.8rem !important;
    min-height: auto !important;
    gap: 0.5rem !important;
  }

  .app-mockup {
    transform: scale(0.8);
    margin: -10px 0 !important;
  }

  .app-info h3 {
    font-size: 0.9rem !important;
    text-align: center;
  }

  .app-desc {
    display: none !important;
    /* Hide description to save space */
  }

  .app-info .btn-magnetic {
    width: 100% !important;
    padding: 0.4rem !important;
    font-size: 0.75rem !important;
    justify-content: center;
  }

  /* 2-Column Why Nova Grid (Mobile) */
  .why-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .why-card {
    padding: 0.8rem !important;
    min-height: auto !important;
  }

  .why-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
    margin-bottom: 0.5rem !important;
  }

  .why-title {
    font-size: 0.9rem !important;
    margin-bottom: 0.25rem !important;
  }

  .why-desc {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
  }

  /* 2-Column Process Grid (Mobile) */
  .process-diagram-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .process-node {
    padding: 0.8rem !important;
    min-height: auto !important;
  }

  .step-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
  }

  .node-title {
    font-size: 0.9rem !important;
    margin-bottom: 0.25rem !important;
  }

  .node-desc {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
  }

  .node-result {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.65rem !important;
  }


  /* Compact Hero Spacing */
  .hero {
    padding-bottom: 1rem !important;
  }

  .hero .container {
    padding-top: 1rem !important;
  }

  .nova-separator {
    order: 3;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .hero-footer-unified {
    order: 6;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Fix Huge Modal on Mobile */
  .modal-content {
    width: 90% !important;
    max-width: 400px !important;
    height: auto !important;
    max-height: 85vh !important;
    margin: auto;
    padding: 1.5rem !important;
    border-radius: 20px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  /* Ensure Close Button works */
  .modal-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 1000 !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  /* Reduce Services Spacing */
  #servicios {
    padding-top: 2rem !important;
    padding-bottom: 3rem !important;
  }

  .tech-marquee-section {
    height: 60px !important;
    margin-bottom: 0 !important;
  }


  .mobile-about-label {
    display: flex !important;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .about-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(168, 85, 247, 0.3);
  }

  .label-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 2px;
    color: #d8b4fe;
  }

  .label-icon {
    color: #a855f7;
    font-size: 0.9rem;
  }

  .hero-description-text {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
  }

  /* Compact Modal Main Title */
  .modal-service-title {
    font-size: 1.4rem !important;
    letter-spacing: 1px !important;
    line-height: 1.1 !important;
    margin-bottom: 0.5rem !important;
  }

  .modal-service-description {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    padding: 0 1rem;
  }

  /* Compact Package Cards for Mobile */
  .package-card {
    padding: 0.85rem !important;
    margin-bottom: 0.85rem;
  }

  .package-header h4 {
    font-size: 1.0rem !important;
    margin-bottom: 0.2rem !important;
  }

  .package-price {
    font-size: 1.25rem !important;
    margin-bottom: 0.4rem !important;
  }

  .package-description {
    font-size: 0.8rem !important;
    margin-bottom: 0.4rem !important;
    line-height: 1.3 !important;
  }

  .package-includes li {
    font-size: 0.75rem !important;
    margin-bottom: 0.2rem !important;
    padding-left: 1rem !important;
  }

  .package-card .btn-magnetic {
    padding: 0.5rem 1.2rem !important;
    font-size: 0.8rem !important;
    min-height: auto !important;
  }

  /* 6. Footer at the very bottom */
  .hero-footer-unified {
    order: 6;
  }

  .label-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(139, 92, 246, 0.6), transparent);
  }

  /* 4. Buttons at bottom */
  .hero-actions {
    order: 6;
    display: flex;
    flex-direction: row;
    /* Force single line */
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0.5rem;
    /* Closer to stats */
  }

  /* Mobile Button Styling */
  .hero-actions .btn-magnetic {
    flex: 1;
    /* Equal width */
    padding: 0.8rem 0.5rem;
    /* Slightly taller */
    font-size: 0.75rem;
    justify-content: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-radius: 12px !important;
    /* Soft rectangle */
    text-transform: uppercase !important;
    /* "SERVICIOS" */
  }

  /* Hide desktop text on mobile */
  .desktop-text {
    display: none !important;
  }

  /* ==================== RESPONSIVE FIXES + PERFORMANCE ==================== */

  /* Fix 1: Reduce container padding for more usable space */
  .container {
    padding: 0 1rem !important;
    /* Reduced from 2rem - gains 32px width */
    max-width: 100% !important;
  }

  /* Fix 2: Hero single column layout */
  .hero .container {
    grid-template-columns: 1fr !important;
    /* Stack vertically */
    gap: 2rem !important;
  }

  .hero {
    padding: 120px 0 2rem !important;
    /* More compact top */
  }

  /* Fix 3: Responsive hero card - NARROWER */
  .hero-card {
    max-width: 95% !important;
    /* Narrower to prevent overflow */
    margin: 0 auto !important;
    overflow: hidden !important;
  }

  .card-body {
    height: auto !important;
    min-height: 260px !important;
    /* Slightly smaller */
    max-height: 300px !important;
    aspect-ratio: 1 / 0.85;
    overflow: hidden !important;
  }

  /* Fix 4: Scale animation SMALLER */
  .nova-hud-interface {
    transform: scale(0.72);
    /* 15% smaller (was 0.85) */
    transform-origin: center;
    max-width: 100% !important;
  }

  .ai-orbit-system {
    max-width: 238px !important;
    /* 15% narrower (was 280px) */
    margin: 0 auto !important;
  }

  /* Fix 5: "LA PRIMERA MEXICANA" text overflow fix */
  .card-subtitle {
    font-size: 0.65rem !important;
    /* Smaller to fit */
    letter-spacing: 1.5px !important;
    white-space: nowrap;
    overflow: visible;
    text-align: center;
    padding: 0 0.5rem;
  }

  .nova-dex-header {
    width: 100%;
    justify-content: center;
    overflow: visible !important;
  }

  /* Fix 6: Hero title responsive - CRITICAL FIX */
  .hero-title {
    font-size: clamp(1.1rem, 3.4vw, 1.5rem) !important;
    /* 15% smaller */
    text-align: left;
    margin-bottom: 1rem !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .title-line {
    white-space: normal !important;
    /* ALLOW WRAP - prevents overflow */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }

  /* Fix 7: Description container mobile - PREVENT OVERFLOW */
  .hero-description-container {
    max-width: 100% !important;
    margin-bottom: 1.5rem !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .hero-description-text {
    font-size: 0.9rem !important;
    /* Slightly smaller */
    line-height: 1.6 !important;
    text-align: left;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
  }

  .mobile-about-label {
    margin-bottom: 1rem !important;
    display: flex !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .nova-mobile-tag {
    max-width: 100% !important;
    font-size: 0.75rem !important;
    padding: 0.4rem 0.8rem !important;
  }

  /* Fix 8: Buttons - PREVENT OVERFLOW */
  .hero-actions {
    max-width: 100% !important;
    overflow: hidden !important;
    gap: 0.6rem !important;
    margin-bottom: 2rem !important;
  }

  .hero-actions .btn-large {
    padding: 0.7rem 1.2rem !important;
    font-size: 0.85rem !important;
    max-width: 48% !important;
    /* Ensure two buttons fit side by side */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* ==================== PERFORMANCE OPTIMIZATIONS ==================== */

  /* GPU Acceleration for smooth 60fps animations */
  .ai-orbit-system {
    will-change: transform;
    transform: translateZ(0);
    /* Force GPU layer */
    backface-visibility: hidden;
  }

  .ai-node {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  .orbit-track {
    will-change: transform;
    transform: translateZ(0);
  }

  /* Reduce repaints for scanning effects */
  .hud-scanline,
  .audit-scan-line {
    will-change: transform;
    contain: layout style paint;
    /* Isolate changes */
  }

  /* Lazy load off-screen content */
  .hero-card {
    content-visibility: auto;
    /* Only renders when visible */
  }

  /* Optimize gradients */
  .hero-gradient,
  .card-glow {
    will-change: opacity;
    transform: translateZ(0);
  }

  /* Optimize particles */
  .particle {
    will-change: transform, opacity;
    transform: translateZ(0);
  }

  /* Show mobile-only text */
  .mobile-text {
    display: inline !important;
  }

  /* Force Stats/Footer to bottom on mobile */
  .nova-separator {
    order: 3;
    /* Visual (2) -> Separator (3) -> Desc (4) */
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .hero-footer-unified {
    order: 6;
    margin-top: 0.25rem;
    /* Closer to buttons */
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.5rem;
    background: transparent !important;
    /* Remove frame/stripe */
    border: none !important;
    box-shadow: none !important;
  }

  .footer-stats {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-around;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
  }

  /* Connection lines (data flow) */
  .footer-stats::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        #06b6d4 20%,
        #8b5cf6 50%,
        #06b6d4 80%,
        transparent);
    background-size: 200% 100%;
    z-index: -1;
    animation: circuit-flow 2s linear infinite;
    opacity: 0.6;
  }

  @keyframes circuit-flow {
    0% {
      background-position: 100% 0;
    }

    100% {
      background-position: -100% 0;
    }
  }

  /* Stat items: Bigger icons with unique animations */
  .footer-stat-item {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Bigger icon boxes */
  .footer-stat-item .icon-box-blue {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  }

  .footer-stat-item .icon-box-blue i {
    font-size: 1.4rem;
    color: #fff;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
  }

  /* Techy animations for each icon */
  .footer-stat-item:nth-child(1) .icon-box-blue {
    animation: rocket-tech 2.5s ease-in-out infinite;
  }

  .footer-stat-item:nth-child(3) .icon-box-blue {
    animation: star-tech 4s linear infinite;
  }

  .footer-stat-item:nth-child(5) .icon-box-blue {
    animation: bolt-tech 1s ease-in-out infinite;
  }

  @keyframes rocket-tech {

    0%,
    100% {
      filter: drop-shadow(0 0 5px #06b6d4);
    }

    50% {
      transform: translateY(-7px) rotate(5deg);
      filter: drop-shadow(0 0 15px #06b6d4);
    }

    75% {
      transform: translateY(-3px) rotate(-5deg);
    }
  }

  @keyframes star-tech {
    0% {
      transform: rotate(0deg) scale(1);
      filter: hue-rotate(0deg) drop-shadow(0 0 5px #a855f7);
    }

    50% {
      transform: rotate(180deg) scale(1.2);
      filter: hue-rotate(180deg) drop-shadow(0 0 15px #06b6d4);
    }

    100% {
      transform: rotate(360deg) scale(1);
      filter: hue-rotate(360deg) drop-shadow(0 0 5px #a855f7);
    }
  }

  @keyframes bolt-tech {

    0%,
    100% {
      transform: scale(1);
      opacity: 0.8;
      filter: drop-shadow(0 0 2px #facc15);
    }

    10%,
    20% {
      transform: scale(1.1) translateX(1px);
      opacity: 1;
      filter: drop-shadow(0 0 20px #facc15);
    }

    15% {
      transform: scale(1.1) translateX(-1px);
    }
  }

  /* Hide stat-info by default on mobile */
  .footer-stat-item .stat-info {
    position: absolute;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
  }

  /* Show stat-info when clicked (.stat-active) */
  .footer-stat-item.stat-active .stat-info {
    opacity: 1;
    visibility: visible;
  }

  .footer-stat-item .stat-number {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
  }

  .footer-stat-item .stat-label {
    font-size: 0.65rem;
    color: #94a3b8;
  }

  /* Hide dividers */
  .footer-stat-divider {
    display: none !important;
  }

  /* Hide social icons on mobile */
  .footer-socials {
    display: none !important;
  }

  .hero-bg {
    opacity: 0.6;
  }

  /* Tech Marquee - Compact for mobile */
  .tech-marquee-section {
    height: 70px !important;
    /* Reduced from 120px */
  }

  .tech-slide i {
    font-size: 1.5rem !important;
    /* Smaller icons */
  }

  .hero-title {
    font-size: 2.5rem !important;
  }

  .section-title {
    font-size: 2rem !important;
  }

  .services-grid,
  .systems-grid,
  .apps-grid,
  .contact-grid,
  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr !important;
  }

  .process-timeline::before {
    left: 20px;
  }

  .timeline-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 50px;
  }

  .timeline-number {
    position: absolute;
    left: -50px;
    top: 0;
  }

  .timeline-content {
    width: 100%;
  }

  .contact-grid {
    display: flex;
    flex-direction: column;
  }

  .info-card {
    margin-top: 0;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-brand {
    align-items: center;
  }

  .modal-content {
    padding: 1.2rem 0.8rem;
    max-height: 80vh !important;
    /* MÁS ALTO (Servicios) - 80% altura */
    overflow-y: auto;
    /* Scroll activo */
    max-width: 88vw !important;
    margin: 0 auto;
  }

  /* Extra spacing for modal container on mobile */
  .modal {
    padding: 1.5rem !important;
    /* Más espacio alrededor */
  }

}

/* ==================== NOVA MODAL & SCROLLBAR ==================== */

/* Custom Scrollbar */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00f2fe 0%, #4facfe 100%);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4facfe 0%, #00f2fe 100%);
}

/* Premium Modal Internals */
.modal-service-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.modal-service-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(79, 172, 254, 0.3));
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Compact Header Node */
.modal-service-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0;
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Vertical Connector from Header */
.modal-service-header::after {
  content: '';
  position: absolute;
  bottom: -2rem;
  /* Extend down to grid */
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 2rem;
  background: #4facfe;
  box-shadow: 0 0 10px #4facfe;
  z-index: 1;
}

/* Hex Icon Compact */
.service-icon-hex {
  position: relative;
  width: 60px;
  /* Smaller */
  height: 60px;
  margin: 0 auto 0.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-inner {
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #4facfe;
  box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
  position: relative;
  z-index: 2;
}

.hex-glow-ring {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, #00f2fe, #a855f7);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 1;
  animation: pulseGlow 3s infinite alternate;
  opacity: 0.6;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.modal-service-icon {
  font-size: 3rem;
  color: #fff;
  filter: drop-shadow(0 0 10px #00f2fe);
}

/* Hero Gradient Title (Like Image 2) */
.modal-service-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  /* Large but managed */
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  /* Wide spacing like reference */
  background: linear-gradient(90deg, #00f2fe 0%, #a855f7 100%);
  /* Cyan -> Purple */
  background-clip: text;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(79, 172, 254, 0.2);
  line-height: 1.2;
}

.modal-service-title::after {
  display: none;
}

.modal-service-description {
  font-size: 0.95rem;
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
  font-weight: 300;
}

/* Floating Holograms Configuration */
/* Floating Holograms Configuration */
.modal-floating-icon {
  position: absolute;
  font-size: 2.5rem;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  animation: floatGalaxy 15s infinite linear;
}

/* Gradient Color for Icons */
.hologram-gradient {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.8), rgba(168, 85, 247, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.4));
  /* Stronger Glow */
}

@keyframes floatGalaxy {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(10px, -10px) rotate(10deg);
  }

  66% {
    transform: translate(-5px, 15px) rotate(-5deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.modal-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Features List */
.modal-service-features {
  margin-bottom: 3.5rem;
}

.modal-service-features h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  border-left: 4px solid #4facfe;
  padding-left: 1rem;
}

.modal-service-features ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  list-style: none;
}

.modal-service-features li {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  color: var(--color-text);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.modal-service-features li:hover {
  background: rgba(79, 172, 254, 0.1);
  border-color: rgba(79, 172, 254, 0.3);
  transform: translateX(5px);
}

.modal-service-features li::before {
  content: '✓';
  color: #4facfe;
  font-weight: bold;
  margin-right: 1rem;
  font-size: 1.2rem;
}

/* Package Cards */
.modal-service-packages h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #fff;
  border-left: 4px solid #a855f7;
  /* Purple accent for packages */
  padding-left: 1rem;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Force 3 columns */
  gap: 1.5rem;
  position: relative;
  padding-top: 1.5rem;
  /* Space for connecting line */
}

/* Horizontal Connector Line */
.packages-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16%;
  /* Start at first card center */
  right: 16%;
  /* End at last card center */
  height: 2px;
  background: #4facfe;
  box-shadow: 0 0 10px #4facfe;
}

/* Vertical Connectors to Cards */
.package-card::after {
  content: '';
  position: absolute;
  top: -1.5rem;
  /* Reach up to horizontal line */
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 1.5rem;
  background: linear-gradient(to bottom, #4facfe, rgba(79, 172, 254, 0));
}

@media (max-width: 1024px) {
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .packages-grid::before {
    left: 25%;
    right: 25%;
  }
}

@media (max-width: 768px) {
  .packages-grid {
    grid-template-columns: 1fr;
  }

  .packages-grid::before {
    display: none;
  }

  .modal-service-header::after {
    display: none;
  }

  .package-card::after {
    display: none;
  }
}

/* Compact Card Node */
.package-card {
  background: rgba(10, 15, 30, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.25rem;
  /* Compact padding */
  position: relative;
  overflow: visible;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  z-index: 1;
  height: 100%;
  /* Ensure full height */
}

.package-card:hover {
  transform: translateY(-5px);
  border-color: #00f2fe;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.15);
}

.package-header {
  margin-bottom: 0.5rem;
  padding-bottom: 0;
  border-bottom: none;
  /* Removed: using gradient separator instead */
  text-align: center;
}

.package-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  /* Reduced for single line fit */
  font-weight: 800;
  /* Branding Gradient Identity */
  background: linear-gradient(135deg, #00f2fe 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.3));
  /* Subtle Glow */
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  /* FORCE SINGLE LINE */
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  position: relative;
  padding-bottom: 0.5rem;
}

/* Gradient Separator Identity */
.package-card h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 242, 254, 0), #00f2fe, #a855f7, rgba(168, 85, 247, 0));
}

/* Identifiable Price Styling */
/* Identifiable Price Styling - NO BUTTON STYLE */
/* Identifiable Price Styling - NO BUTTON STYLE - MATCHING PINK BUTTONS */
/* Identifiable Price Styling - NO BUTTON STYLE - MATCHING PINK BUTTONS */
.package-price {
  display: flex;
  /* Flex to align symbols */
  justify-content: center;
  align-items: baseline;
  /* Align matching baseline */
  font-size: 2.5rem;
  /* Larger base number */
  font-weight: 800;
  /* Gradient Matching the Buttons */
  background: linear-gradient(90deg, #A855F7 0%, #EC4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
  /* Pink Glow */
  margin: 0.2rem auto 0;
  border: none;
  padding: 0;
  letter-spacing: -1px;
  gap: 4px;
}

.price-symbol {
  -webkit-text-fill-color: #fff;
  /* Override gradient */
  color: #fff;
  font-size: 0.6em;
  /* Smaller $ */
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.price-curr {
  -webkit-text-fill-color: #fff;
  /* Override gradient */
  color: #fff;
  font-size: 0.35em;
  /* MUCH Smaller MXN */
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  font-weight: 600;
  transform: translateY(-8px);
  /* Lift clear off baseline */
}

.package-description {
  font-size: 0.85rem;
  color: #94a3b8;
  /* Muted */
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.4;
  font-style: italic;
}

.package-includes {
  list-style: none;
  margin-bottom: 1rem;
  height: 180px;
  /* FIXED HEIGHT for Perfect Symmetry */
  overflow-y: auto;
  /* Scroll if content exceeds */
  padding-right: 5px;
  /* Space for scrollbar */
  /* Custom Scrollbar for this element */
  scrollbar-width: thin;
  scrollbar-color: #a855f7 rgba(255, 255, 255, 0.05);
}

/* Webkit Scrollbar for the list */
.package-includes::-webkit-scrollbar {
  width: 4px;
}

.package-includes::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.package-includes::-webkit-scrollbar-thumb {
  background: #a855f7;
  border-radius: 4px;
}

.package-includes li {
  font-size: 0.85rem;
  padding: 0.3rem 0;
  /* Reduced padding */
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
}

.package-includes li::before {
  content: '✦';
  color: #a855f7;
  /* Purple accent */
  margin-right: 0.6rem;
  font-size: 0.8rem;
  margin-top: 2px;
}

/* Button matching 'Explorar Planes' Identity */
/* Button matching 'Explorar Planes' Identity */
.package-card .btn-magnetic {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
}

/* Button small */
.btn-nova-sm {
  background: linear-gradient(90deg, #A855F7 0%, #EC4899 100%);
  border: none;
  border-radius: 8px;
  /* Slightly squarer for tighter feel */
  padding: 0.6rem 1.2rem;
  /* Reduced padding */
  font-size: 0.85rem;
  /* Smaller Font */
  font-weight: 600;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
  width: auto !important;
  /* Force compacted width */
  min-width: 0;
}

.package-card .btn-magnetic:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
  filter: brightness(1.1);
}

.package-card .btn-magnetic span {
  position: relative;
}

@media (max-width: 768px) {
  .packages-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    /* Padding lateral reducido para evitar cortes */
    padding: 1.2rem 0.5rem !important;
  }

  /* --- FIX DOBLE SCROLL & ESPACIO MÓVIL --- */
  .package-includes {
    height: auto !important;
    /* Altura automática */
    max-height: none !important;
    overflow-y: visible !important;
    /* Sin scroll interno */
    margin-bottom: 0.5rem;
  }
}

/* ==================== THE NOVA PROTOCOL (REDESIGN) ==================== */
.process-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.nova-timeline {
  position: relative;
  max-width: 1000px;
  margin: 4rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Central Glowing Spine */
.nova-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(to bottom,
      transparent,
      var(--color-gold),
      var(--color-accent),
      transparent);
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  z-index: 0;
  border-radius: 4px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.timeline-row.reverse .t-col-left {
  grid-column: 3;
}

/* ==================== PROCESS SECTION (REDESIGN V3 - EPIC DIAGRAM) ==================== */
.process-section {
  padding: 6rem 0;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.05) 0%, var(--bg-dark) 70%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(168, 85, 247, 0.1);
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.process-diagram-container {
  max-width: 1200px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  padding: 1rem;
}

/* Horizontal Connecting Line (Behind) */
.process-diagram-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg,
      rgba(168, 85, 247, 0),
      rgba(217, 70, 239, 0.5),
      rgba(168, 85, 247, 0));
  z-index: 0;
  transform: translateY(-50%);
}

/* Process Node Card */
.process-node {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  height: 100%;
  min-height: 320px;
}

/* Epic Glow Hover */
.process-node:hover {
  transform: translateY(-10px);
  background: rgba(20, 10, 40, 0.8);
  border-color: rgba(217, 70, 239, 0.6);
  box-shadow:
    0 20px 40px -10px rgba(168, 85, 247, 0.2),
    inset 0 0 20px rgba(217, 70, 239, 0.05);
}

/* Node Number */
.node-header {
  margin-bottom: 1.5rem;
  position: relative;
}

.node-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(217, 70, 239, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #d946ef;
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
  transition: all 0.3s ease;
}

.process-node:hover .node-icon {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(217, 70, 239, 0.5);
  border-color: transparent;
}

.node-step {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #0f172a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.5);
}

/* Content */
.node-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  background: linear-gradient(to right, #fff, #e2e8f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.node-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Result Pill (Compact) */
.node-result {
  background: rgba(217, 70, 239, 0.1);
  border: 1px solid rgba(217, 70, 239, 0.3);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f0abfc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  transition: all 0.3s;
}

.process-node:hover .node-result {
  background: rgba(217, 70, 239, 0.2);
  color: #fff;
  border-color: #d946ef;
}

/* Responsiveness */
@media (max-width: 991px) {
  .process-diagram-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .process-diagram-container::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .process-diagram-container {
    grid-template-columns: 1fr;
  }
}

.process-node:hover .step-title-group h4 {
  margin-bottom: 0.5rem;
  color: #fff;
  font-weight: 700;
}

.step-title-group p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 90%;
}

.step-icon {
  width: 50px;
  height: 50px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Result Box (Integrated) */
.step-result-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.0), rgba(168, 85, 247, 0.1));
  /* Purple tint */
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-left: 4px solid var(--color-accent);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.step-result-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.result-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: var(--color-accent);
  /* Brand Purple/Blue */
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.result-desc {
  font-size: 0.95rem;
  color: #e2e8f0;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.result-desc {
  font-size: 0.95rem;
  color: #e2e8f0;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .process-container {
    padding: 0 1rem;
    gap: 2rem;
  }

  .process-container::before {
    display: none;
  }

  .process-step {
    flex-direction: column;
  }

  .step-number-col {
    width: 100%;
    height: 60px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: flex-start;
    padding-left: 2rem;
  }

  .step-number {
    font-size: 2rem;
  }

  .step-content {
    padding: 1.5rem;
  }

  .step-header {
    flex-direction: column-reverse;
    gap: 1rem;
  }

  .step-icon {
    margin-bottom: 0.5rem;
  }

  .step-result-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}


/* EMERGENCY OVERRIDE FOR MODAL SCROLL */
.modal-content {
  width: 95vw !important;
  max-width: 1400px !important;
  overflow-x: hidden !important;
}

/* ==================== WHY NOVA SECTION (COMPACT REDESIGN) ==================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.why-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-card:hover {
  transform: translateY(-5px);
  background: rgba(20, 10, 40, 0.8);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

/* Neural Access Button (Brain) */
.neural-access-btn {
  width: 42px;
  height: 42px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  margin-left: 12px;
}



.why-icon {
  width: 48px;
  height: 48px;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a855f7;
  transition: all 0.3s ease;
}

.why-card:hover .why-icon {
  background: #a855f7;
  color: white;
  transform: rotate(10deg);
}

.why-card h3 {
  font-size: 1.1rem;
  margin: 0;
  color: white;
  font-weight: 600;
}

.why-card p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== WHY NOVA TIMELINE (INTERACTIVE) ==================== */
.why-timeline-wrapper {
  position: relative;
  padding: 4rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-track {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(168, 85, 247, 0.3);
  transform: translateY(-50%);
  z-index: 0;
}

.timeline-nodes {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.timeline-item {
  position: relative;
}

.timeline-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid rgba(168, 85, 247, 0.5);
  color: #a855f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.timeline-btn:hover,
.timeline-item.active .timeline-btn {
  background: #a855f7;
  color: #fff;
  border-color: #d946ef;
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(217, 70, 239, 0.5);
}

.why-popover {
  position: absolute;
  bottom: 80px;
  /* Above the icon */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 250px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.why-popover::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(168, 85, 247, 0.4);
}

.timeline-item.active .why-popover,
.timeline-item:hover .why-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.why-popover h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.why-popover p {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

/* Mobile: Stack vertical */
@media (max-width: 768px) {
  .why-timeline-wrapper {
    padding: 1rem 0;
  }

  .timeline-track {
    top: 50px;
    left: 30px;
    width: 2px;
    height: 100%;
    transform: none;
  }

  .timeline-nodes {
    flex-direction: column;
    gap: 2rem;
  }

  .timeline-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .why-popover {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    width: auto;
    text-align: left;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    pointer-events: auto;
  }

  .why-popover::after {
    display: none;
  }

  .timeline-btn {
    flex-shrink: 0;
  }
}

/* ==================== HOLOGRAM RAIN EFFECT ==================== */
.hologram-separator {
  position: relative;
  width: 100%;
  height: 350px;
  /* Adjustable height for the gap */
  background: linear-gradient(to bottom, #030014, #0f0728);
  /* Seamless blend */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(168, 85, 247, 0.1);
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.holo-text {
  position: absolute;
  z-index: 10;
  color: rgba(168, 85, 247, 0.8);
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-align: center;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.6), 0 0 20px rgba(168, 85, 247, 0.4);
  pointer-events: none;
  animation: holoPulse 4s ease-in-out infinite;
  width: 100%;
  top: 40%;
  /* Move up slightly to make room for subtitle */
}

@keyframes holoPulse {

  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.8), 0 0 30px rgba(168, 85, 247, 0.6);
  }
}

.holo-subtitle {
  position: absolute;
  top: 60%;
  /* Position below the main text */
  z-index: 10;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 2px;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .holo-text {
    font-size: 1.8rem;
    letter-spacing: 2px;
    top: 35%;
  }

  .holo-subtitle {
    font-size: 0.6rem;
    letter-spacing: 1px;
    top: 55%;
  }

  .hologram-separator {
    height: 250px;
  }
}

.nav-highlight {
  color: #a855f7 !important;
  font-weight: 600;
  position: relative;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.nav-highlight::after {
  content: '•';
  position: absolute;
  top: -5px;
  right: -8px;
  color: #06b6d4;
  font-size: 1.2rem;
  animation: blink 2s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.holo-grid {
  text-shadow: 0 0 5px rgba(168, 85, 247, 0.4);
}

.holo-grid {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

.holo-icon {
  position: absolute;
  color: rgba(168, 85, 247, 0.25);
  /* Subtle purple ghost */
  font-size: 2.5rem;
  filter: blur(1px) drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
  animation: holoRain linear infinite;
  opacity: 0;
}

/* Individual Icon Positioning & Timing (Randomized feel) */
.holo-icon:nth-child(1) {
  left: 10%;
  animation-duration: 8s;
  animation-delay: 0s;
  font-size: 2rem;
}

.holo-icon:nth-child(2) {
  left: 25%;
  animation-duration: 12s;
  animation-delay: 2s;
  font-size: 3rem;
  color: rgba(56, 189, 248, 0.25);
  /* Cyan tint */
}

.holo-icon:nth-child(3) {
  left: 40%;
  animation-duration: 9s;
  animation-delay: 4s;
  font-size: 2.2rem;
}

.holo-icon:nth-child(4) {
  left: 60%;
  animation-duration: 11s;
  animation-delay: 1s;
  font-size: 2.8rem;
}

.holo-icon:nth-child(5) {
  left: 75%;
  animation-duration: 7s;
  animation-delay: 3s;
  font-size: 1.8rem;
  color: rgba(236, 72, 153, 0.25);
  /* Pink tint */
}

.holo-icon:nth-child(6) {
  left: 90%;
  animation-duration: 10s;
  animation-delay: 5s;
  font-size: 2.4rem;
}

.holo-icon:nth-child(7) {
  left: 15%;
  animation-duration: 9s;
  animation-delay: 4.5s;
  font-size: 2.6rem;
}

.holo-icon:nth-child(8) {
  left: 33%;
  animation-duration: 13s;
  animation-delay: 1.5s;
  font-size: 2rem;
}

.holo-icon:nth-child(9) {
  left: 55%;
  animation-duration: 7.5s;
  animation-delay: 6s;
  font-size: 3.2rem;
}

.holo-icon:nth-child(10) {
  left: 70%;
  animation-duration: 10.5s;
  animation-delay: 2.5s;
  font-size: 2.1rem;
}

.holo-icon:nth-child(11) {
  left: 85%;
  animation-duration: 8.5s;
  animation-delay: 0.5s;
  font-size: 2.9rem;
}

.holo-icon:nth-child(12) {
  left: 5%;
  animation-duration: 11.5s;
  animation-delay: 3.5s;
  font-size: 2.3rem;
}

@keyframes holoRain {
  0% {
    transform: translateY(-50px) rotate(0deg) scale(0.9);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(400px) rotate(20deg) scale(1);
    opacity: 0;
  }
}

/* ==================== SYSTEM ICONS (PREMIUM ANIMATED) ==================== */
.system-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  /* Increased margin for impact */
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
  transition: all 0.3s ease;
  margin-left: auto;
  margin-right: auto;
}

.system-card:hover .system-icon-wrapper {
  transform: scale(1.1);
  border-color: var(--color-gold);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.system-icon-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--color-purple);
  border-bottom-color: var(--color-cyan);
  animation: spin 4s linear infinite;
  opacity: 0.8;
}

.system-card:hover .system-icon-glow {
  border-top-color: var(--color-gold);
  border-bottom-color: var(--color-gold-dark);
  animation-duration: 2s;
}

.system-icon-inner {
  font-size: 2.5rem;
  z-index: 2;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Gradient text for titles to make them pop */
.system-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 30%, #a855f7 100%);
  /* White to Purple Default */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: all 0.3s ease;
}

.system-card:hover h3 {
  background: linear-gradient(135deg, #fff 0%, #d4af37 100%);
  /* Gold on hover */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==================== SYSTEM CARD SILHOUETTE GLOW (USER REQUEST) ==================== */
.system-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.3);
  /* Purple tint border default */
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Silhouette Glow */
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2), inset 0 0 20px rgba(168, 85, 247, 0.05);
}

.system-card:hover {
  transform: translateY(-10px);
  background: rgba(15, 23, 42, 0.8);
  border-color: var(--color-gold);
  /* Gold border on hover */
  /* Intense Gold Glow on Hover */
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3), inset 0 0 30px rgba(212, 175, 55, 0.1);
}

/* ==================== NEW CARDBOX MODAL (PREMIUM V2) ==================== */
.cardbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cardbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cardbox-container {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  border: 1.5px solid #EC4899;
  /* Solid Fuchsia Border (Mobile Match) */
  box-shadow: 0 0 50px rgba(168, 85, 247, 0.25), inset 0 0 30px rgba(0, 0, 0, 0.5);
  border-radius: 24px;
  /* Slightly tighter radius */
  padding: 1.5rem 2rem;
  /* Drastically reduced padding */
  width: 95%;
  max-width: 480px;
  /* Even closer to mobile width */
  max-height: none;
  /* Prevent screen overflow */
  overflow-y: hidden !important;
  /* FORZAR: NO scroll */
  position: relative;
  transform: translateY(20px) scale(0.95);
  /* Less offset, closer to natural size */
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.cardbox-overlay.active .cardbox-container {
  transform: translateY(0) scale(1);
}

.cardbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: #fff;
  width: 44px;
  /* Slightly larger for easier tap */
  height: 44px;
  border-radius: 50%;
  display: flex;
  z-index: 100;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cardbox-close:hover {
  background: var(--color-gold);
  color: #000;
  transform: rotate(90deg);
}

.cardbox-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.cardbox-icon {
  font-size: 3rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

.cardbox-header h2 {
  font-size: 2rem;
  /* Slightly smaller for elegance */
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
}

.cardbox-header p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  opacity: 0.8;
}

/* DAY PILLS (GENERAL) */
.day-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.visual-day-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  transition: all 0.3s ease;
}

.hidden-days {
  display: none !important;
}

.day-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px 15px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.day-pill.active {
  background: linear-gradient(90deg, #A855F7 0%, #EC4899 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3) !important;
}

/* Form Styles */
.cardbox-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 1.2rem;
}

/* Base Ordering (Unified for Desktop/Mobile) - STRICT PARITY */
#llamadaForm {
  display: flex !important;
  flex-direction: column !important;
}

#llamadaForm .row-time {
  order: 1 !important;
  margin: 0 0 1.2rem 0 !important;
}

#llamadaForm .row-name-whatsapp {
  order: 2 !important;
  margin-bottom: 0.8rem !important;
}

#llamadaForm .row-day {
  order: 3 !important;
  margin-bottom: 0.8rem !important;
}

/* Day moved up to #3 */
#llamadaForm .row-subject {
  order: 4 !important;
  margin-bottom: 0.8rem !important;
}

#llamadaForm .row-contact {
  order: 5 !important;
  margin-bottom: 0.8rem !important;
}

/* Contact moved down to #5 */
#llamadaForm #llamadaMessageRow {
  display: none !important;
}

#llamadaForm .cardbox-submit-btn {
  order: 7 !important;
  margin-top: 1.5rem !important;
  position: relative !important;
  z-index: 10 !important;
}

.cardbox-form .form-section label,
.cardbox-form .form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.row-time {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.time-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.time-btn i {
  font-size: 1.2rem;
}

.time-btn:hover {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.05);
}

.time-btn.active {
  background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%) !important;
  /* NUEVO NOVA STYLE */
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4) !important;
}

.cardbox-select,
.cardbox-form .custom-select-trigger {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 15px;
  border-radius: 12px;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.cardbox-form .custom-select-trigger i {
  color: var(--color-gold);
  opacity: 0.6;
}

.cardbox-select option {
  background: #0f172a;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.cardbox-input-group {
  position: relative;
}

.cardbox-input-group.full {
  width: 100%;
  margin-bottom: 2rem;
}

.cardbox-input-group input,
.cardbox-input-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 15px 15px 15px 45px;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
}

.cardbox-input-group textarea {
  padding-left: 15px;
  padding-top: 40px;
}

.cardbox-input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gold);
  opacity: 0.6;
}

.cardbox-input-group.full i {
  top: 15px;
  left: 15px;
}

.cardbox-input-group input:focus,
.cardbox-input-group textarea:focus {
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.05);
}

/* WhatsApp Checkbox */
.form-footer-options {
  margin-bottom: 2rem;
}

.whatsapp-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.85rem;
  height: 100%;
  padding-top: 25px;
  /* Aligns with input of Name field */
}

.whatsapp-check input {
  display: none;
}

.whatsapp-check .checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 6px;
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
  /* MUST BE INLINE-BLOCK TO SHOW AS SPAN */
  flex-shrink: 0;
}

.whatsapp-check input:checked+.checkmark {
  background: #25d366;
  border-color: #25d366;
}

.whatsapp-check input:checked+.checkmark::after {
  content: "✓";
  position: absolute;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  left: 4px;
  top: -1px;
}

.whatsapp-check i {
  color: #25d366;
  font-size: 1.2rem;
}

/* Submit Button - UNIFIED STYLE */
.cardbox-submit-btn {
  width: 100%;
  background: linear-gradient(90deg, #A855F7 0%, #EC4899 100%) !important;
  /* MATCH CTA */
  color: #fff !important;
  border: none !important;
  padding: 1.1rem !important;
  border-radius: 12px !important;
  /* MATCH CTA */
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3) !important;
}

.cardbox-submit-btn:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.4) !important;
  filter: brightness(1.1) !important;
}

@media (max-width: 600px) {
  .input-row {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-bottom: 0.4rem;
  }

  .mobile-only-field {
    display: block !important;
  }

  .cardbox-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .cardbox-container {
    padding: 1rem 1.25rem;
    width: 88% !important;
    /* Thinner width to avoid edges */
    max-width: 380px !important;
    margin: auto !important;
    height: auto !important;
    /* Let it grow naturally */
    max-height: 98vh;
    border-radius: 24px;
    overflow-y: hidden !important;
    /* KILL ALL SCROLL */
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1.5px solid #EC4899 !important;
    /* Solid Fuchsia Border */
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.3) !important;
  }

  .cardbox-header {
    margin-bottom: 0.1rem;
    /* Reduced for proximity */
  }

  .cardbox-icon {
    display: block !important;
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--color-gold);
  }

  /* FINAL MOBILE REORDER TURN 1962 */
  .cardbox-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Tighter gap */
  }

  /* FORCED ORDER TO ENSURE HORARIO IS IMMEDIATELY AFTER DESCRIPTION */
  .row-time {
    order: 1 !important;
    margin-top: 8px !important;
    /* Added breathing room */
    margin-bottom: 5px !important;
  }

  .row-name-whatsapp {
    order: 2 !important;
  }

  .row-day {
    order: 3 !important;
  }

  .row-subject {
    order: 4 !important;
  }

  .row-contact {
    order: 5 !important;
  }

  .cardbox-submit-btn {
    order: 6 !important;
  }

  /* Split row layout for Name/WhatsApp and Phone/Email */

  /* Split row layout for Name/WhatsApp and Phone/Email */
  .row-name-whatsapp,
  .row-contact {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 0 !important;
  }

  /* Form group compaction within rows */
  .row-name-whatsapp .form-group,
  .row-contact .form-group {
    margin-bottom: 0 !important;
  }

  /* WhatsApp Alignment inside Name row */
  .whatsapp-mini-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 38px;
    margin-top: 20px;
    border: none !important;
    /* FORCE NO BORDER */
    background: transparent !important;
  }

  /* Specific WhatsApp styling for mobile row */
  .whatsapp-mini-group .whatsapp-check {
    margin-bottom: 0 !important;
    font-size: 0.75rem !important;
    padding-left: 0 !important;
    transform: translateY(-2px);
  }

  .whatsapp-mini-group .whatsapp-check i {
    font-size: 1rem;
    margin-left: 4px;
  }

  /* Horario Styling (At the top now) */
  .row-time {
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px;
  }

  /* Hide Message on Mobile */
  .row-message {
    display: none !important;
  }


  /* Day Pills overrides for mobile if needed */
  .day-pill {
    padding: 8px 12px;
    font-size: 0.75rem;
    border-radius: 10px;
  }

  .cardbox-icon {
    display: block;
    font-size: 1.8rem;
    /* Slightly smaller for compaction */
    margin-bottom: 0.4rem;
    color: var(--color-gold);
  }

  .cardbox-header h2 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
  }

  .cardbox-header p {
    font-size: 0.85rem;
    line-height: 1.2;
    margin-bottom: 0;
    opacity: 0.9;
  }

  .form-section label,
  .form-group label {
    display: block !important;
    font-size: 0.7rem !important;
    margin-bottom: 0.2rem !important;
    color: var(--color-gold) !important;
    text-transform: uppercase;
    font-weight: 700;
  }

  .form-section {
    margin-bottom: 0.4rem;
  }

  .time-grid {
    gap: 4px;
  }

  .time-btn {
    padding: 10px 6px;
    /* Bigger vertical presence */
    font-size: 0.8rem;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.05);
  }

  .time-btn.active {
    background: linear-gradient(90deg, #A855F7 0%, #EC4899 100%) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.02);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4) !important;
  }

  .time-btn.active i,
  .time-btn.active span {
    color: #fff !important;
  }

  .time-btn i {
    font-size: 0.9rem !important;
    /* Smaller icons as requested */
  }

  .cardbox-input-group input,
  .cardbox-input-group textarea,
  .cardbox-select,
  .cardbox-form .custom-select-trigger {
    padding: 8px 8px 8px 35px;
    font-size: 0.8rem;
    min-height: 38px;
    /* Even more compact */
  }


  .whatsapp-check {
    gap: 6px;
    font-size: 0.8rem;
  }

  .whatsapp-check .checkmark {
    width: 20px !important;
    height: 20px !important;
    border: 2px solid var(--color-gold) !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    /* Brighter background */
    display: inline-block !important;
    /* ENSURE VISIBILITY */
  }

  .whatsapp-check {
    border: none !important;
    padding-left: 0 !important;
    color: var(--color-gold) !important;
    /* Match Name label color */
  }

  .form-footer-options {
    margin-bottom: 0.6rem;
  }

  /* WhatsApp styling for mobile */
  .whatsapp-mini-group .whatsapp-check {
    margin-bottom: 0 !important;
    font-size: 0.75rem !important;
    padding-left: 0 !important;
    transform: translateY(-2px);
  }

  .cardbox-submit-btn {
    padding: 0.6rem !important;
    font-size: 0.9rem !important;
  }

  .cardbox-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
}

/* ==================== BUTTON: AGENDAR LLAMADA (ESTILO EXPLORAR PLANES) ==================== */
@keyframes pulse-nova {
  0% {
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(168, 85, 247, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
  }
}

#btnAgendarLlamada {
  display: flex !important;
  background: linear-gradient(90deg, #A855F7 0%, #EC4899 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3) !important;
  margin-left: auto !important;
  margin-right: 1.5rem !important;
  position: relative !important;
  z-index: 1001 !important;
  text-transform: none !important;
  font-size: 0.9rem !important;
  gap: 0.6rem !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  animation: pulse-nova 2s infinite !important;
  /* EFECTO LLAMADA A LA ACCIÓN */
}

#btnAgendarLlamada i {
  font-size: 0.85rem !important;
}

#btnAgendarLlamada:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4) !important;
  filter: brightness(1.1) !important;
}

#btnAgendarLlamada span {
  position: relative;
  z-index: 2;
}

@media (max-width: 991px) {
  #btnAgendarLlamada {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
    margin-right: 0.8rem !important;
  }
}

@media (max-width: 480px) {
  #btnAgendarLlamada span {
    display: none;
  }

  #btnAgendarLlamada i {
    display: block !important;
    font-size: 1.1rem !important;
  }
}

/* ==================== FOOTER: NEURAL ACCESS BUTTON ==================== */
.neural-access-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 50%;
  color: #a855f7;
  margin-left: 0.5rem;
  /* Reduced from 1.5rem to fix "muy separados" */
  font-size: 1.1rem;
  text-decoration: none !important;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.neural-access-btn:hover {
  background: linear-gradient(135deg, #06b6d4, #d946ef);
  border-color: transparent;
  color: #fff;
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.neural-access-btn i {
  position: relative;
  z-index: 2;
}

.btn-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: rgba(168, 85, 247, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  animation: neural-pulse 3s infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes neural-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  /* Handled in navigation section */
}


/* ==================== SELECTED PLAN DISPLAY (HORIZONTAL BANNER) ==================== */
.selected-plan-display {
  margin-bottom: 1.25rem;
  animation: slideInFromTop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 100%;
  max-width: none;
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.selected-plan-card {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 2px solid;
  border-image: linear-gradient(135deg, #06b6d4, #a855f7) 1;
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(6, 182, 212, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.selected-plan-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(6, 182, 212, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Animated Glow Effect */
.plan-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  animation: rotateGlow 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Card Content - HORIZONTAL BANNER Layout */
.plan-card-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 3rem 0.75rem 1rem;
  z-index: 1;
}

/* Icon Badge */
.plan-icon-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.plan-icon-badge i {
  font-size: 1.1rem;
  color: #ffffff;
}

/* Plan Info Content - VERTICAL layout */
.plan-info-content {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding-right: 1.25rem;
  border-right: 1px solid rgba(6, 182, 212, 0.2);
}

/* Plan Name - FIRST, clean */
.plan-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 8px rgba(6, 182, 212, 0.3);
  line-height: 1.2;
}

/* Price HIGHLIGHT - HERO element with gradient */
.plan-price-highlight {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #06b6d4 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.4));
  margin: 0.1rem 0;
}

/* Service Type - subtle */
.plan-service-type {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Features List - HORIZONTAL inline */
.plan-features-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.plan-features-list li {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  padding-left: 1rem;
  position: relative;
  white-space: nowrap;
}

.plan-features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #06b6d4;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Remove Button - ABSOLUTE for visibility */
.btn-remove-plan {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.15);
  border: 1.5px solid rgba(239, 68, 68, 0.5);
  border-radius: 7px;
  color: #ef4444;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.btn-remove-plan:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  transform: translateY(-50%) scale(1.2) rotate(90deg);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .plan-card-content {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .plan-features-list {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .plan-card-content {
    padding: 0.5rem 0.75rem;
  }

  .plan-info-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .plan-features-list {
    flex-direction: column;
    padding: 0.5rem 0.75rem;
    gap: 0.3rem;
    margin-top: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .plan-features-list li {
    font-size: 0.7rem;
  }
}

/* ==================== NEW FORM STYLES ==================== */

/* Form Rows */
/* ==================== CONTACT SECTION (NEON GLASS V3 - REFINED) ==================== */

.contact {
  background: radial-gradient(circle at 50% -20%, rgba(168, 85, 247, 0.08), transparent 70%);
  position: relative;
  overflow: visible;
  padding-top: 5rem !important;
  padding-bottom: 8rem !important;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

/* --- Selected Plan Display (Blue Glassmorphism) --- */
.selected-plan-display {
  margin-bottom: 2rem;
  width: 100%;
  animation: slideInDown 0.4s ease-out;
}

.selected-plan-card {
  position: relative;
  background: rgba(0, 242, 254, 0.05);
  /* Very light cyan */
  border: 1px solid rgba(0, 242, 254, 0.4);
  /* Blue border */
  border-radius: 12px;
  padding: 1.2rem;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 242, 254, 0.1);
}

.plan-card-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.2) 0%, transparent 70%);
  z-index: 0;
}

.plan-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.plan-icon-badge {
  width: 50px;
  height: 50px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #00f2fe;
}

.plan-info-content {
  flex: 1;
  min-width: 200px;
}

.plan-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.2rem;
  letter-spacing: 1px;
}

.plan-price-highlight {
  font-size: 1.35rem;
  font-weight: 800;
  color: #00f2fe;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.plan-service-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 1px;
}


.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 200px;
}

.plan-features-list li {
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plan-features-list li i {
  color: #a855f7;
  font-size: 0.7rem;
}

.btn-remove-plan {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #f43f5e;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-remove-plan:hover {
  background: #f43f5e;
  color: #fff;
  transform: rotate(90deg);
}

@keyframes slideInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* 1. Form Container Styling - "Fino" Upgrade */
.contact-form-container {
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 24px;
  padding: 2rem !important;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.65rem;
  /* Smaller for elegance */
  font-weight: 700;
  color: #00f2fe !important;
  margin-bottom: 0.4rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding-left: 2px;
}

.form-group label::after {
  content: " *";
  color: #f43f5e;
  opacity: 0.6;
}

/* Refined Inputs ("Fino") */
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form .custom-select-trigger {
  height: 44px;
  background: rgba(30, 41, 59, 0.2) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.03) !important;
  border-radius: 10px !important;
  padding: 0 0.9rem !important;
  color: #cbd5e1 !important;
  font-size: 0.9rem;
  font-family: var(--font-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
}

.contact-form textarea {
  height: auto !important;
  min-height: 90px;
  padding: 0.7rem 0.9rem !important;
}

.contact-form input:hover,
.contact-form textarea:hover,
.custom-select-trigger:hover {
  border-color: rgba(168, 85, 247, 0.4) !important;
  background: rgba(30, 41, 59, 0.35) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-form input:focus,
.contact-form textarea:focus,
.custom-select-wrapper.open .custom-select-trigger {
  background: rgba(30, 41, 59, 0.5) !important;
  border-color: #a855f7 !important;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.1);
  outline: none;
  color: #fff !important;
}

/* Phone Group Fix - Restored & Refined */
.phone-input-group {
  display: flex !important;
  gap: 0.5rem !important;
  height: 44px;
}

.country-select {
  width: 105px !important;
  /* Slightly wider for comfort */
  flex-shrink: 0;
}

.country-select .custom-select-trigger {
  background: rgba(139, 92, 246, 0.08) !important;
  border-color: rgba(139, 92, 246, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem;
  padding: 0 0.6rem !important;
}

#selectedFlag {
  font-size: 1.15rem;
  line-height: normal;
  display: flex;
  align-items: center;
  margin-top: -1px;
  /* Micro-adjustment for visual center */
}

#selectedCode {
  font-size: 0.85rem;
  font-weight: 700;
  color: #c084fc;
  display: flex;
  align-items: center;
  line-height: normal;
}

#contactPhone {
  flex-grow: 1;
}

/* Email Input with Selector Integration - Simplified */
.email-input-wrapper {
  display: flex !important;
  height: 44px;
  background: rgba(30, 41, 59, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  /* Reduced overflow:hidden to allow dropdowns */
  overflow: visible !important;
  transition: all 0.3s ease;
}

.email-input-wrapper:focus-within {
  border-color: #a855f7;
  background: rgba(30, 41, 59, 0.5);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.1);
}

.email-input-wrapper input {
  border: none !important;
  background: transparent !important;
  height: 100% !important;
  flex-grow: 1;
}

.email-user-input {
  border-top-left-radius: 10px !important;
  border-bottom-left-radius: 10px !important;
  padding-left: 1rem !important;
}

.email-at {
  display: flex;
  align-items: center;
  color: #818cf8;
  font-weight: 700;
  padding: 0 0.4rem;
  opacity: 0.7;
}

.provider-select {
  width: 135px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.provider-select .custom-select-trigger {
  border: none !important;
  background: rgba(99, 102, 241, 0.1) !important;
  /* Indigo tint */
  height: 100% !important;
  border-radius: 0 10px 10px 0 !important;
  font-size: 0.85rem;
  color: #818cf8 !important;
  font-weight: 600;
  justify-content: center !important;
  gap: 0.3rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.email-domain-input {
  border: none !important;
  background: rgba(99, 102, 241, 0.1) !important;
  height: 100% !important;
  width: 140px !important;
  color: #818cf8 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  padding: 0 0.8rem !important;
  outline: none !important;
  border-radius: 0 10px 10px 0 !important;
}

.email-domain-input::placeholder {
  color: rgba(129, 140, 248, 0.5);
}

/* Wider Email Provider Popup */
.provider-select .custom-options {
  width: 240px !important;
  left: auto !important;
  right: 0 !important;
  background: #0f172a !important;
  /* Solid for readability */
}

/* Ensure LADA matches high priority */
.country-select .custom-options {
  width: 240px !important;
  left: 0 !important;
  right: auto !important;
}

/* 2. Custom Select Dropdown Styling - Fix Positioning */
.custom-select-wrapper {
  position: relative !important;
  /* CRITICAL for absolute children */
}

.custom-select-wrapper .custom-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 100%;
  background: #0f172a !important;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  z-index: 1000;
  max-height: 250px;
  overflow-y: auto;
  padding: 0.4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Specific LADA Mini-Popup */
.country-select .custom-options {
  width: 240px !important;
  /* Fixed width for popup readability */
  left: 0 !important;
  right: auto !important;
  background: #0f172a !important;
  /* Solid dark for maximum contrast */
  border-color: rgba(168, 85, 247, 0.3) !important;
}

.custom-select-wrapper.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #94a3b8;
  font-size: 0.85rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.custom-option:last-child {
  border-bottom: none;
}

.custom-option:hover {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.4), rgba(99, 102, 241, 0.4)) !important;
  color: white !important;
  transform: translateX(8px) scale(1.02);
  box-shadow: -6px 0 15px rgba(168, 85, 247, 0.3);
  /* Indicator line and glow */
}

.custom-option i {
  width: 16px;
  text-align: center;
  font-size: 0.9rem;
}

/* 3. Submit Button Refinement */
.btn-submit-v3 {
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
  border-radius: 12px;
  background: linear-gradient(90deg, #a855f7, #6366f1);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.btn-submit-v3:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.4);
  filter: brightness(1.1);
}

/* 4. Contact Info Holographic Cards */
.contact-info .info-card {
  background: rgba(15, 23, 42, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 24px;
  padding: 2.5rem 2rem !important;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  height: 100%;
}

.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.info-item {
  display: flex !important;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(10px);
  border-color: rgba(168, 85, 247, 0.2);
}

.info-item .icon-box {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #a855f7;
}

.info-item span {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 500;
  transition: color 0.3s;
}

.info-item:hover span {
  color: #fff;
}

/* 5. Utility & Animations */
.hidden {
  display: none !important;
}

.visible-slidedown {
  display: block;
  animation: contactSlideDown 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.hidden-slidedown {
  display: none;
}

@keyframes contactSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
  }
}

/* 6. Responsive Fixes */
@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-container,
  .contact-info .info-card {
    padding: 1.5rem !important;
    background: #0a1120 !important;
    /* Totalmente sólido */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: none !important;
  }
}

/* ==================== FORM VISIBILITY CONTROLS ==================== */
/* Mobile Form Visibility */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}

/* Mobile Contact Form Styles */
.mobile-contact-form {
  width: 100%;
  max-width: 100%;
  padding: 2rem 1.5rem;
  background: transparent;
  font-family: 'Inter', sans-serif;
}

.mobile-form-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, #00C6FF, #7B1FA2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.mobile-form-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.mobile-input-group {
  margin-bottom: 1.5rem;
}

.mobile-input-group label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00C6FF;
  display: block;
  margin-bottom: 0.5rem;
}

.mobile-input-group input,
.mobile-input-group textarea,
.mobile-select {
  width: 100%;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.mobile-input-group input:focus,
.mobile-input-group textarea:focus,
.mobile-select:focus {
  outline: none;
  border-color: #00C6FF;
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.1);
}

.mobile-select-wrapper {
  position: relative;
}

.mobile-select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300C6FF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.8rem auto;

  .btn-mobile-submit {
    margin-top: 1rem;
    background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    color: #0a1120;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.2s;
  }

  .btn-mobile-submit:active {
    transform: scale(0.98);
  }
}


/* Mobile Email Provider Selector */
.mobile-email-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.mobile-email-wrapper:focus-within {
  border-color: #00C6FF;
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.1);
}

.mobile-email-user {
  flex: 1;
  background: transparent !important;
  border: none !important;
  padding: 0.5rem 0 !important;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  box-shadow: none !important;
}

.mobile-email-user:focus {
  outline: none;
  border: none !important;
  box-shadow: none !important;
}

.mobile-email-at {
  color: #00C6FF;
  font-weight: 600;
  font-size: 1.1rem;
}

.mobile-email-provider {
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300C6FF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 0.6rem auto;
  padding-right: 1.2rem;
}

.mobile-email-custom {
  flex: 1;
  background: transparent !important;
  border: none !important;
  padding: 0.5rem 0 !important;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  box-shadow: none !important;
}

.mobile-email-custom:focus {
  outline: none;
  border: none !important;
  box-shadow: none !important;
}


/* ==================== SUCCESS POPUP ANIMATIONS ==================== */
.success-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.success-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.success-popup-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 50px rgba(0, 242, 254, 0.2);
  width: 90%;
  max-width: 450px;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.success-popup-overlay.active .success-popup-card {
  transform: translateY(0) scale(1);
}

.success-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.success-close-btn:hover {
  color: #fff;
}

/* --- CONNECTION STAGE --- */
.connection-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0 10px;
  position: relative;
}

.icon-point {
  position: relative;
  z-index: 2;
}

.icon-circle {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #64748b;
  transition: all 0.5s ease;
}

.user-point.active .icon-circle {
  border-color: #A855F7;
  color: #A855F7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.1);
}

.nova-point.active .icon-circle {
  border-color: #00f2fe;
  color: #00f2fe;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
  background: rgba(0, 242, 254, 0.1);
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  opacity: 0;
}

.user-point.active .pulse-ring {
  border-color: #A855F7;
  animation: pulse-ring-anim 1.5s infinite;
}

.nova-point.active .dest-ring {
  border-color: #00f2fe;
  animation: pulse-ring-anim 1.5s infinite 0.2s;
}

@keyframes pulse-ring-anim {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* --- CONNECTION LINE --- */
.connection-line-container {
  flex-grow: 1;
  height: 4px;
  margin: 0 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.connection-line-active {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #A855F7, #00f2fe);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.data-packet {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%) scale(0);
  color: #fff;
  font-size: 0.8rem;
  z-index: 3;
  transition: left 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-popup-card.animating .connection-line-active {
  width: 100%;
}

.success-popup-card.animating .data-packet {
  transform: translate(-50%, -50%) scale(1);
  left: 100%;
}

/* --- TEXT --- */
.success-message-container {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 1s;
  /* Delay 1s */
}

.success-popup-card.animating .success-message-container {
  opacity: 1;
  transform: translateY(0);
}

.success-title {
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.success-text {
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.success-highlight {
  background: linear-gradient(90deg, #00f2fe, #A855F7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  text-transform: capitalize;
}

.success-subtext {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- FOOTER & TIMER --- */
.success-footer {
  margin-top: 2rem;
  opacity: 0;
  transition: opacity 0.5s ease 1.5s;
}

.success-popup-card.animating .success-footer {
  opacity: 1;
}

.auto-close-timer {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 1.5rem;
  border-radius: 3px;
  overflow: hidden;
}

.timer-bar {
  width: 100%;
  height: 100%;
  background: #00f2fe;
  transform-origin: left;
}

.success-popup-card.animating .timer-bar {
  animation: timer-shrink 10s linear forwards;
}

@keyframes timer-shrink {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

.timer-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.5rem;
}

/* FINAL MOBILE OVERRIDE - FORCE SOLID CONTACT FORM */
@media (max-width: 768px) {

  section.contact .contact-form-container,
  section.contact .contact-info .info-card {
    background: #0f172a !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
  }

  .highlight-purple {
    background: linear-gradient(90deg, #06b6d4, #d946ef) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    font-weight: 800 !important;
  }
}

/* ==================== MOBILE HERO ICONS REDESIGN (Focus Mode / Overlay) ==================== */
@media (max-width: 768px) {

  /* 1. Container: Relative for absolute info positioning */
  .footer-stats {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 0 !important;
    padding: 0 1.5rem !important;
    /* Little side padding */
    position: relative !important;
    /* Anchor for absolute info */
    min-height: 100px;
    /* Reserve space for overlay info */
  }

  /* 2. Hide Dividers */
  .footer-stat-divider {
    display: none !important;
  }

  /* 3. Base Item Style */
  .footer-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
  }

  /* 4. NOVA Gradient Icon Box - SHARP EDITION */
  .footer-stat-item .icon-box-blue {
    background: rgba(15, 23, 42, 0.95);
    /* More solid background */
    border: 1px solid rgba(6, 182, 212, 0.5);
    /* Define border clearly */
    border-radius: 14px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    /* Darker shadow, less bloom */
    transition: all 0.3s ease;
  }

  /* CRITICAL: Parent must be relative for absolute child (stat-info) to position correctly */
  .footer-stat-item {
    position: relative !important;
    overflow: visible !important;
    /* Allow tooltip to overflow upwards */
  }

  /* Icon: Solid White for max sharpness */
  .footer-stat-item .icon-box-blue i {
    font-size: 1.3rem;
    color: #ffffff;
    /* Sharp White */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    /* Depth without blur */
    filter: none;
    /* Ensure no filters */
  }

  /* 5. FOCUS LOGIC (The Magic) */
  /* If container has ANY active item, dim EVERY item */
  /* Then, override opacity for the specfic active item */
  .footer-stats:has(.stat-active) .footer-stat-item {
    opacity: 0.3;
    filter: grayscale(0.8);
    transform: scale(0.95);
  }

  /* Restore active item visibility & MOVE DOWN */
  .footer-stats:has(.stat-active) .footer-stat-item.stat-active {
    opacity: 1;
    filter: grayscale(0);
    transform: translateY(15px) scale(1.05);
    /* Move DOWN to point to info */
    z-index: 20;
  }

  .footer-stat-item.stat-active .icon-box-blue {
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.3), inset 0 0 10px rgba(6, 182, 212, 0.1);
    border-color: #d946ef;
    /* Purple border active */
  }

  /* 6. Info Overlay (Absolute ABOVE Icons - Robust) */
  .footer-stats .stat-info {
    display: none;
    position: absolute;
    bottom: calc(100% + 15px);
    /* Force it 15px ABOVE the container's top edge */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 320px;
    /* Safety cap */
    margin: 0;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.98);
    /* Almost solid */
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    /* Deep shadow */
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 0.3rem;
    pointer-events: none;
    z-index: 100;
    /* Super high z-index */
  }

  /* Little Arrow pointing down */
  .footer-stats .stat-info::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: rgba(168, 85, 247, 0.4) transparent transparent transparent;
    z-index: 100;
  }

  /* Reduce space below icons so Marquee sits flush */
  .footer-stats {
    padding-bottom: 0.5rem !important;
    margin-bottom: 0 !important;
    min-height: auto !important;
  }

  /* Purple Line Separator (Below Icons) */
  /* Purple Line Removed as per user request */
  /* .footer-stats::after logic deleted */

  /* Fix for Aggressive Bolt Animation */
  .footer-stat-item .fa-bolt {
    animation: none !important;
    /* Stop global pulse */
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
    /* Subtle static glow instead */
  }

  .footer-stat-item.stat-active .fa-bolt {
    filter: drop-shadow(0 0 8px rgba(217, 70, 239, 0.8));
    /* Stronger glow when active */
  }

  .footer-stat-item.stat-active .stat-info {
    display: flex !important;
    animation: fadeInOverlay 0.4s ease-out forwards;
  }

  .stat-number {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }

  .stat-label {
    font-size: 0.8rem;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
  }

  @keyframes fadeInOverlay {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ==================== GLOBAL & MOBILE TAG FIX ==================== */
/* Desktop Default (Restores original look) */
.nova-mobile-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin: 0;
}

.nova-mobile-tag i {
  display: none;
  /* Hide icons on desktop as requested (implied) */
}

/* Mobile Override (The Purple Pill) */
@media (max-width: 768px) {
  .nova-mobile-tag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    padding: 0.6rem 1.5rem !important;
    padding: 0.6rem 1.5rem !important;
    /* Gradient Border Trick: Content BG (Dark) + Border BG (Gradient) */
    background: linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.95)) padding-box,
      linear-gradient(135deg, #06b6d4, #d946ef) border-box !important;
    border: 1px solid transparent !important;
    /* Transparent to show gradient underneath */
    border-radius: 12px !important;
    border-radius: 50px !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.3), inset 0 0 10px rgba(217, 70, 239, 0.1) !important;
    margin-bottom: 0.5rem !important;
    /* REDUCED SPACING as requested (was 1.5rem) */
    white-space: nowrap !important;
    width: auto !important;
    max-width: 90% !important;
  }

  .nova-mobile-tag i {
    display: inline-block !important;
    background: linear-gradient(135deg, #06b6d4, #d946ef) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    font-size: 1.1rem !important;
    filter: drop-shadow(0 0 5px rgba(217, 70, 239, 0.4));
    /* Slightly softer shadow */
  }
}

/* ==================== SCALE PULSE ANIMATION (MOBILE) ==================== */
@media (max-width: 768px) {
  .word-anim {
    animation: scalePulse 6s ease-in-out infinite !important;
    transform-origin: center center;
  }

  .w-1 {
    animation-delay: 0s !important;
  }

  .w-2 {
    animation-delay: 2s !important;
  }

  .w-3 {
    animation-delay: 4s !important;
  }

  @keyframes scalePulse {

    0%,
    100% {
      transform: scale(1);
      filter: drop-shadow(0 0 0 transparent);
    }

    10%,
    20% {
      /* Scale UP without changing color (Gradient stays) */
      transform: scale(1.15);
      filter: drop-shadow(0 0 15px rgba(217, 70, 239, 0.6));
      /* Just simple purple glow */
    }

    40% {
      transform: scale(1);
      filter: drop-shadow(0 0 0 transparent);
    }
  }
}

/* Mobile Fix: Hide Services Description Text */
@media (max-width: 768px) {
  #servicios .section-description {
    display: none !important;
  }
}

/* ==================== DUAL TITLE LOGIC ==================== */
/* Desktop Default */
.mobile-only-title {
  display: none !important;
}

/* Mobile Override */
@media (max-width: 768px) {
  .desktop-only-title {
    display: none !important;
  }

  .mobile-only-title {
    display: block !important;
    font-size: 1.6rem !important;
    /* Adjusted for single line fit */
    white-space: nowrap !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }
}

/* ==================== DYNAMIC WORD ANIMATION (MOBILE) ==================== */
@media (max-width: 768px) {
  .dynamic-word {
    display: inline-block;
    background: linear-gradient(135deg, #06b6d4, #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: popWord 3s ease-in-out infinite;
  }

  @keyframes popWord {

    0%,
    100% {
      color: transparent;
      /* Stick to gradient */
      transform: scale(1);
      filter: drop-shadow(0 0 0 transparent);
    }

    50% {
      color: #fff;
      /* Flash White */
      transform: scale(1.15);
      /* Pop bigger */
      filter: drop-shadow(0 0 10px rgba(217, 70, 239, 0.8));
      /* Glow Purple */
      -webkit-text-fill-color: #fff;
      /* Override gradient clipping for solid white */
    }
  }
}

/* ==================== STAGGERED SHINE ANIMATION (MOBILE) ==================== */
@media (max-width: 768px) {
  .word-anim {
    display: inline-block;
    background: linear-gradient(135deg, #06b6d4, #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shineFlow 4s ease-in-out infinite;
  }

  .w-1 {
    animation-delay: 0s;
  }

  .w-2 {
    animation-delay: 0.3s;
  }

  .w-3 {
    animation-delay: 0.6s;
  }

  @keyframes shineFlow {

    0%,
    100% {
      color: transparent;
      filter: drop-shadow(0 0 0 transparent);
    }

    30%,
    50% {
      color: #fff;
      /* Flash White */
      filter: drop-shadow(0 0 10px rgba(217, 70, 239, 0.6));
      /* Soft Purple Glow */
      -webkit-text-fill-color: #fff;
    }
  }
}

/* ==================== SEQUENTIAL ONE-BY-ONE FLASH (MOBILE) ==================== */
@media (max-width: 768px) {
  .word-anim {
    animation: oneByOne 4s ease-in-out infinite !important;
  }

  /* Distinct delays > active window to prevent overlap */
  .w-1 {
    animation-delay: 0s !important;
  }

  .w-2 {
    animation-delay: 1.3s !important;
  }

  .w-3 {
    animation-delay: 2.6s !important;
  }

  @keyframes oneByOne {

    0%,
    100% {
      color: transparent;
      filter: drop-shadow(0 0 0 transparent);
    }

    5%,
    25% {
      /* Active window is approx 0.8s long (20% of 4s) */
      color: #fff;
      filter: drop-shadow(0 0 10px rgba(217, 70, 239, 0.8));
      -webkit-text-fill-color: #fff;
    }

    30% {
      /* Force off before next word starts */
      color: transparent;
      filter: drop-shadow(0 0 0 transparent);
      -webkit-text-fill-color: transparent;
    }
  }
}

/* ==================== SOFT & SLOW ORGANIC FLOW (MOBILE) ==================== */
@media (max-width: 768px) {
  .word-anim {
    animation: softFlow 8s ease-in-out infinite !important;
  }

  /* Spaced out delays for relaxed rhythm */
  .w-1 {
    animation-delay: 0s !important;
  }

  .w-2 {
    animation-delay: 2.5s !important;
  }

  .w-3 {
    animation-delay: 5s !important;
  }

  @keyframes softFlow {

    0%,
    100% {
      color: transparent;
      filter: drop-shadow(0 0 0 transparent);
    }

    10% {
      /* Start fading in */
      color: rgba(255, 255, 255, 0.5);
    }

    20%,
    30% {
      /* Peak White & Glow (Hold slightly) */
      color: #fff;
      filter: drop-shadow(0 0 12px rgba(217, 70, 239, 0.5));
      -webkit-text-fill-color: #fff;
    }

    40% {
      /* Fade out slowly */
      color: transparent;
      filter: drop-shadow(0 0 0 transparent);
      -webkit-text-fill-color: transparent;
    }
  }
}

/* ==================== COLOR RECOVERY FLOW (MOBILE) ==================== */
@media (max-width: 768px) {
  .word-anim {
    animation: colorRecover 8s ease-in-out infinite !important;
  }

  .w-1 {
    animation-delay: 0s !important;
  }

  .w-2 {
    animation-delay: 2s !important;
  }

  .w-3 {
    animation-delay: 4s !important;
  }

  @keyframes colorRecover {

    0%,
    100% {
      /* Base State: Full Gradient */
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 0 0 transparent);
      transform: scale(1);
    }

    10%,
    20% {
      /* Flash: Pure White & Glow */
      -webkit-text-fill-color: #fff;
      filter: drop-shadow(0 0 15px rgba(217, 70, 239, 0.8));
      transform: scale(1.02);
      /* Tiny breathe */
    }

    40% {
      /* Recovery: Back to Gradient slowly */
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 0 0 transparent);
      transform: scale(1);
    }
  }
}

/* ==================== COLOR RECOVERY FLOW (MOBILE) ==================== */
@media (max-width: 768px) {
  .word-anim {
    animation: colorRecover 8s ease-in-out infinite !important;
  }

  .w-1 {
    animation-delay: 0s !important;
  }

  .w-2 {
    animation-delay: 2s !important;
  }

  .w-3 {
    animation-delay: 4s !important;
  }

  @keyframes colorRecover {

    0%,
    100% {
      /* Base State: Full Gradient */
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 0 0 transparent);
      transform: scale(1);
    }

    10%,
    20% {
      /* Flash: Pure White & Glow */
      -webkit-text-fill-color: #fff;
      filter: drop-shadow(0 0 15px rgba(217, 70, 239, 0.8));
      transform: scale(1.02);
      /* Tiny breathe */
    }

    40% {
      /* Recovery: Back to Gradient slowly */
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 0 0 transparent);
      transform: scale(1);
    }
  }
}

/* ==================== MARQUEE MESSAGE INTERACTION (MOBILE) ==================== */
@media (max-width: 768px) {
  .tech-marquee-section {
    position: relative;
    transition: all 0.5s ease;
  }

  /* Hidden Message Container */
  .marquee-message {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 20;
    padding: 0 1rem;
    animation: fadeInMsg 0.5s ease forwards;
  }

  /* Active State: Show Message, Hide Icons */
  .tech-marquee-section.active-msg .marquee-message {
    display: flex;
  }

  .tech-marquee-section.active-msg .tech-track {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  /* Highlight Marquee Background when active */
  .tech-marquee-section.active-msg {
    background: linear-gradient(90deg, #1e1b4b, #312e81);
    /* Slightly lighter purple/blue */
    border-top: 1px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
  }

  @keyframes fadeInMsg {
    from {
      opacity: 0;
      transform: translateY(5px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ==================== FINAL POLISH (TAGS & GHOST FIX) ==================== */
@media (max-width: 768px) {

  /* 1. Rectangular Tags (Like buttons) */
  .nova-mobile-tag {
    border-radius: 12px !important;
  }

  /* 2. KILL GHOST POPUP (Disable old info box completely on mobile) */
  .footer-stat-item .stat-info {
    display: none !important;
  }

  .footer-stat-item.stat-active .stat-info {
    display: none !important;
    /* Double tap to be sure */
  }
}

/* ==================== MOBILE VISUAL SCROLLBAR ==================== */
@media (max-width: 768px) {

  /* Target ALL scrollable elements on mobile, including modals */
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    /* For horizontal scrolling if any */
    background: rgba(15, 23, 42, 0.5);
    /* Subtle dark track */
  }

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #06b6d4, #d946ef);
    border-radius: 10px;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
  }

  ::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.2);
  }

  /* Force visual indication in modal content specifically */
  .service-modal-content {
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #d946ef rgba(15, 23, 42, 0.5);
    /* Firefox */
  }
}

/* ==================== FORCE MOBILE SCROLLBAR (GLOBAL) ==================== */
@media (max-width: 768px) {
  * {
    scrollbar-width: thin !important;
    scrollbar-color: #d946ef rgba(15, 23, 42, 0.2) !important;
  }

  *::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
    background-color: rgba(15, 23, 42, 0.2) !important;
  }

  *::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.2) !important;
    border-radius: 4px !important;
  }

  *::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #06b6d4, #d946ef) !important;
    border-radius: 4px !important;
    border: 1px solid rgba(15, 23, 42, 0.5) !important;
  }
}

/* ==================== SCROLLBAR COLOR CORRECTION ==================== */
@media (max-width: 768px) {
  *::-webkit-scrollbar-thumb {
    /* True Nova Gradient: Cyan to Deep Blue/Purple (No Pink) */
    background: linear-gradient(180deg, #06b6d4 0%, #3b82f6 100%) !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
  }

  /* Firefox Fallback */
  * {
    scrollbar-color: #06b6d4 rgba(15, 23, 42, 0.2) !important;
  }
}

/* ==================== MOBILE MODAL DESCRIPTION REFINE ==================== */
/* Desktop Default State */
.mobile-hook-desc {
  display: none;
}

.desktop-desc {
  display: block;
}

@media (max-width: 768px) {

  /* Swap Descriptions on Mobile */
  .desktop-desc {
    display: none !important;
  }

  .mobile-hook-desc {
    display: block !important;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: left;
    font-weight: 400;
  }
}


/* ==================== PROCESS SECTION MOBILE REFINE ==================== */
.mobile-only-desc {
  display: none;
}

@media (max-width: 768px) {

  /* Hide Protocolo NOVA Title */
  .desktop-only-title {
    display: none !important;
  }

  /* Swap Descriptions */
  .desktop-only-desc {
    display: none !important;
  }

  .mobile-only-desc {
    display: block !important;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e2e8f0;
  }

  /* Ensure Highlights Pop on Mobile */
  .mobile-only-desc .highlight-purple {
    color: #d946ef;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(217, 70, 239, 0.4);
  }

  .mobile-only-desc .highlight-text {
    color: #38bdf8;
    font-weight: 700;
  }
}

/* ==================== COMPACT MOBILE MODAL SPACING ==================== */
@media (max-width: 768px) {

  /* Tighten Main Title Area */
  .modal-service-header {
    margin-bottom: 0.5rem !important;
    padding-bottom: 0 !important;
  }

  .modal-service-title {
    margin-bottom: 0.2rem !important;
  }

  /* Tighten 'Paquetes disponibles' Header */
  .modal-service-packages h3 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.3rem !important;
    font-size: 1.1rem !important;
  }

  /* Tighten Description Hook */
  .mobile-hook-desc {
    margin-bottom: 0.8rem !important;
    /* Reduced from 1.5rem */
    margin-top: 0 !important;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* General Modal Padding */
  .modal-content {
    padding: 1.5rem 1rem !important;
  }
}

/* ==================== SYSTEM SECTION MOBILE REFINE ==================== */
@media (max-width: 768px) {

  /* 1. Increase separation from previous section (Tech Icons) */
  #sistemas {
    padding-top: 5rem !important;
    /* Forces gap from icons */
  }

  /* 2. Single Line Title & Layout */
  #sistemas .section-header>div {
    flex-direction: column;
    gap: 0.5rem !important;
  }

  #sistemas h2.section-title {
    white-space: nowrap !important;
    font-size: 1.6rem !important;
    /* Adjust to fit screen */
    display: flex !important;
    gap: 0.3rem;
    justify-content: center;
  }

  /* 3. Hide Description */
  #sistemas .section-description {
    display: none !important;
  }
}

/* ==================== SYSTEM TITLE MOBILE FIX V2 ==================== */
@media (max-width: 768px) {
  #sistemas .section-header>div {
    gap: 0.2rem !important;
    /* Tighter gap */
  }

  #sistemas h2.section-title {
    font-size: 1.3rem !important;
    /* Smaller text */
    margin-top: 0 !important;
    white-space: normal !important;
    /* Allow wrap if really needed, but try to fit */
    display: block !important;
    /* Try block to obey text-align center */
  }

  /* Force single line if possible via sizing */
  #sistemas h2.section-title span {
    display: inline-block;
  }
}

/* ==================== SYSTEM CARDS MOBILE REDESIGN ==================== */
.mobile-sys-desc {
  display: none;
}

@media (max-width: 768px) {

  /* Swap Descriptions */
  .desktop-sys-desc {
    display: none !important;
  }

  .mobile-sys-desc {
    display: block !important;
    font-size: 0.85rem !important;
    color: #cbd5e1;
    margin-bottom: 0.8rem !important;
    line-height: 1.4;
  }

  /* Card Layout: Semi-Horizontal Compact */
  .system-card {
    display: grid !important;
    grid-template-columns: 50px 1fr;
    align-items: start;
    gap: 1rem;
    padding: 1.2rem !important;
    text-align: left !important;
    min-height: auto !important;
  }

  /* Icon Reducto */
  .system-icon-wrapper {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.5rem !important;
    margin-bottom: 0 !important;
  }

  /* Title Adjustment */
  .system-card h3 {
    font-size: 1.1rem !important;
    margin-top: 0 !important;
    margin-bottom: 0.3rem !important;
  }

  /* Features as Pills/Tags */
  .system-features-list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }

  .system-features-list li {
    font-size: 0.7rem !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 8px !important;
    border-radius: 6px;
    white-space: nowrap;
    margin: 0 !important;
  }

  /* Override container to put content in 2nd column */
  .system-content {
    grid-column: 2;
    grid-row: 1 / span 2;
    /* Span if needed */
    text-align: left;
  }

  /* Fix grid placement since icon is child 1 and content is child 2 */
  .system-card>.system-icon-wrapper {
    grid-column: 1;
    grid-row: 1;
  }

  .system-card>.system-content {
    grid-column: 2;
    grid-row: 1;
  }

  /* Oh wait, content wraps title desc and list. So Icon is left, Content is right. Perfect. */
}


/* ==================== HOLY GLORY MOBILE ==================== */
.holo-icon-text {
  font-family: var(--font-display);
  font-weight: 900;
  color: #d946ef;
  text-shadow: 0 0 10px #d946ef;
  font-size: 1.2rem;
}

@media (max-width: 768px) {

  /* COMPACT SECTION */
  .hologram-separator {
    padding: 3rem 0 !important;
    /* Reduced height */
    min-height: 200px !important;
  }

  /* CENTERING */
  .holo-text {
    font-size: 1.8rem !important;
    text-align: center !important;
    margin-bottom: 0.5rem !important;
    width: 100%;
  }

  .holo-subtitle {
    font-size: 0.8rem !important;
    text-align: center !important;
    padding: 0 1rem;
    line-height: 1.4;
  }

  /* GRID SWAP */
  .desktop-holo-grid {
    display: none !important;
  }

  .mobile-holo-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.6;
  }

  /* ANIMATION FOR HOLY ICONS */
  .mobile-holo-grid>* {
    animation: holyFall 4s linear infinite;
    position: relative;
    justify-self: center;
  }

  .mobile-holo-grid>*:nth-child(1) {
    animation-delay: 0s;
    left: -20px;
  }

  .mobile-holo-grid>*:nth-child(2) {
    animation-delay: 1.5s;
    left: 10px;
  }

  .mobile-holo-grid>*:nth-child(3) {
    animation-delay: 0.5s;
    left: -10px;
  }

  .mobile-holo-grid>*:nth-child(4) {
    animation-delay: 2.5s;
    left: 20px;
  }

  .mobile-holo-grid>*:nth-child(5) {
    animation-delay: 1s;
    left: 0px;
  }

  .mobile-holo-grid>*:nth-child(6) {
    animation-delay: 3s;
    left: -15px;
  }

  @keyframes holyFall {
    0% {
      transform: translateY(-50px);
      opacity: 0;
    }

    20% {
      opacity: 1;
    }

    90% {
      opacity: 1;
    }

    100% {
      transform: translateY(250px);
      opacity: 0;
    }
  }
}

/* ==================== CONTACT SECTION MOBILE FIX ==================== */
@media (max-width: 768px) {

  /* Single Line Title */
  #contacto .section-title {
    white-space: nowrap !important;
    font-size: 1.6rem !important;
    width: 100%;
    text-align: center;
  }

  /* Hide Description */
  #contacto .section-desc {
    display: none !important;
  }

  /* Center Tag */
  #contacto .nova-mobile-tag {
    margin: 0 auto 0.5rem auto !important;
    display: inline-flex !important;
  }

  #contacto .section-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* ==================== FAQ MOBILE TEXT REFINE ==================== */
.faq-mob {
  display: none;
}

@media (max-width: 768px) {
  .faq-desk {
    display: none !important;
  }

  .faq-mob {
    display: block !important;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Improved Highlight for Mobile Answers */
  .faq-mob .highlight-green {
    color: #4ade80;
    font-weight: 700;
  }
}

/* ==================== HOLY GLORY V3 (REFINED) ==================== */
@media (max-width: 768px) {

  /* 1. Even Smaller Section */
  .hologram-separator {
    padding: 1.5rem 0 !important;
    min-height: 120px !important;
    overflow: hidden;
  }

  /* 2. Smaller Text */
  .holo-text {
    font-size: 1.25rem !important;
    margin-bottom: 0.2rem !important;
    letter-spacing: 1px !important;
  }

  .holo-subtitle {
    font-size: 0.6rem !important;
    letter-spacing: 0.5px !important;
    padding: 0 0.5rem;
  }

  /* 3. Slower Animation & More Delays */
  .mobile-holo-grid>* {
    animation: holyFall 12s linear infinite !important;
    /* MUCH SLOWER */
  }

  /* delays for new items */
  .mobile-holo-grid>*:nth-child(1) {
    animation-delay: 0s;
  }

  .mobile-holo-grid>*:nth-child(2) {
    animation-delay: 4s;
  }

  .mobile-holo-grid>*:nth-child(3) {
    animation-delay: 2s;
  }

  .mobile-holo-grid>*:nth-child(4) {
    animation-delay: 8s;
  }

  .mobile-holo-grid>*:nth-child(5) {
    animation-delay: 1s;
  }

  .mobile-holo-grid>*:nth-child(6) {
    animation-delay: 6s;
  }

  .mobile-holo-grid>*:nth-child(7) {
    animation-delay: 3s;
  }

  .mobile-holo-grid>*:nth-child(8) {
    animation-delay: 9s;
  }

  .mobile-holo-grid>*:nth-child(9) {
    animation-delay: 5s;
  }
}

/* ==================== HIDE CONTACT TITLE MOBILE ==================== */
@media (max-width: 768px) {
  #contacto .section-title {
    display: none !important;
  }
}

/* ==================== HOLY GLORY V4 (ULTRA COMPACT) ==================== */
@media (max-width: 768px) {
  .hologram-separator {
    padding: 1rem 0 !important;
    min-height: 80px !important;
    height: auto !important;
  }

  /* SUBTLE ICONS */
  .mobile-holo-grid {
    opacity: 0.2 !important;
  }

  /* PERFECT CENTERING */
  .holo-text {
    margin-top: 0 !important;
    margin-bottom: 0.1rem !important;
    line-height: 1 !important;
  }

  .holo-subtitle {
    display: block !important;
    width: 90% !important;
    margin: 0 auto !important;
    text-align: center !important;
    line-height: 1.2 !important;
    padding: 0 !important;
  }
}

/* ==================== REMOVE GLORY SUBTITLE MOBILE ==================== */
@media (max-width: 768px) {
  .holo-subtitle {
    display: none !important;
  }
}

/* ==================== FINAL HOLY GLORY FIX (RELIABLE) ==================== */
/* Desktop: Hide mobile grid */
.mobile-holo-grid {
  display: none;
}

@media (max-width: 768px) {

  /* Mobile: Swap Grids */
  .desktop-holo-grid {
    display: none !important;
  }

  .mobile-holo-grid {
    display: grid !important;
    opacity: 0.5 !important;
    /* Increased visibility */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    place-items: center;
  }

  /* Slower Animation */
  .mobile-holo-grid>* {
    animation: holyFall 15s linear infinite !important;
    position: relative;
  }

  /* Ultra Compact Height */
  .hologram-separator {
    min-height: 80px !important;
    padding: 0.8rem 0 !important;
  }

  /* Center Text */
  .holo-text {
    font-size: 1.25rem !important;
    letter-spacing: 2px !important;
    margin: 0 !important;
    text-align: center;
  }

  .holo-subtitle {
    display: none !important;
    /* Remove subtitle on mobile as requested */
  }
}

/* FINAL MOBILE OVERRIDE */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    background: rgba(139, 92, 246, 0.1) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin-left: 8px !important;
  }

  .nav-toggle span {
    background: white !important;
    width: 18px !important;
    height: 2px !important;
    margin: 2px 0 !important;
  }
}

/* ==================== PREMIUM FOOTER NOVA ==================== */
.nova-footer {
  position: relative;
  background: linear-gradient(180deg, #050510 0%, #0a0a1f 100%);
  border-top: 1px solid rgba(0, 198, 255, 0.1);
  padding: 80px 0 30px;
  overflow: hidden;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

.nova-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00C6FF, transparent);
  opacity: 0.5;
}

.nova-footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 300px;
  background: radial-gradient(circle at center, rgba(0, 198, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

/* --- Brand Column --- */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.footer-logo-wrapper:hover {
  transform: scale(1.02);
}

.footer-logo-img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(0, 198, 255, 0.3));
}

.footer-logo-text-group {
  display: flex;
  flex-direction: column;
}

.footer-logo-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  line-height: 1;
}

.footer-logo-subtitle {
  font-size: 0.75rem;
  color: #00C6FF;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 5px;
}

.footer-desc {
  color: #a0a0b0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
  max-width: 300px;
}

/* --- Columns Configuration --- */
.footer-column h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: #00C6FF;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.footer-column:hover h4::after {
  width: 100%;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: #a0a0b0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link i {
  font-size: 0.8rem;
  color: #00C6FF;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-link:hover i {
  opacity: 1;
  transform: translateX(0);
}

/* --- Socials & Contact --- */
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ccc;
  margin-bottom: 15px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-item:hover {
  color: #00C6FF;
}

.footer-contact-item i {
  color: #00C6FF;
  font-size: 1.1rem;
}

.footer-social-row {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-btn:hover {
  background: #00C6FF;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 198, 255, 0.4);
}

/* --- Bottom Bar --- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  color: #666;
  font-size: 0.85rem;
}

.footer-legal-row {
  display: flex;
  gap: 20px;
}

.footer-legal-link {
  color: #666;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-link:hover {
  color: #00C6FF;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==================== FOOTER "TWIN MENU" DESIGN ==================== */
/* Replicating the Header/Nav aesthetic exactly */

.nova-footer {
  background: #050510;
  /* Dark background to contrast */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 0 20px;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}

/* --- 1. BRAND (Exact copy of .nav-brand) --- */
.footer-brand-col {
  flex: 1;
  min-width: 250px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  /* Matching nav logo size generally around 40-50px */
  width: auto;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  /* Matches .nav-title */
  letter-spacing: 2px;
  color: #fff;
  /* var(--text-color) usually white in dark mode */
  line-height: 1;
}

.footer-subtitle {
  display: block;
  font-size: 0.7rem;
  /* Matches .nav-subtitle */
  color: #00C6FF;
  /* var(--primary-color) */
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.footer-desc {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}

/* --- 2. LINKS (The "Line" Effect from Menu) --- */
.footer-column h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* The Twin Link Style */
.footer-menu-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  width: fit-content;
  transition: color 0.3s;
}

.footer-menu-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #00C6FF;
  /* Primary Color Line */
  transition: width 0.3s ease;
}

.footer-menu-link:hover {
  color: #00C6FF;
}

.footer-menu-link:hover::after {
  width: 100%;
  /* The "Beautiful Line" animation */
}

/* --- 3. SOCIALS & CONTACT --- */
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  margin-bottom: 20px;
  transition: opacity 0.3s;
}

.footer-contact-item:hover {
  opacity: 0.8;
}

.footer-social-row {
  display: flex;
  gap: 15px;
}

.footer-social-icon {
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s, color 0.3s;
}

.footer-social-icon:hover {
  color: #00C6FF;
  transform: translateY(-3px);
}

/* --- BOTTOM --- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: #888;
}

.footer-legal-link {
  color: #888;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s;
}

.footer-legal-link:hover {
  color: #fff;
}

/* FOOTER EXACT MATCH LINK STYLES */
.footer-menu-item {
  position: relative;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  width: fit-content;
  padding: 2px 0;
  transition: color 0.3s ease;
}

.footer-menu-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00C6FF, #7B1FA2);
  transition: width 0.3s ease;
}

.footer-menu-item:hover {
  color: #fff;
}

.footer-menu-item:hover::after {
  width: 100%;
}

/* ==================== SOCIAL ICONS FIX ==================== */
.hero-social-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  /* Reverted to square/rounded as requested ("cuadritos") */
  color: white;
  /* Ensures visibility on dark bg */
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.1rem;
}

.hero-social-icon-box:hover {
  background: var(--color-gold);
  color: #020617;
  /* Dark text on bright hover */
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 198, 255, 0.4);
  border-color: var(--color-gold);
}

/* ==================== NOVA ALERTS ==================== */
.nova-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nova-alert-show {
  opacity: 1;
  visibility: visible;
}

.nova-alert-box {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.1);
  border-radius: 20px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nova-alert-show .nova-alert-box {
  transform: scale(1);
}

.nova-alert-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.nova-alert-icon.success {
  color: #10b981;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.nova-alert-icon.error {
  color: #ef4444;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.nova-alert-message {
  font-size: 1.1rem;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.nova-alert-btn {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.nova-alert-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

/* ==================== EMAIL JS MODAL IMPROVEMENTS ==================== */

/* Email Split Group (Usuario + Proveedor) */
.email-split-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.email-at-symbol {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0.25rem;
}

.email-domain-select {
  flex: 1.2;
  min-width: 150px;
}

.email-domain-select .custom-select-trigger {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.email-domain-select .custom-select-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(168, 85, 247, 0.5);
}

.email-domain-select.open .custom-select-trigger {
  border-color: rgba(168, 85, 247, 0.8);
}

.email-domain-select .custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 8px;
  margin-top: 0.5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.email-domain-select.open .custom-options {
  max-height: 300px;
  opacity: 1;
  overflow-y: auto;
}

.email-domain-select .custom-option {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.email-domain-select .custom-option:hover {
  background: rgba(168, 85, 247, 0.2);
}

.email-domain-select .custom-option i {
  font-size: 1.2rem;
  color: rgba(168, 85, 247, 0.8);
}

/* Desktop: Wider Modal */
@media (min-width: 768px) {
  .cardbox-container {
    max-width: 680px !important;
    padding: 2rem 2.5rem !important;
  }

  .email-split-group {
    flex-wrap: nowrap;
  }

  #llamadaCustomDomain {
    display: none;
  }

  .email-split-group.show-custom #llamadaCustomDomain {
    display: block !important;
  }
}

/* ===========================================
   MODAL AGENDAR LLAMADA - NO SCROLL
   =========================================== */

/* Desktop Only - Eliminar scroll y ajustar modal */
@media (min-width: 768px) {
  .cardbox-container {
    max-width: 700px !important;
    max-height: 95vh !important;
    padding: 1.75rem 2.5rem !important;
    overflow-y: visible !important;
    /* ELIMINAR SCROLL */
  }

  .cardbox-form {
    gap: 0.9rem !important;
  }

  /* Compactar campos */
  .form-group {
    margin-bottom: 0 !important;
  }

  .cardbox-input-group {
    min-height: unset !important;
  }

  .cardbox-input-group input,
  .cardbox-input-group textarea {
    padding: 0.7rem 2.5rem 0.7rem 1rem !important;
    font-size: 0.95rem !important;
  }

  /* Time Grid más compacto */
  .time-grid {
    gap: 0.6rem !important;
  }

  .time-btn {
    padding: 0.7rem 1.2rem !important;
    font-size: 0.85rem !important;
  }

  /* Day Pills más compactos */
  .day-toggle-grid {
    gap: 0.6rem !important;
  }

  .day-pill {
    padding: 0.7rem 1.2rem !important;
    font-size: 0.85rem !important;
  }

  .visual-day-grid {
    margin-top: 0.7rem !important;
    gap: 0.6rem !important;
  }

  /* Custom Select más compacto */
  .custom-select-wrapper .custom-select-trigger {
    padding: 0.7rem 1rem !important;
    font-size: 0.95rem !important;
  }

  /* Labels más compactos */
  .form-group label {
    margin-bottom: 0.4rem !important;
    font-size: 0.9rem !important;
  }

  /* Textarea compacto */
  #llamadaMensaje {
    min-height: 45px !important;
    resize: none !important;
  }

  /* Submit button OK */
  .cardbox-submit-btn {
    margin-top: 0.8rem !important;
    padding: 0.9rem 1.5rem !important;
  }

  /* Email split group ajustado */
  .email-split-group {
    gap: 0.4rem !important;
  }

  .email-at-symbol {
    font-size: 1rem !important;
  }

  /* Header más compacto */
  .cardbox-header {
    margin-bottom: 1.2rem !important;
    padding-bottom: 1rem !important;
  }

  .cardbox-header h2 {
    font-size: 1.5rem !important;
    margin-bottom: 0.3rem !important;
  }

  .cardbox-header p {
    font-size: 0.9rem !important;
  }

  .cardbox-icon {
    font-size: 2rem !important;
    margin-bottom: 0.6rem !important;
  }
}

/* ===========================================
   FORZAR: ELIMINAR SCROLL DEL MODAL
   =========================================== */

/* CRÍTICO: Eliminar overflow del modal base */
.cardbox-container {
  overflow-y: hidden !important;
  overflow-x: hidden !important;
  max-height: none !important;
}

/* Desktop: Modal sin scroll + Compacto */
@media (min-width: 768px) {
  .cardbox-overlay {
    overflow-y: auto !important;
  }

  .cardbox-container {
    max-width: 700px !important;
    max-height: 96vh !important;
    padding: 1.5rem 2rem !important;
    overflow: hidden !important;
    /* FUERZA overflow hidden */
  }

  .cardbox-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem !important;
    overflow: visible !important;
  }

  /* Compactar TODO */
  .form-group {
    margin-bottom: 0 !important;
  }

  .cardbox-header {
    margin-bottom: 1rem !important;
    padding-bottom: 0.8rem !important;
  }

  .cardbox-header h2 {
    font-size: 1.4rem !important;
    margin-bottom: 0.25rem !important;
  }

  .cardbox-header p {
    font-size: 0.85rem !important;
  }

  .cardbox-icon {
    font-size: 1.8rem !important;
    margin-bottom: 0.5rem !important;
  }

  .form-group label {
    margin-bottom: 0.35rem !important;
    font-size: 0.85rem !important;
  }

  .cardbox-input-group input,
  .cardbox-input-group textarea {
    padding: 0.65rem 2.5rem 0.65rem 1rem !important;
    font-size: 0.9rem !important;
  }

  .time-grid {
    gap: 0.5rem !important;
  }

  .time-btn {
    padding: 0.65rem 1rem !important;
    font-size: 0.8rem !important;
  }

  .day-toggle-grid {
    gap: 0.5rem !important;
  }

  .day-pill {
    padding: 0.65rem 1rem !important;
    font-size: 0.8rem !important;
  }

  .visual-day-grid {
    margin-top: 0.6rem !important;
    gap: 0.5rem !important;
  }

  .custom-select-wrapper .custom-select-trigger {
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem !important;
  }

  #llamadaMensaje {
    min-height: 40px !important;
    max-height: 40px !important;
    resize: none !important;
    padding: 0.65rem 2.5rem 0.65rem 1rem !important;
  }

  .cardbox-submit-btn {
    margin-top: 0.75rem !important;
    padding: 0.85rem 1.5rem !important;
    font-size: 0.95rem !important;
  }

  .email-split-group {
    gap: 0.35rem !important;
  }

  .email-at-symbol {
    font-size: 0.95rem !important;
  }

  /* Inputs rows compactos */
  .input-row {
    gap: 0.75rem !important;
  }
}

/* ===========================================
   FIX CRÍTICO: ICONOS Y RESPONSIVE COMPLETO
   =========================================== */

/* ARREGLAR: Iconos NO deben tapar el texto */
.cardbox-input-group i {
  position: absolute;
  right: 1rem !important;
  left: auto !important;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(168, 85, 247, 0.6);
  pointer-events: none;
  z-index: 1;
}

.cardbox-input-group input,
.cardbox-input-group textarea {
  padding-right: 2.8rem !important;
  padding-left: 1rem !important;
}

/* Subject Toggle Grid (2 botones) */
.subject-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.subject-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.subject-btn i {
  font-size: 1.3rem;
}

.subject-btn:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-2px);
}

.subject-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
  border-color: #EC4899;
  color: white;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

/* ===========================================
   RESPONSIVE MULTI-RESOLUCIÓN
   =========================================== */

/* Base: Sin scroll para TODAS las pantallas desktop */
@media (min-width: 768px) {
  .cardbox-overlay {
    overflow-y: auto !important;
    padding: 1rem 0;
  }

  .cardbox-container {
    overflow: hidden !important;
    overflow-y: hidden !important;
    max-height: 98vh !important;
  }
}

/* Laptops Pequeñas: 1366x768 */
@media (min-width: 768px) and (max-width: 1439px) {
  .cardbox-container {
    max-width: 650px !important;
    padding: 1.3rem 1.8rem !important;
    max-height: 95vh !important;
  }

  .cardbox-form {
    gap: 0.6rem !important;
  }

  .cardbox-header {
    margin-bottom: 0.8rem !important;
    padding-bottom: 0.6rem !important;
  }

  .cardbox-header h2 {
    font-size: 1.3rem !important;
  }

  .cardbox-header p {
    font-size: 0.8rem !important;
  }

  .cardbox-icon {
    font-size: 1.6rem !important;
    margin-bottom: 0.4rem !important;
  }

  .form-group label {
    font-size: 0.8rem !important;
    margin-bottom: 0.3rem !important;
  }

  .cardbox-input-group input,
  .cardbox-input-group textarea {
    padding: 0.6rem 2.5rem 0.6rem 0.9rem !important;
    font-size: 0.85rem !important;
  }

  .time-btn,
  .day-pill,
  .subject-btn {
    padding: 0.6rem 0.9rem !important;
    font-size: 0.75rem !important;
  }

  #llamadaMensaje {
    min-height: 38px !important;
    max-height: 38px !important;
  }

  .cardbox-submit-btn {
    padding: 0.75rem 1.2rem !important;
    font-size: 0.9rem !important;
  }
}

/* Laptops Medianas: 1440x900 - 1599px */
@media (min-width: 1440px) and (max-width: 1599px) {
  .cardbox-container {
    max-width: 680px !important;
    padding: 1.5rem 2rem !important;
  }

  .cardbox-form {
    gap: 0.7rem !important;
  }

  .form-group label {
    font-size: 0.85rem !important;
  }

  .cardbox-input-group input,
  .cardbox-input-group textarea {
    font-size: 0.9rem !important;
  }

  #llamadaMensaje {
    min-height: 42px !important;
    max-height: 42px !important;
  }
}

/* Pantallas Grandes: 1600px - 1919px */
@media (min-width: 1600px) and (max-width: 1919px) {
  .cardbox-container {
    max-width: 720px !important;
    padding: 1.6rem 2.2rem !important;
  }

  .cardbox-form {
    gap: 0.8rem !important;
  }
}

/* Pantallas XL: 1920px+ */
@media (min-width: 1920px) {
  .cardbox-container {
    max-width: 750px !important;
    padding: 1.75rem 2.5rem !important;
  }

  .cardbox-form {
    gap: 0.9rem !important;
  }

  #llamadaMensaje {
    min-height: 45px !important;
    max-height: 45px !important;
  }
}

/* MOBILE: NO tocar (solo desktop changes) */
@media (max-width: 767px) {
  .cardbox-input-group i {
    right: 1rem !important;
  }

  .subject-toggle-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* --- FIX FINAL MODAL MÓVIL --- */
  .cardbox-container {
    max-height: 70vh !important;
    /* Altura reducida (chaparro) */
    overflow-y: auto !important;
    /* Scroll interno activo */
    max-width: 88vw !important;
    /* Ancho cómodo */
    margin: auto !important;
    /* Centrado absoluto */
    padding: 1.2rem !important;
    border-radius: 16px !important;
  }

  .cardbox-overlay {
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}


/* Subject Toggle Buttons FIX */
.subject-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.subject-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer !important;
  pointer-events: all !important;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  z-index: 10;
}

.subject-btn i {
  font-size: 1.3rem;
  pointer-events: none;
}

.subject-btn span {
  pointer-events: none;
}

.subject-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.6);
  transform: translateY(-2px);
}

.subject-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(236, 72, 153, 0.35));
  border-color: #EC4899;
  color: white;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}