/* ==========================================================================
   AGRO CONFORT - ESTILOS INSTITUCIONALES (100% PURE CSS - PROMPTRECTOR)
   ========================================================================== */

/* --- 1. VARIABLES GLOBALES Y RESET --- */
:root {
  --ac-primary: #1e5631;
  --ac-primary-dark: #143d22;
  --ac-secondary: #4c9a2a;
  --ac-accent: #76ba1b;
  --ac-light-accent: #a4de02;
  --ac-dark-bg: #0d1b1e;
  --ac-card-bg: #15262a;
  --ac-text-light: #f4f9f4;
  --ac-text-muted: #a0b2a6;
  --ac-white: #ffffff;
  --ac-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --ac-transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --ac-font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--ac-font-main);
  background-color: var(--ac-dark-bg);
  color: var(--ac-text-light);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  min-height: 100vh;
}


/* --- 2. PRELOADER 100% CSS PURO CON LOGO AMPLIADO --- */
#ac-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--ac-dark-bg);
  background-image: radial-gradient(circle, #1a3328 0%, var(--ac-dark-bg) 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  animation: ac-preloader-fade 0.8s ease-in-out 1.8s forwards;
  pointer-events: none;
}

#ac-preloader-logo {
  width: 448px; /* Tamaño ampliado (antes 120px) */
  max-width: 70vw; /* Límite de seguridad para óptima experiencia en celulares */
  height: auto;
  will-change: transform, filter;
  animation: ac-preloader-pulse 1.4s infinite alternate ease-in-out;
}

@keyframes ac-preloader-pulse {
  0% { 
    transform: scale(0.96); 
    opacity: 0.8; 
    filter: drop-shadow(0 0 15px rgba(118, 186, 27, 0.3));
  }
  100% { 
    transform: scale(1.05); 
    opacity: 1; 
    filter: drop-shadow(0 0 35px var(--ac-accent)); 
  }
}

@keyframes ac-preloader-fade {
  0% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

/* --- 3. HEADER NAVEGACIÓN Y LOGO AGRANDADO --- */
.ac-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 27, 30, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(118, 186, 27, 0.25);
  transition: var(--ac-transition);
}

/* --- FIX DE CENTRADO MATEMÁTICO EN HEADER --- */
.ac-header-inner {
  max-width: 1350px;
  margin: 0 auto;
  padding: 8px 28px;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important; /* Columna izquierda (50%), Centro (Auto), Columna derecha (50%) */
  align-items: center;
}

/* ALINEACIÓN DE MENÚS LATERALES */
.ac-nav-left {
  justify-content: flex-start;
}

.ac-nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ac-nav-right {
  justify-content: flex-end;
}

.ac-nav {
  display: flex;
  gap: 24px; /* Mayor espaciado entre los enlaces laterales */
  align-items: center;
}

.ac-nav-link {
  color: var(--ac-text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--ac-transition);
  position: relative;
  padding: 6px 0;
}

.ac-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--ac-accent);
  transition: var(--ac-transition);
}

.ac-nav-link:hover {
  color: var(--ac-accent);
}

.ac-nav-link:hover::after {
  width: 100%;
}

/* ENLACE Y ESTRUCTURA DEL LOGO CENTRAL */
.ac-logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 8px;
  transition: var(--ac-transition);
}

.ac-logo-link:hover {
  transform: translateY(-1px);
}

/* TAMAÑO Y RESPLANDOR DEL LOGO AGRANDADO */
.ac-logo-img {
  height: 68px; /* Aumentado de 45px a 68px para mayor presencia institucional */
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(118, 186, 27, 0.3));
  transition: var(--ac-transition);
}

.ac-logo-link:hover .ac-logo-img {
  filter: drop-shadow(0 4px 14px var(--ac-accent));
}

.ac-logo-white { 
  display: none; 
}

/* TEXTO DE MARCA ADAPTADO */
.ac-logo-text {
  font-size: 1.6rem; /* Incrementado para alinearse proporcionalmente a la imagen */
  font-weight: 700;
  color: var(--ac-white);
  letter-spacing: 0.8px;
  transition: var(--ac-transition);
}

.ac-logo-link:hover .ac-logo-text {
  color: var(--ac-light-accent);
}

/* ADAPTACIÓN RESPONSIVE PARA DISPOSITIVOS MÓVILES */
@media (max-width: 900px) {
  .ac-header-inner {
    padding: 10px 16px;
  }
  .ac-logo-img {
    height: 52px; /* Escala de seguridad para no saturar pantallas pequeñas */
  }
  .ac-logo-text {
    font-size: 1.35rem;
  }
  .ac-nav-left, .ac-nav-right {
    display: none;
  }
}

/* --- 4. HERO SLIDER (ANIMACIÓN CSS) --- */
.ac-hero {
  position: relative;
  height: 88vh;
  min-height: 550px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ac-hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ac-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(135deg, rgba(13, 27, 30, 0.85) 0%, rgba(13, 27, 30, 0.4) 100%), var(--hero-bg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: ac-hero-fade-loop 12s infinite ease-in-out;
}

.ac-hero-slide:nth-child(1) { animation-delay: 0s; }
.ac-hero-slide:nth-child(2) { animation-delay: 6s; }

@keyframes ac-hero-fade-loop {
  0% { opacity: 0; }
  8% { opacity: 1; }
  42% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

.ac-hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  z-index: 2;
}

.ac-hero-overtitle {
  color: var(--ac-light-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.ac-hero-title {
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ac-white);
  margin-bottom: 18px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.ac-hero-text {
  font-size: 1.15rem;
  color: var(--ac-text-muted);
  margin-bottom: 24px;
}

.ac-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ac-tag {
  background: rgba(118, 186, 27, 0.15);
  border: 1px solid var(--ac-accent);
  color: var(--ac-text-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* --- 4. HERO SLIDER CON CONTROLES inferiores --- */
.ac-hero {
  position: relative;
  height: 88vh;
  min-height: 550px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ac-hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.ac-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(135deg, rgba(13, 27, 30, 0.85) 0%, rgba(13, 27, 30, 0.4) 100%), var(--hero-bg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease-in-out;
  animation: ac-hero-fade-loop 12s infinite ease-in-out;
}

.ac-hero-slide:nth-child(1) { animation-delay: 0s; }
.ac-hero-slide:nth-child(2) { animation-delay: 6s; }

/* REGLA DE ACTIVACIÓN POR ANCLAJE (:target) EN CSS PURO */
#slide1:target,
#slide2:target {
  animation: none !important;
  opacity: 1 !important;
  z-index: 10 !important;
}

/* PAUSA AL PASAR EL CURSOR SOBRE EL SLIDER */
.ac-hero-slider:hover .ac-hero-slide {
  animation-play-state: paused;
}

/* BARRA DE CONTROLES INFERIOR CENTRADA Y ESTILIZADA */
.ac-hero-controls {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 100;
  background: rgba(13, 27, 30, 0.75);
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid rgba(118, 186, 27, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

/* BOTONES COMPACTOS Y ESTILIZADOS CON PALETA INSTITUCIONAL */
.ac-hero-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ac-card-bg);
  border: 1px solid var(--ac-accent);
  color: var(--ac-light-accent);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--ac-transition);
}

.ac-hero-btn:hover {
  background: var(--ac-accent);
  color: var(--ac-dark-bg);
  transform: scale(1.12);
  box-shadow: 0 0 12px var(--ac-accent);
}

.ac-hero-play {
  font-size: 0.8rem;
  padding-left: 2px;
}

/* PUNTOS INDICADORES (DOTS) COMPACTOS */
.ac-hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid rgba(118, 186, 27, 0.3);
}

.ac-hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid var(--ac-accent);
  text-decoration: none;
  transition: var(--ac-transition);
}

.ac-hero-dot:hover {
  background: var(--ac-light-accent);
  transform: scale(1.25);
}

/* RESALTADO DEL PUNTO SEGÚN DIAPOSITIVA ACTIVA */
.ac-hero:has(#slide1:target) .ac-dot-1,
.ac-hero:has(#slide2:target) .ac-dot-2 {
  background: var(--ac-light-accent) !important;
  box-shadow: 0 0 10px var(--ac-light-accent) !important;
  transform: scale(1.25) !important;
  border-color: var(--ac-white) !important;
}


/* --- 5. CINTA HORIZONTAL CONTINUA --- */
.ac-tape {
  background: linear-gradient(90deg, var(--ac-primary-dark), var(--ac-primary));
  border-top: 1px solid var(--ac-accent);
  border-bottom: 1px solid var(--ac-accent);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
}

.ac-tape-track {
  display: inline-block;
  animation: ac-tape-scroll 25s linear infinite;
}

.ac-tape-track span {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  color: var(--ac-light-accent);
  margin: 0 30px;
}

@keyframes ac-tape-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- 6. SEPARADORES DE SECCIÓN --- */
.ac-section-divider {
  background: #112024;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 30px 20px;
  text-align: center;
}

.ac-divider-title {
  font-size: 1.8rem;
  color: var(--ac-accent);
}

.ac-divider-subtitle {
  color: var(--ac-text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

/* --- 7. SECCIONES Y CONTENIDOS --- */
.ac-section {
  padding: 70px 20px;
}

.ac-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.ac-section-overtitle {
  color: var(--ac-accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.ac-section-title {
  font-size: 2.1rem;
  color: var(--ac-white);
  margin: 10px 0 16px 0;
  line-height: 1.25;
}

.ac-section-text {
  color: var(--ac-text-muted);
  font-size: 1rem;
}

.ac-section-image {
  min-height: 320px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(118, 186, 27, 0.3);
  box-shadow: var(--ac-shadow);
}

.ac-img-sobre-nosotros { background-image: url(/Imagenes/frenteweb02.webp); }
.ac-img-jardin { background-image: url(/Imagenes/FondoPreLoader.webp); }
.ac-img-contacto { background-image: url(/Imagenes/contacto.webp); }


/* --- ACCORDEÓN "SOBRE NOSOTROS" (100% PURE CSS) --- */
.ac-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.ac-accordion-item {
  background: var(--ac-card-bg);
  border: 1px solid rgba(118, 186, 27, 0.25);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--ac-transition);
}

.ac-accordion-item[open] {
  border-color: var(--ac-accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* ENCABEZADO INTERACTIVO DEL ACCORDEÓN */
.ac-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(21, 38, 42, 0.8);
  color: var(--ac-white);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  user-select: none;
  list-style: none; /* Oculta la flecha por defecto del navegador */
  transition: var(--ac-transition);
}

.ac-accordion-header::-webkit-details-marker {
  display: none; /* Oculta indicador predeterminado en Chrome/Safari */
}

.ac-accordion-header:hover {
  background: var(--ac-primary-dark);
  color: var(--ac-light-accent);
}

.ac-accordion-item[open] .ac-accordion-header {
  background: var(--ac-primary);
  color: var(--ac-light-accent);
  border-bottom: 1px solid rgba(118, 186, 27, 0.2);
}

/* INDICADOR DE FLECHA ANIMADO EN CSS PURO */
.ac-accordion-icon {
  position: relative;
  width: 14px;
  height: 14px;
  display: inline-block;
}

.ac-accordion-icon::before {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ac-accent);
  border-bottom: 2px solid var(--ac-accent);
  transform: rotate(45deg);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.ac-accordion-item[open] .ac-accordion-icon::before {
  transform: rotate(-135deg);
  top: 6px;
  border-color: var(--ac-light-accent);
}

/* CONTENIDO DESPLEGADO */
.ac-accordion-body {
  padding: 18px 20px;
  color: var(--ac-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  background: rgba(13, 27, 30, 0.5);
}

.ac-accordion-body p {
  margin-bottom: 12px;
}

.ac-accordion-body p:last-child {
  margin-bottom: 0;
}


/* --- 8. PRODUCTOS Y SERVICIOS CON STICKY Y TRANSICIÓN DE ÍCONO (100% PURE CSS) --- */

.ac-services-header {
  margin-bottom: 50px;
  max-width: 850px;
  padding-left: 0px; /* Incrementa este valor (ej. 30px, 40px) para darle más sangría a la izquierda */
}

.ac-services-header p{
  margin-bottom: 25px;
}

.ac-services-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Cada columna ocupa el 50% exacto del ancho */
  gap: 40px;
  align-items: start;
  width: 100%;
}

.ac-services-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ac-services-header {
  margin-bottom: 28px;
  max-width: 850px;
}

/* COLUMNA IZQUIERDA: TARJETAS VERTICALES */
.ac-services-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}



.ac-service-card {
  background: var(--ac-card-bg);
  border: 1px solid rgba(118, 186, 27, 0.25);
  border-radius: 12px;
  padding: 24px 28px;
  transition: var(--ac-transition);
  cursor: pointer;
  position: relative;
}

.ac-service-card:hover {
  border-color: var(--ac-accent);
  background: rgba(21, 38, 42, 0.95);
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.ac-service-card h3 {
  color: var(--ac-white);
  font-size: 1.3rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ac-service-card h3::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ac-accent);
}

.ac-service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.ac-service-card li {
  color: var(--ac-text-muted);
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--ac-transition);
}

.ac-service-card:hover li {
  color: var(--ac-text-light);
  border-color: rgba(118, 186, 27, 0.4);
  background: rgba(118, 186, 27, 0.12);
}

/* COLUMNA DERECHA: VISOR PEGAJOSO (STICKY) */
/* CONTENEDOR DERECHO (PADRE) SIN MARGEN INTERNO */
.ac-services-sticky-wrapper {
  position: sticky;
  top: 130px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 380px;
  background: var(--ac-card-bg);
  border: 1px solid rgba(118, 186, 27, 0.3);
  border-radius: 16px;
  box-shadow: var(--ac-shadow);
  padding: 0; /* Eliminado el padding de 30px para permitir que la imagen llegue a los bordes */
  overflow: hidden; /* Corta los bordes de la imagen según el borde redondeado del contenedor */
}

/* ÍCONOS OCUPANDO EL 100% DEL CONTENEDOR */
.ac-service-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover; /* Cubre todo el contenedor sin deformar la imagen */
  opacity: 0;
  transform: scale(1.05); /* Efecto sutil de zoom al aparecer */
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  filter: drop-shadow(0 0 18px rgba(118, 186, 27, 0.45));
}

/* CONMUTACIÓN SUTIL DE ÍCONOS POR HOVER (:has) EN CSS PURO */
.ac-services-container:not(:has(.ac-service-card:hover)) .icon-1,
.ac-services-container:has(.ac-card-1:hover) .icon-1 {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.ac-services-container:has(.ac-card-2:hover) .icon-2 {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.ac-services-container:has(.ac-card-3:hover) .icon-3 {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.ac-services-container:has(.ac-card-4:hover) .icon-4 {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.ac-services-container:has(.ac-card-5:hover) .icon-5 {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ADAPTACIÓN RESPONSIVE */
@media (max-width: 900px) {
  .ac-services-container {
    grid-template-columns: 1fr;
  }
  .ac-services-sticky-wrapper {
    position: relative;
    top: 0;
    height: 240px;
  }
  .ac-service-icon {
    max-width: 150px;
    max-height: 150px;
  }
}

.ac-cultivos-consulta {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 40px;
}

/* ======================================================
   TARJETAS DE CULTIVO: ÍCONO AL LADO DEL TÍTULO Y FIJO
   ====================================================== */

/* CONTENEDOR DE LA TARJETA (ORGANIZADO EN GRID) */
/* TARJETAS DE CULTIVO CON ÍCONO AL LADO DEL TÍTULO */
.ac-cultivo-stage {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 16px;
  row-gap: 10px;
  align-items: center;
  background: var(--ac-card-bg, rgba(21, 38, 42, 0.85));
  padding: 22px 20px;
  border-radius: 12px;
  border: 1px solid rgba(118, 186, 27, 0.2);
  margin-bottom: 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ac-cultivo-stage.ac-active {
  border-color: var(--ac-accent, #76ba1b);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ÍCONO FIJO A LA IZQUIERDA */
.ac-cultivo-stage .ac-cultivo-icon {
  grid-column: 1;
  grid-row: 1;
  width: 48px;
  height: 48px;
  object-fit: contain;
  transform: none;
}

/* TÍTULO DEL CULTIVO AL LADO DEL ÍCONO */
.ac-cultivo-stage .ac-cultivo-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ac-light-accent, #a4de02);
}

/* DESCRIPCIÓN DEBAJO (ANCHO COMPLETO) */
.ac-cultivo-stage .ac-cultivo-desc {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  color: var(--ac-text-muted, #a0aec0);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ESPACIADO ENTRE TÍTULO H2 Y BOTÓN DE CONSULTA */
.ac-cultivos-consulta h2 {
  margin-bottom: 24px; /* Aumenta la distancia vertical con el botón */
  font-size: 1.4rem;   /* Mantiene la proporción tipográfica */
  color: var(--ac-white);
}

/* --- BOTÓN DE CONSULTA CON PULSO Y LUZ VERDE AL HOVER --- */
.ac-cultivos-btn-sheen-continuo {
  display: inline-block;
  position: relative;
  background: var(--ac-primary);
  color: var(--ac-white);
  padding: 12px 34px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  overflow: hidden;
  border: 1px solid var(--ac-accent);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* EFECTO HOVER: PULSO CONTINUO Y RESPLANDOR NEÓN */
.ac-cultivos-btn-sheen-continuo:hover {
  color: var(--ac-white);
  border-color: var(--ac-light-accent);
  background: var(--ac-primary-dark);
  animation: ac-btn-pulse-glow 1.4s infinite alternate ease-in-out;
}

/* ANIMACIÓN DE PULSO Y LUZ EN CSS PURO */
@keyframes ac-btn-pulse-glow {
  0% {
    transform: scale(1.03);
    box-shadow: 0 0 12px rgba(118, 186, 27, 0.5), 0 0 22px rgba(164, 222, 2, 0.3);
  }
  100% {
    transform: scale(1.08);
    box-shadow: 0 0 25px var(--ac-accent), 0 0 45px var(--ac-light-accent);
  }
}


.ac-btn-sheen-continuo {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: ac-sheen 2.5s infinite;
}

@keyframes ac-sheen {
  100% { left: 150%; }
}

/* ======================================================
   BOTONES DE SELECCIÓN DE CULTIVOS (EXTENSIVO / INTENSIVO)
   ====================================================== */

/* ======================================================
   ESTILOS DE CULTIVOS - SOLUCIÓN LIMPIA (SIN !IMPORTANT)
   ====================================================== */

/* ======================================================
   BOTONES DE CULTIVOS (ESTILO INSTITUCIONAL VERDE ACTIVO / INACTIVO)
   ====================================================== */

/* CONTENEDOR DE BOTONES */
.ac-cultivos-toggle-container {
  display: flex;
  gap: 12px;
  margin: 20px 0 25px 0;
  flex-wrap: wrap;
}

/* BOTÓN INACTIVO (FONDO OSCURO INSTITUCIONAL CON BORDE Y TEXTO VERDE) */
.ac-cultivos-toggle-container .ac-cultivos-toggle-btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  border: 2px solid #21ac3f;
  background: var(--ac-card-bg, rgba(21, 38, 42, 0.85));
  color: var(--ac-light-accent, #a4de02);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* HOVER EN BOTÓN INACTIVO */
.ac-cultivos-toggle-container .ac-cultivos-toggle-btn:hover:not(.ac-btn-active) {
  background: rgba(33, 172, 63, 0.25);
  color: #ffffff;
  border-color: #76ba1b;
  transform: translateY(-2px);
}

/* BOTÓN ACTIVO (VERDE SOLIDO CON TEXTO BLANCO Y RESPLANDOR NEÓN) */
.ac-cultivos-toggle-container .ac-cultivos-toggle-btn.ac-btn-active {
  background: #4caf50;
  color: #ffffff;
  border-color: #21ac3f;
  font-weight: 700;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.45), 0 0 12px rgba(118, 186, 27, 0.3);
}


/* --- 9. PARTNERS & METRICAS --- */
/* --- 9. PARTNERS & MÉTRICAS (ESTILO CULTIVOS + CONTEO EN CSS PURO) --- */

/* REGISTRO DE PROPIEDADES NUMÉRICAS EN CSS NATAL */
@property --num-250 { syntax: "<integer>"; initial-value: 0; inherits: false; }
@property --num-500 { syntax: "<integer>"; initial-value: 0; inherits: false; }
@property --num-20  { syntax: "<integer>"; initial-value: 0; inherits: false; }
@property --num-50  { syntax: "<integer>"; initial-value: 0; inherits: false; }

.ac-partners-section-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: 35px;
}

/* ======================================================
   SECCIÓN PARTNERS / MÉTRICAS (CONTEO SÓLO EN VIEWPORT)
   ====================================================== */

/* CABECERA DE LA SECCIÓN PARTNERS */
.ac-partners-header {
  max-width: 850px;
  text-align: left;
}

.ac-partners-header .ac-section-subtitle {
  color: var(--ac-light-accent);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.ac-partners-header .ac-section-text {
  color: var(--ac-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* GRID HORIZONTAL DE TARJETAS */
.ac-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  width: 100%;
}

/* TARJETA CON ESTILO HOMOGÉNEO A CULTIVOS */
.ac-partners-counter-card {
  position: relative;
  overflow: hidden;
  background: var(--ac-card-bg);
  padding: 26px 20px;
  border-radius: 12px;
  border: 1px solid rgba(118, 186, 27, 0.25);
  border-left: 4px solid var(--ac-accent);
  text-align: center;
  transition: var(--ac-transition);
  cursor: pointer;
  /* Estado inicial antes de entrar al viewport */
  opacity: 0;
  transform: translateY(30px);
}

/* REVELADO DE LA TARJETA AL ENTRAR EN PANTALLA (MAIN.JS) */
.ac-partners-counter-card.ac-inview {
  opacity: 1;
  transform: translateY(0);
}

/* EFECTO HOVER DE ELEVACIÓN, LUZ Y RESPLANDOR */
.ac-partners-counter-card:hover {
  border-color: var(--ac-accent);
  border-left-color: var(--ac-light-accent);
  background: rgba(21, 38, 42, 0.95);
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.ac-counter-text {
  color: var(--ac-text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* NÚMEROS DE CONTEO PROGRESIVO Y RESPLANDOR NEÓN */
.ac-counter-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--ac-light-accent);
  margin: 10px 0;
  text-shadow: 0 0 12px rgba(118, 186, 27, 0.4);
  transition: var(--ac-transition);
}

.ac-partners-counter-card:hover .ac-counter-number {
  color: var(--ac-white);
  text-shadow: 0 0 20px var(--ac-accent);
}

/* DECLARACIÓN DE VARIABLES INTERPOLABLES (CSS @PROPERTY) */
@property --num-250 { syntax: "<integer>"; initial-value: 0; inherits: false; }
@property --num-500 { syntax: "<integer>"; initial-value: 0; inherits: false; }
@property --num-20  { syntax: "<integer>"; initial-value: 0; inherits: false; }
@property --num-50  { syntax: "<integer>"; initial-value: 0; inherits: false; }

/* ESTADO INICIAL DE LOS CONTADORES (EN 0 ANTES DE SCROLL) */
.ac-num-250, 
.ac-num-500, 
.ac-num-20, 
.ac-num-50 {
  counter-reset: num 0;
}

.ac-num-250::before, 
.ac-num-500::before, 
.ac-num-20::before, 
.ac-num-50::before {
  content: counter(num) "+";
}

/* ACTIVACIÓN DEL CONTEO ÚNICAMENTE CUANDO LA TARJETA TIENE .ac-inview */
.ac-partners-counter-card.ac-inview .ac-num-250 {
  counter-reset: num var(--num-250);
  animation: ac-count-250 4s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

.ac-partners-counter-card.ac-inview .ac-num-500 {
  counter-reset: num var(--num-500);
  animation: ac-count-500 4.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

.ac-partners-counter-card.ac-inview .ac-num-20 {
  counter-reset: num var(--num-20);
  animation: ac-count-20 3s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

.ac-partners-counter-card.ac-inview .ac-num-50 {
  counter-reset: num var(--num-50);
  animation: ac-count-50 3.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

/* KEYFRAMES PARA EL INCREMENTO NUMÉRICO */
@keyframes ac-count-250 { to { --num-250: 250; } }
@keyframes ac-count-500 { to { --num-500: 500; } }
@keyframes ac-count-20  { to { --num-20: 20; } }
@keyframes ac-count-50  { to { --num-50: 50; } }

/* --- 10. CULTIVOS Y ENSAYOS --- */
/* --- 10. CULTIVOS Y ENSAYOS (CON HOVER Y SHEEN CONTINUO) --- */
.ac-section-inner-cultivos {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

.ac-cultivos-stages {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* TARJETA DE CULTIVO BASE */
.ac-cultivo-stage {
  position: relative;
  overflow: hidden;
  background: var(--ac-card-bg);
  padding: 22px 26px;
  border-radius: 12px;
  border: 1px solid rgba(118, 186, 27, 0.25);
  border-left: 4px solid var(--ac-accent);
  transition: var(--ac-transition);
  cursor: pointer;
}

/* EFECTO HOVER IDÉNTICO A PRODUCTOS Y SERVICIOS */
.ac-cultivo-stage:hover {
  border-color: var(--ac-accent);
  border-left-color: var(--ac-light-accent);
  background: rgba(21, 38, 42, 0.95);
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ALINEACIÓN EN LÍNEA PARA ÍCONO Y TÍTULO DE CULTIVO */
.ac-cultivo-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.ac-cultivo-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0; /* Se elimina el margen inferior para alinear horizontalmente */
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(118, 186, 27, 0.3));
  transition: var(--ac-transition);
}

.ac-cultivo-stage:hover .ac-cultivo-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 10px var(--ac-accent));
}

.ac-cultivo-title {
  color: var(--ac-white);
  font-size: 1.25rem;
  margin-bottom: 0; /* Alineación perfecta con el centro del ícono */
}

.ac-cultivo-desc {
  color: var(--ac-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* EFECTO SHEEN CONTINUO SUTIL Y ELEGANTE EN CSS PURO */
.ac-card-sheen-continuo {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: ac-card-sheen 3.5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes ac-card-sheen {
  0% { left: -100%; }
  20% { left: 150%; }
  100% { left: 150%; }
}

/* ADAPTACIÓN RESPONSIVE */
@media (max-width: 900px) {
  .ac-section-inner-cultivos {
    grid-template-columns: 1fr;
  }
}

/* --- 11. ESPACIOS VERDES Y CONTACTO --- */
.ac-muypronto {
  text-align: center;
  font-size: 1.2rem;
  color: var(--ac-light-accent);
}

.ac-contacto-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ac-contacto-item h4 {
  color: var(--ac-accent);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.ac-contacto-item p {
  color: var(--ac-text-muted);
  font-size: 0.95rem;
}

/* --- BOTÓN MAPS PREMIUM CON ESTILO, PULSO Y RESPLANDOR (HOMOGÉNEO) --- */
.ac-contacto-maps-btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--ac-primary);
  color: var(--ac-white);
  padding: 12px 34px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  overflow: hidden;
  border: 1px solid var(--ac-accent);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  margin-top: 14px;
}

/* EFECTO HOVER: PULSO Y HALO DE LUZ VERDE NEÓN */
.ac-contacto-maps-btn-premium:hover {
  color: var(--ac-white);
  border-color: var(--ac-light-accent);
  background: var(--ac-primary-dark);
  animation: ac-btn-pulse-glow 1.4s infinite alternate ease-in-out;
}

/* --- 12. FOOTER INSTITUCIONAL --- */
.ac-footer {
  background: #081113;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 50px 20px 20px 20px;
}

.ac-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.ac-footer-title {
  color: var(--ac-white);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.ac-footer-subtitle {
  color: var(--ac-accent);
  margin-bottom: 12px;
}

.ac-footer-text {
  color: var(--ac-text-muted);
  font-size: 0.9rem;
}

.ac-footer-nav {
  list-style: none;
}

.ac-footer-nav li {
  margin-bottom: 8px;
}

.ac-footer-nav a {
  color: var(--ac-text-muted);
  text-decoration: none;
  transition: var(--ac-transition);
}

.ac-footer-nav a:hover {
  color: var(--ac-accent);
}

.ac-footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--ac-text-muted);
  font-size: 0.85rem;
}

/* ======================================================
   13. BOTÓN FLOTANTE DE WHATSAPP CON ETIQUETA Y HALO
   ====================================================== */

/* ======================================================
   13. BOTÓN WHATSAPP: PULSO CIRCULAR PERFECTO EN ÍCONO
   ====================================================== */

/* CONTENEDOR FLOTANTE PADRE */
.ac-whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* ETIQUETA DE TEXTO (TOTALMENTE ESTÁTICA E INMUNE AL PULSO) */
.ac-whatsapp-label {
  position: relative;
  z-index: 3;
  background: rgba(21, 38, 42, 0.92);
  color: var(--ac-white, #ffffff);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid rgba(118, 186, 27, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  opacity: 0.95;
  transition: opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* CONTENEDOR DEL ÍCONO (BLOQUEADO A CUADRADO EXACTO 46px x 46px) */
.ac-whatsapp-icon-wrapper {
  position: relative;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  max-width: 46px;
  max-height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* ÍCONO CIRCULAR DE WHATSAPP */
.ac-whatsapp-icon {
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* HALO ANIMADO (CIRCUNCENTRO PERFECTO) */
.ac-whatsapp-halo {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%; /* Fuerza forma de círculo perfecto */
  background: rgba(37, 211, 102, 0.45);
  z-index: 1;
  pointer-events: none;
  transform-origin: center center; /* Expansión simétrica desde el centro */
  animation: ac-wa-circle-pulse 2s infinite ease-out;
}

/* ANIMACIÓN DE EXPANSION CIRCULAR CONCÉNTRICA */
@keyframes ac-wa-circle-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

/* HOVER INTERACTIVO */
.ac-whatsapp-float:hover .ac-whatsapp-label {
  opacity: 1;
  border-color: var(--ac-light-accent, #a4de02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 8px rgba(118, 186, 27, 0.3);
}

.ac-whatsapp-float:hover .ac-whatsapp-icon {
  transform: scale(1.06);
  box-shadow: 0 5px 18px rgba(37, 211, 102, 0.6);
}

/* --- 14. ADAPTATIVIDAD RESPONSIVE --- */
@media (max-width: 900px) {
  .ac-section-inner, .ac-services-flex, .ac-section-inner-cultivos {
    grid-template-columns: 1fr;
  }
  .ac-nav-left, .ac-nav-right {
    display: none;
  }
  .ac-hero-title {
    font-size: 2rem;
  }
}

/* EFECTO FADE & SLIDE VINCULADO AL MAIN.JS */
.ac-section-scroll,
.ac-service-card,
.ac-partners-counter-card {
  opacity: 0;
  transform: translateY(35px);
  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;
}

.ac-section-scroll.ac-section-visible,
.ac-service-card.ac-inview,
.ac-partners-counter-card.ac-inview {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================================
   EFECTO "AURORA AMBIENT" EN CSS PURO (100% PROMPTRECTOR)
   ====================================================== */
/* ======================================================
   AURORA AMBIENT (SIN SCROLL HORIZONTAL) + FIX STICKY ICON
   ====================================================== */

/* 1. SECCIONES LIMPIAS (SIN OVERFLOW QUE BLOQUEE EL STICKY) */
.ac-section {
  position: relative;
}

/* Mantiene textos, tarjetas y botones por encima de la luz ambiental */
.ac-section > * {
  position: relative;
  z-index: 2;
}

/* 2. CAPA DE LUZ AMBIENTAL DENTRO DEL LÍMITE (INSET 0) */
.ac-section::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(118, 186, 27, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 70% 35%, rgba(240, 200, 32, 0.15) 0%, transparent 45%), /* NOTAS AMARILLAS / DORADAS */
    radial-gradient(circle at 80% 70%, rgba(164, 222, 2, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(21, 38, 42, 0.35) 0%, transparent 60%);
  background-size: 140% 140%;
  background-position: 0% 0%;
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
  will-change: background-position, opacity;
  animation: ac-aurora-glow 9s ease-in-out infinite alternate;
}

/* 3. ANIMACIÓN DE MOVIMIENTO DE LUZ DENTRO DEL CONTENEDOR */
@keyframes ac-aurora-glow {
  0% {
    background-position: 0% 0%;
    opacity: 0.85;
  }
  50% {
    background-position: 100% 50%;
    opacity: 1;
  }
  100% {
    background-position: 50% 100%;
    opacity: 0.85;
  }
}

/* ======================================================
   PROPIEDAD STICKY PARA LA ILUSTRACIÓN DE PRODUCTOS
   ====================================================== */

/* CONTENEDOR FLEX PADRE */
.ac-services-flex {
  display: flex;
  align-items: flex-start; /* CRÍTICO: Permite que el elemento sticky flote a lo largo de las tarjetas */
  gap: 32px;
  margin-top: 32px;
  width: 100%;
}

/* ILUSTRACIÓN FIJADA AL HACER SCROLL */
.ac-service-illustration {
  position: -webkit-sticky;
  position: sticky;
  top: 110px; /* Distancia respecto al borde superior considerando el header fijo */
  align-self: flex-start;
  width: 200px;
  height: 200px;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.ac-service-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}