/* Index - CSS */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    html, body {
      height: 100%;
    }
    body {
      color: #ddd;
      font-family: Roboto, helvetica, arial, sans-serif;
      display: flex;
      flex-direction: column;
	  background-repeat: no-repeat; /* Evita repetir la imagen */
	  background-size: cover; /* Ajusta el fondo para cubrir toda la pantalla */ 
      background-attachment: fixed; /* Evita que el fondo se desplace al hacer scroll */
      background-position: center; /* Centra la imagen */ 
    }
    
    /* Header en una sola fila con tres columnas */
    header {
      background-color: #1b1e24;
      padding: 10px;
      display: flex;
	  gap: 10px; /* FIX Separar menu lateral del titulo */
      align-items: center;
      justify-content: space-between;
      position: relative; /* Para ubicar el overlay del buscador */
    }

    header button {
      background-color: #444;
      color: #ddd;
      border: none;
      padding: 10px 20px;
      border-radius: 5px;
      cursor: pointer;
      font-size: 1em;
      flex-shrink: 0;
    }

	button:hover {
	  background-color: #8c8c8c;
	}	
	
	header button:hover {
	  color: #a6a6a6;
	}
	
    /* Contenedor del buscador en el centro */
    .search-container {
      flex-grow: 1;
      margin: 0 20px;
      position: relative; /* Para posicionar el overlay sin mover el layout */
    }
    .search-container input {
      width: 100%;
      padding: 8px;
      border: 1px solid #555;
      border-radius: 5px;
      background-color: #333;
      color: #ddd;
    }
    .search-container input::placeholder {
      color: #888;
    }
    /* Resultados del buscador: recuadro superpuesto */
    .search-results {
      position: absolute;
      top: 110%; /* Justo debajo del input */
      left: 0;
      right: 0;
      background-color: #333;
      border: 1px solid #444;
      border-radius: 5px;
      max-height: 200px;
      overflow-y: auto;
      z-index: 100;
      display: none;
    }
    .search-results ul {
      list-style: none;
    }
    .search-results li {
      padding: 8px;
      border-bottom: 1px solid #444;
      cursor: pointer;
    }
    .search-results li:last-child {
      border-bottom: none;
    }
    .search-results li:hover {
      background-color: #6666ff; /* Color al seleccionar los resultados en la lista */
    }
    
    /* Contenedor principal */
    main {
      flex: 1;
      max-width: 1200px;
      margin: 20px auto;
      padding: 0 20px;
      width: 100%;
    }
    
    /* Categoría */
    .category {
      margin-bottom: 30px;
      border: 1px solid #444;
      border-radius: 5px;
      overflow: hidden;
    }
    .category-header {
      background-color: #1b1e24;
      padding: 10px;
      display: flex;
	  gap: 10px;
      align-items: center;
    }
    .category-header .category-title {
      font-size: 1.5em;
    }
    
    /* Opciones */
    .options {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      padding: 10px;
      background-color: #46494e; /*#262626;*/

    }
    .option {
		color: #4E5066; /*Color texto botones*/ /*#4E5066 el de la V1*/
		text-shadow: -1px -1px 1px rgba(0, 0, 0, .1);
		background-color: #ffffff; /*Color botones*/ /* #5e6065; no esta mal*/
		border: 1px solid #444;
		border-radius: 5px;
		padding: 10px;
		font-size: 1em;
		text-align: center;
		flex: 1 1 calc(33.333% - 20px);
		cursor: pointer;
	}
	
  .option:hover {
    color: #000; /*Color*/
	background-color: #a6a6a6;
   /* transform: scale(1.2); */
	box-shadow: 2px 2px 2px grey;
}
	
	
    .option.highlight {
      background-color: #4dff4d; /* 555 */
    }
    @media (max-width: 768px) {
      .option {
        flex: 1 1 calc(50% - 20px);
      }
    }
    @media (max-width: 480px) {
      .option {
        flex: 1 1 100%;
      }
    }
    
    /* Footer */
    footer {
      position: relative;
      background-color: #1b1e24;
      padding: 10px;
      text-align: center;
    }
    .footer-text {
      position: absolute;
      left: 20px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 1em;
    }
    .footer-image {
      display: inline-block;
      width: 300px;
      height: 25px;
    }

/* CSS Para barra lateral  */

.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #1b1e24;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 20px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #f1f1f1;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}


