:root {
  --primary: #008F39; /* Corporate Green */
  --primary-light: #10B955;
  --primary-dark: #00752E;
  --bg-color: #FFFFFF;
  --bg-alt: #F5F8F6;
  --text-color: #131B16;
  --text-muted: rgba(19, 27, 22, 0.6);
  --border: rgba(0, 143, 57, 0.15);
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* Swiper Theme Colors */
  --swiper-theme-color: var(--primary);
  --swiper-navigation-color: var(--primary);
  --swiper-pagination-color: var(--primary);
}

/* Base Reset & Lenis Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: initial; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

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

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo img {
  height: 85px;
  width: auto;
  object-fit: contain;
  filter: invert(1); /* Turns the white logo into black for visibility on white nav */
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 200;
}
.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: var(--transition);
  border-radius: 3px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  margin-right: 2rem;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-muted);
  transition: var(--transition);
  font-family: var(--font-sans);
}
.lang-switch button.active {
  color: var(--primary);
}
.lang-switch button:hover {
  color: var(--primary-dark);
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 20px rgba(0, 143, 57, 0.2);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--primary-dark);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-image: linear-gradient(to bottom, rgba(10, 15, 20, 0.7), rgba(10, 15, 20, 0.95)), url('imagenes/hero_bg.png');
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-main-logo {
  max-width: 250px;
  margin-bottom: 2rem;
  filter: brightness(0) invert(1);
}

.hero-content {
  text-align: center;
  max-width: 900px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: white;
  text-wrap: balance;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* About */
.about-section {
  background: var(--bg-alt);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}
.lead-text {
  font-size: 1.3rem !important;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-color) !important;
}
.about-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.interactive-card {
  text-decoration: none;
  display: block;
  background-color: var(--primary);
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}
.interactive-card h3 {
  font-size: 1.3rem;
  color: white !important;
  margin-bottom: 0.5rem;
}
.interactive-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9) !important;
  margin: 0;
}
.interactive-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 143, 57, 0.4);
}

/* Services */
.services-section {
  position: relative;
  background-image: linear-gradient(to bottom, rgba(10, 15, 20, 0.8), rgba(10, 15, 20, 0.85)), url('imagenes/services_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
}
.services-section .section-title {
  color: white;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.service-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.service-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-color: var(--primary);
}
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.custom-icon {
  width: 180px;
  height: auto;
  display: block;
}
.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: white;
}
.service-card ul {
  list-style: none;
}
.service-card ul li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.service-card ul li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Team Swiper */
.team-intro {
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
}
.team-swiper {
  padding-bottom: 4rem;
}
.team-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.team-card:hover {
  box-shadow: 0 15px 40px rgba(0,143,57,0.1);
}
.team-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-alt);
}
.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}
.team-card:hover .team-img-wrapper img {
  transform: scale(1.05);
}
.team-info {
  padding: 2rem;
}
.team-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
  color: var(--primary-dark);
}
.team-info .role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.team-info .bio {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.swiper-pagination-bullet-active {
  background: var(--primary) !important;
}

/* Footer */
.footer {
  background: var(--text-color);
  color: #fff;
  padding: 4rem 0 2rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Map */
.footer-map {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}
.footer-contact {
  flex: 1;
  min-width: 250px;
}
.footer-brand {
  flex: 1;
  min-width: 250px;
}
.footer-brand p {
  color: rgba(255,255,255,0.6);
  margin-top: 1rem;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.2rem;
}
.social-icons a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-logo {
  height: 100px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}
.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}
.footer-contact p {
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-right {
    margin-right: 1rem;
  }
  
  .hamburger-menu {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease-in-out;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .about-grid, .about-pillars, .footer-content { 
    grid-template-columns: 1fr; 
    flex-direction: column;
  }
  
  .footer-map {
    max-width: 100%;
    margin-top: 1rem;
  }
  
  .hero-main-logo { max-width: 180px; }
  .hero-title { font-size: 2rem; }
  .section { padding: 4rem 0; }
}

/* WhatsApp Floating Button */
.whatsapp-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  font-size: 2.2rem;
  box-shadow: 0 4px 15px rgba(0, 143, 57, 0.4);
  text-decoration: none;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-fab:hover {
  transform: scale(1.15) translateY(-5px);
}

.whatsapp-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  border-radius: 50%;
  z-index: -1;
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}
