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

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  padding: 20px;
  overflow-x: hidden;
}

h1, h2, h3, .logo, .logo a {
  font-family: 'Playfair Display', serif;
  text-decoration: none;
}

.btn-carrito, .btn-explorar, .btn-add {
  border: none;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 8px 15px;
  font-size: 0.75rem;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto 40px;
  padding: 10px 0;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .header-nav {
    flex-direction: column;
    gap: 15px;
  }
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2d4a22;
}
.logo a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .nav-links {
    gap: 10px;
    justify-content: center;
  }
}
.nav-links li {
  list-style: none;
  margin: 0;
}
.nav-links a {
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
  transition: 0.3s;
}
.nav-links a:hover {
  color: #2d4a22;
}

.btn-carrito {
  cursor: pointer;
  transition: all 0.3s ease;
  background: none;
  color: #2d4a22;
  border: 1px solid #2d4a22;
}
.btn-carrito:hover {
  background-color: #2d4a22;
  color: #ffffff;
}

.hero-card {
  display: flex;
  max-width: 100%;
  height: 500px;
  animation: entradaSoft 1s ease-out;
  overflow: hidden;
}
@media (max-width: 800px) {
  .hero-card {
    flex-direction: column;
    height: auto;
  }
}

.hero-texto {
  flex: 1.2;
  display: flex;
  align-items: center;
  padding: 40px 60px;
  background: rgb(233, 232, 232);
  z-index: 2;
  clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);
}
@media (max-width: 800px) {
  .hero-texto {
    padding: 30px 20px;
    clip-path: none;
  }
}

.hero-bloque h1 {
  font-size: 2.2rem;
  color: #2d4a22;
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  .hero-bloque h1 {
    font-size: 1.5rem;
  }
}
.hero-bloque p {
  margin-bottom: 10px;
}

.btn-explorar {
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #519362;
  color: #ffffff;
  margin-top: 20px;
}
.btn-explorar:hover {
  background-color: #2d4a22;
}
.btn-explorar a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.hero-imagen {
  flex: 1;
  margin-left: -10%;
}
@media (max-width: 800px) {
  .hero-imagen {
    margin-left: 0;
    width: 100%;
  }
}
.hero-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalogo-seccion {
  margin: 40px auto;
  padding-bottom: 20px;
}
.catalogo-seccion .card {
  min-height: 400px;
  justify-content: flex-start;
}

.subtitulo {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.grid-productos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 100%;
}
@media (max-width: 1000px) {
  .grid-productos {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 800px) {
  .grid-productos {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .grid-productos {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.card {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s;
  text-align: left;
  width: 100%;
  max-width: 100%;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 10px;
}
.card h3 {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  color: #2d4a22;
  margin-bottom: 5px;
}

.info h3 {
  font-size: 1rem;
  color: #2d4a22;
  margin-bottom: 5px;
}

.precio {
  font-size: 0.85rem;
  color: #8db596;
  font-weight: bold;
}

.descripcion-cuidado {
  font-size: 0.8rem;
  color: #666;
  margin-top: 8px;
}

.card-footer {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

.btn-add {
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #519362;
  color: #ffffff;
  width: 100%;
}
.btn-add:hover {
  background-color: #2d4a22;
  transform: scale(1.02);
}
.btn-add:active {
  transform: scale(0.98);
}

.cuidado-icono {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 15px;
}

footer {
  background-color: #2d4a22;
  color: #ffffff;
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.footer_texto {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .footer_texto {
    flex-direction: column;
    gap: 20px;
  }
}

.footer_contacto, .footer_acerca_de_nosotros {
  flex: 1;
}
.footer_contacto h2, .footer_acerca_de_nosotros h2 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.2rem;
}
.footer_contacto p, .footer_acerca_de_nosotros p {
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer_copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.footer_copyright p {
  font-size: 0.85rem;
}

.btn-subir {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #519362;
  color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.5rem;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.btn-subir:hover {
  background-color: #2d4a22;
  transform: translateY(-5px);
}
@media (max-width: 600px) {
  .btn-subir {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}
