body {
  font-family: 'Segoe Print', sans-serif;
  margin: 0;
  background: #f9f9f9;
  color: #333;
}

/* HEADER */
header {
  background: 
    linear-gradient(to bottom right, rgba(121, 219, 142, 0.7), rgba(180, 213, 60, 0.7)),
    url("img/olivar.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 1rem 1rem;
  text-align: center;
    box-shadow: 0 0 0 4px #3e8e41; /* crea un borde tipo marco */
  border-radius: 12px;           /* opcional */
}

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(62, 142, 65, 0.95); /* verde semitransparente */
  color: white;
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
  z-index: 10000;
}

#cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

#cookie-banner button {
  margin-left: 1rem;
  padding: 0.4rem 0.8rem;
  background: white;
  color: #3e8e41;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}


nav {
  margin-top: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
}

/* CONTENIDO PRINCIPAL */
main {
  padding: 2rem;
}

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #3e8e41;
}

/* PRODUCTOS */
.contenedor-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.producto {
  perspective: 1000px;
  height: 420px;
}

/* Carta giratoria */
.carta {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 15px;
}

.producto:hover .carta {
  transform: rotateY(180deg);
}

/* Caras */
.cara {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  backface-visibility: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  text-align: center;
  background: white;
  overflow-y: auto;
}

.cara.frente {
  z-index: 2;
}

.cara.trasera {
  transform: rotateY(180deg);
  background: linear-gradient(to bottom right, #f1f8f2, #d2eacb);
  justify-content: center;
  position: relative; /* Necesario para posicionar la lupa */
}

.galeria-item {
  position: relative;
  display: inline-block;
}

.zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid #3e8e41;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #3e8e41;
}

.zoom-btn:hover {
  background: #3e8e41;
  color: white;
  transform: scale(1.15);
}


.lightbox {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-img {
  max-height: 70vh; /* antes tenías 80vh */
  width: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.caption {
  margin-top: 1rem;
  font-size: 1rem;
  color: #fff;
  font-style: italic;
  text-align: center;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}


/* Imagen */
.cara img {
  max-height: 220px;      /* aumentar altura máxima */
  width: 100%;            /* ocupa todo el ancho disponible */
  object-fit: cover;      /* rellena la caja manteniendo proporción */
  border-radius: 10px;
  margin-bottom: 1rem;
}


/* Títulos de producto */
h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: #3e8e41;
}

/* Descripciones */
p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0.5rem 0;
}

/* TESTIMONIOS */
.testimonios {
  background-color: #f0f9f0;
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  margin-top: 2rem;
}

.testimonio {
  font-style: italic;
  margin-bottom: 1rem;
}

/* GALERIA */
.imagenes-galeria {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
}

.imagenes-galeria img {
  height: 200px;
  border-radius: 8px;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: #f4f9f4;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.faq summary {
  cursor: pointer;
  padding: 1rem;
  font-weight: bold;
  list-style: none;
  position: relative;
}

.faq summary::after {
  content: "➤";
  position: absolute;
  right: 1rem;
  transition: transform 0.3s;
}

.faq details[open] summary::after {
  transform: rotate(90deg);
}

.faq p {
  padding: 0 1rem 1rem;
  color: #333;
}

/* VENTAJAS */
.ventaja-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.ventaja-grid div {
  flex: 1 1 250px;
  background-color: white;
  padding: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* COLABORADORES */
.logo-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem;
}

.logo-grid img {
  max-height: 60px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.logo-grid img:hover {
  filter: none;
}

/* FOOTER */
footer {
  background: linear-gradient(to bottom right, #0d8928, #b4d53c);
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Banner de Cookies */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(62, 142, 65, 0.95);
  color: white;
  padding: 0.2rem;
  text-align: center;
  font-size: 0.95rem;
  z-index: 10000;
}

#cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

#cookie-banner button {
  margin-left: 1rem;
  padding: 0.4rem 0.8rem;
  background: white;
  color: #3e8e41;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Modal de Aviso Legal */
.modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  color: #333;
  padding: 1.5rem;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  text-align: left;
  position: relative;
}

.close-legal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #3e8e41;
}



.pedido-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #28a745; /* verde */
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.pedido-btn:hover {
  background: #218838; /* verde más oscuro */
}
