/* COLORES PRINCIPALES */
:root {
  --azul: #0033A0;
  --amarillo: #FFCC00;
  --beige: #f9f6f0;
}

/* FUENTE GLOBAL */
@import url('https://fonts.googleapis.com/css2?family=Rye&display=swap');

body {
  margin: 0;
  font-family: 'Rye', serif;
  background-color: #f2dd20;
  color: #222;
}

/* ======================
   HEADER Y NAVEGACIÓN
   ====================== */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--azul);
  padding: 10px 20px;
  flex-wrap: wrap;
}

.logo-container {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.logo {
  max-width: 200px;
  height: auto;
  width: 100%;
}

.navbar {
  flex: 2 1 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: var(--amarillo);
}

/* ÍCONO DE MENÚ PARA MÓVIL */
.menu-icon {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

/* ======================
   BARRA DE BÚSQUEDA
   ====================== */

.search-bar {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 4px;
  overflow: hidden;
  margin-left: 20px;
  height: 35px;
}

.search-bar input {
  border: none;
  padding: 5px 10px;
  font-size: 14px;
  outline: none;
  width: 160px;
  font-family: 'Georgia', serif;
}

.search-bar button {
  background-color: var(--amarillo);
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 16px;
  font-family: 'Georgia', serif;
}

/* ======================
   RESPONSIVE
   ====================== */

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
    padding: 10px 0;
  }

  .search-bar {
    flex: 1;
    display: flex;
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    margin-left: 10px;
    height: 35px;
  }

  .search-bar input {
    width: 100%;
    padding: 5px 10px;
    border: none;
    font-family: 'Georgia', serif;
  }

  .search-bar button {
    background-color: var(--amarillo);
    border: none;
    padding: 5px 10px;
    cursor: pointer;
  }

  .menu-icon {
    display: block;
    font-size: 28px;
    color: white;
    cursor: pointer;
    padding: 0 20px;
  }

  #menu-toggle {
    display: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--azul);
    width: 100%;
    padding: 10px 0;
  }

  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    margin: 10px 0;
  }

  .nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
  }
}

