* {
  margin: 0;
  padding: 0;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 14%;
  display: flex;
  justify-content: space-around;
  transition: 0.7s;
  padding: 30px 20px;
  z-index: 100;
  background: #99979750;
}

header.abajo {
  background: #ffffff;
  padding: 15px 20px;
}
.logo {
  background-image: url("images/Diseño\ sin\ título\ \(98\).png");
  background-size: contain;
  background-repeat: no-repeat;
  width: 10px;
  height: 175px;
  padding: 0% 40%;
  margin-top: 29px;
}
nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

header ul {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

header ul li {
  list-style: none;
}

header ul li a {
  position: relative;
  font-family: helvetica;
  margin: 0 15px;
  text-decoration: none;
  color: #ffffff;
  letter-spacing: 2px;
  font-weight: 600;
  transition: 0.7s;
}

header ul li a:hover {
  color: #08fc51; /* Change color on hover */
  transform: scaleX(1);
}
.zona1 {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url(cat.jpg);
  background: url();
  background-size: cover;
  background-position: center center;
}
header.abajo .logo,
header.abajo ul li a {
  color: #000;
  transition: color 0.3s ease;
}
header.abajo .logo:hover,
header.abajo ul li a:hover {
  color: #08fc51; /* Color de texto al pasar el cursor */
}
input[type="checkbox"] {
  display: none;
  position: absolute;
  top: -9999px;
  left: -9999px;
}

@keyframes runningTime {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* Estilos para pantallas grandes */
@media (min-width: 768px) {
  .menu {
    flex-direction: row;
  }

  .bar-btn {
    display: none;
  }
  .close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    display: none;
  }
}

/* Estilos para pantallas pequeñas (móviles y tablets) */
@media (max-width: 767px) {
  .header {
    display: none;
  }
  .logo {
    display: none; /* Oculta el logo en móviles */
  }
  .menu {
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #f0f0f0;
    text-align: center;
    padding-top: 100px;
    display: none;
  }

  .bar-btn {
    position: fixed;
    bottom: 20px; /* Margen inferior */
    left: 20px; /* Margen izquierdo */
    z-index: 999999; /* Por encima del menú y otros elementos */
    /* ... otros estilos para móviles ... */
    /* Estilos adicionales para el botón flotante */
    display: inline-block; /* Asegura que el botón se comporte como un elemento en línea */
    padding: 10px 20px; /* Ajusta el relleno para el tamaño del botón */
    background-color: #23ec5f; /* Color de fondo (puedes personalizarlo) */
    color: #fff; /* Color del texto */
    border-radius: 5px; /* Bordes redondeados */
    text-decoration: none; /* Elimina el subrayado si es un enlace */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Sombra para dar efecto flotante */
  }
  .menu li {
    margin: 20px 0;
  }

  #check:checked ~ .menu {
    display: block;
  }

  #check:checked ~ .bar-btn .close-btn {
    display: block;
    position: absolute;
    top: 10px; /* Ajusta esta posición según tu diseño */
    right: 10px; /* Ajusta esta posición según tu diseño */
  }

  #check:checked ~ .bar-btn .fas.fa-bars {
    display: none;
  }

  /* Asegúrate de que el botón de cierre esté oculto inicialmente */
  .close-btn {
    display: none;
    position: absolute;
    top: 50px;
    right: 5px;
    width: 50px;
    height: 50px;
    line-height: 20px;
    text-align: center;
    font-size: 18px;
    color: #333;
    background-color: none;
    padding: -10px 20px;
  }
}
