:root {
  --green-900: #0b2f1a;
  --green-800: #104221;
  --green-700: #1a6a2f;
  --green-600: #2b8a3e;
  --green-500: #44a34a;
  --green-400: #72c35d;
  --green-300: #a3da80;
  --green-100: #ebf7e9;
  --green-050: #f7fcf6;
  --text-900: #142018;
  --text-700: #45604d;
  --text-500: #68816f;
  --line: #d7e8d5;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(13, 55, 29, 0.10);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-900);
  background: radial-gradient(circle at top right, rgba(114, 195, 93, .18), transparent 28%),
    linear-gradient(180deg, #fbfefb 0%, #f5fbf3 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* Topbar */
.topbar {
  background: linear-gradient(90deg, var(--green-900), var(--green-700));
  color: rgba(255, 255, 255, .95);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.topbar-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.topbar strong {
  color: #fff;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, .84);
  border-bottom: 1px solid rgba(16, 66, 33, .08);
}

.nav-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--green-050), var(--green-300));
  color: white;
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 25px rgba(26, 106, 47, .18);
  flex-shrink: 0;
}

.brand h1 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand p {
  margin: 4px 0 0;
  color: var(--text-500);
  font-size: .85rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-700);
  font-weight: 600;
  font-size: .95rem;
}

.nav-links a:hover {
  color: var(--green-700);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  transition: .25s ease;
  cursor: pointer;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  box-shadow: 0 12px 30px rgba(43, 138, 62, .22);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-soft {
  color: var(--green-800);
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(16, 66, 33, .1);
}

.btn-soft:hover {
  background: #fff;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 42px;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

.hero::before {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(114, 195, 93, .23) 0%, rgba(114, 195, 93, 0) 70%);
  top: -120px;
  right: -80px;
}

.hero::after {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(43, 138, 62, .14) 0%, rgba(43, 138, 62, 0) 70%);
  left: -80px;
  bottom: -120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 30px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--green-100);
  border: 1px solid var(--line);
  color: var(--green-800);
  font-weight: 700;
  font-size: .88rem;
}

.hero h2 {
  margin: 18px 0 18px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -.03em;
  max-width: 11ch;
}

.hero p {
  margin: 0 0 24px;
  color: var(--text-700);
  font-size: 1.05rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(13, 55, 29, .05);
  color: var(--text-700);
  font-weight: 600;
}

.hero-panel {
  position: relative;
  padding: 22px;
  border-radius: 32px;
  background: linear-gradient(160deg, #11361d 0%, #1d5d2b 100%);
  color: white;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 540px;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: auto -18% -24% auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 255, 255, .2), transparent 68%);
  border-radius: 50%;
}

.mini-card {
  position: relative;
  border-radius: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  margin-bottom: 14px;
}

.mini-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.mini-card p {
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: .95rem;
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.metric {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
}

.metric strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.metric span {
  color: rgba(255, 255, 255, .78);
  font-size: .92rem;
}

/* Stats Section */
.stats {
  padding: 0 0 16px;
  margin-top: -8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 35px rgba(15, 55, 28, .06);
}

.stat .label {
  color: var(--text-500);
  font-weight: 600;
  font-size: .9rem;
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  margin-top: 8px;
  color: var(--green-800);
}

/* General Sections */
section {
  padding: 82px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.section-head.center {
  justify-content: center;
  text-align: center;
}

.section-head .tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.section-head h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -.03em;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--text-700);
  max-width: 700px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: stretch;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 16px 45px rgba(15, 55, 28, .05);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.soft-block {
  background: linear-gradient(180deg, var(--green-050), white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}

.soft-block h4 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.soft-block p {
  margin: 0;
  color: var(--text-700);
}

.value-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f2f9ef;
  border: 1px solid var(--line);
  color: var(--green-800);
  font-weight: 700;
  font-size: .92rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fafdfa 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 35px rgba(13, 55, 29, .05);
}

.service::after {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  right: -16px;
  top: -16px;
  background: radial-gradient(circle, rgba(114, 195, 93, .18), rgba(114, 195, 93, 0) 70%);
  border-radius: 50%;
}

.icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green-700), var(--green-400));
  color: white;
  font-size: 24px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(43, 138, 62, .18);
}

.service h4 {
  margin: 0 0 10px;
  font-size: 1.06rem;
}

.service p {
  margin: 0;
  color: var(--text-700);
}

/* Showcase Section */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.showcase-card {
  background: linear-gradient(180deg, #ffffff, #f7fbf5);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(13, 55, 29, .06);
}

.showcase-media {
  min-height: 220px;
  padding: 24px;
  background: radial-gradient(circle at 20% 20%, rgba(163, 218, 128, .55), transparent 32%),
    linear-gradient(145deg, #dff2d4 0%, #c1e4b1 100%);
  display: grid;
  place-items: center;
  font-size: 78px;
}

.showcase-body {
  padding: 24px;
}

.showcase-body h4 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.showcase-body p {
  margin: 0;
  color: var(--text-700);
}

/* ===== ESTILOS CORREGIDOS PARA EQUIPO ===== */

/* Reseteo del estilo de icono para que no afecte a las imágenes PNG */
.equipment .icon {
  width: 100%;            /* Ocupa todo el ancho de la tarjeta */
  height: auto;           /* Altura automática */
  min-height: 180px;      /* Altura mínima para que todas las tarjetas se alineen bien */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  
  /* Eliminamos el fondo verde degradado que era para los emojis */
  background: transparent; 
  border-radius: 0;
  box-shadow: none;
  
  /* Transición suave para el hover */
  transition: transform 0.3s ease;
}

/* Control de tamaño de las imágenes */
.equipment .icon img {
  max-width: 85%;          /* Un poco de margen interno visual */
  max-height: 150px;       /* Altura máxima controlada */
  width: auto;
  height: auto;
  object-fit: contain;     /* Asegura que la imagen no se deforme */
  display: block;
  
  /* Suavizado y sombra sutil para que resalten sobre fondo blanco */
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.05));
  transition: all 0.25s ease-in-out;
}

/* Efecto Hover Profesional */
.equipment:hover .icon img {
  transform: scale(1.05);  /* Zoom suave al pasar el mouse */
  filter: drop-shadow(0 12px 16px rgba(43, 138, 62, 0.15));
}

/* Estilos de las tarjetas (mejorados para que combinen) */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.equipment {
  padding: 28px 20px 24px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(13, 55, 29, 0.06);
  text-align: center;
  transition: all 0.3s ease;
}

.equipment:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px rgba(43, 138, 62, 0.12);
  border-color: var(--green-300);
}

.equipment h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--green-800);
}

.equipment p {
  margin: 0;
  color: var(--text-700);
  font-size: 0.95rem;
}

/* ===== FIN DE CORRECCIÓN DE EQUIPO ===== */

/* Ajuste responsive para móviles */
@media (max-width: 768px) {
  .equipment .icon {
    min-height: 140px;
  }
  .equipment .icon img {
    max-height: 120px;
  }
  .equipment-grid {
    gap: 16px;
  }
}

/* Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.benefit {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, white 0%, #f8fcf7 100%);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(13, 55, 29, .05);
}

.benefit strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 1rem;
}

.benefit p {
  margin: 0;
  color: var(--text-700);
}

/* Contact Section */
.contact-section {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, var(--green-900), #165329 55%, var(--green-600));
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: auto auto -130px -90px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: stretch;
}

.contact-card {
  position: relative;
  padding: 32px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}

.contact-card p,
.contact-card li {
  color: rgba(255, 255, 255, .84);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: white;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-300);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(114, 195, 93, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.btn-submit {
  background: white;
  color: var(--green-800);
  font-weight: 800;
  border: none;
  padding: 14px 20px;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 8px;
}

.btn-submit:hover {
  background: var(--green-100);
  transform: scale(0.98);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

/* Toast Message */
.toast-message {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1f2f1c;
  color: white;
  padding: 14px 24px;
  border-radius: 60px;
  font-weight: 500;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.85);
  transition: opacity 0.3s;
}

/* Footer */
.footer {
  padding: 22px 0 30px;
  background: #081e10;
  color: rgba(255, 255, 255, .72);
  text-align: center;
  font-size: .95rem;
}

/* Responsive Design */
@media (max-width: 1100px) {

  .hero-grid,
  .about-grid,
  .contact-grid,
  .showcase,
  .services-grid,
  .equipment-grid,
  .benefits-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-panel {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .showcase,
  .services-grid,
  .equipment-grid,
  .benefits-grid,
  .stats-grid,
  .mission-grid,
  .hero-list {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    max-width: none;
  }

  section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 38px;
  }

  .btn {
    width: 100%;
  }

  .contact-actions .btn {
    width: auto;
    flex: 1 1 220px;
  }
}

.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: #def1e5;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1000;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  background-color: #d9ecea;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn span {
  font-size: 32px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 28px;
    bottom: 20px;
    left: 20px;
  }
}


.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin: 20px;
  background: #f3f7f2;
  border: 1px solid var(--line);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-track img {
  min-width: 100%;
  height: 340px;
  object-fit: contain;
  object-position: center;
  background: #f3f7f2;
  padding: 10px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(16, 66, 33, 0.72);
  color: white;
  border: none;
  font-size: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-btn:hover {
  background: rgba(16, 66, 33, 0.9);
}

@media (max-width: 768px) {
  .carousel-track img {
    height: 240px;
    padding: 8px;
  }
}

/* Estado activo del menú */
.nav-links a.active {
  color: inherit;
  position: relative;
  font-weight: 700;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

/* Opcional: si quieres que Inicio también se marque cuando el logo está activo */
.brand.active {
  opacity: 1;
}

/* Hover consistente para que no cambie raro frente al active */
.nav-links a {
  position: relative;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #1f2f1c;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
  }

  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: relative;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand h1 {
    font-size: 1rem;
    line-height: 1.1;
    margin: 0;
  }

  .brand p {
    font-size: 0.72rem;
    line-height: 1.2;
    margin: 2px 0 0;
  }

  .brand-mark img {
    max-width: 48px;
    height: auto;
  }

  .menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    padding: 10px;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
  }

  .nav-links a.active {
    background: rgba(235, 247, 233, 0.9);
  }

  .topbar-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}