:root {
  color-scheme: light dark; 
}

html {
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
    scroll-behavior: smooth;
    background-color: #f8fafc;
    min-height: 100%;
    -webkit-tap-highlight-color: transparent;
}

html.dark {
    scrollbar-color: #475569 #0f172a;
    background-color: #0f172a !important; 
}

body {
  background-color: #f8fafc;
  min-height: 100vh;
}

html.dark body {
  background-color: #0f172a;
}

/* --- TURBO MODE MÓVIL --- */
.mobile-gradient-bg {
    background: radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(192, 132, 252, 0.15) 0%, transparent 40%);
}

html.dark .mobile-gradient-bg {
    background: radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
}

/* --- ANIMACIONES --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fadeIn { animation: fadeIn 0.6s ease-out; }

@keyframes gradientMove {
  0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; }
}
.animate-gradient {
  background-size: 200% 200%;
  animation: gradientMove 3s ease infinite;
}

@keyframes blobPulse {
  0%, 100% { transform: scale(1) translateZ(0); }
  50% { transform: scale(1.1) translateZ(0); }
}
.animate-blob-pulse {
  animation: blobPulse 8s infinite ease-in-out;
  will-change: transform;
}

@keyframes float { 
  0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } 
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* LightGallery */
.lg-backdrop {
  background-color: rgba(0, 0, 0, 0.85) !important; 
  backdrop-filter: blur(15px) !important; 
}
.lg-sub-html { display: none !important; }

/* Lists */
.service-list li {
  position: relative;
  padding-left: 30px; 
}
.service-list li::before {
  content: '✓'; 
  position: absolute;
  left: 0;
  top: 0px;
  color: rgb(16, 185, 129);
  font-weight: bold;
}

/* Glassmorphism Ultra Premium (iOS style) */
.glass-effect {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}
html.dark .glass-effect {
  background: rgba(15, 23, 42, 0.65) !important;
}

.tab-link-mobile i {
  stroke-width: 1.5px;
}

#liquid-indicator {
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, width;
}

.tab-link-mobile {
  transition: color 0.3s ease, transform 0.2s ease;
}
.tab-link-mobile:active {
  transform: scale(0.95);
}

#back-to-home {
  transition: all 0.3s ease;
}
#back-to-home:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.backdrop-blur-xl {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}