.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
}

header {
  background-color: rgb(74, 139, 44);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header.scrolled {
  background-color: rgb(56, 104, 33);
  transition: background-color 0.3s ease;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
}

.logo-img {
  height: 50px;
  transition: height 0.3s ease;
}

.logo-small {
  height: 35px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: white;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background-color: rgb(74, 139, 44);
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    display: none;
  }

  nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

.footer {
  background-color: #2c3e50;
  color: white;
  padding: 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.social-icons a {
  color: white;
  margin: 0 10px;
  font-size: 1.3em;
  text-decoration: none;
}

.social-icons a:hover {
  color: rgb(74, 139, 44);
}

.proveedores {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
  gap: 10px;
}

.proveedores span {
  font-weight: bold;
  margin-bottom: 5px;
}

.proveedores a {
  display: inline-block;
  margin: 0 10px;
}

.proveedor-logo {
  height: 40px;
  width: auto;
  filter: brightness(0.3) invert(1);
  transition: transform 0.5s;
}

.proveedor-logo:hover {
  transform: scale(1.3);
  filter: brightness(1);
}

.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  padding: 10px;
  z-index: 1000;
  text-decoration: none;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.whatsapp-icon {
  font-size: 35px;
}

.inicio-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fefefe;
}

.inicio-titulo {
  font-size: 2.8rem;
  font-weight: 700;
  color: rgb(74, 139, 44);
  margin-bottom: 20px;
  text-align: center;
}

.inicio-titulo::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: rgb(74, 139, 44);
  margin: 10px auto 0;
  border-radius: 2px;
}

.inicio-texto {
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-align: justify;
}

@media (max-width: 600px) {
  .inicio-titulo {
    font-size: 2rem;
  }

  .inicio-texto {
    font-size: 1rem;
  }
}

.slider-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.slider-titulo {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: rgb(74, 139, 44);
}

.slider-card {
  background-color: #f5f5f5;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.slider-card h3 {
  font-size: 1.5rem;
  color: #2e2e2e;
}

.slider-card p {
  font-size: 1rem;
  color: #555;
}

.ubicacion-section {
  padding: 50px 20px;
  background-color: #f7f7f7;
  text-align: center;
}

.ubicacion-titulo {
  font-size: 2rem;
  color: rgb(74, 139, 44);
  margin-bottom: 30px;
}

.ubicacion-mapa {
  width: 100%;
  max-width: 900px;
  height: 400px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.servicios-container {
  max-width: 80%;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.servicios-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInTop 1s ease forwards;
  opacity: 0;
  transform: translateY(-30px);
}

.servicios-titulo {
  font-size: 2.5rem;
  color: rgb(74, 139, 44);
  margin-bottom: 10px;
}

.servicios-descripcion {
  font-size: 1.1rem;
  margin: 0 auto;
  color: #555;
  line-height: 1.6;
}


.servicio-item {
  display: flex;
  align-items: center;
  gap: 40px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.servicio-item.invertido {
  flex-direction: row-reverse;
}

.servicio-item:hover {
  transform: translateY(0px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.servicio-img-wrapper {
  flex: 1;
  transition: transform 0.3s ease;
}

.servicio-img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.servicio-texto {
  flex: 1;
  text-align: left;
}

.servicio-texto h2 {
  font-size: 1.8rem;
  color: #677063; /* verde oliva profundo */
  margin-bottom: 10px;
}

.servicio-linea {
  width: 80%;
  height: 4px;
  background-color: #4a8b2c;
  border: none;
  border-radius: 2px;
  margin-bottom: 20px;
}

.servicio-texto p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
}

.servicio-link {
  display: inline-block;
  color: #4a8b2c;
  font-weight: bold;
  text-decoration: none;
  border: 1px solid #4a8b2c;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
}

.servicio-link:hover {
  background-color: #4a8b2c;
  color: white;
}

@media (max-width: 768px) {
  .servicio-item {
    flex-direction: column !important;
    text-align: center;
  }

  .servicio-texto {
    text-align: center;
  }

  .servicio-linea {
    margin-left: auto;
    margin-right: auto;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInTop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.inicio-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding: 80px 20px;
  background: linear-gradient(135deg, #f5fef4, #e7f7e3);
}

.inicio-texto-wrapper {
  flex: 1;
  min-width: 300px;
}

.inicio-hero-titulo {
  font-size: 2.8rem;
  color: #4a8b2c;
  margin-bottom: 25px;
}

.inicio-hero-titulo span {
  color: #2f651e;
  display: inline-block;
  position: relative;
}

.inicio-hero-titulo span::after {
  content: "";
  width: 60%;
  height: 4px;
  background-color: #4a8b2c;
  position: absolute;
  left: 0;
  bottom: -6px;
  border-radius: 2px;
}

.inicio-parrafos {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  max-width: 700px;
}

.inicio-parrafos p {
  margin-bottom: 15px;
}

.inicio-btn {
  display: inline-block;
  margin-top: 20px;
  background-color: #4a8b2c;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.inicio-btn:hover {
  background-color: #3b7025;
  transform: scale(1.05);
}

.inicio-imagen-wrapper {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.inicio-imagen-wrapper img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .inicio-hero {
    flex-direction: column;
    text-align: left;
  }

  .inicio-hero-titulo {
    font-size: 2rem;
  }

  .inicio-parrafos {
    font-size: 1rem;
  }
}

.inicio-svg {
  position: relative;
  top: 180px;
  width: 100%;
  height: 100px;
  z-index: 0;
  pointer-events: none;
}


.galeria-section {
  padding: 60px 20px;
  background-color: #f3f7f4;
  text-align: center;
}

.galeria-titulo {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #326e24;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.galeria-item {
  overflow: hidden;
  border-radius: 10px;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(20px);
  opacity: 0;
  animation: aparecer 0.7s ease forwards;
}

.galeria-item figure {
  margin: 0;
}

.galeria-item img {
  width: 100%;
  height: 263px;
  transition: transform 0.4s ease;
  display: block;
}

.galeria-item:hover img {
  transform: scale(1.08);
}

.galeria-item figcaption {
  padding: 12px;
  font-weight: 500;
  font-size: 1rem;
  color: #444;
  background-color: #fefefe;
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.titulo-destacado {
  font-size: 2.6rem;
  color: #3b7025;
  text-align: center;
  margin-bottom: 30px;
  animation: aparecerTitulo 1s ease forwards;
  opacity: 0;
  transform: scale(0.95);
}

.titulo-destacado span {
  position: relative;
  display: inline-block;
}

.titulo-destacado span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 6px;
  background-color: #cdeac0;
  border-radius: 4px;
  z-index: -1;
}



@keyframes aparecerTitulo {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.like-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #e74c3c;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.2s ease, color 0.3s;
}

.like-button:hover {
  transform: scale(1.1);
  color: #c0392b;
}

.like-button .material-icons {
  font-size: 20px;
}

.like-button.liked {
  color: #999;
  cursor: default;
  transform: none;
  pointer-events: none;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2f5820;
  color: #fff;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.4s ease, bottom 0.4s ease;
  pointer-events: none;
  z-index: 9999;
}

.toast.active {
  opacity: 1;
  bottom: 50px;
}