/* Variables de color según el diseño */
:root {
  --green-primary: #48a135;
  --green-dark: #123e25;
  --green-light: #eaf5e9;
  --text-muted: #5a6e60;
  --green-fw-manana:#98fa82;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #333333;
}

.fw-manana {
  color: var(--green-fw-manana);
  font-size: 90px;
}

/* Colores personalizados */
.text-success-brand { color: var(--green-primary); }
.text-success-dark { color: var(--green-dark); }

/* Botones con estilo verde del diseño */
.btn-primary-custom {
  background-color: var(--green-primary);
  border-color: var(--green-primary);
  color: #ffffff;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: #3d8a2c;
  color: #ffffff;
}

/* --- HEADER / NAVBAR CON FONDO BLANCO SÓLIDO Y ALTO CONTRASTE --- */
.navbar-custom {
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  z-index: 1030;
}

/* Reducción suave de altura al hacer scroll */
.navbar-custom.navbar-scrolled {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.nav-spacer {
  height: 85px; /* Compensa el espacio del navbar fijo */
}

.fs-7 { font-size: 0.875rem; }
.fs-8 { font-size: 0.75rem; }
.tracking-tight { letter-spacing: -0.5px; }
.tracking-wider { letter-spacing: 1px; }

/* Enlaces del menú con máximo contraste y legibilidad */
.navbar-nav .nav-link {
  color: #1a252c !important;
  font-weight: 600;
  position: relative;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--green-primary) !important;
}

/* Indicador de línea animado debajo del enlace activo */
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--green-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
}

/* --- HERO SECTION CON ZOOM SUAVE EN EL FONDO --- */
.hero-section {
  position: relative;
  padding-bottom: 120px;
  background-color: var(--green-dark);
  overflow: visible;
}

.hero-bg-zoom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(135deg, rgba(18, 62, 37, 0.4) 0%, rgba(20, 45, 28, 0.8) 100%),
              url('../images/40482.jpg') center/cover no-repeat;
  animation: heroZoom 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}

.wave-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.hero-img-container {
  position: absolute;
  right: 0;
  bottom: -30px; 
  width: 48%;
  max-width: 650px;
  z-index: 3; 
  pointer-events: none;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0px 15px 15px rgba(0, 0, 0, 0.25));
}

/* --- COLIBRÍ ANIMADO --- */
.hummingbird-wrapper {
  position: absolute;
  right: 0;
  top: -20px;
  width: 300px;
  height: 300px;
  z-index: 10;
  pointer-events: none;
  animation: flyHover 3s ease-in-out infinite; 
}

@keyframes flyHover {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-10px, -14px) rotate(-5deg); }
  50% { transform: translate(8px, -6px) rotate(4deg); }
  75% { transform: translate(-6px, -20px) rotate(-3deg); }
  100% { transform: translate(12px, -10px) rotate(6deg); }
}

/* Formas orgánicas */
.organic-mask {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 40px;
}

.feature-card {
  border: 1px solid #e2eee0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(72, 161, 53, 0.1);
}

.bg-light-green-subtle { background-color: #f4f9f3; }
.btn-dark-green {
  background-color: #1a422b;
  color: #ffffff;
}
.btn-dark-green:hover {
  background-color: #123e25;
  color: #ffffff;
}

/* Tarjetas de Servicios */
.card-service {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-service:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}
.service-img {
  height: 180px;
  object-fit: cover;
}

.li-somos {
  list-style-type: none;
  color: #3d8a2c;
  font-weight: 600;
}

.service-icon-badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background-color: var(--green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  font-size: 1.2rem;
}

/* Sección de Impacto / Métricas */
.impact-section {
  background: linear-gradient(180deg, #0e2d1b 0%, #0a2113 100%);
}
.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}
.stat-icon {
  font-size: 1.8rem;
  color: #55c742;
}

/* Sección de Valores */
.value-icon-circle {
  width: 65px;
  height: 65px;
  background-color: var(--green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 15px rgba(72, 161, 53, 0.25);
}

.cursive-slogan {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 2.2rem;
  color: var(--green-dark);
  line-height: 1.1;
}

/* --- UTILIDADES Y MISIÓN / VISIÓN --- */
.max-w-700 { max-width: 700px; }
.max-w-500 { max-width: 500px; }

.card-mv {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e1efe0 !important;
}

.card-mv:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(18, 62, 37, 0.08) !important;
}

.mv-icon-bg {
  position: absolute;
  right: -15px;
  bottom: -20px;
  font-size: 8rem;
  color: rgba(72, 161, 53, 0.05);
  pointer-events: none;
  line-height: 1;
}

/* --- PORTAFOLIO --- */
.card-portfolio {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-portfolio:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.portfolio-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-portfolio:hover .portfolio-img {
  transform: scale(1.08);
}

.portfolio-category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* --- ESTILOS MODERNOS FOOTER --- */
.footer-dark {
  background: linear-gradient(180deg, #07170d 0%, #040d07 100%);
}

.footer-cta-card {
  background: linear-gradient(135deg, #123e25 0%, #1e5c38 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon-btn:hover {
  background: var(--green-primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(72, 161, 53, 0.4);
}

.footer-legal-link:hover {
  color: #ffffff !important;
}

/* --- PROPUESTA 1: ANIMACIÓN DE ENREDADERA VECTORIAL LATERAL --- */
.vine-scroll-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 90px;
  height: 100vh;
  pointer-events: none;
  z-index: 1020;
}

.vine-scroll-container svg {
  width: 100%;
  height: 100%;
}

.vine-path {
  fill: none;
  stroke: var(--green-primary);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

.vine-leaf {
  fill: var(--green-primary);
  opacity: 0;
  transform-origin: center;
  transition: transform 0.4s ease-out, opacity 0.3s ease-out;
}

/* Responsivo para móviles y tablets */
@media (max-width: 991.98px) {
  .hero-img-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-top: 2rem;
  }
  
  .hummingbird-wrapper {
    width: 120px;
    height: 120px;
    right: 0;
    top: -30px;
  }

  .fw-manana {
    font-size: 50px;
  }

  .vine-scroll-container {
    width: 50px;
  }
}


/* --- PROPUESTA 2: EFECTO DE HOJAS CAYENDO --- */
.falling-leaves-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none; /* Evita que bloquee los clics en la web */
  z-index: 1020;
  overflow: hidden;
}

.leaf-particle {
  position: absolute;
  top: -50px;
  /* SVG de hoja insertado directamente para optimización */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2348a135"><path d="M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.64,20 8,20C19,20 22,3 22,3C21,5 14,5.25 9,6.25C4,7.25 7,11.5 7,11.5C7,11.5 12,8 17,8Z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(-50px) rotate(0deg) translateX(0px);
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  85% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(105vh) rotate(360deg) translateX(50px);
    opacity: 0;
  }
}


/* --- ESTILOS OPTIMIZADOS SECCIÓN SERVICIOS --- */
.btn-filter {
  background-color: #ffffff;
  color: var(--green-dark);
  border: 1px solid #d0e4cd;
  transition: all 0.3s ease;
}

.btn-filter:hover,
.btn-filter.active {
  background-color: var(--green-primary) !important;
  color: #ffffff !important;
  border-color: var(--green-primary) !important;
  box-shadow: 0 4px 12px rgba(72, 161, 53, 0.25);
}

.card-service-modern {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-service-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(18, 62, 37, 0.12) !important;
}

.service-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-img-modern {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-service-modern:hover .service-img-modern {
  transform: scale(1.06);
}

.service-item {
  transition: all 0.4s ease;
}

.service-item.hide {
  display: none !important;
}