* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: Arial, sans-serif;
    background-image: url('../Public/imagenes/fondo.jpg');
    background-size: cover;
    background-position: center;
  }
  
  .search-container {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 10px;
    z-index: 1000;
    width: 90%;
    max-width: 600px;
  }
  
  .top-image {
    max-width: 600px;
    width: 100%;
    margin-bottom: 20px;
  }
  
  .search-container h1 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  .search-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
  }
  
  .search-input {
    padding: 10px;
    border: 2px solid #333;
    border-radius: 20px 0 0 20px;
    outline: none;
    width: 250px;
    background-color: rgba(255, 255, 255, 0.7);
  }
  
  .search-button {
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-size: 1.2em;
  }
  
  .error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 10px;
    display: none;
  }

  #resultados-container {
    display: none;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    max-width: 90%;
    width: 100%;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  @media (max-width: 768px) {
    .search-container {
      width: 95%;
    }
    #resultados-container {
      max-height: 500px;
      margin-top: 10px;
    }
  }
  
  #resultados-container ul {
    margin: 0;
    padding: 0;
  }
  
  #resultados-container li {
    margin-bottom: 10px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
  }
  
  /* Estilos para las tarjetas de resultados */
  .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    text-align: center;
    width: 100%;
  }
  
  .card h3 {
    color: #333;
    margin-bottom: 5px;
  }
  
  .card p {
    margin: 5px 0;
  }
  
  .card button {
    margin-top: 10px;
    padding: 10px 15px;
    border: none;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
  }
  
  .card button:hover {
    background-color: #0056b3;
  }
  