/* ==========================================
   PÁGINA TRABAJOS REALIZADOS
========================================== */

/* Evita que el header tape las secciones al navegar */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* LOGO DEL HEADER */

.logo {
    color: inherit;
    text-decoration: none;
}

.logo-name {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 1px;
}

.logo-name span {
    color: #00ff88;
}

.nav-menu a[aria-current="page"] {
    color: #00ff88;
}

/* ==========================================
   HERO DE TRABAJOS
========================================== */

.projects-hero {
    position: relative;
    overflow: hidden;

    padding: 78px 0 82px;

    border-bottom: 1px solid #1d1d1d;

    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(0, 255, 136, 0.12),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #050505,
            #0b0b0b 62%,
            #111111
        );
}

.projects-hero::after {
    content: "";

    position: absolute;
    right: -140px;
    bottom: -230px;

    width: 520px;
    height: 520px;

    border: 1px solid rgba(0, 255, 136, 0.12);
    border-radius: 50%;

    pointer-events: none;
}

/* MIGAS DE PAN */

.breadcrumb {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 42px;

    color: #777777;

    font-size: 0.78rem;
}

.breadcrumb a {
    color: #a6a6a6;
    text-decoration: none;

    transition: color 0.25s ease;
}

.breadcrumb a:hover {
    color: #00ff88;
}

.breadcrumb i {
    font-size: 0.6rem;
}

/* DISTRIBUCIÓN DEL HERO */

.projects-hero__grid {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(280px, 0.65fr);

    align-items: end;

    gap: 70px;
}

.projects-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 18px;

    color: #00ff88;

    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.projects-hero h1 {
    max-width: 850px;

    margin: 0 0 22px;

    color: #ffffff;

    font-size: clamp(2.7rem, 5.1vw, 5rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -2px;
}

.projects-hero h1 span {
    display: block;

    color: #00ff88;
}

.projects-hero__description {
    max-width: 760px;

    margin-bottom: 32px;

    color: #aaaaaa;

    font-size: 1.02rem;
    line-height: 1.7;
}

.projects-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.projects-secondary-btn {
    border-color: #353535;
}

/* RESUMEN LATERAL */

.projects-summary {
    display: grid;
    gap: 14px;
}

.projects-summary > div {
    display: grid;
    grid-template-columns: 85px 1fr;
    align-items: center;
    gap: 18px;

    padding: 20px;

    border: 1px solid #242424;
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.035);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.projects-summary strong {
    color: #00ff88;

    font-size: 1.75rem;
    font-weight: 900;
}

.projects-summary span {
    color: #b4b4b4;

    font-size: 0.83rem;
    line-height: 1.4;
}

/* ==========================================
   INTRODUCCIÓN
========================================== */

.projects-intro {
    padding: 72px 0 30px;

    background: #0a0a0a;
}

.projects-intro__box {
    display: grid;
    grid-template-columns:
        minmax(280px, 0.9fr)
        minmax(320px, 1.1fr);

    align-items: end;

    gap: 70px;

    padding-bottom: 42px;

    border-bottom: 1px solid #242424;
}

.projects-intro__label {
    margin-bottom: 10px;

    color: #00ff88;

    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.projects-intro h2 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
}

.projects-intro h2 span {
    color: #00ff88;
}

.projects-intro__box > p {
    margin: 0;

    color: #929292;

    font-size: 0.97rem;
    line-height: 1.75;
}

/* ==========================================
   GALERÍA POR DISTRITO
========================================== */

.projects-gallery {
    padding: 34px 0 90px;

    background: #0a0a0a;
}

.district-gallery {
    padding: 58px 0;

    border-bottom: 1px solid #222222;
}

.district-gallery:last-child {
    border-bottom: 0;
}

.district-gallery__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 26px;
}

.district-gallery__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 8px;

    color: #00ff88;

    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.district-gallery__heading h2 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(1.65rem, 2.6vw, 2.45rem);
    line-height: 1.18;
}

.district-gallery__heading > a {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #bdbdbd;

    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;

    transition:
        color 0.25s ease,
        gap 0.25s ease;
}

.district-gallery__heading > a:hover {
    gap: 13px;

    color: #00ff88;
}

/* CUADRÍCULA */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 22px;
}

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

/* TARJETA */

.project-card {
    overflow: hidden;

    border: 1px solid #242424;
    border-radius: 16px;

    background: #111111;

    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);

    transition:
        transform 0.32s ease,
        border-color 0.32s ease,
        box-shadow 0.32s ease;
}

.project-card:hover {
    transform: translateY(-6px);

    border-color: rgba(0, 255, 136, 0.55);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.4),
        0 0 26px rgba(0, 255, 136, 0.06);
}

/* IMAGEN DE LA TARJETA */

.project-card__image {
    height: 255px;

    margin: 0;

    overflow: hidden;

    background: #181818;
}

.project-card__image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}

.project-card:hover .project-card__image img {
    transform: scale(1.055);

    filter: brightness(1.05);
}

/* CONTENIDO DE LA TARJETA */

.project-card__content {
    padding: 21px 20px 23px;
}

.project-card__content > span {
    display: inline-flex;

    margin-bottom: 10px;
    padding: 6px 10px;

    border-radius: 999px;

    background: rgba(0, 255, 136, 0.09);
    color: #00ff88;

    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.project-card__content h3 {
    margin: 0 0 9px;

    color: #ffffff;

    font-size: 1.03rem;
    line-height: 1.35;
}

.project-card__content p {
    margin: 0;

    color: #7f7f7f;

    font-size: 0.83rem;
    line-height: 1.6;
}

/* ==========================================
   DISTRITOS CUBIERTOS
========================================== */

.projects-districts {
    padding: 85px 0;

    border-top: 1px solid #1f1f1f;

    background: #0d0d0d;
}

.district-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 13px;
}

.district-links a {
    padding: 12px 18px;

    border: 1px solid #303030;
    border-radius: 999px;

    color: #c7c7c7;

    font-size: 0.85rem;
    font-weight: 650;
    text-decoration: none;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.district-links a:hover {
    transform: translateY(-2px);

    border-color: #00ff88;

    background: rgba(0, 255, 136, 0.06);
    color: #00ff88;
}

/* ==========================================
   CTA FINAL
========================================== */

.projects-cta {
    padding: 0 0 90px;

    background: #0d0d0d;
}

.projects-cta__box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;

    gap: 45px;

    padding: 48px;

    border: 1px solid rgba(0, 255, 136, 0.24);
    border-radius: 22px;

    background:
        radial-gradient(
            circle at top right,
            rgba(0, 255, 136, 0.18),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #0d1d15,
            #111111
        );

    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.projects-cta__box > div > p:first-child {
    margin-bottom: 9px;

    color: #00ff88;

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.projects-cta h2 {
    margin: 0 0 14px;

    color: #ffffff;

    font-size: clamp(2rem, 3.2vw, 3.2rem);
    line-height: 1.08;
}

.projects-cta h2 span {
    color: #00ff88;
}

.projects-cta__description {
    max-width: 620px;

    margin: 0;

    color: #9a9a9a;

    font-size: 0.95rem;
    line-height: 1.65;
}

.projects-cta__actions {
    display: grid;
    gap: 12px;

    min-width: 265px;
}

.projects-cta__whatsapp,
.projects-cta__call {
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 20px;

    border-radius: 11px;

    font-size: 0.87rem;
    font-weight: 800;
    text-decoration: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.projects-cta__whatsapp {
    background: #25d366;
    color: #ffffff;

    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.22);
}

.projects-cta__call {
    border: 1px solid #3b3b3b;

    color: #ffffff;
}

.projects-cta__whatsapp:hover,
.projects-cta__call:hover {
    transform: translateY(-3px);
}

.projects-cta__call:hover {
    border-color: #00ff88;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1024px) {
    .projects-hero__grid {
        grid-template-columns: 1fr;

        gap: 42px;
    }

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

    .projects-summary > div {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 768px) {
    .projects-hero {
        padding: 58px 0 64px;
    }

    .breadcrumb {
        margin-bottom: 30px;
    }

    .projects-hero h1 {
        font-size: clamp(2.4rem, 11vw, 4rem);
        letter-spacing: -1px;
    }

    .projects-hero__description {
        font-size: 0.95rem;
    }

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

    .projects-summary > div {
        grid-template-columns: 72px 1fr;
    }

    .projects-intro {
        padding-top: 58px;
    }

    .projects-intro__box {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .district-gallery {
        padding: 46px 0;
    }

    .district-gallery__heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 14px;
    }

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

    .project-card__image {
        height: 245px;
    }

    .projects-districts {
        padding: 68px 0;
    }

    .projects-cta {
        padding-bottom: 70px;
    }

    .projects-cta__box {
        padding: 32px 24px;
    }

    .projects-cta__actions {
        grid-template-columns: 1fr;

        min-width: 0;
    }
}

@media (max-width: 480px) {
    .projects-hero__actions {
        flex-direction: column;
    }

    .projects-hero__actions .btn-wa,
    .projects-hero__actions .btn-call {
        width: 100%;

        justify-content: center;
    }

    .project-card__image {
        height: 225px;
    }

    .district-links {
        justify-content: flex-start;
    }
}