/* Contenedor del buscador - 100% ancho */
.buscador {
    display: flex;
    position: sticky;
    top: 100px;
    height: 50px;
    z-index: 1000;
    background-color: #039;
    padding: 5px;
    padding-right: 20px;
    padding-bottom: 10px;
    justify-content: end;
}

.search-box {
    display: flex;
    align-items: left;
    width: 20%;
    height: 25px;
    display: flex;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #444;
    background: #fcfcfc;
    transition: border-color 0.3s;
}

.search-box:focus-within {
    border-color: #FC0;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    background: transparent;
    color: #039;
    outline: none;
    width: 100%;
}

.search-box input::placeholder {
    color: #888;
}

.search-box button {
    border: none;
    background: #039;
    color: #FC0;
    padding: 0 28px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.search-box button:hover {
    background: #FC0;
    color: #039;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.modal-content-search {
    background: white;
    width: 100%;
    max-width: 900px;
    border-radius: 16px;
    margin-top: 40px;
    padding: 24px;
    position: relative;
    border: 1px solid #333;
    max-height: 85vh;
    overflow-y: hidden;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
}

.modal-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 16px;
    padding-right: 40px;
}

/* Estilos para los resultados de Google CSE */
.gsc-control-cse {
    background: transparent !important;
    border: none !important;
}

.gsc-input-box {
    display: none !important; /* Ocultamos el input duplicado de Google */
}

.gsc-results-wrapper-visible {
    max-height: 60vh;
    overflow-y: auto;
}

