main {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Upper Half */
.upper-half {
    background-image: url('../img/home-portada.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search Widget */
.search-widget {
    /*max-width: 500px;*/
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    /*border: 2px solid white;*/
    z-index: 2;
    margin: 20px 0;
    transform: translate(0px, 85px);
}

/* Contenedor Widget */
.contenedor-widget {
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
    align-items: flex-end;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 18px;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: space-around;
    width: 40%;
    background-color: #ffffff00;
}

.tab {
    background-color: #f0f0f0;
    padding: 10px 20px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    transition: background-color 0.3s;
    border: none;
    border-radius: 10px 10px 0 0;
}

.tab.active {
    background-color: #ff6600;
    border-bottom: 2px solid #ff6600;
    color: white;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 5px 0;
    background-color: white;
    border-radius: 10px;
}

.search-form button {
    padding: 10px;
    border-radius: 10px;
    font-size: 1em;
    background-color: #003366;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 10px;
    width: 100%;
}

.search-form button:hover {
    background-color: #002244;
}

/* Custom Select Container */
.select-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px;
    position: relative;
    cursor: pointer;
}

.select-container label {
    font-size: 1.2em;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
    pointer-events: none; /* Permite que el clic en el label no interfiera */
}

.select-box {
    position: relative;
}

.select-box .selected {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    font-size: 1em;
    color: #333;
    user-select: none;
}

.select-box .options-container {
    position: absolute;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: max-height 0.3s ease-in-out;
    z-index: 10;
}

.select-box.active .options-container {
    max-height: 200px; /* Ajusta la altura máxima de la lista desplegable */
}

.option {
    padding: 10px;
    font-size: 1em;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s;
}

.option:hover {
    background-color: #f0f0f0;
}

/* Lower Half */
.lower-half {
    background-color: #ededed;
    padding: 20px;
}

.lower-half-contenedor {
    color: black;
    overflow-y: auto;
}

.border-right {
    border-right: 2px solid rgb(226, 226, 226);
}
/* Responsive Adjustments */
@media (max-width: 768px) {
    .upper-half {
        height: auto;
        padding: 20px;
    }
    
    .search-widget {
        max-width: 100%;
        width: 90%;
        transform: translate(0px, 0px);
    }

    .tabs{
        width: auto;
    }

    .search-form {
        flex-direction: column;
        align-items: center;
    }

    .search-form .select-container,
    .search-form button {
        width: 90%;
        margin: 5px 0;
    }

    .border-right {
        border-right: none;
    }
}



/* Contenedor de la selección personalizada */
.custom-select {
    position: relative;
    width: 100%;
    user-select: none;
    cursor: pointer;
}

.custom-select .selected-option {
    padding: 10px;
    /* border: 1px solid #ccc; */
    border-radius: 5px;
    /* background-color: #f9f9f9; */
    font-size: 1em;
    color: #4b4b4ba3;
}

.custom-select .options {
    position: absolute;
    width: 100%;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 1000;
}

.custom-select.active .options {
    max-height: 150px; /* Altura máxima con scroll */
    overflow-y: auto;
    z-index: 1001;
}

.custom-select .option {
    padding: 10px;
    font-size: 1em;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s;
}

.custom-select .option:hover {
    background-color: #f0f0f0;
}

/* Opcional: estilizar el scroll */
.custom-select .options::-webkit-scrollbar {
    width: 8px;
}

.custom-select .options::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

.custom-select .options::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}
