/* ==============================
   ESTILOS GLOBALES
   ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Chau Philomene One', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  color: #333333;
  line-height: 1.6;
}

/* ==============================
   TIPOGRAFÍA Y TEXTOS
   ============================== */
h1, h2, h3, p, nav a, button, input, textarea {
  font-family: 'Chau Philomene One', sans-serif;
}

h1, h2, h3 {
  color: #1B5E20; /* Verde elegante y legible */
  text-align: center;
  margin-bottom: 15px;
}

p {
  text-align: center;
  margin-bottom: 20px;
}

/* ==============================
   ENCABEZADO Y NAVEGACIÓN
   ============================== */
header {
  background-color: #f5f5f5;
  padding: 15px 0;
  text-align: center;
}

header img {
  max-height: 60px;
}

nav {
  margin-top: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: #1B5E20;
  font-size: 18px;
  transition: color 0.3s;
}

nav a:hover {
  color: #FF6F61; /* Coral como acento */
}

/* ==============================
   SECCIÓN HERO (Carrusel)
   ============================== */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
}

.slide.active {
  display: block;
}

.slide img, .slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  padding: 20px 30px;
  border-radius: 10px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 12px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* ==============================
   SECCIONES GENERALES
   ============================== */
section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==============================
   NUESTROS PRODUCTOS
   ============================== */
.productos-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 25px;
  margin-top: 30px;
}

.producto {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  flex: 0 0 48%; /* ✅ ocupa casi la mitad del ancho */
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.producto img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.producto:hover {
  transform: scale(1.05);
}

/* ==============================
   SECCIÓN CONTACTO
   ============================== */
.contacto-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap; /* ✅ se adaptan en móvil */
}

.info {
  flex: 1 1 40%;
  text-align: center;
}

form {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 600px;
}

form input, form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

form button {
  background-color: #1B5E20;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
  width: 100%;
}

form button:hover {
  background-color: #145214;
}

/* ==============================
   PIE DE PÁGINA
   ============================== */
footer {
  background-color: #1B5E20; /* verde original */
  color: #fff; /* texto en blanco */
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.footer-links a {
  color: #fff; /* enlaces en blanco */
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 0.7; /* efecto sutil en hover */
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .producto {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .contacto-container {
    flex-direction: column;
    align-items: center;
  }

  .info, form {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .hero-text {
    font-size: 14px;
    padding: 15px;
  }
}
