/* Base Styles */
:root {
  --primary-color: #2E7D32;
  --primary-dark: #1B5E20;
  --primary-light: #C8E6C9;
  --secondary-color: #0277BD;
  --secondary-dark: #01579B;
  --secondary-light: #B3E5FC;
  --accent-color: #FF5722;
  --text-dark: #263238;
  --text-light: #ECEFF1;
  --text-muted: #78909C;
  --bg-light: #F5F7FA;
  --bg-dark: #1b342a;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --success: #43A047;
  --warning: #FFA000;
  --danger: #E53935;
  --info: #039BE5;
  --earth-tone: #8D6E63;

  --bs-gutter-x: 0rem !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.title-underline {
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin-top: 15px;
  border-radius: 2px;
}

.featured-subtitle {
  position: relative;
  padding-left: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.featured-subtitle:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 25px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Buttons */
.btn {
  border-radius: 30px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.btn-link:hover,
.btn-link:focus {
  color: var(--primary-dark);
  transform: translateX(5px);
}

.shadow-lg {
  box-shadow: none !important;
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  /* transition: all 0.3s ease; */
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /* Para que quede encima de otros elementos */

}

.navbar.scrolled {
  padding: 0.5rem 0;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

/* Estilos generales para las tarjetas de producto */
.product-card {
  border: none;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.product-card:hover {
  transform: translateY(-5px);
  /* Un ligero levantamiento al pasar el mouse */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  /* Sombra más pronunciada */
}

.card-img-top {
  border-radius: 0.25rem 0.25rem 0 0;
  object-fit: cover;
  /* Asegura que la imagen cubra el espacio sin deformarse */
  height: 220px;
  /* Altura fija para consistencia visual */
  width: 100%;
  /* Asegura que ocupe todo el ancho */
}

.card-body {
  padding: 1.25rem;
  /* Un poco más de padding */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Para empujar el botón abajo si hay mucho texto */
}

.card-title {
  font-size: 1.4rem;
  /* Un poco más grande */
  margin-bottom: 0.6rem;
  color: #2e8b57;
  /* Verde bosque para el título */
  font-weight: 600;
  /* Un poco más de peso */
}

.card-text {
  font-size: 1rem;
  color: #556b2f;
  /* Verde oliva para la descripción */
  line-height: 1.5;
  margin-bottom: 1.25rem;
  /* Espacio antes del botón */
  flex-grow: 1;
  /* Permite que el texto ocupe espacio y empuje el botón */
}

/* Estilos específicos para la temática ambiental (.eco-style) */
.product-card.eco-style {
  border: 1px solid #a2cd5a;
  /* Un borde sutil verde claro */
  background-color: #f7fff7;
  /* Un fondo muy ligero para un aire fresco */
  border-radius: 0.5rem;
  /* Bordes un poco más redondeados */
}

.product-card.eco-style .btn-success {
  background-color: #4CAF50;
  /* Un verde más vibrante */
  border-color: #4CAF50;
  color: white;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  /* Más padding para el botón */
  border-radius: 0.3rem;
  /* Bordes ligeramente redondeados para el botón */
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.product-card.eco-style .btn-success:hover {
  background-color: #45a049;
  /* Verde un poco más oscuro al pasar el mouse */
  border-color: #45a049;
}

.product-card.eco-style .btn-outline-success {
  border-color: #4CAF50;
  color: #4CAF50;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 0.3rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.product-card.eco-style .btn-outline-success:hover {
  background-color: #4CAF50;
  color: white;
  border-color: #4CAF50;
}

.navbar-brand:hover img {
  transform: rotate(10deg);
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  position: relative;
  margin: 0 0.5rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  display: flex;
  align-items: center;
  color: white;
}

.hero-side-menu {
  position: absolute;
  top: 50%;
  right: 32px;
  transform: translateY(-50%);
  z-index: 10;
}

.side-menu-box {
  background: rgba(255, 255, 255, 0.047);
  backdrop-filter: blur(20px);
  border: 1px solid rgb(255, 255, 255, 0.3);
  /* border-radius: 16px; */
  padding: 20px;
  border-radius: 10px;
  /* padding: 18px 12px; */
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 140px;
}

.side-menu-btn {
  border: 2px solid #fff;
  color: #fff;
  width: 100%;
  padding: 8px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  font-size: 1rem;
  display: block;
}

.side-menu-btn:hover,
.side-menu-btn:focus {
  /* background: #0056b3; */
  color: #fff;
  text-decoration: none;
}

@media (max-width: 991px) {
  .hero-side-menu {
    display: none !important;
  }
}

/* hero slider  */

.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  height: 100vh;
}

/* About Section */
.feature-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.leaflet-control-attribution {
  display: none !important;
}

.about-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  max-width: 300px;
}

.stat-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.objective-card {
  padding: 2rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.objective-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.objective-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Wave Separator */
.separator-wave {
  overflow: hidden;
  margin-bottom: -7px;
}

/* Map Section */
.map-container {
  overflow: hidden;
  border: 1px solid var(--gray-300);
}

.map-legend {
  font-size: 0.9rem;
  color: var(--text-dark);
}

.map-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 8px;
}

.marker-general {
  background-color: var(--primary-color);
}

.marker-special {
  background-color: var(--danger);
}

.marker-compost {
  background-color: var(--earth-tone);
}

/* Accordion */
.accordion-item {
  border: 1px solid var(--gray-300);
  border-radius: 8px !important;
  overflow: hidden;
  margin-bottom: 1rem;
}

.accordion-button {
  background-color: white;
  color: var(--text-dark);
  font-weight: 600;
  padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--gray-300);
}

/* Reward Section */
.reward-card {
  border-radius: 15px;
  padding: 2rem;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
}

.reward-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.featured-card {
  border: 2px solid var(--primary-color);
  transform: translateY(-10px);
}

.featured-card:hover {
  transform: translateY(-15px);
}

.ribbon {
  position: absolute;
  top: 15px;
  right: -5px;
  padding: 5px 15px;
  background-color: var(--accent-color);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.ribbon:before {
  content: '';
  position: absolute;
  right: 0;
  top: 100%;
  border-style: solid;
  border-width: 0 5px 5px 0;
  border-color: transparent #d84315 transparent transparent;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.reward-list {
  list-style-type: none;
  padding-left: 0;
  text-align: left;
  margin: 1.5rem 0;
}

.reward-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.reward-list li:before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--success);
  position: absolute;
  left: 0;
}

.impact-counter-section {
  background-color: var(--primary-light);
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.2)' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.counter-item {
  padding: 1rem;
}

.counter-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.counter-label {
  font-size: 1.25rem;
  color: var(--text-dark);
  font-weight: 500;
}

/* Social Media Section */
.social-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}



.social-btn {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-btn i {
  margin-right: 8px;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.facebook-btn {
  background-color: #3b5998;
}

.whatsapp-btn {
  background-color: #25D366;
}

.youtube-btn {
  background-color: #ff0000;
}

.video-container {
  overflow: hidden;
  height: 0;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  position: relative;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* News & Events Section */
.news-card {
  margin-bottom: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  background-color: white;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-card-body {
  padding: 1.5rem;
}

.news-date {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.news-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.event-card {
  display: flex;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.event-card:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.event-date {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.event-day {
  font-size: 1.5rem;
  font-weight: 700;
}

.event-month {
  font-size: 0.875rem;
}

.event-info {
  padding: 1rem;
  flex: 1;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.event-meta i {
  margin-right: 5px;
}

/* Contact Section */
.contact-form-container {
  border-top: 4px solid var(--primary-color);
}

.form-floating>.form-control,
.form-floating>.form-control-plaintext {
  padding: 1rem 0.75rem;
}

.form-floating>label {
  padding: 1rem 0.75rem;
}

.contact-info-item {
  background-color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
  text-align: center;
}

.contact-info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.icon-container {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.location-map {
  overflow: hidden;
  margin-top: 1.5rem;
  background-color: white;
  padding: 1.5rem;
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: white;
}

.footer-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
  gap: 10px;
}

.footer-title {
  color: white;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-logo {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

.copyright-text {
  color: var(--text-light);
}

/* Newsletter Form */
.newsletter-form .form-control {
  border-radius: 50px 0 0 50px;
  border: none;
  padding: 0.75rem 1.5rem;
}

.newsletter-form .btn {
  border-radius: 0 50px 50px 0;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .hero {
    height: 80vh;
  }

  .floating-card {
    position: static;
    margin-top: -50px;
    margin-left: 20px;
    margin-right: 20px;
    z-index: 10;
  }

  .about-image-container {
    margin-bottom: 80px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    filter: drop-shadow(0 5px 10px rgba(64, 240, 140, 0.774));
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .hero {
    height: 70vh;
  }

  .hero .display-4 {
    font-size: 2.5rem;
  }

  .counter-number {
    font-size: 2.5rem;
  }

  .event-card {
    flex-direction: column;
  }

  .event-date {
    flex-direction: row;
    padding: 0.5rem;
  }

  .event-day,
  .event-month {
    margin: 0 5px;
  }

  .social-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.75rem;
  }

  .hero .display-4 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .news-card .row {
    flex-direction: column;
  }

  .news-card img {
    border-radius: 10px 10px 0 0;
  }
}