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

/* ===== BASE ===== */
body {
  font-family: 'Inter', Arial, sans-serif;
  background: #f8fafb;
  color: #333;
  line-height: 1.5;
}

/* ===== HEADER ===== */
header {
  background: #fff;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  height: 70px;
  width: auto;
}

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2b7a0b;
}

.barra-superior {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.menu a {
  text-decoration: none;
  color: #2b7a0b;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.menu a:hover {
  background: #e8f5e9;
  color: #1b5e20;
}

/* ===== INICIO & DESCRIPCIÓN ===== */
.inicio, .descripcion {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin: 2rem auto;
  max-width: 800px;
}

.inicio {
  text-align: center;
}

.inicio h2, .descripcion h2 {
  font-size: 1.8rem;
  color: #2b7a0b;
  margin-bottom: 1rem;
  border-bottom: 2px solid #2b7a0b;
  padding-bottom: 5px;
}

.inicio p, .descripcion p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.descripcion ul {
  list-style: none;
  margin: 15px 0;
  padding-left: 20px;
}

.descripcion li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 30px;
  font-size: 1rem;
  line-height: 1.5;
}
.descripcion li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
}

/* ===== BOTÓN ===== */
.boton {
  background: #2b7a0b;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}
.boton:hover {
  background: #1b5e20;
  transform: scale(1.05);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 1rem;
  background: #2b7a0b;
  color: white;
  font-size: 0.9rem;
  margin-top: 2rem;
}
footer a {
  color: #c8e6c9;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* ===== ACCESIBILIDAD ===== */
.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;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  h1 {
    font-size: 1.4rem;
  }

  .inicio, .descripcion {
    padding: 1rem;
  }

  .inicio h2, .descripcion h2 {
    font-size: 1.4rem;
  }

  .menu {
    align-items: flex-start;
  }
}

/* ===== 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.6rem 1rem;
  border: 1px solid #ccc;
  border-radius: 25px 0 0 25px;
  font-size: 1rem;
  outline: none;
}

.buscador button {
  padding: 0.6rem 1rem;
  border: none;
  background-color: #2b7a0b;
  color: white;
  font-size: 1rem;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
  transition: background 0.2s ease;
}
.buscador button:hover {
  background-color: #1b5e20;
}


/* ===== PRODUCTOS ===== */
main {
  padding: 1rem;
}

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

.producto {
  background: white;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.producto:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.producto-img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.producto .descripcion {
  font-size: 1rem;
  margin: 0.5rem 0;
 
}

.producto .precio {
  font-weight: bold;
  color: #2b7a0b;
  margin: 0.25rem 0;
}

.producto .super-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  display: block;
}


/* ===== SECCIONES ===== */
.sobrenosotros, .contacto, .terminos, .privacidad {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.sobrenosotros h2, .contacto h2 {
  color: #2b7a0b;
  text-align: center;
}

.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: #2b7a0b;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
.contacto button:hover {
  background-color: #1b5e20;
}