﻿
:root {
    --color-primary: #0b2d57;
    --color-primary-hover: #13498d;
    --color-secondary: #f58220;
    --color-background: #ffffff;
    --color-border: #e6e9ef;
    --color-text: #1d3557;
    --color-text-light: #6f7482;
    --shadow-card: 0 12px 35px rgba(0,0,0,.08);
    --shadow-hover: 0 20px 45px rgba(0,0,0,.15);
    --transition: .30s ease;
}


/*=========================================================
    SECCIÓN
=========================================================*/

.projects-section {
    background: #fff;
    padding: 0px 0 80px;
}


/*=========================================================
    CONTENEDOR
=========================================================*/

.projects-container {
    width: 95%;
    max-width: 1380px;
    margin: auto;
}


/*=========================================================
    CABECERA
=========================================================*/

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 35px;
    margin-bottom: 28px;
}


/*=========================================================
    TITULO
=========================================================*/

.projects-title {
    flex: 1;
}

    .projects-title h2 {
        font-size: 34px;
        font-weight: 700;
        color: #0b2d57;
        line-height: 1.15;
        margin-bottom: 6px;
    }

    .projects-title p {
        font-size: 16px;
        color: #6d7485;
        line-height: 1.6;
    }


/*=========================================================
    FILTROS
=========================================================*/

.projects-filters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}


    /*=========================================================
    SELECT
=========================================================*/

    .projects-filters select {
        width: 170px;
        height: 50px;
        padding: 0 18px;
        border: 1px solid #dfe5ee;
        border-radius: 12px;
        background: #ffffff;
        color: #4d596a;
        font-size: 15px;
        font-weight: 500;
        transition: .30s;
        cursor: pointer;
        box-shadow: 0 3px 12px rgba(0,0,0,.04);
    }


        .projects-filters select:hover {
            border-color: #0b5ed7;
            box-shadow: 0 8px 18px rgba(0,0,0,.08);
        }


        .projects-filters select:focus {
            border-color: #f58220;
            box-shadow: 0 0 0 4px rgba(245,130,32,.12);
        }


    /*=========================================================
    BOTÓN BUSCAR
=========================================================*/

    .projects-filters button {
        width: 170px;
        height: 48px;
        border: none;
        border-radius: 14px;
        background: #123d7b;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: .25s;
        box-shadow: 0 8px 18px rgba(18,61,123,.18);
        appearance: none;
        -webkit-appearance: none;
        outline: none;
        border: none;
    }


        .projects-filters button:hover {
            background: #0d3469;
            box-shadow: 0 12px 24px rgba(18,61,123,.22);
        }

        .projects-filters button:active {
            transform: translateY(1px);
        }

        .projects-filters button i {
            font-size: 15px;
        }


    .projects-filters select,
    .projects-filters button {
        height: 48px;
    }

.search-icon {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}


/*=========================================================
    GRID DE PROYECTOS
=========================================================*/

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}


/*=========================================================
    TARJETA
=========================================================*/

.project-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transition: all .35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

    .project-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(0,0,0,.15);
    }


/*=========================================================
    IMAGEN
=========================================================*/

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .45s ease;
    }

.project-card:hover .project-image img {
    transform: scale(1.08);
}


/*=========================================================
    ETIQUETA TIPO
=========================================================*/

.project-type {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--color-secondary);
    color: #fff;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}


/*=========================================================
    ETIQUETA ESTADO
=========================================================*/

.project-status {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff !important;
    color: #5c6470;
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3fc85d;
}


/*=========================================================
    CONTENIDO
=========================================================*/

.project-content {
    padding: 20px;
}


    /*=========================================================
    TITULO
=========================================================*/

    .project-content h3 {
        margin: 0 0 14px;
        color: var(--color-primary);
        font-size: 25px;
        font-weight: 700;
        line-height: 1.35;
    }


/*=========================================================
    UBICACION
=========================================================*/

.project-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-light);
    font-size: 15px;
    margin-bottom: 18px;
}

    .project-location i {
        color: #9aa5b5;
    }


/*=========================================================
    INFORMACION
=========================================================*/

.project-details {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    flex-wrap: wrap;
}

    .project-details .info-item {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #666;
        font-size: 15px;
        font-weight: 500;
    }

        .project-details .info-item i {
            color: #8e98a8;
            font-size: 17px;
        }

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-light);
    font-size: 15px;
}

    .info-item i {
        color: #9aa5b5;
    }


/*=========================================================
    TARJETA VACIA
=========================================================*/

.projects-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    border: 2px dashed #dfe5ee;
    border-radius: 16px;
    color: #7a8699;
}

    .projects-empty i {
        font-size: 60px;
        color: var(--color-secondary);
        margin-bottom: 20px;
    }

    .projects-empty h4 {
        color: var(--color-primary);
        margin-bottom: 10px;
    }


/*=========================================================
    RESPONSIVE
=========================================================*/

@media (max-width: 992px) {

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 210px;
    }
}


/*=========================================================
    CABECERA DE LA TARJETA
=========================================================*/

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

    .project-header h1 {
        flex: 1;
        margin: 0;
        font-size: 30px;
        font-weight: 700;
        color: var(--color-primary);
        line-height: 1.3;
    }

.project-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5b6678;
    text-decoration: none;
    transition: .3s;
}

    .project-arrow:hover {
        background: #f4f6f9;
        color: var(--color-primary);
    }

    .project-arrow i {
        font-size: 20px;
    }


/* ==========================================
   Tarjeta vacía
========================================== */

.project-card-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    border: 2px dashed #d8d8d8;
    border-radius: 22px;
    background: #fafafa;
}

.project-empty-content {
    text-align: center;
    padding: 30px;
}

    .project-empty-content i {
        font-size: 48px;
        color: #c8c8c8;
        margin-bottom: 18px;
    }

    .project-empty-content h4 {
        margin-bottom: 10px;
        font-size: 20px;
        font-weight: 600;
        color: #555;
    }

    .project-empty-content p {
        color: #888;
        line-height: 1.6;
        font-size: 15px;
    }