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

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  background-color: #f8f8f8;
  color: #222;
}

/* ===== HEADER ===== */
header {
  background-color: #111;
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-img {
  width: 140px;
  filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

/* ===== HERO ===== */
.hero {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

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

@media (max-width: 768px) {
  .hero {
    height: 180px;
  }
}

/* ===== MAIN ===== */
main {
  padding: 60px 20px;
}

/* ===== MODO LOCAL ===== */
.oculto {
  display: none;
}

.modo-local {
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 24px;
  border: 1px solid #e6d7d0;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff7f2, #ffffff);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.modo-local-texto {
  margin-bottom: 16px;
  color: #4a403c;
  line-height: 1.6;
}

.modo-local-ayuda {
  color: #6a5a53;
  line-height: 1.6;
}

/* ===== CATEGORÍAS ===== */
#catalogo.activo {
  margin-top: 60px;
  padding-top: 40px;
  position: relative;
}

#catalogo.activo::before {
  content: "";
  width: 80px;
  height: 3px;
  background: #c40000;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.titulo-categoria {
  text-align: center;
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 30px;
  font-weight: 600;
  letter-spacing: 1px;
}

.categorias {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.categorias button {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI Emoji",
    "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  padding: 16px 35px;
  width: 300px;
  background: linear-gradient(45deg, #7a0000, #c40000);
  color: white;
  border: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.categorias button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.categorias button:active {
  transform: scale(0.96);
}

.categorias button.activo {
  background: black;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ===== VERSION WEB ===== */
@media (min-width: 992px) {
  .categorias {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .categorias button {
    width: auto;
    min-width: 220px;
  }
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding: 0 40px;
}

.grid.activo {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #eee;
}

/* ===== CARD ===== */
.card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  animation: fadeIn 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.card-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card-body p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.price {
  font-size: 18px;
  font-weight: 700;
  color: #c40000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FOOTER ===== */
footer {
  background-color: #111;
  color: white;
  text-align: center;
  padding: 25px;
  margin-top: 25px;
  font-size: 14px;
  padding-bottom: 120px;
}

footer a {
  color: #c40000;
  text-decoration: none;
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .logo {
    font-size: 36px;
  }

  .hero {
    height: 280px;
  }

  .hero-text h2 {
    font-size: 24px;
  }

  .categorias button {
    width: 90%;
  }

  .grid {
    padding: 0 20px;
  }
}

/* ===== WHATSAPP ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  z-index: 999;
  animation: pulse 2s infinite;
}

.whatsapp-btn img {
  width: 22px;
  height: 22px;
}

.whatsapp-btn:hover {
  background: #1ebe5d;
  transform: scale(1.05);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ===== CTA ===== */
.catalogo-cta {
  text-align: center;
  margin: 40px 0;
}

.btn-catalogo {
  background: #111;
  color: white;
  padding: 14px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-catalogo:hover {
  background: #c40000;
}
