header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

header #searchContainer {
    width: 100%;
    max-width: 100vw;
    /* Nueva línea */
    background-color: #fff;
    transition: background-color 1s ease, color 1s ease;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;

}


/* Título y subtítulo */
#titleContainer {
    text-align: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

#titleContainer h1 {
    font-size: 1.4rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#titleContainer p {
    margin: 4px 0 12px;
    font-size: 0.9rem;
    color: #666;
    transition: background-color 1s ease, color 1s ease;

}

/* Contenedor de búsqueda */
.search-wrapper {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
}



.search-wrapper input {
    width: 100%;
    height: 100%;
    font-size: 1.5rem;
    border: 1px solid #ced4da;
    border-radius: 20px;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: background-color 1s ease, color 1s ease;

    transition: all 0.3s ease;
    padding-left: 1rem;
}

.search-wrapper input:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
}

.search-wrapper input::placeholder {
    color: #888;
    transition: background-color 1s ease, color 1s ease;

    margin-left: 1rem;
}

body.dark-mode header #searchContainer {
    background-color: #343a40;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode #titleContainer h1 {
    color: #007bff;
}

body.dark-mode #titleContainer p {
    color: #ccc;
}

body.dark-mode .search-wrapper input {
    background-color: #495057;
    color: #f8f9fa;
    border: 1px solid #6c757d;
}

body.dark-mode .search-wrapper input::placeholder {
    color: #ccc;
}