:root {
  --verde: #4CAF50;
  --celeste: #4FC3F7;
  --amarillo: #FFEB3B;
  --fondo: #f9f9f9;
  --texto: #222;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  background: var(--fondo);
  color: var(--texto);
}

/* --------------------------- HEADER --------------------------- */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-bottom: 3px solid var(--verde);
  padding: 10px 20px;
  position: relative;
}

.logo img {
  height: 65px;
  width: auto;
}

.menu-toggle {
  display: none;
  font-size: 32px;
  background: none;
  border: none;
  color: var(--verde);
  cursor: pointer;
  transition: color 0.3s;
}

.menu-toggle:hover {
  color: var(--celeste);
}

nav.menu {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 15px;
  background: white;
  transition: all 0.3s ease;
  padding: 10px 0;
}

nav.menu a {
  display: inline-block;
  text-decoration: none;
  color: var(--texto);
  font-weight: bold;
  padding: 14px 24px;
  border-radius: 12px;
  border: 3px solid var(--verde);
  background: linear-gradient(135deg, var(--celeste), var(--amarillo));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  font-size: 1em;
  transition: all 0.3s ease;
}

nav.menu a:hover {
  background: var(--verde);
  color: white;
  transform: scale(1.05);
}

/* --------------------------- IMAGEN PRINCIPAL --------------------------- */

.hero {
  width: 100%;
  max-width: 1200px; /* ajusta el tamaño máximo */
  margin: 40px auto;  /* centrado con espacio arriba y abajo */
  border-radius: 15px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.hero img:hover {
  transform: scale(1.03);
}

/* --------------------------- CONTENEDOR --------------------------- */

.contenedor {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  padding: 40px 20px;
}

/* --------------------------- CATEGORÍAS --------------------------- */

.categoria {
  text-align: center;
  background: #ffffff;
  border: 4px solid var(--verde);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  max-width: 700px;
  margin: 0 auto;
}

.categoria:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.categoria h2 {
  background: linear-gradient(90deg, var(--verde), var(--celeste));
  color: white;
  padding: 15px;
  font-size: 1.6em;
  letter-spacing: 1px;
}

.categoria img {
  width: 100%;
  height: auto;
  border-bottom: 5px solid var(--amarillo);
}

.boton {
  display: inline-block;
  background: var(--amarillo);
  color: #333;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: bold;
  margin: 20px 0 25px;
  font-size: 1.1em;
  transition: all 0.3s ease;
}

.boton:hover {
  background: var(--verde);
  color: #fff;
}

/* --------------------------- FOOTER --------------------------- */

footer {
  background: var(--celeste);
  color: #000;
  font-size: 11px;
  text-align: center;
  padding: 20px;
  line-height: 1.4em;
}

/* --------------------------- MEDIA QUERIES --------------------------- */

@media (max-width: 700px) {
  .menu-toggle {
    display: block;
  }

  nav.menu {
    display: none;
    flex-direction: column;
    background: white;
    border-top: 3px solid var(--verde);
    padding: 15px;
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    z-index: 10;
  }

  nav.menu.active {
    display: flex;
  }

  nav.menu a {
    font-size: 1.1em;
    margin: 8px 0;
    border-width: 2px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 700px) {
  .contenedor {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contenedor {
    grid-template-columns: repeat(3, 1fr);
  }
}
