body {
  margin: 0;
  font-family: arial;
}

/* ================= HEADER ================= */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.logo {
  font-size: 42px;
  font-family: arial;
}

.top-bar nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #000;
}

.login {
  text-align: right;
  font-size: 14px;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  background: #f4efe8;
  padding: 20px 0;
  text-align: center;
}

.hero img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.btn-hero {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #E08D3A;  /*8d2b48c;*/
  padding: 10px 25px;
  color: #fff;
  text-decoration: none;
}

/* ================= DESTACADOS ================= */
.destacados {
  background: #e2c08f;
  padding: 20px 40px 40px;
}

.destacados h2 {
  color: #fff;
  margin-bottom: 20px;
}

/* GRID PRODUCTOS */
.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, 150px);
  gap: 20px;
  justify-content: center;
}

/* FORZAR 6 EN DESKTOP GRANDE */
@media (min-width: 1200px) {
  .grid-productos {
    grid-template-columns: repeat(6, 150px);
  }
}

/* TARJETA PRODUCTO */
.producto {
  background: #ddd;
  padding: 0px;
}

/* IMAGEN PRODUCTO */
.producto img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

  /* HEADER */
  .top-bar {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    text-align: center;
  }

  .top-bar nav {
    display: flex;
    gap: 15px;
  }

  /* HERO */
  .hero img {
    max-height: 180px;
  }

  .btn-hero {
    bottom: 15px;
    padding: 8px 18px;
    font-size: 14px;
  }

  /* DESTACADOS */
  .destacados {
    padding: 20px;
  }

  .grid-productos {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .producto img {
    height: 180px;
  }
}

@media (max-width: 480px) {

  .logo {
    font-size: 22px;
  }

  .top-bar nav a {
    font-size: 14px;
  }

  .grid-productos {
    grid-template-columns: 1fr;
  }
}

/* ================= MENU HAMBURGUESA ================= */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* MOBILE MENU */
@media (max-width: 768px) {

  .hamburger {
    display: block;
  }

  .top-bar {
    flex-direction: column;
    align-items: center;
  }

  #menu {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }

  #menu a {
    padding: 10px 0;
    border-top: 1px solid #ddd;
  }

  #menu.show {
    display: flex;
  }

  .login {
    margin-top: 10px;
  }
}


.login-btn {
  background: #E08D3A;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.login-btn:hover {
  background: #FFC88A; /*333;*/
}


.modal-login {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.modal-content {
  background: #fff;
  width: 280px;
  padding: 20px;
  border-radius: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.modal-content input {
  width: 90%;
  padding: 8px;
  margin: 8px 0;
}

.modal-content button {
  width: 100%;
  padding: 10px;
  background: #E08D3A;
  color: #fff;
  border: none;
  cursor: pointer;
}

.close {
  position: absolute;
  right: 10px;
  top: 8px;
  cursor: pointer;
  font-size: 20px;
}
