/* === CONFIGURACIÓN GENERAL === */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #f6fbf6, #ecf8ec);
  color: #2e2e2e;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* === ENCABEZADO === */
header {
  background: linear-gradient(120deg, #2e7d32, #5cb85c);
  color: white;
  text-align: center;
  padding: 3rem 1rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

header::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 100%;
  top: 0;
  left: -50%;
  background: rgba(255,255,255,0.07);
  transform: skewY(-10deg);
  animation: luz 6s linear infinite;
}

@keyframes luz {
  0% { transform: skewY(-10deg) translateX(-100%); }
  100% { transform: skewY(-10deg) translateX(100%); }
}

header h1 {
  font-size: 3rem;
  margin: 0;
  letter-spacing: 1px;
  animation: slideDown 1.5s ease-out;
}

header p {
  font-size: 1.2rem;
  margin-top: 0.6rem;
  animation: fadeIn 2s ease-out;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === NAVEGACIÓN === */
nav {
  background: #1b5e20;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s, transform 0.2s;
}

nav a:hover {
  color: #c8e6c9;
  transform: scale(1.08);
}

/* === SECCIONES === */
section {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: auto;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease-out forwards;
}

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

section h2 {
  color: #2e7d32;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

section h2::after {
  content: "";
  width: 70px;
  height: 4px;
  background: #2e7d32;
  display: block;
  margin: 0.5rem auto 2rem;
  border-radius: 3px;
  animation: expand 3s infinite alternate ease-in-out;
}

@keyframes expand {
  from { width: 60px; background: #66bb6a; }
  to { width: 90px; background: #2e7d32; }
}

section p {
  font-size: 1.1rem;
  line-height: 1.6rem;
  color: #444;
  max-width: 700px;
  margin: 0 auto 1rem;
}

/* === TARJETAS DE PRODUCTOS === */
.productos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 260px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.07);
}

.card h3 {
  background: #2e7d32;
  color: white;
  padding: 1rem;
  margin: 0;
  font-size: 1.2rem;
}

/* === BOTÓN GENERAL === */
.boton {
  display: inline-block;
  margin-top: 1.5rem;
  background: linear-gradient(90deg, #2e7d32, #66bb6a);
  color: white;
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.boton:hover {
  transform: translateY(-3px);
  background: linear-gradient(90deg, #388e3c, #81c784);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* === BLOQUE DE CONTACTO === */
.contacto {
  background: linear-gradient(180deg, #f0faf0, #e5f5e5);
  border-top: 2px solid #2e7d32;
  border-radius: 15px;
  padding: 3rem 1rem;
  text-align: center;
  color: #1b5e20;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  margin-top: 3rem;
  transition: all 0.5s ease;
}

.contacto:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.contacto h2 {
  color: #1b5e20;
  margin-bottom: 1rem;
  font-size: 1.9rem;
}

.contacto p {
  color: #2d2d2d;
  margin: 0.4rem 0;
  font-size: 1.1rem;
}

/* === BOTÓN DE WHATSAPP === */
.boton-ws {
  display: inline-block;
  background: linear-gradient(90deg, #25d366, #1ebd5a);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.boton-ws:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, #1ebd5a, #25d366);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* === FOOTER === */
footer {
  background: linear-gradient(90deg, #1b5e20, #2e7d32);
  color: white;
  text-align: center;
  padding: 1.8rem 1rem;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  margin-top: 4rem;
  font-size: 0.95rem;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: rgba(255,255,255,0.05);
  transform: skewY(-8deg);
  animation: luz 8s linear infinite;
}
