/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background-color: #ffffff;  /* crema rústico */
  color: #2e1f14;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Textura de cuero sutil (ruido + degradado) */
  /*background-image: 
    repeating-linear-gradient(45deg, rgba(74,44,27,0.02) 0px, rgba(74,44,27,0.02) 2px, transparent 2px, transparent 6px),
    radial-gradient(circle at 30% 40%, rgba(59,94,43,0.03) 0%, transparent 30%); */
} 

/* ===== HEADER ===== */
.header {
 /* background-color: #4a2c1b;  /* marrón oscuro */
  background-color: #93683c;
  color: #f0e0c8;
  padding: 1.2rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 4px solid #9bd359; /* verde oliva */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.header__contacto {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(59,94,43,0.2);
  padding: 0.3rem 1rem;
  border-radius: 30px;
}

.icono-tel {
  font-size: 1.3rem;
}

.header__titulo {
  font-size: 2.5rem;
  font-weight: normal;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #3b5e2b;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
}

/* ===== CATÁLOGO ===== */
.catalogo {
  flex: 1;
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.catalogo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem 1.5rem;
}

/* ===== TARJETA DE PRODUCTO ===== */
.producto {
  background-color: rgba(245, 230, 211, 0.7);
  backdrop-filter: blur(2px);
  border-radius: 16px 8px 16px 8px;
  overflow: hidden;
  box-shadow: 8px 8px 0 #9bd359, 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid #4a2c1b;
  transition: transform 0.2s ease;
}

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

.producto__imagen {
  width: 100%;           /* La imagen ocupa todo el ancho disponible */
  height: auto;          /* La altura se calcula automáticamente según la proporción de la imagen */
  display: block;        /* Elimina espacios fantasma debajo de la imagen */
  object-fit: contain;   /* Muestra la imagen completa sin recortar (opcional, pero refuerza el comportamiento) */
  background-color: #8b5e3c;  /* Color de fondo solo visible si la imagen tiene transparencia */
  border-bottom: 3px solid #9bd369;
}

/* Placeholder específico */
.placeholder::before {
  content: "🖼️";
  margin-right: 8px;
  font-size: 1.6rem;
}

.producto__nombre {
  font-size: 1.5rem;
  margin: 1rem 1rem 0.5rem;
  color: #4a2c1b;
  font-weight: 600;
  border-left: 5px solid #9bd369;
  padding-left: 12px;
}

.producto__descripcion {
  margin: 0 1rem 1.2rem;
  color: #3e2a1c;
  font-style: italic;
}

.producto__precio {
  margin: 0 1rem 1.2rem;
  font-size: 1.4rem;
  font-weight: bold;
  color: #3b5e2b;
  text-align: right;
  border-top: 1px dashed #4a2c1b;
  padding-top: 0.8rem;
}

/* ===== FOOTER ===== */
.footer {
  background-color: #9bd359;  /* verde oliva */
  color: #f5e6d3;
  padding: 1.8rem 2rem;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-top: 4px solid #9bd359;
  box-shadow: 0 -4px 8px rgba(0,0,0,0.1);
}

.footer__contacto {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(74,44,27,0.3);
  padding: 0.4rem 1.5rem;
  border-radius: 40px;
}

.footer__copy {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .header__titulo {
    font-size: 2rem;
    align-self: center;
  }
  
  .catalogo__grid {
    grid-template-columns: 1fr;
  }
  
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}
