/* ===== RESET Y FUENTES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 200px;
  height: auto;
}

.logo h1 {
  color: #2E7D32;
  font-size: 1.5rem;
  font-weight: 700;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
  color: #2E7D32;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  padding: 60px 0;
  text-align: center;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.hero-content h2 {
  color: #2E7D32;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

.hero-image {
  flex: 1;
  min-width: 300px;
}

.hero-image img {
  width: 100%;
  max-width: 200px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ===== SECCIONES COMUNES ===== */
.section-title {
  text-align: center;
  color: #2E7D32;
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #4CAF50;
  margin: 20px auto;
  border-radius: 2px;
}

/* ===== SERVICIOS ===== */
.services {
  padding: 60px 0;
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card h3 {
  color: #2E7D32;
  font-size: 1.3rem;
  margin: 15px 0 10px;
  padding: 0 20px;
}

.service-card p {
  padding: 0 20px 20px;
  color: #666;
}

/* ===== PRODUCTOS ===== */
.products {
  padding: 60px 0;
  background: #f9f9f9;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card h3 {
  color: #2E7D32;
  font-size: 1.3rem;
  margin: 15px 0 5px;
  padding: 0 20px;
}

.product-card p {
  padding: 0 20px 10px;
  color: #666;
}

.price {
  display: block;
  font-weight: 700;
  color: #4CAF50;
  font-size: 1.2rem;
  margin: 10px 0;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  background: #4CAF50;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
  margin: 10px 0 20px;
  text-align: center;
  width: 100%;
  max-width: 200px;
}

.btn:hover {
  background: #388E3C;
  transform: translateY(-2px);
}

/* ===== CONTACTO ===== */
.contact {
  padding: 60px 0;
  background: #fff;
}

.contact-content {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  color: #2E7D32;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.contact-info p {
  margin-bottom: 10px;
  color: #555;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
}

.contact-form h3 {
  color: #2E7D32;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: 100%;
  max-width: 200px;
}

/* ===== FOOTER ===== */
.footer {
  background: #2E7D32;
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  text-align: left;
}

.footer-logo img {
  width: 200px;
  margin-bottom: 10px;
}

.footer-logo p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #bbdefb;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 15px;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .contact-content {
    flex-direction: column;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-logo {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .service-card,
  .product-card {
    min-width: 100%;
  }

  .contact-form {
    padding: 20px;
  }
}