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

html, body {
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #111;
  overflow-x: hidden;
}

/* HEADER */
.top-header {
  background: linear-gradient(90deg, #0033a0, #0056ff);
  color: white;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 90px;
}

/* NAV */
.nav-container {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  position: relative;
  transition: 0.3s;
}

.nav-menu a:hover {
  color: #ffd500;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #ffd500;
  transition: 0.3s;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* SEARCH */
.search {
  padding: 10px 14px;
  border-radius: 25px;
  border: none;
  font-size: 14px;
  width: 220px;
  outline: none;
}

/* WHATSAPP */
.whatsapp-header {
  background: #25d366;
  color: white;
  padding: 10px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.whatsapp-header:hover {
  background: #1ebe5d;
}

/* HERO */
.hero {
  position: relative;
  height: 650px;
  background-image: url("fondo3.JPG");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

.hero * {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.hero p {
  font-size: 16px;
}

/* PRODUCTS */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  padding: 40px;
}

.product-card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  text-align: center;
}

.product-img {
  font-size: 58px;
  margin-bottom: 15px;
}

.product-card p {
  color: #666;
}

.product-card strong {
  display: block;
  margin: 15px 0;
  font-size: 20px;
}

.product-card a {
  display: block;
  background: #25d366;
  color: white;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
}

/* ========================= */
/* 📱 RESPONSIVE */
/* ========================= */

@media (max-width: 900px) {
  .top-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    height: auto;
  }

  .logo img {
    height: 60px;
  }

  .nav-container {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .nav-menu {
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    gap: 18px;
    padding: 6px 0;
  }

  .search {
    width: 85%;
    max-width: 400px;
  }

  .whatsapp-header {
    width: 85%;
    max-width: 400px;
    text-align: center;
  }

  .hero {
    height: 480px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 15px;
  }

  .products {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 45px;
  }

  .nav-menu a {
    font-size: 15px;
  }

  .search {
    height: 42px;
    font-size: 14px;
  }

  .whatsapp-header {
    padding: 12px;
    font-size: 15px;
  }

  .hero {
    height: 400px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 14px;
  }
}