/* Tipografía alineada con soluciones.css: pesos moderados (600) en títulos, botones y etiquetas. */
/* INRITEC — Trabajos realizados | 2026 */
.works-main {
    padding-top: 74px;
    background: #f7f9fc;
    color: #15263d
}

.works-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(117deg,#10273e 0%,#0b3a58 62%,#085a77 100%);
    color: white;
    padding: 42px 0 52px
}

.works-hero-grid {
    display: grid;
    grid-template-columns: minmax(0,1.4fr) minmax(250px,.6fr);
    align-items: center;
    gap: 30px
}

.works-kicker, .works-eyebrow {
    font-size: .74rem;
    letter-spacing: .19em;
    font-weight: 600;
    color: #51c4da
}

.works-hero h1 {
    margin: 19px 0;
    font-size: clamp(2rem,3.55vw,3.35rem);
    line-height: 1.14;
    letter-spacing: -.045em;
    font-weight: 600;
    max-width: 670px
}

    .works-hero h1 em {
        font-style: normal;
        color: #64d4e5
    }

.works-hero p {
    color: #c5d6e0;
    max-width: 625px;
    line-height: 1.75;
    font-size: 1.06rem
}

.works-cta {
    display: inline-flex;
    gap: 22px;
    align-items: center;
    margin-top: 10px;
    padding: 12px 21px;
    border-radius: 9px;
    background: #43c2d3;
    color: #08293b;
    text-decoration: none;
    font-weight: 600
}

    .works-cta:hover {
        background: #87e1e9;
        color: #08293b
    }

.works-hero-accent {
    height: 190px;
    position: relative;
    display: grid;
    place-items: center
}

.accent-ring {
    position: absolute;
    border: 1px solid #48bfd04d;
    border-radius: 50%;
    width: 195px;
    height: 195px
}

    .accent-ring.r2 {
        width: 148px;
        height: 148px;
        border-color: #48bfd07d
    }

.accent-logo-card {
    width: 144px;
    height: 144px;
    position: relative;
    z-index: 1;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 5px solid #ffffff12;
    box-shadow: 0 10px 30px #001b2c66;
    display: flex;
    align-items: center;
    justify-content: center
}

.accent-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.works-overview {
    position: relative;
    margin-top: -26px;
    z-index: 2
}

.works-stat-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    background: white;
    border-radius: 14px;
    box-shadow: 0 13px 40px #122d4217;
    border: 1px solid #e7edf2
}

.works-stat {
    padding: 25px 27px;
    border-right: 1px solid #e8edf2
}

    .works-stat:last-child {
        border-right: 0
    }

    .works-stat strong {
        display: block;
        color: #113650;
        font-size: 2rem;
        line-height: 1.2
    }

    .works-stat span {
        display: block;
        color: #63788a;
        font-size: .84rem;
        margin-top: 6px
    }

.works-explorer {
    padding: 85px 0 98px
}

.works-section-heading {
    max-width: 700px;
    margin-bottom: 31px
}

    .works-section-heading h2 {
        font-weight: 600;
        letter-spacing: -.035em;
        font-size: clamp(1.8rem,3vw,2.65rem);
        margin: 8px 0
    }

    .works-section-heading p {
        color: #65788b;
        line-height: 1.7
    }

.works-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 18px
}

    .works-toolbar select, .works-search {
        height: 45px;
        border: 1px solid #dce5ec;
        background: white;
        border-radius: 9px;
        color: #32485b;
        outline: none;
        font-size: .87rem
    }

    .works-toolbar select {
        padding: 0 35px 0 13px;
        min-width: 145px
    }

.works-search {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1 1 275px;
    padding: 0 12px
}

    .works-search span {
        font-size: 1.8rem;
        line-height: 1;
        color: #7691a3
    }

    .works-search input {
        width: 100%;
        height: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        min-width: 0
    }

    .works-toolbar select:focus-visible, .works-search:focus-within {
        border-color: #16acc6;
        box-shadow: 0 0 0 3px #16acc627
    }

.works-layout {
    display: grid;
    grid-template-columns: minmax(0,1.17fr) minmax(330px,.83fr);
    gap: 18px;
    align-items: start
}

.works-map-column, .works-list-column {
    background: white;
    border: 1px solid #e2eaf0;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 5px 22px #162b3e08
}

.works-map-column {
    position: sticky;
    top: 95px
}

.works-map-head, .works-list-head {
    padding: 17px 20px;
    border-bottom: 1px solid #e6edf2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

    .works-map-head strong, .works-list-head strong {
        display: block;
        font-size: 1rem;
        color: #123047
    }

    .works-map-head small, .works-list-head span {
        display: block;
        font-size: .76rem;
        color: #8393a1;
        margin-top: 4px
    }

.works-fit {
    background: #eef8fa;
    color: #08758e;
    border: 0;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: .79rem;
    font-weight: 600;
    white-space: nowrap
}

    .works-fit:hover {
        background: #def3f7
    }

#worksMap {
    height: 570px;
    z-index: 0;
    background: #dfe8ee
}

.works-map-loading, .works-map-fallback {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px;
    text-align: center;
    color: #567080
}

.works-map-note {
    padding: 12px 18px;
    color: #7b8994;
    font-size: .74rem;
    line-height: 1.5;
    display: flex;
    align-items: baseline;
    gap: 8px
}

.works-dot-indicator {
    display: inline-block;
    background: #46b8ce;
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%
}

.works-list-head {
    min-height: 74px
}

.works-legend {
    display: flex;
    gap: 10px;
    white-space: nowrap
}

    .works-legend > span {
        font-size: .7rem;
        margin: 0;
        color: #7a8997
    }

.legend-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 3px
}

    .legend-dot.delivered {
        background: #159f83
    }

    .legend-dot.progress {
        background: #ee9d35
    }

.works-list {
    height: 558px;
    overflow-y: auto;
    scrollbar-color: #c7dce5 transparent;
    scrollbar-width: thin
}

.works-project {
    display: flex;
    gap: 13px;
    padding: 19px 16px;
    border-bottom: 1px solid #edf1f4;
    cursor: pointer;
    transition: background .18s,border .18s;
    border-left: 4px solid transparent
}

    .works-project:hover, .works-project:focus-visible {
        background: #f5fbfd;
        outline: none
    }

    .works-project.is-selected {
        background: #edf9fc;
        border-left-color: #0ca2bd
    }

.works-project-logo {
    width: 74px;
    height: 66px;
    flex: 0 0 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8edf0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden
}

.works-client-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px
}

    .works-client-logo.is-ritmo {
        object-fit: contain;
        background: #ec650d;
        padding: 8px
    }

.works-logo-fallback {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #0c647a;
    font-size: 1.2rem;
    background: #e7f5fa
}

.works-project-info {
    min-width: 0;
    flex: 1
}

.works-project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
}

    .works-project-top small {
        font-size: .71rem;
        text-transform: uppercase;
        letter-spacing: .07em;
        color: #7390a0;
        font-weight: 600
    }

.works-status {
    font-size: .68rem;
    padding: 4px 7px;
    border-radius: 50px;
    white-space: nowrap;
    font-weight: 600
}

    .works-status.done {
        color: #168671;
        background: #e3f7ef
    }

    .works-status.in-progress {
        color: #ae6b16;
        background: #fff1dd
    }

.works-project h3 {
    font-size: .97rem;
    color: #20374a;
    line-height: 1.3;
    margin: 8px 0;
    font-weight: 600
}

.works-address {
    font-size: .76rem;
    line-height: 1.45;
    color: #728495;
    margin-bottom: 9px
}

.works-project-bottom {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    font-size: .72rem;
    color: #8b99a5
}

.works-location-link {
    font-weight: 600;
    text-decoration: none;
    color: #0d90a9
}

    .works-location-link:hover {
        text-decoration: underline
    }

.works-empty {
    padding: 45px 25px;
    text-align: center;
    color: #6e8597
}

.works-pin-shell {
    background: transparent;
    border: 0
}

.works-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 3px solid white;
    border-radius: 12px 12px 12px 2px;
    transform: rotate(-45deg);
    color: white;
    font-weight: 900;
    font-size: .79rem;
    box-shadow: 0 2px 9px #26384c66
}

    .works-pin.is-done {
        background: #0b7793
    }

    .works-pin.is-active {
        background: #efa136
    }

    .works-pin::first-letter {
        transform: rotate(45deg)
    }

.works-popup {
    min-width: 205px;
    max-width: 260px;
    font-family: inherit
}

    .works-popup strong {
        display: block;
        font-size: .95rem;
        color: #183a52
    }

    .works-popup p {
        font-size: .78rem;
        line-height: 1.5;
        margin: 7px 0;
        color: #546a7d
    }

    .works-popup small {
        font-size: .7rem;
        color: #8a99a6
    }

    .works-popup a {
        display: block;
        margin-top: 9px;
        color: #1686a4;
        font-weight: 600;
        text-decoration: none
    }

.works-outro {
    background: #10334a;
    padding: 47px 0;
    color: white
}

    .works-outro .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px
    }

    .works-outro h2 {
        margin: 8px 0;
        font-size: 1.8rem;
        font-weight: 600
    }

    .works-outro p {
        margin: 0;
        color: #c8d6df
    }

    .works-outro a {
        border-radius: 8px;
        background: #46bfd0;
        padding: 14px 22px;
        white-space: nowrap;
        text-decoration: none;
        color: #07324a;
        font-weight: 600
    }

        .works-outro a:hover {
            background: #8fe0e9
        }

@media(max-width:991px) {
    .works-hero-grid {
        grid-template-columns: 1fr
    }

    .works-hero-accent {
        display: none
    }

    .works-layout {
        grid-template-columns: 1fr
    }

    .works-map-column {
        position: static
    }

    #worksMap {
        height: 430px
    }

    .works-list {
        height: 500px
    }

    .works-stat {
        padding: 20px
    }
}

@media(max-width:620px) {
    .works-main {
        padding-top: 65px
    }

    .works-hero {
        padding: 37px 0 45px
    }

    .works-stat-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .works-stat:nth-child(2) {
        border-right: 0
    }

    .works-stat:nth-child(-n+2) {
        border-bottom: 1px solid #e8edf2
    }

    .works-explorer {
        padding: 65px 0
    }

    .works-toolbar select {
        flex: 1 1 42%;
        min-width: 0
    }

    .works-search {
        flex-basis: 100%
    }

    .works-list-head {
        flex-wrap: wrap
    }

    #worksMap {
        height: 370px
    }

    .works-outro .container {
        flex-direction: column;
        align-items: start
    }

    .works-project-logo {
        width: 59px;
        height: 58px;
        flex-basis: 59px
    }

    .works-project {
        gap: 10px;
        padding: 15px 10px
    }

    .works-status {
        font-size: .63rem
    }
}

/* Ajustes de compatibilidad con barra de navegación fija y mapa Leaflet */
.works-main {
    padding-top: 0;
}
/* El body ya tiene 72px definidos en index.css */
#explorar-proyectos {
    scroll-margin-top: 115px;
}

.works-section-heading h2 {
    scroll-margin-top: 115px;
}

#worksMap.leaflet-container {
    font-family: inherit;
}

#worksMap.works-tiles-failed::after {
    content: "No se cargó el fondo del mapa. Revisa tu conexión; puedes utilizar «Cómo llegar» en el listado.";
    position: absolute;
    bottom: 12px;
    left: 42px;
    right: 12px;
    z-index: 1000;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #32485b;
    box-shadow: 0 2px 10px #132b3e30;
}

/* Mantener visible el encabezado después de usar el enlace Explorar proyectos. */
#explorar-proyectos {
    scroll-margin-top: 155px;
}
