body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 100;
  background-color: #002D5D;
  margin: 0;
}

a {
  text-decoration: none;
}

/*BARRA SUPERIOR*/

.barra-superior {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 15px;
  background-color: #001B30;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.barra-superior .logo a img {
  width: auto;
  max-width: 200px;
  height: 32px;
}

.barra-superior .acciones {
  display: flex;
  gap: 6px;
  align-items: center;
}

/*BOTONES (Chat y Redes Sociales)*/

.chat,
.redes {
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat {
  background-color: #001B30;
}

.chat img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.redes {
  background-color: #ffffff;
}

.redes img {
  width: 33px;
  height: 33px;
  object-fit: contain;
}

/*ENCABEZADO PRINCIPAL*/

header {
  background-image: url("img/fondo_opacidad.png");
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 15px;
}

/*BUSCADOR*/

.busqueda-contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 15px; 
  box-sizing: border-box;
}


.busqueda-contenedor img {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 100%;
  height: auto;
}

.buscador {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
  box-sizing: border-box;
}


.buscador input {
  width: 100%;
  max-width: 500px; 
  padding: 0.5rem 1rem 0.5rem 3rem;
  border-radius: 5px;
  border: none;
  font-size: 1rem;
  box-sizing: border-box;
  text-align: left;
  margin: 0 auto;
  display: block;
}


.buscador i {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #002D5D;
  pointer-events: none;
}

/*CATEGORÍAS*/

#categorias {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 30px;
  padding: 0.5rem;
}

.categoria {
  flex: 1 1 calc(50% - 1rem);
  text-align: center;
  background-color: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.categoria:hover,
.categoria.activa {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FBBE00;
  border-color: #ccc;
}

/*CONTENIDO PRINCIPAL*/

main,
#contenedor-articulos {
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.articulo-link {
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
}

.articulo {
  flex: 1;
  background: #001B30;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 50px;
}

.articulo h3 {
  margin: 0;
  padding: 0;
  color: #FBBE00;
}

.articulo-link:hover .articulo {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #0b1822;
}

/*CENTRO DE CONTENIDO*/

.centro {
  flex: 1 1 100%;
  text-align: center;
  margin-top: 20px;
}

.centro h1 {
  margin: 0 0 10px;
}


@media (min-width: 738px) {
  .barra-superior .logo a img {
    max-width: 300px;
    height: 30px;
  }

  .chat,
  .redes {
    width: 25px;
    height: 25px;
  }

  .busqueda-contenedor {
    max-width: 500px;
  }
  

  #categorias {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .categoria {
    flex: none;
    padding: 0.5rem 1rem;
  }

  main,
  #contenedor-articulos {
    grid-template-columns: repeat(3, 1fr);
    padding: 2rem;
  }














  
}
