/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
}

/* CONTENEDOR GENERAL */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

/* HEADER */
.header {
  background: #00539C;
  padding: 1rem 0;
  color: #fff;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav a {
  color: white;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* HERO */
.hero {
position: relative;
  height: auto; /* ← se ajusta a la imagen */
}

.hero-img {
width: 100%;
  height: 20%; /* ← Muy importante */
  object-fit: contain; /* ← muestra TODO sin recortes */
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  text-shadow: 0px 3px 6px rgba(0,0,0,0.5);
}

.hero-text h1 {
  font-size: 3rem;
}

.btn-primary {
  background: #00539C;
  color: white;
  padding: 0.8rem 1.5rem;
  display: inline-block;
  margin-top: 0.8rem;
  border-radius: 4px;
}

/* CATEGORÍAS */
.categorias h2 {
  text-align: center;
  margin: 2rem 0;
  font-size: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card img {
  border-radius: 5px;
}

.card h3 {
  text-align: center;
  margin-top: 1rem;
}

/* PROMOCIÓN */
.promo {
  background: #fafafa;
  padding: 2rem 0;
}

.promo-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.promo-text h2 {
  margin-bottom: 1rem;
}

/* FOOTER */
.footer {
  background: #0d0d0d;
  color: #ccc;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2rem;
}

.footer a {
  color: #ccc;
}

.copy {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media(max-width: 768px) {
  .nav ul {
    flex-direction: column;
    background: #003d73;
    padding: 1rem;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    display: none;
  }

  .nav.nav-open ul {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .promo-content {
    flex-direction: column;
  }
}
