@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css");
/* FONT: Jost*/
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

li {
    list-style: none;
}


/*CONTAINER'S*/
.main {
    font-family: Jost, sans-serif;
    display: flex;
    flex-direction: column;
}

.section-hero {
    width: 100%;
    background-color: #ffffff;
    position: relative;
    order: 1;
    padding: 1.5em 0;
}

.section-filters {
    background: rgba(250, 250, 250, 1);
    border-right: 2px solid rgba(224, 224, 224, 1);
    order: 2;
    margin: 0;
    padding: 0 20px;
}

.section-cards {
    order: 3;
    background: rgba(250, 250, 250, 1);
    position: relative;
    margin: -32px 0 0 0;
    display: flex;
}


/*FILTERS MOBILE*/
.button-mobile {
    background: rgba(229, 187, 20, 0.94);
    padding: 0.5em 1em;
    width: 60px;
    height: 60px;
    border: none;
}

.button-open-modal {
    box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 1)
}

.filters__title {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    text-align: left;
}

.hero__title {
    font-size: clamp(24px, 5vw, 32px);
    color: #585858;
    font-weight: 900;
    text-align: center;
    border-bottom: 2px solid rgba(224, 224, 224, 1);
    padding: 110px 0 30px 0;
}

.hero__title--span {
    color: #9F9F9F;
    font-weight: 700;
}

/*MODAL MOBILE FILTER*/
.form-filter--mobile {
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

/*OCULTAR EN MOBILE*/
.form-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    width: min(100%, 500px);
    background: #ffffff;
    padding: 1rem 1.5rem 2.5rem 1.5rem;
}

.modal-filters {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.filters__container {
    position: absolute;
    width: min(100%, 500px);
    top: 250px;
    background: #fff;
    right: 0;
    left: 0;
    margin: auto;
}

.active {
    display: block;
}

.wrapper {
    display: flex;
    position: relative;
    gap: 1rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    width: 100%;
}

.input-search--mobile {
    width: 100%;
    position: relative;
    border-radius: 0 10px 10px 0;
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.25);
    border: none;
}

.input-icon {
    position: absolute;
    right: 0;
    height: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 0 10px 10px 0;
}


.filters__container-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 1rem 1.5rem;
}

.filters__title {
    margin: 0;
}

.button-close-modal {
    background-color: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
}

.form-field label {
    font-size: 16px;
    font-weight: 400;
    line-height: 23.12px;
    text-align: left;
    color: rgba(96, 96, 96, 1);
}

.form-field input,
.form-field select {
    padding: 0.75rem;
}


.form-field select {
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.25);
}

.button {
    width: 100%;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.25);
}

.button--submit {
    background: rgba(229, 187, 20, 0.94);
    color: rgba(255, 255, 255, 1);
}

.button--reset {
    background: rgba(246, 246, 246, 1);
    color: #000000;
}

/*CARDS*/
.cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3em;
    padding: 3em 1em;
}

.card {
    background: rgba(255, 255, 255, 1);
    border: 2px solid rgba(224, 224, 224, 1);
    border-radius: 10px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: min(100%, 300px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/*CARD: HEADER*/
.card__header {
    width: 100%;
}

/*CARD: BODY*/
.card .card__title-container {
    display: flex;
    flex-wrap: column;
    justify-content: space-between;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 0;
}

.card__body {
    padding: 1em 1em 0 1em;
}

.card__asociacion {
    background: rgba(229, 187, 20, 0.94);
    color: rgba(229, 187, 20, 0.94);
    border-radius: 15px;
    padding: .15em .5em;
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff;
}


.card__title {
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 600;
    color: rgba(0, 0, 0, 1);
    margin: 0;
}

.card__img {
    width: 100%;
    height: 200px;
    background-size: cover;
    object-fit: cover;
}

.card__details {
    padding: 0;
}

.card__details-item {
    display: flex;
    align-items: center;
    gap: .5em;
    font-size: 16px;
}

.progress {
    margin-bottom: 5px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
}

.progress-bar {
    background-color: rgba(229, 187, 20, 0.94) !important;
}

.card__footer {
    padding: 1em;
}

.text-noRifas{
    text-align: center; 
    width: 100%;
    font-weight: 600;
    font-size: 20px;
    margin-top: 20px;
}

/* MEDIA QUERIES */
@media (min-width: 1100px) {
    .main {
        font-family: Jost, sans-serif;
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(auto, 1fr);
    }

    .section-hero {
        width: 100%;
        background-color: #ffffff;
        grid-column: span 9 / span 9;
        position: relative;
        grid-column-start: 4;
        padding: 1.5em 0;
    }

    .section-filters {
        background-color: #ffffff;
        grid-column: span 3 / span 3;
        grid-row: span 5 / span 5;
        border-right: 2px solid rgba(224, 224, 224, 1);
        padding: 160px 40px 30px 40px;
        order: 1;
    }

    .section-cards {
        background: rgba(250, 250, 250, 1);
        grid-column: span 9 / span 9;
        grid-row: span 4 / span 4;
        grid-column-start: 4;
        grid-row-start: 2;
        position: relative;
        margin: -32px 0 0 0;
        display: flex;
        min-height: 60vh;
    }

    .filters__container {
        top: 0;
    }


    .active {
        display: flex;
    }

    .hero__title--span {
        display: block;
    }

    /*MOSTRAR FILTROS EN DESKTOP*/
    
    .form-filters {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        top: 0;
        position: relative;
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .modal-filters {
        display: block;
        position: relative;
        background-color: #ffffff;
    }

    .form-filter--mobile {
        display: none;
    }

    .button-close-modal {
        display: none;
    }
}