* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
}

header {
  background: #fff;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}

.logo {
  height: 100px;
  width: auto;
}

.barra-superior {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-left: auto;

}

.menu a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  transition: background 0.3s;
}

.menu a:hover {
  background: #eee;
}

/* Nueva sección para el buscador */
.buscador-section {
  background: #fff;
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
}

.buscador {
  display: flex;
  justify-content: center;
  margin: 1rem auto;
  max-width: 600px;
}

.buscador input {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 25px 0 0 25px;
  font-size: 1rem;
  outline: none;
}

.buscador button {
  padding: 0.5rem 1rem;
  border: none;
  background-color: #333;
  color: white;
  font-size: 1rem;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
}

main {
  padding: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.producto {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.producto-img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.producto .descripcion {
  font-size: 1rem;
  text-align: center;
  height: 40px;
  margin: 0.5rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.producto .precio {
  font-weight: bold;
  color: green;
  margin: 0.25rem 0;
}

.producto .super-logo {
  height: 90px;
  width:  auto;
  object-fit: contain;
  display: block;
}

.producto:hover {
  transform: scale(1.03);
  transition: transform 0.2s ease-in-out;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #eee;
  font-size: 0.9rem;
  margin-top: 2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.inicio {
  background: white;
  padding: 2rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  margin: 2rem auto;
  max-width: 600px;
}

.inicio h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1rem;
}

.inicio p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.boton {
  display: inline-block;
  background-color: #333;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.boton:hover {
  background-color: #555;
}

.sobrenosotros {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
}

.sobrenosotros h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #333;
  text-align: center;
}

.sobrenosotros p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.contacto {
  background: #fff;
  padding: 2rem;
  max-width: 600px;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.contacto h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #333;
}

.contacto p {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #555;
}

.contacto form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacto input,
.contacto textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contacto button {
  background-color: #333;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contacto button:hover {
  background-color: #555;
}

.terminos {
  max-width: 900px;
  margin: 40px auto;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

ul {
  margin-left: 20px;
  padding-left: 10px;
}

.privacidad {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem; 
  background: white; 
  border-radius: 8px; 
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

@media (max-width: 400px) {
  .menu {
    align-items: flex-start;
  }
}
