main section:first-of-type {
    padding-top: 60px;
}

main {
    padding-bottom: 105px;
}

h1 {
    margin-bottom: 0.85rem;
}

h1 + p {
    padding-bottom: 0.9rem;
}

/* Input buscador */
.buscador-container {
    gap: 20px;
    padding-bottom: 1.5rem;
}

#buscador {
    width: 100%;
    padding: 5px 10px 5px 52px;
    border-radius: 3px;
    outline: none;
    border: 1px solid #cecece;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    min-width: 470px;
    background-color: transparent;
    height: 50px;
    box-shadow: 1px 2px 4px 1px #b4b4b480;
    font-size: 18px;
}

.input-icon {
    position: relative;
    flex-grow: 1;
}
  
.input-icon i {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #aaa;
}
  
.input-icon input {
    padding-left: 35px;
}  
  
#buscador:focus, #buscador:focus-visible {
    border: 1px solid var(--secondary);
}

#buscador:-webkit-autofill,
#buscador:-webkit-autofill:focus {
  transition: background-color 0s 600000s, color 0s 600000s !important;
}

/* Dropdown filtro */
.btn.dropdown-toggle, .btn.dropdown-toggle:active {
    background-color: var(--secondary);
    border: none;
    /* font-size: 16px; */
    font-size: 18px;
    height: 50px;
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    transition: all 250ms ease;
}

.btn.dropdown-toggle:hover {
    background-color: #f24c56;
}

.dropdown-menu {
    border-radius: 3px;
    width: 100%;
}

.dropdown .dropdown-item {
    font-size: 18px;
    cursor: pointer;
}

.dropdown .dropdown-item:active, .dropdown .dropdown-item:hover {
    color: var(--secondary);
    background-color: #fff;
}

.botones-ordenar-container {
    display: none;
}

/* Seleccion de Filtros */
.filtros-container img {
    height: 26px;
    filter: invert(46%) sepia(62%) saturate(2726%) hue-rotate(325deg) brightness(86%) contrast(126%);
    margin-top: -1px;
}

.filtros-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filtros-container i {
    color: var(--secondary);
}

.button-filtro {
    background-color: transparent;
    border: none;
    color: var(--gris);
    padding: 4px 13px;
    font-size: 18px;
    font-weight: 400;
    white-space: nowrap;
    transition: all 200ms ease-out;
}

.button-filtro:hover {
    color: var(--secondary);
}

.button-filtro:focus {
    color: var(--secondary);
    outline: none;
}

.button-filtro.active {
    padding: 4px 13px;
    background-color: var(--secondary);
    border-radius: 3px;
    color: #ffffff;
    border: none;
}

/* Tableros Previews */
.tableros-container {
    justify-content: start;
}


@media (max-width: 1400px) {
    h1 + p {
        padding-bottom: 0.75rem;
    }

    #buscador {
        min-width: 430px;
        height: 40px;
        /* padding: 5px 10px 5px 52px; */
        font-size: 16px;
    }

    .filtros-container {
        gap: 8px;
    }

    .filtros-container img {
        margin-top: -2px;
    }

    .button-filtro, .button-filtro.active {
        font-size: 16px;
        padding: 3px 12px;
    }

    .btn.dropdown-toggle, .btn.dropdown-toggle:active {
        background-color: var(--secondary);
        border: none;
        font-size: 16px;
        height: 40px;
        width: 200px;
    }
    
    .dropdown .dropdown-item {
        font-size: 16px;
        cursor: pointer;
    }
}

@media (max-width: 1200px) {

    #buscador {
        min-width: 395px;
    }

    .filtros-container {
        overflow-x: scroll;
        padding: 8px 0;
    }

    .button-filtro {
        font-size: 16px;
    }

    .filtros-container {
        gap: 14px;
    }
}

@media (max-width: 992px) {
    main section:first-of-type {
        padding-top: 40px;
    }

    /* Tableros Previews */
    .tableros-container {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    h1 {
        margin-bottom: 0.5rem;
    }

    main {
        padding-bottom: 5rem;
    }

    .buscador-container {
        gap: 0.75rem;
        padding-bottom: 0.5rem;
    }

    #buscador {
        min-width: 100%;
    }

    .dropdown {
        display: none;
    }

    .botones-ordenar-container {
        display: block;
        margin-bottom: 0.5rem;
    }

    .botones-ordenar-container .boton-rojo {
        background-color: #c9c9c9;
        color: #ffffff;
        flex-grow: 1;
        transition: all 250ms ease;
        font-size: 13px;
        padding: 5px;
    }

    .botones-ordenar-container .boton-rojo.active, .botones-ordenar-container .boton-rojo:active {
        background-color: var(--secondary);
        color: #ffffff;
    }

    .filtros-container {
        padding: 0px 0 10px 0;
        gap: 10px;
    }

    .button-filtro, .button-filtro.active {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    main section:first-of-type {
        padding-top: 30px;
    }

    h1 {
        font-size: 28px;
    }

    h1 + p {
        text-align: justify;
    }
}