/* ==========================================================================
   ALM CONTROL DE PLAGAS - DESIGN SYSTEM & CUSTOM STYLES
   Agency: NegocioUp
   ========================================================================== */

:root {
  --primary-navy: #0D1B3E;
  --navy-dark: #081129;
  --navy-light: #1A2B56;
  --accent-green: #4CAF50;
  --accent-green-hover: #43A047;
  --accent-orange: #E67E22;
  --accent-orange-hover: #D35400;
  --accent-blue: #3498DB;
  --accent-blue-hover: #2980B9;
  --bg-light: #F8FAFC;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --shadow-sm: 0 2px 4px rgba(13, 27, 62, 0.05);
  --shadow-md: 0 4px 14px rgba(13, 27, 62, 0.1);
  --shadow-lg: 0 10px 25px rgba(13, 27, 62, 0.15);
  --shadow-glow-green: 0 0 20px rgba(76, 175, 80, 0.35);
  --shadow-glow-orange: 0 0 20px rgba(230, 126, 34, 0.35);
}

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

img, video, iframe, canvas, svg {
  max-width: 100%;
}

section[id] {
  scroll-margin-top: 4.5rem;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', 'Inter', sans-serif;
}

/* Glassmorphism & Cards */
.glass-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-panel-dark {
  background: rgba(13, 27, 62, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Gradients */
.bg-gradient-navy {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--navy-dark) 100%);
}

.bg-gradient-hero {
  background: radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.15) 0%, transparent 40%),
              linear-gradient(180deg, #0D1B3E 0%, #09132C 100%);
}

.text-gradient-green {
  background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-orange {
  background: linear-gradient(135deg, #E67E22 0%, #F39C12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pulse Badge Animation */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

.pulse-badge {
  animation: pulse-ring 2s infinite;
}

/* AI Chat Assistant Widget Floating Button & Modal */
.ai-widget-modal {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
}

.ai-widget-modal.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Custom Scrollbar for Chat */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Range Input Styling for Calculator */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 10px;
  cursor: pointer;
  background: #E2E8F0;
  border-radius: 5px;
}

input[type=range]::-webkit-slider-thumb {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: var(--accent-orange);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -7px;
  box-shadow: 0 2px 6px rgba(230, 126, 34, 0.4);
  transition: transform 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Badges and Tags */
.badge-cofepris {
  background-color: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #2E7D32;
}

.badge-nom {
  background-color: rgba(54, 152, 219, 0.15);
  border: 1px solid rgba(54, 152, 219, 0.4);
  color: #1565C0;
}

/* ==========================================================================
   6-SECOND LUXURY LOGO INTRO ANIMATIONS
   ========================================================================== */

#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #132759 0%, #081129 60%, #020617 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 1.3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
}

#intro-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Graceful Dissolve of Intro Logo and Halo on Exit */
#intro-overlay.fade-out .isologo-wrapper {
  opacity: 0;
  transform: scale(0.97);
  filter: blur(4px);
  transition: opacity 1.0s cubic-bezier(0.22, 1, 0.36, 1), transform 1.0s cubic-bezier(0.22, 1, 0.36, 1), filter 1.0s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Ambient Radial Aura Behind Intro Logo - Perfectly Centered */
.isologo-wrapper {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 90vw;
  padding: 0;
  margin: 0 auto;
  opacity: 0;
  transform: scale(0.85);
  filter: blur(8px);
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), filter 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.isologo-wrapper.reveal {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
  pointer-events: auto;
  animation: logoGentlePulse 4s ease-in-out 1.2s infinite alternate;
}

/* Luminous Ambient Backdrop Behind Logo - Mathematically Centered (50% 50%) */
.isologo-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(460px, 86vw);
  height: min(460px, 86vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0%, rgba(240, 245, 255, 0.9) 35%, rgba(255, 255, 255, 0.3) 65%, transparent 75%);
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.45), 0 0 100px rgba(76, 175, 80, 0.3);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.isologo-wrapper.reveal::before {
  opacity: 1;
  animation: ambientAuraPulse 3.5s ease-in-out 1.2s infinite alternate;
}

/* Premium Fluid Entry */
@keyframes logoSmoothReveal {
  0% {
    opacity: 0;
    transform: scale(0.85);
    filter: blur(8px) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px) drop-shadow(0 15px 35px rgba(0, 0, 0, 0.35));
  }
}

/* Gentle Breathing Motion During Appreciation */
@keyframes logoGentlePulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.025);
  }
}

/* Centered Breathing Pulse for Luminous Aura */
@keyframes ambientAuraPulse {
  0% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

/* Smooth Luxury Opacity Entry for Main Page */
body.intro-active header,
body.intro-active main {
  opacity: 0.88;
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

body.intro-complete header,
body.intro-complete main {
  opacity: 1;
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Infinite Continuous Logo Carousel / Marquee Ribbon
   ========================================================================== */
.logo-marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, transparent 100%);
  padding: 1.25rem 0;
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 3.5rem;
  animation: logoMarqueeScroll 38s linear infinite;
  will-change: transform;
}

.logo-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes logoMarqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-33.33333%, 0, 0);
  }
}

.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 130px;
  flex-shrink: 0;
  padding: 0 0.75rem;
  transition: all 0.3s ease;
}

.client-logo-img {
  height: 40px;
  max-height: 44px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.78;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-logo-item:hover .client-logo-img {
  opacity: 1;
  transform: scale(1.1);
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}


