/* =========================================================
   HISTORIAL DE PROYECTOS
========================================================= */

.projects-history-section {
    position: relative;
    padding: 125px 0;
    background: #111315;
    overflow: hidden;
}

.projects-history-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 7%;
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,.035);
}

.projects-history-header {
    margin-bottom: 55px;
}

.projects-history-label {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.projects-history-label > span {
    width: 45px;
    height: 2px;
    background: var(--primary);
}

.projects-history-title {
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
}

.projects-history-title span {
    display: block;
    color: var(--primary);
}

.projects-history-intro {
    margin: 0;
    padding-left: 25px;
    border-left: 2px solid var(--primary);
    color: rgba(255,255,255,.58);
    font-size: 15px;
    line-height: 1.9;
}


/* FILTROS */

.projects-history-toolbar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.35fr .65fr 1.4fr auto;
    gap: 14px;
    align-items: end;
    padding: 25px;
    background: #191c1e;
    border: 1px solid rgba(255,255,255,.08);
}

.projects-filter label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,.48);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.projects-filter .form-select,
.projects-filter .form-control {
    min-height: 48px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 2px;
    background-color: #111315;
    color: #fff;
    font-size: 12px;
    box-shadow: none;
}

.projects-filter .form-select:focus,
.projects-filter .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.projects-filter .form-select option {
    color: #111315;
    background: #fff;
}

.projects-search-box {
    position: relative;
}

.projects-search-box i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--primary);
    z-index: 2;
}

.projects-search-box .form-control {
    padding-left: 43px;
}

.projects-search-box .form-control::placeholder {
    color: rgba(255,255,255,.32);
}

.projects-clear-button {
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 2px;
    background: transparent;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    font-weight: 700;
    transition: all .3s ease;
}

.projects-clear-button i {
    margin-right: 6px;
}

.projects-clear-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}


/* META */

.projects-history-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 28px 0 20px;
    color: rgba(255,255,255,.45);
    font-size: 11px;
}

.projects-history-meta strong {
    margin-right: 5px;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
}


/* GRID */

.projects-history-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(255,255,255,.09);
    border-left: 1px solid rgba(255,255,255,.09);
}

.project-history-card {
    position: relative;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: #15181a;
    border-right: 1px solid rgba(255,255,255,.09);
    border-bottom: 1px solid rgba(255,255,255,.09);
    transition: background .3s ease;
}

.project-history-card:hover {
    background: #1b1e21;
}

.project-history-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}

.project-history-card:hover::after {
    transform: scaleX(1);
}

.project-history-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 45px;
}

.project-history-index {
    color: rgba(255,255,255,.24);
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.project-history-date {
    padding: 6px 9px;
    border: 1px solid rgba(230,162,26,.35);
    color: var(--primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .7px;
}

.project-history-card h3 {
    margin-bottom: 17px;
    color: #fff;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.4;
}

.project-history-preview {
    margin: 0 0 28px;
    color: rgba(255,255,255,.5);
    font-size: 12px;
    line-height: 1.8;
}

.project-history-more {
    width: fit-content;
    margin-top: auto;
    padding: 0 0 4px;
    border: 0;
    border-bottom: 1px solid rgba(230,162,26,.55);
    background: transparent;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.project-history-more i {
    margin-left: 7px;
    color: var(--primary);
    transition: transform .3s ease;
}

.project-history-more:hover i {
    transform: translateX(5px);
}


/* MODAL */

.project-modal .modal-content {
    border: 0;
    border-radius: 2px;
    background: #f7f7f5;
}

.project-modal .modal-header {
    align-items: flex-start;
    padding: 30px 32px 24px;
    border-bottom: 1px solid #dededb;
}

.project-modal-date {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.project-modal .modal-title {
    margin: 0;
    color: var(--dark);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
}

.project-modal .modal-body {
    padding: 32px;
}

.project-modal-label {
    display: block;
    margin-bottom: 18px;
    color: #989c9f;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.project-modal-description {
    color: #555a5e;
    font-size: 14px;
    line-height: 1.9;
}


/* EMPTY */

.projects-history-empty {
    padding: 70px 25px;
    border: 1px solid rgba(255,255,255,.09);
    text-align: center;
}

.projects-history-empty i {
    color: var(--primary);
    font-size: 32px;
}

.projects-history-empty h3 {
    margin: 18px 0 8px;
    color: #fff;
    font-size: 20px;
}

.projects-history-empty p {
    margin: 0;
    color: rgba(255,255,255,.45);
    font-size: 12px;
}


/* PAGINACIÓN */

.projects-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 40px;
}

.projects-pagination button {
    min-width: 39px;
    height: 39px;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.11);
    background: transparent;
    color: rgba(255,255,255,.65);
    font-size: 11px;
    transition: all .25s ease;
}

.projects-pagination button:hover,
.projects-pagination button.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #111315;
}

.projects-pagination button:disabled {
    opacity: .25;
    pointer-events: none;
}


/* FOOTER */

.projects-history-footer {
    margin-top: 70px;
    padding-top: 50px;
    border-top: 1px solid rgba(255,255,255,.09);
}

.projects-history-footer span {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.projects-history-footer h3 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 3vw, 35px);
    font-weight: 600;
    line-height: 1.35;
}

.projects-history-button {
    padding: 15px 23px;
    border: 1px solid var(--primary);
    border-radius: 2px;
    background: var(--primary);
    color: #111315;
    font-size: 12px;
    font-weight: 700;
    transition: all .3s ease;
}

.projects-history-button i {
    margin-left: 7px;
}

.projects-history-button:hover {
    border-color: #fff;
    background: #fff;
    color: #111315;
    transform: translateY(-3px);
}


/* RESPONSIVE */

@media (max-width: 1199px) {
    .projects-history-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .projects-history-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .projects-history-section {
        padding: 90px 0;
    }

    .projects-history-intro {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .projects-history-toolbar {
        grid-template-columns: 1fr;
    }

    .projects-history-grid {
        grid-template-columns: 1fr;
    }

    .projects-history-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .projects-history-section {
        padding: 70px 0;
    }

    .projects-history-title {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .projects-history-toolbar {
        padding: 18px;
    }

    .project-history-card {
        min-height: 315px;
        padding: 27px 24px;
    }

    .project-modal .modal-header,
    .project-modal .modal-body {
        padding-left: 22px;
        padding-right: 22px;
    }
}
