* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 20px;
  background: #f2f2f2;
}

/* Removes blue and prevents color change after clicking */
a, a:visited, a:hover, a:active {
    color: inherit; /* Takes the color of the parent text */
    text-decoration: none; /* Optional: also removes the underline */
}


/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 40px;
}

.logo {
  font-weight: 500;
}

/* FILTERS */
.filters {
  display: flex;
  gap: 15px;
}

.filter {
  background: transparent;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 25px;
  transition: 0.2s;
}

.filter.active,
.filter:hover {
  background: #33333342;
}

/* MENU #F6FF00 */
.menu {
  display: flex;
  gap: 20px;
}

.menu-item {
  text-decoration: none;
  color: black;
  padding: 5px 12px;
  border-radius: 25px;
}

/* SOLO ACTIVO */
.menu-item.active {
  background: #33333342;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 20px 40px;
}

/* CARD */
.card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px;
}

.card img {
  width: 100%;
  display: block;
  transition: 0.4s;
}

/* TITLE */
.card .title {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 25px;
  transition: 0.2s;
}

/* hover en texto */
.card .title {
  background: #ffffff77;
}

/* hover imagen blanco y negro */
.card:hover img {
  filter: grayscale(100%);
}

/* RESPONSIVE */
@media (max-width: 1000px) {

  .filters {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .header {
    padding: 20px;
  }
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
}

.footer a {
  text-decoration: none;
  color: black;
  padding: 5px 12px;
  border-radius: 25px;
  transition: 0.2s;
}

/* mismo hover que el resto */
.footer a:hover {
  background: #333333;
}

@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

.video-fake {
  position: relative;
}

.video-fake img {
  width: 100%;
  border-radius: 10px;
}

.play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  background: #ffffffbd;
  padding: 10px 20px;
  border-radius: 50%;
}

/* MODAL */
.modal {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

/* CONTENIDO */
.modal-content {
  background: #f2f2f2;
  padding: 40px;
  border-radius: 10px;
  position: relative;
  max-width: 400px;
  width: 90%;
  text-align: left;
}

/* BOTON CERRAR */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}