/* ===========================
   ESTILOS GLOBALES RESPONSIVE
   =========================== */

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ---- Header ---- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: linear-gradient(90deg, #0b2740, #1678b3);
  color: #fff;
}

header img {
  max-width: 160px;
  height: auto;
}

/* ---- Banner principal ---- */
.banner {
  width: 100%;
  height: auto;
  text-align: center;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ---- Títulos y texto ---- */
h1, h2, h3 {
  font-weight: 700;
  text-align: center;
  color: #0d47a1;
}

p {
  text-align: center;
  margin: 10px 0;
}

/* ---- Categorías / Tarjetas ---- */
.categorias-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 20px;
}

.categoria-card {
  background: linear-gradient(145deg, #8b98e2, #e6e9d8);
  border-radius: 20px;
  width: 230px;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.categoria-card:hover {
  transform: scale(1.05);
}

.categoria-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 20px 20px 0 0;
}

/* ---- BOTONES ---- */
.btn {
  display: inline-block;
  text-decoration: none;
  background: #1565c0;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 500;
  transition: 0.3s;
}

.btn:hover {
  background: #0d47a1;
}

/* ===========================
   MEDIA QUERIES
   =========================== */

/* 📱 Celulares */
@media (max-width: 576px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .banner img {
    height: auto;
    border-radius: 0;
  }

  .categorias-container {
    flex-direction: column;
    align-items: center;
  }

  .categoria-card {
    width: 90%;
  }

  h1, h2 {
    font-size: 1.4rem;
  }
}

/* 💻 Tablets */
@media (min-width: 577px) and (max-width: 991px) {
  .categoria-card {
    width: 45%;
  }

  h1, h2 {
    font-size: 1.8rem;
  }
}

/* 🖥️ PC */
@media (min-width: 992px) {
  .categoria-card {
    width: 22%;
  }

  h1, h2 {
    font-size: 2.2rem;
  }
}
