/* Botón Hamburguesa */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 45px;
  height: 25px;
  cursor: pointer;
  top: 1px;
  right: 1px;


}

.logo-size-fonts-movile {
  display: none;
}


.hamburger-menu .bar {
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  transition: all 0.3s;
}

/* Menú oculto (fuera de pantalla inicialmente) */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /* Ocupa el 100% del viewport */
  background-color: rgba(0, 0, 0, 1);
  /* Fondo oscuro */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  /* Deshabilita la interacción cuando el menú está cerrado */
  z-index: 999;
  color: white;
}

/* Estilo del contenido del menú */
.menu ul {
  list-style: none;
  text-align: center;
}

.menu ul li {
  margin: 20px 0;
}

.menu ul li a {
  color: white;
  font-size: 2rem;
  text-decoration: none;
  transition: color 0.3s;
}

.menu ul li a:hover {
  color: #f0a500;
}

/* cuando quieras mostrar el menú */
#menu.active {
  opacity: 1;
  pointer-events: auto;
}

/* Cuando el menú está abierto */
.menu.open {
  opacity: 1;
  pointer-events: all;
  /* Habilita la interacción cuando está abierto */
}

/* Animación del botón hamburguesa */
.hamburger-menu.open .bar:nth-child(1) {
  transform: translateY(8.3px) rotate(45deg);
}

.hamburger-menu.open .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.open .bar:nth-child(3) {
  transform: translateY(-8.3px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
  /* Bloquea el scroll cuando el menú está abierto */
}


.menu-news-card-caption {
  color: #ffffff;
  font-size: 2rem;
  font-weight: bold;
  margin: 10px;
  text-align: center;
}







/* ocultar scroll en navegadores modernos */
.menu-flex::-webkit-scrollbar {
  width: 8px;
}

.menu-flex::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

/* Card base */
.menu-news-card {
  margin: 1rem 0 1rem 0;
  width: 100%;
  /*max-width: 320px;*/
  border-radius: 10px;
  overflow: hidden;
  background: #2b2b2b;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: Arial, sans-serif;
  transition: transform .25s ease;
}

.menu-news-card:hover {
  transform: translateY(-4px);
}

/* Imagen */
.menu-news-card .thumb {
  margin: 0;
  width: 100%;
  height: auto;
  height: 18rem;
  overflow: hidden;
  background: #111;
}

.menu-news-card .thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .35s ease;
}

.menu-news-card:hover .thumb img {
  transform: scale(1.05);
}

/* Cuerpo */
.menu-news-card .card-body {
  padding: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.6));
}

/* Meta (fuente + tiempo) */
.menu-news-card .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #bdbdbd;
  font-size: 0.82rem;
}

.menu-news-card .meta-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

/* Título */
.menu-news-card .title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* GRID CONTENEDOR para varias cards */
.menu-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}



.title-news-card {
  font-size: 1.4rem;
  color: #ffffff;
}


.search-input {
  width: 100%;
  font-size: 16px;
  padding: 5px;
  border: 2px solid #ccc;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #1877F2;
  background-color: #f0f8ff;
  color: #333;
  outline: none;
}

.menu-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 99%;
 
}

.search-menu-movile {
  width: 97%;
  margin: 0 auto;
  padding: 1rem;
}

.article-menu-movile {
  height: 76vh;
  overflow-y: auto;
  padding-bottom: 10rem;
}


.card-category-movile {
  background-color: #df4141;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.thumb {
  display: none;
}



@media only screen and (min-width: 576px) {
  .thumb {
    display: block;
  }
  .search-menu-movile {
    width: 70%;
    margin: 0 auto;
    padding: 1rem;
  }

  .article-menu-movile {
  overflow-y: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;

}
  .menu-news-card {
    max-width: 270px;
    max-height: 50%;
  }

  .menu-flex {
    height: 100%;
  }
}

@media only screen and (min-width: 768px) {
  .search-menu-movile {
    width: 40%;
  }


    .menu-flex {
    height: 102%;
  }
}


@media only screen and (min-width: 900px) {
      .menu-flex {
    height: 94%;
  }
}

@media only screen and (min-width: 1200px) {

  .article-menu-movile{
    max-width: 1200px;
    overflow-y: hidden;
  }


  .logo-size-fonts-movile {
    display: block;
    font-size: 6.5rem;
    color: white;
    font-family: laperladigital;

  }
  .search-menu-movile {
    display: none;
  }

  .menu-flex {
    height: auto;
  }
}






.card-content-movile {
  padding: 0 1rem 1rem 1rem;
}





/* Card */
.card {
  width: 350px;
  background: #1e1e1e;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.6);
}

/* Imagen */
.card-img {
  position: relative;
}

.card-img img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: crimson;
  color: white;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
}

/* Contenido */
.card-content {
  padding: 16px;
}

.date {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 6px;
  margin-top: 0;
}

.title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 12px;
}

/* Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn {
  width: 33%;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #1d4ed8;
}

/* Iconos */
.icons i {
  margin-left: 10px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s;
}

.icons i:hover {
  color: #fff;
}








