/* ============================================================
   TECHNO WORLD — Modern Minimalist Tech Design System
   Core Palette: Azul #3f5981 · Negro #323232 · Blanco #e6e6e6
   Accent: #4A90E2 / #38bdf8 (Electric Tech Blue)
   ============================================================ */

/* ----- ROOT DESIGN TOKENS (LIGHT THEME) ----- */
:root {
  /* Brand Tonal Palette */
  --azul-50: #f0f4f9;
  --azul-100: #dbe4f0;
  --azul-200: #b8cbe1;
  --azul-300: #8eaecf;
  --azul-400: #628ebe;
  --azul-500: #3f5981;
  --azul-600: #324767;
  --azul-700: #26364e;
  --azul-800: #1a2535;
  --azul-900: #0e141d;

  --accent-400: #4A90E2;
  --accent-500: #3b82f6;
  --accent-cyan: #38bdf8;

  --neutro-50: #f8fafc;
  --neutro-100: #f1f5f9;
  --neutro-200: #e2e8f0;
  --neutro-300: #cbd5e1;
  --neutro-400: #94a3b8;
  --neutro-500: #64748b;
  --neutro-600: #475569;
  --neutro-700: #323232;
  --neutro-800: #1e293b;
  --neutro-900: #0f172a;
  --neutro-950: #090d16;

  --blanco-base: #ffffff;
  --blanco-soft: #f8fafc;
  --blanco-muted: #e6e6e6;

  /* Surfaces (Light Mode) */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;
  --bg-card-hover: #ffffff;
  --bg-input: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --header-bg: rgba(248, 250, 252, 0.85);

  /* Typography (Light Mode) */
  --text-body: #1e293b;
  --text-heading: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --color-world: var(--azul-500);

  /* Borders & Shadows (Light Mode) */
  --border-subtle: rgba(148, 163, 184, 0.2);
  --border-light: rgba(148, 163, 184, 0.35);
  --border-highlight: rgba(63, 89, 129, 0.25);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-tech: 0 10px 30px -5px rgba(63, 89, 129, 0.15);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3f5981 0%, #4A90E2 100%);
  --gradient-accent: linear-gradient(135deg, #4A90E2 0%, #38bdf8 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(63, 89, 129, 0.05) 0%, rgba(74, 144, 226, 0.05) 100%);
  --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --gradient-divider: linear-gradient(90deg, transparent, #3f5981, transparent);
}

/* ----- DARK THEME TOKENS ----- */
html.dark {
  /* Surfaces (Dark Mode) */
  --bg-body: #080c14;
  --bg-card: #0f172a;
  --bg-card-alt: #131d33;
  --bg-card-hover: #16223b;
  --bg-input: rgba(15, 23, 42, 0.7);
  --bg-glass: rgba(15, 23, 42, 0.85);
  --header-bg: rgba(8, 12, 20, 0.85);

  /* Typography (Dark Mode) */
  --text-body: #cbd5e1;
  --text-heading: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --color-world: #ffffff;

  /* Borders & Shadows (Dark Mode) */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(74, 144, 226, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 36px -4px rgba(0, 0, 0, 0.6);
  --shadow-tech: 0 10px 30px -5px rgba(74, 144, 226, 0.25);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3f5981 0%, #4A90E2 100%);
  --gradient-card: linear-gradient(180deg, #0f172a 0%, #131d33 100%);
  --gradient-divider: linear-gradient(90deg, transparent, #4A90E2, transparent);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.3s ease, background-color 0.3s ease;
}

body {
  background-color: var(--bg-body);
  color: var(--text-body);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

.brand-font {
  font-family: 'ND Logos', sans-serif;
}

/* Navbar Brand & Logo Adaptations */
html.dark #logoHeader {
  filter: brightness(0) invert(1);
}

/* ============================================================
   MODERN GLASSMORPHISM & TECH PANELS
   ============================================================ */

.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.glass-panel-interactive {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-interactive:hover {
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-tech);
  transform: translateY(-3px);
}

/* Live Tech Badge */
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(63, 89, 129, 0.12);
  border: 1px solid rgba(74, 144, 226, 0.3);
  color: #38bdf8;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: livePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}

/* ============================================================
   BUTTONS (MODERN TECH & ERGONOMIC TOUCH)
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: var(--gradient-primary);
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 0.875rem;
  padding: 0.875rem 1.75rem;
  min-height: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(63, 89, 129, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.875rem;
  padding: 0.875rem 1.75rem;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-glass:active {
  transform: translateY(1px) scale(0.98);
}

.btn-outline-tech {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--azul-500);
  border: 1.5px solid var(--azul-500);
  border-radius: 0.75rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  min-height: 44px;
  transition: all 0.25s ease;
}

html.dark .btn-outline-tech {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.5);
}

.btn-outline-tech:hover {
  background: var(--azul-500);
  color: #ffffff;
  border-color: var(--azul-500);
  transform: translateY(-2px);
}

html.dark .btn-outline-tech:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: #38bdf8;
}

/* ============================================================
   HERO SECTION & TECH CANVAS
   ============================================================ */

.hero-pattern {
  position: relative;
  background-color: #060910;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-pattern video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: brightness(0.8) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6, 9, 16, 0.4) 0%, rgba(6, 9, 16, 0.85) 75%, #060910 100%);
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 144, 226, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 144, 226, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 1;
  pointer-events: none;
}

.mouse-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  will-change: left, top;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ============================================================
   TECH CARDS & IMMERSIVE SERVICE SECTION
   ============================================================ */

#servicios {
  position: relative;
  overflow: hidden;
}

#servicesCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

html.dark #servicesCanvas {
  opacity: 0.75;
}

.services-ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.12) 0%, rgba(56, 189, 248, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate3d(-50%, -50%, 0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  will-change: transform, opacity;
}

/* ============================================================
   VERTICAL SCROLL STREAM SERVICES SHOWCASE & TELEMETRY
   ============================================================ */

.services-vertical-stream {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 2rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .services-vertical-stream {
    gap: 6rem;
  }
}

/* Individual Showcase Row along the vertical scroll path */
.service-showcase-row {
  position: relative;
  scroll-margin-top: 6rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-showcase-row.showcase-in-view {
  transform: translateY(0);
}

/* Progress Step Tracker / Quick Jump */
.services-step-tracker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.35rem;
  border-radius: 9999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.step-indicator:hover {
  border-color: var(--azul-500);
  color: var(--azul-500);
  transform: translateY(-2px);
}

html.dark .step-indicator:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

.step-indicator.active {
  background: var(--azul-500);
  color: #ffffff !important;
  border-color: var(--azul-500);
  box-shadow: 0 4px 18px rgba(63, 89, 129, 0.35);
}

html.dark .step-indicator.active {
  background: linear-gradient(135deg, #3f5981 0%, #0284c7 100%);
  border-color: #38bdf8;
  box-shadow: 0 4px 22px rgba(56, 189, 248, 0.35);
}

/* Interactive Telemetry Box */
.showcase-telemetry-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.75rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg), var(--shadow-tech);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.4s ease;
}

.service-showcase-row:hover .showcase-telemetry-box,
.service-showcase-row.showcase-in-view .showcase-telemetry-box {
  border-color: rgba(74, 144, 226, 0.35);
}

html.dark .showcase-telemetry-box {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.15);
}

/* Service Card Presentation */
.card-service-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.75rem;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: all 0.4s ease;
}

.service-showcase-row:hover .card-service-hero,
.service-showcase-row.showcase-in-view .card-service-hero {
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-lg), var(--shadow-tech);
}

.card-service-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.card-service-hero .service-icon-box {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1rem;
  background: rgba(63, 89, 129, 0.08);
  border: 1px solid rgba(63, 89, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

html.dark .card-service-hero .service-icon-box {
  background: rgba(74, 144, 226, 0.1);
  border-color: rgba(74, 144, 226, 0.2);
}

.card-service-hero:hover .service-icon-box {
  transform: scale(1.1) rotate(-3deg);
  background: var(--azul-500);
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(63, 89, 129, 0.3);
}

.card-service-hero:hover .service-icon-box ion-icon {
  color: #ffffff !important;
}

.card-service-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.card-service-hero .service-icon-box {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1rem;
  background: rgba(63, 89, 129, 0.08);
  border: 1px solid rgba(63, 89, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

html.dark .card-service-hero .service-icon-box {
  background: rgba(74, 144, 226, 0.1);
  border-color: rgba(74, 144, 226, 0.2);
}

.card-service-hero:hover .service-icon-box {
  transform: scale(1.1) rotate(-3deg);
  background: var(--azul-500);
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(63, 89, 129, 0.3);
}

.card-service-hero:hover .service-icon-box ion-icon {
  color: #ffffff !important;
}

.service-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(63, 89, 129, 0.08);
  border: 1px solid rgba(63, 89, 129, 0.18);
  color: var(--azul-500);
  margin-bottom: 1rem;
}

html.dark .service-badge-pill {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

/* Stat Chips & Quick Metric Pills */
.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.stat-pill:hover {
  border-color: var(--border-highlight);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   REVIEWS & TESTIMONIALS (VERIFIED GOOGLE MAPS)
   ============================================================ */

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   FORM CONTROLS (HIGH ACCESSIBILITY & ERGONOMICS)
   ============================================================ */

.input-tech {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: 0.875rem;
  padding: 0.875rem 1.125rem;
  font-size: 1rem; /* 16px to prevent iOS zoom */
  color: var(--text-body);
  outline: none;
  transition: all 0.25s ease;
}

.input-tech:focus {
  border-color: #3f5981 !important;
  box-shadow: 0 0 0 4px rgba(63, 89, 129, 0.12);
  background: var(--bg-card);
}

html.dark .input-tech:focus {
  border-color: #4A90E2 !important;
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);
}

/* ============================================================
   BOTTOM MOBILE NAVIGATION BAR (MOBILE UX FIRST)
   ============================================================ */

.mobile-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    z-index: 45;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    align-items: center;
    justify-content: space-around;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    padding-top: 2px;
  }

  .mobile-nav-item ion-icon {
    font-size: 1.35rem;
    margin-bottom: 2px;
  }

  .mobile-nav-item:active,
  .mobile-nav-item.active {
    color: var(--azul-500);
  }

  html.dark .mobile-nav-item:active,
  html.dark .mobile-nav-item.active {
    color: #38bdf8;
  }

  /* Padding at bottom of body so footer content isn't covered by bottom bar */
  body {
    padding-bottom: 70px;
  }

  /* Reposition floating buttons on mobile */
  #scrollTop {
    bottom: 5.25rem !important;
    left: 1.25rem !important;
    right: auto !important;
    width: 44px !important;
    height: 44px !important;
  }

  #scrollTop svg {
    width: 44px !important;
    height: 44px !important;
  }

  .whatsapp-float {
    bottom: 5.25rem !important;
    right: 1.25rem !important;
    width: 3.5rem !important;
    height: 3.5rem !important;
  }
}

/* ============================================================
   WHATSAPP FLOAT & SCROLL TO TOP (WITH CIRCULAR PROGRESS)
   ============================================================ */

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulseGreen 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
  background: #20ba59;
}

.whatsapp-float:active {
  transform: scale(0.95);
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 4px 35px rgba(37, 211, 102, 0.65); }
}

#scrollTop {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s ease,
              box-shadow 0.3s ease,
              color 0.25s ease;
  padding: 0;
}

html.dark #scrollTop {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

#scrollTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#scrollTop:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 25px rgba(63, 89, 129, 0.35);
  color: var(--azul-500);
}

html.dark #scrollTop:hover {
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

#scrollTop:active {
  transform: translateY(0) scale(0.95);
}

#scrollTop svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.progress-ring-bg {
  stroke: rgba(148, 163, 184, 0.25);
}

html.dark .progress-ring-bg {
  stroke: rgba(255, 255, 255, 0.12);
}

.progress-ring-circle {
  stroke: var(--azul-500);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

html.dark .progress-ring-circle {
  stroke: #38bdf8;
}

#scrollTop ion-icon {
  position: relative;
  z-index: 2;
  font-size: 1.35rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#scrollTop:hover ion-icon {
  transform: translateY(-2px);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Delay helpers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Section divider */
.section-divider {
  background: var(--gradient-divider);
  height: 2px;
  width: 64px;
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--azul-500);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-400);
}
