/* Header */ 
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #1180b7;
  padding: 15px 30px;
  color: white;
}

h1 {
  color: rgb(234, 230, 225);
  margin: 0;
}

h2 {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

nav {
  margin-left: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  transition: color 0.3s;
}

nav a:hover {
  color: #2cbf5d;
}

/* Body */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

section {
  padding: 40px 20px;
  margin: 0;
  padding: 0;
}

/* Portada */
#portada {
  width: 100%;
  overflow: hidden;
}

.carousel {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  width: 300%; /* 3 imágenes, 100% cada una */
  animation: slide 12s infinite;
}

.carousel-track img {
  width: 100vw; 
  height: 350px; 
  object-fit: cover;
}

#titulo-ppal {
  display: flex;
  justify-content: center;
  font-size: 5rem;
  color: darkmagenta;
  font-family: "Michroma", sans-serif;
  font-style: normal;
  margin-top: 100px;
}


.titulo {
  display: flex;
  justify-content: center;
  margin-top: 75px;
}

.descripcion-index {
  display: flex;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 100px;
}

/* en index y nosotros*/
.productos-container, .nosotros-descripcion {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Se adapta en pantallas más chicas */
  padding: 20px;
}

.prod, .review {
  flex: 1 1 300px; /* Crece, achica, base de 300px */
  max-width: 300px;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: white;
  text-align: center;
}

.prod img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

#resenias, #productos, #nosotros-descripcion {
  padding: 40px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.resenias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 20px;
}

.review {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-style: italic;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: #1180b7;
  color: white;
  text-align: center;
  padding: 20px 10px;
  margin-top: 50px;
}

footer p {
  margin: 5px 0;
}

/* Formulario */
#contacto {
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

/* Estilo general del formulario */
form {
  padding: 30px;
  border-radius: 10px;
  width: 300px; /* podés ajustar este valor */
  margin: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
}

/* Botón de enviar */
form button {
  width: 100%;
  padding: 10px;
  background-color: #d1ece9;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

/* Cambio de color al pasar el mouse */
form button:hover {
  background-color: #bce0dd;
}


/* Nosotros */
#nosotros {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem; /* espacio entre imagen y texto */
  padding: 2rem;
}

#img-nosotros img {
  max-width: 100%;
  height: auto;
  width: 400px; 
  border-radius: 10px; 
}

#nosotros-descripcion {
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Tienda */
.btn-ver-carrito {
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  display: block;
  margin-top: 30px;
  text-align: center;
}

.btn-ver-carrito a {
  background-color: rgb(17, 102, 138);
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 5px;
}

.btn-ver-carrito a:hover {
  background-color: black;
  opacity: 0.8;
}


/* Tienda */

/* Estilos generales del contenedor de productos */
.lista-productos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

/* Tarjeta individual */
.item-producto {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

.item-producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Título */
.item-producto h2 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 10px;
}

/* Precio */
.item-producto p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
}

/* Botón */
.btn-agregar-carrito {
  background-color: #a728a5;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-agregar-carrito:hover {
  background-color: #218838;
}


/* Carrito */
.titulo-carrito {
  text-align: center;
  margin-bottom: 40px;
  margin-top: 75px;
}

.contenedor-carrito {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin: auto;
}

.item-carrito {
  background-color: rgb(239, 236, 195);
  border: 1px solid #ddd;
  border-left: 5px solid #007bff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.item-carrito h3 {
  margin: 0 0 10px;
}

.item-carrito p {
  margin: 5px 0;
}

#btnVaciarCarrito, #btnFinalizarCompra {
  display: block;
  margin: 40px auto 0;
  padding: 10px 20px;
  background-color: #3540dc;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

#btnFinalizarCompra:hover {
  background-color: #39ae1e;
}

#btnVaciarCarrito:hover {
  background-color: #c82333;
}

.imagen-producto {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

