/* ---- Filter Bar (proyecto) ---- */
.rw-proyecto-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.rw-proyecto-filters .rw-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border: 1px solid #c8c8c8;
    border-radius: 50px;
    background: #fff;
    color: #27292B;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
    white-space: nowrap;
    line-height: 1;
    min-width: 160px;
    box-sizing: border-box;
}


.rw-proyecto-filters .rw-filter-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rw-proyecto-filters .rw-filter-btn:hover {
    padding: 14px 30px;
    font-size: 1rem;
    transform: none;
    box-shadow: none;
    outline: none;
}

.rw-proyecto-filters .rw-filter-toggle:hover {
    border-color: #27292B;
}

.rw-proyecto-filters .rw-proyecto-reset:hover {
    border-color: #fff;
}

/* Botones dropdown: borde y texto blancos sobre fondo oscuro */
.rw-proyecto-filters .rw-filter-toggle {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.rw-proyecto-filters .rw-filter-btn.is-active,
.rw-proyecto-filters .rw-filter-btn.has-selection {
    background: #fff;
    color: #27292B;
    border-color: #fff;
}

/* Reset button activo: fondo blanco, texto oscuro */
.rw-proyecto-filters .rw-proyecto-reset.is-active {
    background: #fff;
    color: #27292B;
    border-color: #fff;
}

/* Reset button inactivo: transparente, borde y texto blancos */
.rw-proyecto-filters .rw-proyecto-reset:not(.is-active) {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.rw-proyecto-filters .rw-filter-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s;
    margin-top: -3px;
    margin-left: 2px;
}

.rw-proyecto-filters .rw-filter-dropdown.is-open .rw-filter-arrow {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.rw-filter-dropdown {
    position: relative;
}

.rw-proyecto-filters .rw-filter-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 100;
    min-width: 220px;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #27292B;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.rw-proyecto-filters .rw-filter-dropdown.is-open .rw-filter-dropdown-menu {
    display: block;
}

.rw-proyecto-filters .rw-filter-option {
    display: block;
    width: 100%;
    padding: 11px 18px;
    border: none;
    border-radius: 0;
    background: none;
    text-align: left;
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
    color: #27292B;
    transition: background-color 0.15s, color 0.15s;
    box-sizing: border-box;
}

.rw-proyecto-filters .rw-filter-option:hover {
    background: #27292B;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    padding: 11px 18px;
    border-radius: 0;
}

.rw-proyecto-filters .rw-filter-option.is-active {
    background: #27292B;
    color: #fff;
    font-weight: 400;
    border-radius: 0;
}

/* ---- Two-column Grid ---- */
.rw-proyecto-grid {
    display: flex;
    gap: 100px;
    align-items: flex-start;
    margin-top: 50px;
}

.rw-proyecto-grid.rw-loading {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.2s;
}

.rw-proyecto-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Mobile-only column hidden by default */
.rw-proyecto-col--mobile {
    display: none;
}

/* ---- Project Card ---- */
.rw-proyecto-card {
    display: block;
    margin-bottom: 40px;
}

.rw-proyecto-card:last-child {
    margin-bottom: 0;
}

.rw-proyecto-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image: full width, natural height via padding-top set inline from PHP */
.rw-proyecto-card__image {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    display: block;
}

/* Text content below the image */
.rw-proyecto-card__body {
    padding: 20px 0 0;
}

.rw-proyecto-card__title {
    font-family: 'Nunito', sans-serif;
    font-size: 40px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 12px 0;
}

.rw-proyecto-card__desc {
    font-family: 'Nunito', sans-serif;
    font-size: 17px;
    font-weight: 300;
    font-style: normal;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 20px 0;
}

.rw-proyecto-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    padding: 8px 16px;
    color: #fff;
    border: none;
    border-radius: 40px;
    background-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s, color 0.2s;
}

.rw-proyecto-card__link:hover .rw-proyecto-card__btn {
    background-color: #fff;
    color: #303030;
}

/* No results */
.rw-proyecto-no-results {
    text-align: center;
    padding: 60px 24px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
}

/* ---- Laptop (max 1280px) ---- */
@media (max-width: 1280px) {
    .rw-proyecto-card__title {
        font-size: 30px;
    }

    .rw-proyecto-card__btn {
        font-size: 15px;
    }
}

/* ---- Tablet (max 1024px) ---- */
@media (max-width: 1024px) {
    .rw-proyecto-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .rw-proyecto-filters .rw-filter-btn,
    .rw-proyecto-filters .rw-filter-dropdown {
        width: 100%;
    }

    .rw-proyecto-filters .rw-filter-dropdown {
        grid-column: auto;
    }

    .rw-proyecto-card__title {
        font-size: 30px;
    }

    .rw-proyecto-card__btn {
        font-size: 15px;
    }

    .rw-proyecto-grid {
        gap: 50px;
    }
}

/* ---- Móvil (max 768px) ---- */
@media (max-width: 768px) {
    .rw-proyecto-filters {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .rw-proyecto-filters .rw-filter-btn,
    .rw-proyecto-filters .rw-filter-dropdown {
        width: 100%;
    }

    .rw-proyecto-filters .rw-filter-btn {
        min-width: auto;
    }

    .rw-proyecto-grid {
        flex-direction: column;
        gap: 0;
        margin-top: 30px;
    }

    /* Hide desktop columns, show mobile single-column */
    .rw-proyecto-col--a,
    .rw-proyecto-col--b {
        display: none;
    }

    .rw-proyecto-col--mobile {
        display: flex;
        flex-direction: column;
        flex: 1;
        width: 100%;
    }

    .rw-proyecto-col--mobile .rw-proyecto-card {
        margin-bottom: 30px;
    }

    .rw-proyecto-col--mobile .rw-proyecto-card:last-child {
        margin-bottom: 0;
    }

    .rw-proyecto-card__title {
        font-size: 24px;
    }

    .rw-proyecto-card__desc {
        font-size: 15px;
    }

    .rw-proyecto-card__btn {
        font-size: 13px;
    }
}
