    :root {
        --grid-gap: 1rem;
        --card-radius: var(--radius, 12px);
        --card-border: var(--border, #dce0e5);
        --muted: var(--muted, #637588);
        --text: var(--text, #111418);
        --soft: var(--border-soft, #f0f2f4);
    }

    .page-header {
        padding: 1.5rem 1rem 0;
    }

    .page-title {
        font-size: clamp(1.6rem, 2.5vw, 2rem);
        font-weight: 700;
        letter-spacing: -.015em;
        margin: 0;
    }

    .page-sub {
        color: var(--muted);
        margin-top: .35rem;
    }

    /* GALLERY GRID */
    .gallery {
        padding: 1rem;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--grid-gap);
    }

    @media (min-width: 640px) {
        .gallery-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 960px) {
        .gallery-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .gcard {
        border: 1px solid var(--card-border);
        border-radius: var(--card-radius);
        background: #fff;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: box-shadow .2s ease, transform .06s ease, border-color .2s;
    }

    .gcard:hover {
        border-color: var(--soft);
        box-shadow: 0 10px 24px rgba(17, 20, 24, .06);
        transform: translateY(-1px);
        cursor: pointer;
    }

    .gcard__media {
        position: relative;
        aspect-ratio: 4 / 3;
        /* relación estándar; ajusta si prefieres 1/1 */
        background: #eef1f4;
    }

    .gcard__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .gcard__body {
        padding: .85rem 1rem 1rem;
        display: flex;
        gap: .5rem;
        align-items: flex-start;
    }

    .gcard__title {
        font-size: 1rem;
        font-weight: 800;
        margin: 0;
    }

    .gcard__service {
        display: inline-flex;
        gap: .35rem;
        align-items: center;
        font-size: .9rem;
        color: var(--muted);
        margin-top: .15rem;
    }

    /* Lightbox (opcional) */
    .lightbox {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .7);
        display: none;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        z-index: 9999;
    }

    .lightbox.open {
        display: flex;
    }

    .lightbox__inner {
        max-width: min(1100px, 96vw);
        max-height: 90vh;
        display: grid;
        gap: .75rem;
        grid-template-rows: auto 1fr;
        background: #000;
        border-radius: 12px;
        overflow: hidden;
    }

    .lightbox__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: .5rem .75rem;
        color: #fff;
    }

    .lightbox__img {
        background: #000;
    }

    .lightbox__img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #000;
    }

    .lightbox__title {
        font-weight: 700;
        font-size: .95rem;
    }

    .lightbox__close {
        border: 0;
        background: #ffffff20;
        color: #fff;
        padding: .45rem .7rem;
        border-radius: 8px;
        cursor: pointer;
    }


    .gallery-cta {
        background: linear-gradient(135deg, #0D2A55 0%, #1980e6 100%);
        color: #fff;
        padding: 4rem 1.5rem;
        text-align: center;
        margin-top: 1.5rem;
    }

    .gallery-cta .cta-inner {
        max-width: 800px;
        margin: 0 auto;
    }

    .gallery-cta .cta-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
        font-weight: 700;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .gallery-cta .cta-subtitle {
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.6;
        opacity: 0.9;
        margin-bottom: 2rem;
    }

    .gallery-cta .cta-btn {
        display: inline-block;
        padding: 0.85rem 1.75rem;
        font-size: 1rem;
        font-weight: 700;
        color: #0D2A55;
        background: #fff;
        border-radius: 12px;
        text-decoration: none;
        transition: background 0.25s, color 0.25s;
    }

    .gallery-cta .cta-btn:hover {
        background: #facc15;
        color: #0D2A55;
    }