/* ===== REINICIO Y BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-900: #0a2e1a;
  --green-800: #0f3d22;
  --green-700: #155230;
  --green-600: #1a6b3e;
  --green-500: #22874f;
  --green-400: #2da562;
  --green-300: #4cc97e;
  --green-200: #86e0a8;
  --green-100: #c8f5d8;
  --green-50:  #edfaf3;
  --lime:      #a8e63d;
  --dark:      #0d1f14;
  --gray-900:  #111827;
  --gray-700:  #374151;
  --gray-500:  #6b7280;
  --gray-300:  #d1d5db;
  --gray-100:  #f3f4f6;
  --white:     #ffffff;

  --font-body: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-md: 0 8px 40px rgba(0,0,0,.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.18);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVEGACIÓN ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 20px 0;
}

#navbar.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06), var(--shadow);
  padding: 12px 0;
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  transition: color var(--transition);
}

#navbar.scrolled .logo { color: var(--green-700); }

.logo-icon {
  font-size: 1.6rem;
  color: var(--green-300);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,.85);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.nav-links a.active-link { color: var(--white); background: rgba(255,255,255,.12); }
#navbar.scrolled .nav-links a { color: var(--gray-700); }
#navbar.scrolled .nav-links a:hover { color: var(--green-600); background: var(--green-50); }
#navbar.scrolled .nav-links a.active-link { color: var(--green-600); background: var(--green-50); }

.btn-nav {
  background: var(--green-400) !important;
  color: var(--white) !important;
  border-radius: 8px;
  font-weight: 600 !important;
}

.btn-nav:hover { background: var(--green-500) !important; }
#navbar.scrolled .btn-nav { background: var(--green-500) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

#navbar.scrolled .hamburger span { background: var(--green-700); }

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  line-height: 1;
}

.btn-primary {
  background: var(--green-400);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(34,135,79,.35);
}

.btn-primary:hover {
  background: var(--green-500);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34,135,79,.4);
}

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
}

.btn-ghost:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: .85rem;
  background: var(--green-50);
  color: var(--green-600);
  border: 1.5px solid var(--green-200);
}

.btn-sm:hover {
  background: var(--green-500);
  color: var(--white);
  border-color: var(--green-500);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

.btn-arrow { transition: transform var(--transition); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ===== SECCIONES COMPARTIDAS ===== */
section { position: relative; }

.section-tag {
  display: inline-block;
  background: var(--green-50);
  color: var(--green-600);
  border: 1px solid var(--green-200);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--dark);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== ANIMACIÓN DE ENTRADA ===== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
  transition-delay: var(--delay, 0ms);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== INICIO ===== */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 50%, var(--green-800) 100%);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg { position: absolute; inset: 0; overflow: hidden; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25;
}

.blob-1 {
  width: 600px; height: 600px;
  background: var(--green-400);
  top: -200px; right: -100px;
}

.blob-2 {
  width: 400px; height: 400px;
  background: var(--lime);
  bottom: -150px; left: 10%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--green-200);
  font-size: .85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -.02em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--green-200), var(--lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.78);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-sub strong { color: var(--green-200); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.55); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.15); }

.hero-visual {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

@media (max-width: 900px) { .hero-visual { display: none; } }

.spore-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  animation: spin linear infinite;
}

.ring-1 { width: 280px; height: 280px; animation-duration: 20s; }
.ring-2 { width: 360px; height: 360px; animation-duration: 35s; animation-direction: reverse; border-style: dashed; }
.ring-3 { width: 420px; height: 420px; animation-duration: 50s; opacity: .5; }

@keyframes spin { to { transform: rotate(360deg); } }

.ring-1::before, .ring-2::before, .ring-3::before {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green-300);
  top: -5px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--green-300);
}

.spore-core {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-300));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .05em;
  box-shadow: 0 0 60px rgba(34,135,79,.5);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 40px rgba(34,135,79,.4); }
  50% { box-shadow: 0 0 80px rgba(34,135,79,.7); }
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  z-index: 2;
}

.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid rgba(255,255,255,.3);
  border-bottom: 2px solid rgba(255,255,255,.3);
  transform: rotate(45deg);
  animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: .4; }
  50% { transform: rotate(45deg) translateY(6px); opacity: .8; }
}

/* ===== SERVICIOS ===== */
#services {
  padding: 100px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-400), var(--lime));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover { border-color: var(--green-200); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }

.featured-card {
  background: linear-gradient(145deg, var(--green-900), var(--green-700));
  border-color: var(--green-500);
  color: var(--white);
}

.featured-card h3,
.featured-card p,
.featured-card .card-list li { color: rgba(255,255,255,.9); }

.featured-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--lime);
  color: var(--dark);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.service-card p {
  font-size: .93rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-list {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-list li {
  font-size: .88rem;
  color: var(--gray-500);
  padding-left: 18px;
  position: relative;
}

.card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-400);
  font-weight: 700;
}

.featured-card .card-list li::before { color: var(--lime); }

.card-link {
  display: inline-flex;
  align-items: center;
  font-size: .88rem;
  font-weight: 600;
  color: var(--green-500);
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}

.card-link:hover { color: var(--green-600); }

.btn-card {
  display: inline-block;
  background: var(--green-400);
  color: var(--white) !important;
  padding: 12px 20px;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition) !important;
}

.btn-card:hover { background: var(--green-300) !important; transform: translateY(-2px); }

/* ===== PRODUCTOS ===== */
#products {
  padding: 100px 0;
  background: var(--green-50);
  overflow: hidden;
}

.products-bg { position: absolute; inset: 0; overflow: hidden; }
.products-blob {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,135,79,.08), transparent 70%);
  top: -200px; right: -200px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.products-grid--single {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.product-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: linear-gradient(135deg, var(--green-400), var(--lime));
  color: var(--dark);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  z-index: 2;
}

.product-img {
  height: 180px;
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.08), transparent 60%);
}

.product-img.liquid { background: linear-gradient(135deg, #0e3a5c, #1a6b8a); }
.product-img.seed { background: linear-gradient(135deg, #3a2e0e, #7a6020); }

.product-icon-wrap {
  font-size: 4rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
  animation: float 4s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.product-body { padding: 28px 28px 32px; }

.product-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
  letter-spacing: .02em;
}

.product-sub {
  font-size: .82rem;
  color: var(--green-500);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.product-body p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 16px;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.product-specs span {
  font-size: .8rem;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
}

/* Aplicaciones */
.applications {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  text-align: center;
}

.applications h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.crops-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.crop {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  color: var(--green-700);
  font-size: .88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 99px;
  transition: var(--transition);
  cursor: pointer;
  user-select: none;
}

.crop:hover { background: var(--green-500); color: var(--white); border-color: var(--green-500); transform: scale(1.05); }

/* ===== POR QUÉ ===== */
#why {
  padding: 100px 0;
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-text .section-tag { display: inline-block; }
.why-text h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--dark);
  margin: 16px 0 20px;
}

.why-text > p {
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 36px;
}

.why-items { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green-400);
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--green-100);
}

.why-item strong { display: block; font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.why-item p { font-size: .88rem; color: var(--gray-500); line-height: 1.6; margin: 0; }

.why-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-center-circle {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .06em;
  text-align: center;
  box-shadow: 0 0 0 16px var(--green-50), var(--shadow-md);
  z-index: 2;
  position: relative;
}

.why-card {
  position: absolute;
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  box-shadow: var(--shadow);
  transition: var(--transition);
  white-space: nowrap;
}

.why-card:hover { box-shadow: var(--shadow-md); transform: scale(1.04); }
.wc-icon { font-size: 1.3rem; }
.wc-1 { top: 20px; left: 0; }
.wc-2 { top: 20px; right: 0; }
.wc-3 { bottom: 20px; left: 0; }
.wc-4 { bottom: 20px; right: 0; }

/* ===== CONTACTO ===== */
#contact {
  padding: 100px 0;
  background: var(--green-900);
  color: var(--white);
}

#contact .section-tag {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  color: var(--green-200);
}

#contact .section-title { color: var(--white); }
#contact .section-sub { color: rgba(255,255,255,.6); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.contact-cards .contact-block {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 28px 32px;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.contact-wa-cta {
  display: flex;
  justify-content: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cb-icon {
  font-size: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-block strong {
  display: block;
  font-size: .9rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-block p { color: var(--white); font-size: .95rem; line-height: 1.6; }

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  background: #25D366;
  color: var(--white);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
}

.wa-btn:hover { background: #1fb255; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.4); }
.wa-icon { display: flex; align-items: center; }
.wa-icon svg { width: 18px; height: 18px; }

.wa-btn--large {
  padding: 18px 48px;
  font-size: 1.1rem;
  border-radius: 12px;
  box-shadow: 0 6px 28px rgba(37,211,102,.4);
}

.wa-btn--large .wa-icon svg { width: 24px; height: 24px; }

/* Formulario */
.contact-form {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(10px);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  letter-spacing: .02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.3); }

.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--green-800); color: var(--white); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-300);
  background: rgba(255,255,255,.1);
}

.form-disclaimer {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  text-align: center;
}

/* ===== PIE DE PÁGINA ===== */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand p {
  margin-top: 16px;
  font-size: .9rem;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
  max-width: 240px;
}

.footer-links strong, .footer-contact strong {
  display: block;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  text-decoration: none;
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--green-300); }

.footer-contact { display: flex; flex-direction: column; gap: 8px; }

.footer-wa {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #25D366;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: opacity var(--transition);
}

.footer-wa:hover { opacity: .8; }
.footer-contact a[href^="mailto"] { color: rgba(255,255,255,.55); font-size: .9rem; text-decoration: none; }
.footer-contact a[href^="mailto"]:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: .82rem;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== WHATSAPP FLOTANTE ===== */
.float-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  background: #25D366;
  color: var(--white);
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  text-decoration: none;
  transition: var(--transition);
  overflow: visible;
}

.float-wa:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(37,211,102,.6);
}

.float-wa svg { width: 28px; height: 28px; position: relative; z-index: 1; }

.float-wa-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37,211,102,.3);
  animation: wa-pulse 2.5s ease-out infinite;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.float-wa-label {
  position: absolute;
  right: 70px;
  background: var(--dark);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity var(--transition), transform var(--transition);
}

.float-wa-label::after {
  content: '';
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--dark);
  border-right: none;
}

.float-wa:hover .float-wa-label { opacity: 1; transform: translateX(0); }

/* ===== NOTIFICACIÓN ===== */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--green-700);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .92rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all .4s cubic-bezier(.4,0,.2,1);
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== BOTÓN VOLVER ARRIBA ===== */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 98;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--green-500);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
  .services-grid,
  .products-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 60px; }
  .why-visual { height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 0; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--green-900); padding: 100px 24px 40px; z-index: 90; overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-links a { display: block; padding: 16px 8px; color: var(--white) !important; font-size: 1.1rem; }
  .btn-nav { background: var(--green-500) !important; border-radius: 10px; margin-top: 12px; text-align: center; }
  .hamburger { display: flex; z-index: 100; position: relative; }
  #navbar.scrolled .hamburger span { background: var(--green-700); }

  .services-grid,
  .products-grid { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .why-card { position: static; margin: 8px; }
  .why-visual { height: auto; flex-wrap: wrap; gap: 8px; padding: 20px; }
  .why-center-circle { display: none; }
  .applications { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  #home { padding: 100px 0 60px; }
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.7rem; }
  .service-card { padding: 28px 24px; }
  .float-wa { bottom: 20px; right: 16px; width: 52px; height: 52px; }
}
