/* RESET GENERAL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding-top: 80px; /* Espacio para el header fijo */
  background-color: #fdfbf7; /* Beige claro */
  color: #333;
}

/* HEADER SUPERIOR */
header {
  background-color: #f5f0e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  border-bottom: 1px solid #ccc;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.logo-titulo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.titulo {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
}

.logo {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}

nav {
  display: flex;
  align-items: center;
}

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

nav li {
  display: inline;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #8b7e6b;
}

/* TÍTULOS GENERALES */
h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

h4 {
  font-size: 18px;
  margin-top: 10px;
  font-weight: bold;
}

/* CUADRO IMAGENES */
.cuadro-imagen {
  width: 280px;
  height: 280px;
  overflow: hidden;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  box-sizing: border-box;
}

.cuadro-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cuadro-imagen.carrusel {
  position: relative;
  width: 280px;
  height: 280px;
  overflow: hidden;
  border-radius: 8px;
}

.cuadro-imagen.carrusel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: deslizar 6s infinite;
  transition: opacity 1s ease-in-out;
}

.cuadro-imagen.carrusel img:nth-child(1) {
  animation-delay: 0s;
  opacity: 1;
}

.cuadro-imagen.carrusel img:nth-child(2) {
  animation-delay: 2s;
}

@keyframes deslizar {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* PÁRRAFOS GENERALES */
p {
  font-size: 15px;
  line-height: 1.6;
}

/* SECCIÓN DE BIENVENIDA */
.bienvenida {
  margin-top: 20px;
  text-align: center;
  padding: 40px 20px;
  background-color: #fdfbf7;
  border-bottom: 1px solid #eee;
}

.bienvenida p {
  max-width: 600px;
  margin: auto;
}

/* SECCIÓN DE CÓMO FUNCIONA */
.como-funciona {
  background-color: #fdfbf7;
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.como-funciona ul {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.como-funciona ul li {
  margin-bottom: 10px;
  font-size: 15px;
}

.como-funciona .gracias {
  font-style: italic;
  margin-top: 15px;
}

/* SECCIÓN DE PRODUCTOS */
section {
  scroll-margin-top: 80px;
}

.productos {
  padding: 30px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.producto {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease-in-out;
}

.producto:hover {
  transform: translateY(-3px);
}

.producto img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.producto p {
  font-size: 14px;
  color: #777;
}

.producto a,
.producto .btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #d6cfc2;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  min-width: 100px;
  text-align: center;
}

.producto a:hover,
.producto .btn:hover {
  background-color: #bfb6a8;
}

/* SECCIÓN DE CONTACTO */
.contacto {
  background-color: #f5f0e6;
  padding: 40px 20px;
  text-align: center;
}

.contacto p {
  font-size: 15px;
  line-height: 1.6;
}

/* CARRITO */
.lista-carrito {
  list-style: none;
  padding: 0;
}

.item-carrito {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.producto-info {
  display: flex;
  align-items: center;
}

.miniatura {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 6px;
}

.detalle {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eliminar-producto {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #b00;
}

/* PIE DE PÁGINA */
footer {
  background-color: #f5f0e6;
  text-align: center;
  padding: 15px;
  font-size: 14px;
  border-top: 1px solid #ddd;
}

/* RESPONSIVE */
.menu-icon {
  display: none;
  font-size: 28px;
  cursor: pointer;
  margin-left: auto;
  padding: 10px;
}

.menu-toggle {
  display: none;
}

@media (max-width: 850px) {
  nav ul {
    display: none;
    flex-direction: column;
    background-color: #f5f0e6;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 1000;
  }

  .carrito-icono {
    position: static;
    font-size: 20px;
    margin-left: auto;
    margin-right: 10px;
  }

  .header {
    display: flex;
    align-items: center;
  }

  .menu-toggle:checked + .menu-icon + nav ul {
    display: flex;
  }

  .menu-icon {
    display: block;
  }

  .menu {
    text-align: center;
    font-size: 12px;
  }


  .titulo {
    font-size: 13px;
  }

  .logo-titulo {
    flex-direction: row;
    align-items: center;
    flex: 1;
  }

  /* Productos */
.producto {
  width: 100%;
  box-sizing: border-box;
  padding: 5px;
}

.cuadro-imagen {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  box-sizing: border-box;
}

.cuadro-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ajustes del texto */
.producto h4 {
  font-size: 14px !important;
}

.producto p {
  font-size: 12px !important;
}

.producto .btn,
.producto a {
  font-size: 12px;
  padding: 6px 10px;
  min-width: auto;
}

/* Galería: una sola columna en todas las pantallas */
.galeria {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px;
  box-sizing: border-box;
}


