/* =========================================================
   MTZ CONSTRUCTION & REMODELING LLC
   HERO DE GALERÍA
========================================================= */

.mtz-gallery-hero {
    position: relative;
    z-index: 1;

    width: 100%;

    height:
        calc(
            100vh -
            var(--mtz-chrome-height)
        );

    height:
        calc(
            100svh -
            var(--mtz-chrome-height)
        );

    min-height: 0;

    max-height:
        calc(
            100svh -
            var(--mtz-chrome-height)
        );

    overflow: hidden;

    color: var(--mtz-navy-950);

    background:
        linear-gradient(
            135deg,
            rgba(248, 247, 243, 0.99),
            rgba(238, 243, 247, 0.97) 56%,
            rgba(245, 241, 233, 0.98)
        );

    border-bottom:
        1px solid rgba(16, 36, 58, 0.09);

    isolation: isolate;
}


/* =========================================================
   FONDO
========================================================= */

.mtz-gallery-hero__background {
    position: absolute;
    inset: 0;
    z-index: -1;

    overflow: hidden;
    pointer-events: none;
}

.mtz-gallery-hero__grid {
    position: absolute;
    inset: 0;

    opacity: 0.3;

    background-image:
        linear-gradient(
            rgba(16, 36, 58, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(16, 36, 58, 0.045) 1px,
            transparent 1px
        );

    background-size: 48px 48px;

    mask-image:
        linear-gradient(
            90deg,
            transparent,
            black 34%,
            black
        );

    -webkit-mask-image:
        linear-gradient(
            90deg,
            transparent,
            black 34%,
            black
        );
}

.mtz-gallery-hero__glow {
    position: absolute;

    display: block;

    border-radius: 50%;
    filter: blur(12px);
}

.mtz-gallery-hero__glow--blue {
    top: -230px;
    right: -170px;

    width: 570px;
    height: 570px;

    background:
        radial-gradient(
            circle,
            rgba(47, 111, 159, 0.2),
            transparent 68%
        );
}

.mtz-gallery-hero__glow--orange {
    bottom: -250px;
    left: -190px;

    width: 530px;
    height: 530px;

    background:
        radial-gradient(
            circle,
            rgba(241, 132, 37, 0.14),
            transparent 68%
        );
}

.mtz-gallery-hero__frame {
    position: absolute;
    top: 11%;
    right: -75px;

    width: 280px;
    height: 405px;

    opacity: 0.13;

    border:
        2px solid var(--mtz-blue-600);

    border-radius: 34px;

    background:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 52px,
            rgba(47, 111, 159, 0.35) 53px,
            rgba(47, 111, 159, 0.35) 55px
        );

    transform: rotate(8deg);
}

.mtz-gallery-hero__measure {
    position: absolute;
    top: 20%;
    left: 5%;

    width: 200px;
    height: 2px;

    opacity: 0.2;

    background:
        repeating-linear-gradient(
            90deg,
            var(--mtz-navy-900) 0,
            var(--mtz-navy-900) 4px,
            transparent 4px,
            transparent 11px
        );

    transform: rotate(-17deg);
}

.mtz-gallery-hero__tiles {
    position: absolute;
    right: 4%;
    bottom: -95px;

    width: 235px;
    height: 235px;

    opacity: 0.12;

    border:
        2px solid var(--mtz-orange-500);

    border-radius: 27px;

    background-image:
        linear-gradient(
            rgba(217, 106, 22, 0.4) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(217, 106, 22, 0.4) 1px,
            transparent 1px
        );

    background-size: 47px 47px;

    transform: rotate(8deg);
}

.mtz-gallery-hero__line {
    position: absolute;
    bottom: 18%;
    left: -85px;

    width: 380px;
    height: 3px;

    opacity: 0.32;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--mtz-orange-500),
            transparent
        );

    transform: rotate(-25deg);
}


/* =========================================================
   CONTENEDOR
========================================================= */

.mtz-gallery-hero__container {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(390px, 0.95fr);
    align-items: center;
    gap: clamp(45px, 6vw, 90px);

    height: 100%;
    min-height: 0;

    padding-top: 24px;
    padding-bottom: 35px;
}


/* =========================================================
   CONTENIDO
========================================================= */

.mtz-gallery-hero__content {
    display: flex;
    justify-content: center;
    flex-direction: column;

    min-width: 0;
    min-height: 0;
}

.mtz-gallery-hero__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    width: fit-content;
    margin-bottom: 14px;

    color: var(--mtz-muted);

    font-size: 0.64rem;
    font-weight: 750;
    line-height: 1;
}

.mtz-gallery-hero__breadcrumb a {
    color: var(--mtz-navy-900);

    transition:
        color 180ms ease;
}

.mtz-gallery-hero__breadcrumb a:hover {
    color: var(--mtz-orange-600);
}

.mtz-gallery-hero__breadcrumb svg {
    width: 13px;
    height: 13px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Eyebrow */

.mtz-gallery-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    width: fit-content;
    min-height: 35px;
    margin-bottom: 17px;
    padding: 6px 14px 6px 7px;

    color: var(--mtz-navy-900);
    background: rgba(255, 255, 255, 0.82);

    border:
        1px solid rgba(16, 36, 58, 0.1);

    border-radius: 999px;

    box-shadow:
        0 8px 22px rgba(16, 36, 58, 0.07);

    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.mtz-gallery-hero__eyebrow-icon {
    display: grid;
    place-items: center;

    width: 25px;
    height: 25px;

    color: var(--mtz-white);
    background: var(--mtz-orange-500);

    border-radius: 50%;
}

.mtz-gallery-hero__eyebrow-icon svg {
    width: 14px;
    height: 14px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Título */

.mtz-gallery-hero__title {
    max-width: 790px;
    margin: 0 0 18px;

    color: var(--mtz-navy-950);

    font-size:
        clamp(
            3rem,
            5.4vw,
            5.85rem
        );

    line-height: 0.93;
    letter-spacing: -0.055em;
}

.mtz-gallery-hero__title span {
    display: block;

    color: var(--mtz-blue-600);
}

.mtz-gallery-hero__description {
    max-width: 680px;
    margin: 0 0 24px;

    color: var(--mtz-slate);

    font-size:
        clamp(
            0.95rem,
            1.3vw,
            1.08rem
        );

    line-height: 1.68;
}


/* =========================================================
   ACCIONES
========================================================= */

.mtz-gallery-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 23px;
}

.mtz-gallery-hero__primary-action svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform 180ms ease;
}

.mtz-gallery-hero__primary-action:hover svg {
    transform: translateX(4px);
}

.mtz-gallery-hero__estimate-action {
    color: var(--mtz-navy-900);
}


/* =========================================================
   HIGHLIGHTS
========================================================= */

.mtz-gallery-hero__highlights {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 8px;

    padding: 0;
    margin: 0;

    list-style: none;
}

.mtz-gallery-hero__highlights li {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr);
    align-items: center;
    gap: 8px;

    min-width: 0;
    padding: 9px 10px;

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

    border:
        1px solid rgba(16, 36, 58, 0.08);

    border-radius: 14px;
}

.mtz-gallery-hero__highlight-icon {
    display: grid;
    place-items: center;

    width: 29px;
    height: 29px;

    color: var(--mtz-orange-600);
    background: var(--mtz-orange-100);

    border-radius: 9px;
}

.mtz-gallery-hero__highlight-icon svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mtz-gallery-hero__highlights li > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.mtz-gallery-hero__highlights strong {
    margin-bottom: 2px;

    color: var(--mtz-navy-950);

    font-size: 0.63rem;
    font-weight: 850;
    line-height: 1.2;
}

.mtz-gallery-hero__highlights small {
    color: var(--mtz-muted);

    font-size: 0.5rem;
    line-height: 1.3;
}


/* =========================================================
   VISUAL
========================================================= */

.mtz-gallery-hero__visual {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    height: 100%;
    min-height: 0;

    padding: 12px 17px 38px;
}

.mtz-gallery-hero__collage {
    position: relative;

    width: min(100%, 535px);
    height: min(100%, 610px);
    min-height: 390px;

    isolation: isolate;
}

.mtz-gallery-hero__photo {
    position: absolute;

    overflow: hidden;

    background: var(--mtz-gray-200);

    border:
        1px solid rgba(255, 255, 255, 0.7);

    box-shadow:
        0 25px 65px rgba(11, 22, 36, 0.2);
}

.mtz-gallery-hero__photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mtz-gallery-hero__photo:hover img {
    transform: scale(1.045);
}


/* Imagen principal */

.mtz-gallery-hero__photo--main {
    inset: 3% 15% 3% 6%;
    z-index: 2;

    border-radius: 35px;
}

.mtz-gallery-hero__photo--main::after {
    position: absolute;
    inset: 0;

    content: "";

    background:
        linear-gradient(
            180deg,
            transparent 54%,
            rgba(11, 22, 36, 0.75)
        );

    pointer-events: none;
}

.mtz-gallery-hero__photo--main figcaption {
    position: absolute;
    right: 23px;
    bottom: 22px;
    left: 23px;
    z-index: 2;

    display: flex;
    flex-direction: column;
}

.mtz-gallery-hero__photo--main figcaption span {
    margin-bottom: 5px;

    color: var(--mtz-orange-500);

    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.mtz-gallery-hero__photo--main figcaption strong {
    color: var(--mtz-white);

    font-size: 0.84rem;
    font-weight: 850;
}


/* Imágenes secundarias */

.mtz-gallery-hero__photo--secondary {
    top: 8%;
    right: 0;
    z-index: 3;

    width: 36%;
    height: 31%;

    border-radius: 24px;
}

.mtz-gallery-hero__photo--detail {
    right: 1%;
    bottom: 7%;
    z-index: 3;

    width: 39%;
    height: 28%;

    border-radius: 24px;
}


/* Decoración interna */

.mtz-gallery-hero__collage::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;

    width: 84%;
    height: 93%;

    content: "";

    background:
        linear-gradient(
            145deg,
            var(--mtz-navy-950),
            var(--mtz-navy-800)
        );

    border-radius: 39px;

    transform: rotate(-3deg);
}

.mtz-gallery-hero__collage-frame {
    position: absolute;
    top: -14px;
    left: -12px;
    z-index: -2;

    width: 73%;
    height: 68%;

    border:
        2px solid rgba(47, 111, 159, 0.22);

    border-radius: 38px;

    transform: rotate(5deg);
}

.mtz-gallery-hero__collage-corner {
    position: absolute;
    right: 2%;
    bottom: 2%;
    z-index: 1;

    width: 91px;
    height: 91px;

    border-right:
        4px solid var(--mtz-orange-500);

    border-bottom:
        4px solid var(--mtz-orange-500);

    border-radius: 0 0 24px 0;

    opacity: 0.75;
}


/* =========================================================
   TARJETAS FLOTANTES
========================================================= */

.mtz-gallery-hero__categories-card,
.mtz-gallery-hero__active-card,
.mtz-gallery-hero__location-card {
    position: absolute;
    z-index: 5;

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

    color: var(--mtz-navy-950);
    background: rgba(255, 255, 255, 0.95);

    border:
        1px solid rgba(16, 36, 58, 0.1);

    border-radius: 16px;

    box-shadow:
        0 16px 38px rgba(11, 22, 36, 0.16);

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

.mtz-gallery-hero__categories-card {
    top: 5px;
    left: 0;

    padding: 10px 13px;
}

.mtz-gallery-hero__active-card {
    right: -2px;
    bottom: 1px;

    max-width: 285px;
    padding: 11px 13px;
}

.mtz-gallery-hero__location-card {
    bottom: 13%;
    left: 0;

    padding: 9px 12px;
}

.mtz-gallery-hero__categories-icon,
.mtz-gallery-hero__active-icon,
.mtz-gallery-hero__location-icon {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    color: var(--mtz-white);
    background: var(--mtz-navy-900);

    border-radius: 11px;
}

.mtz-gallery-hero__categories-icon {
    width: 36px;
    height: 36px;
}

.mtz-gallery-hero__active-icon {
    width: 38px;
    height: 38px;

    color: var(--mtz-navy-950);
    background: var(--mtz-orange-500);
}

.mtz-gallery-hero__location-icon {
    width: 34px;
    height: 34px;

    background: var(--mtz-blue-600);
}

.mtz-gallery-hero__categories-icon svg,
.mtz-gallery-hero__active-icon svg,
.mtz-gallery-hero__location-icon svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mtz-gallery-hero__categories-card > span:last-child,
.mtz-gallery-hero__active-card > span:last-child,
.mtz-gallery-hero__location-card > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.mtz-gallery-hero__categories-card small,
.mtz-gallery-hero__active-card small,
.mtz-gallery-hero__location-card small {
    margin-bottom: 3px;

    color: var(--mtz-muted);

    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mtz-gallery-hero__categories-card strong,
.mtz-gallery-hero__active-card strong,
.mtz-gallery-hero__location-card strong {
    overflow: hidden;

    color: var(--mtz-navy-950);

    font-size: 0.66rem;
    font-weight: 850;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   INDICADOR INFERIOR
========================================================= */

.mtz-gallery-hero__scroll {
    position: absolute;
    bottom: 13px;
    left: 50%;
    z-index: 6;

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

    color: var(--mtz-muted);

    font-size: 0.56rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transform: translateX(-50%);
}

.mtz-gallery-hero__scroll:hover {
    color: var(--mtz-orange-600);
}

.mtz-gallery-hero__scroll svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;

    animation:
        mtzGalleryHeroScroll
        1.7s
        ease-in-out
        infinite;
}


/* =========================================================
   ANIMACIONES
========================================================= */

.mtz-gallery-hero.is-ready
.mtz-gallery-hero__content {
    animation:
        mtzGalleryHeroContentEntrance
        760ms
        cubic-bezier(0.2, 0.8, 0.2, 1)
        both;
}

.mtz-gallery-hero.is-ready
.mtz-gallery-hero__visual {
    animation:
        mtzGalleryHeroVisualEntrance
        830ms
        90ms
        cubic-bezier(0.2, 0.8, 0.2, 1)
        both;
}

@keyframes mtzGalleryHeroContentEntrance {

    from {
        opacity: 0;
        transform: translate3d(-25px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes mtzGalleryHeroVisualEntrance {

    from {
        opacity: 0;

        transform:
            translate3d(25px, 0, 0)
            scale(0.985);
    }

    to {
        opacity: 1;

        transform:
            translate3d(0, 0, 0)
            scale(1);
    }
}

@keyframes mtzGalleryHeroScroll {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}










































/* =========================================================
   MTZ CONSTRUCTION & REMODELING LLC
   EXPLORADOR INTERACTIVO
========================================================= */

.mtz-project-explorer {
    position: relative;
    z-index: 1;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(238, 243, 247, 0.98),
            rgba(248, 247, 243, 0.99)
        );

    border-top:
        1px solid rgba(16, 36, 58, 0.08);
}

.mtz-project-explorer__container {
    position: relative;
    z-index: 3;
}


/* =========================================================
   DECORACIÓN
========================================================= */

.mtz-project-explorer__background {
    position: absolute;
    inset: 0;
    z-index: 0;

    overflow: hidden;
    pointer-events: none;
}

.mtz-project-explorer__grid {
    position: absolute;
    inset: 0;

    opacity: 0.24;

    background-image:
        linear-gradient(
            rgba(16, 36, 58, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(16, 36, 58, 0.045) 1px,
            transparent 1px
        );

    background-size: 52px 52px;

    mask-image:
        linear-gradient(
            90deg,
            black,
            transparent 48%,
            black
        );

    -webkit-mask-image:
        linear-gradient(
            90deg,
            black,
            transparent 48%,
            black
        );
}

.mtz-project-explorer__glow {
    position: absolute;
    top: -240px;
    right: -190px;

    width: 580px;
    height: 580px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(47, 111, 159, 0.19),
            transparent 68%
        );
}

.mtz-project-explorer__frame {
    position: absolute;
    top: 20%;
    left: -120px;

    width: 290px;
    height: 410px;

    opacity: 0.11;

    border:
        2px solid var(--mtz-blue-600);

    border-radius: 36px;

    background:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 53px,
            rgba(47, 111, 159, 0.34) 54px,
            rgba(47, 111, 159, 0.34) 56px
        );

    transform: rotate(-8deg);
}

.mtz-project-explorer__measure {
    position: absolute;
    top: 47%;
    right: 3%;

    width: 310px;
    height: 2px;

    opacity: 0.25;

    background:
        repeating-linear-gradient(
            90deg,
            var(--mtz-orange-500) 0,
            var(--mtz-orange-500) 6px,
            transparent 6px,
            transparent 14px
        );

    transform: rotate(-28deg);
}

.mtz-project-explorer__circle {
    position: absolute;
    right: -130px;
    bottom: 7%;

    width: 310px;
    height: 310px;

    opacity: 0.08;

    border:
        45px solid var(--mtz-orange-500);

    border-radius: 50%;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.mtz-project-explorer__header {
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(330px, 0.92fr);
    align-items: end;
    gap: 62px;

    margin-bottom: 48px;
}

.mtz-project-explorer__heading,
.mtz-project-explorer__introduction {
    min-width: 0;
}

.mtz-project-explorer__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 17px;

    color: var(--mtz-orange-700);

    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mtz-project-explorer__eyebrow > span {
    width: 29px;
    height: 2px;

    background: var(--mtz-orange-500);
}

.mtz-project-explorer__title {
    max-width: 830px;
    margin: 0;

    color: var(--mtz-navy-950);

    font-size: clamp(2.7rem, 4.8vw, 5rem);
    line-height: 0.97;
}

.mtz-project-explorer__title span {
    display: block;

    color: var(--mtz-blue-600);
}

.mtz-project-explorer__introduction > p {
    max-width: 590px;
    margin: 0 0 20px;

    color: var(--mtz-slate);

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

.mtz-project-explorer__summary {
    display: inline-flex;
    align-items: center;
    gap: 15px;

    padding: 10px 16px;

    color: var(--mtz-navy-950);
    background: rgba(255, 255, 255, 0.8);

    border:
        1px solid rgba(16, 36, 58, 0.1);

    border-radius: var(--mtz-radius-pill, 999px);

    box-shadow:
        var(
            --mtz-shadow-xs,
            0 8px 24px rgba(16, 36, 58, 0.08)
        );
}

.mtz-project-explorer__summary > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.mtz-project-explorer__summary small {
    color: var(--mtz-muted);

    font-size: 0.54rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mtz-project-explorer__summary strong {
    color: var(--mtz-orange-600);

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

.mtz-project-explorer__summary > span {
    width: 1px;
    height: 25px;

    background: rgba(16, 36, 58, 0.12);
}


/* =========================================================
   SELECTOR MÓVIL
========================================================= */

.mtz-project-explorer__mobile-selector {
    display: none;

    margin-bottom: 22px;
}

.mtz-project-explorer__mobile-selector > label {
    display: block;
    margin-bottom: 8px;

    color: var(--mtz-navy-950);

    font-size: 0.67rem;
    font-weight: 850;
}

.mtz-project-explorer__select-wrapper {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 58px;

    background: var(--mtz-white);

    border:
        1px solid rgba(16, 36, 58, 0.12);

    border-radius: 16px;

    box-shadow:
        0 10px 28px rgba(16, 36, 58, 0.08);
}

.mtz-project-explorer__select-icon {
    display: grid;
    place-items: center;

    width: 47px;
    height: 47px;
    margin-left: 5px;

    flex: 0 0 auto;

    color: var(--mtz-white);
    background: var(--mtz-navy-900);

    border-radius: 13px;
}

.mtz-project-explorer__select-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.mtz-project-explorer__select-wrapper select {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 0 47px 0 13px;

    color: var(--mtz-navy-950);
    background: transparent;

    border: 0;
    outline: 0;

    appearance: none;
    -webkit-appearance: none;

    font-family: var(--mtz-font-body, inherit);
    font-size: 0.75rem;
    font-weight: 800;

    cursor: pointer;
}

.mtz-project-explorer__select-wrapper:focus-within {
    border-color: var(--mtz-blue-500);

    box-shadow:
        0 0 0 4px rgba(66, 132, 181, 0.13);
}

.mtz-project-explorer__select-arrow {
    position: absolute;
    right: 16px;

    width: 17px;
    height: 17px;

    fill: none;
    stroke: var(--mtz-orange-600);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;

    pointer-events: none;
}


/* =========================================================
   LAYOUT
========================================================= */

.mtz-project-explorer__layout {
    display: grid;
    grid-template-columns:
        minmax(280px, 0.68fr)
        minmax(0, 1.32fr);
    align-items: start;
    gap: 27px;
}


/* =========================================================
   DIRECTORIO
========================================================= */

.mtz-project-directory {
    position: sticky;
    top:
        calc(
            var(--mtz-chrome-height, 116px) +
            20px
        );

    min-width: 0;
    padding: 24px;

    overflow: hidden;

    color: var(--mtz-white);

    background:
        radial-gradient(
            circle at 92% 6%,
            rgba(47, 111, 159, 0.42),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            var(--mtz-navy-950),
            var(--mtz-navy-800)
        );

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius: 30px;

    box-shadow:
        var(
            --mtz-shadow-lg,
            0 25px 65px rgba(11, 22, 36, 0.18)
        );

    isolation: isolate;
}

.mtz-project-directory__grid {
    position: absolute;
    inset: 0;
    z-index: -2;

    opacity: 0.12;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.13) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.13) 1px,
            transparent 1px
        );

    background-size: 40px 40px;
}

.mtz-project-directory::before {
    position: absolute;
    right: -110px;
    bottom: -120px;
    z-index: -1;

    width: 290px;
    height: 290px;

    content: "";

    border:
        43px solid rgba(241, 132, 37, 0.075);

    border-radius: 50%;
}

.mtz-project-directory__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.mtz-project-directory__header > div > span {
    display: block;
    margin-bottom: 5px;

    color: var(--mtz-orange-500);

    font-size: 0.53rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.mtz-project-directory__header h3 {
    margin: 0;

    color: var(--mtz-white);

    font-size: 1.25rem;
}

.mtz-project-directory__header > strong {
    color: rgba(255, 255, 255, 0.48);

    font-size: 0.65rem;
    font-weight: 850;
}

.mtz-project-directory__header > strong span {
    color: var(--mtz-orange-500);
}


/* Progress */

.mtz-project-directory__progress {
    margin: 25px 0 18px;
}

.mtz-project-directory__progress > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;

    margin-bottom: 8px;
}

.mtz-project-directory__progress span {
    color: rgba(255, 255, 255, 0.38);

    font-size: 0.49rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mtz-project-directory__progress strong {
    overflow: hidden;

    max-width: 62%;

    color: rgba(255, 255, 255, 0.76);

    font-size: 0.58rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mtz-project-directory__progress-track {
    width: 100%;
    height: 5px;

    overflow: hidden;

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

    border-radius: 999px;
}

.mtz-project-directory__progress-track > span {
    display: block;

    width: 8.333%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--mtz-orange-500),
            var(--mtz-orange-600)
        );

    border-radius: inherit;

    transition:
        width 350ms
        var(
            --mtz-ease-standard,
            cubic-bezier(0.2, 0.8, 0.2, 1)
        );
}


/* Navigation */

.mtz-project-directory__navigation {
    display: grid;
    gap: 5px;
}

.mtz-project-directory__item {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 9px;

    min-height: 53px;
    padding: 7px 9px;

    color: var(--mtz-white);
    background: rgba(255, 255, 255, 0.045);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 13px;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.mtz-project-directory__item:hover {
    color: var(--mtz-white);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(241, 132, 37, 0.25);

    transform: translateX(3px);
}

.mtz-project-directory__item.is-active {
    color: var(--mtz-white);
    background: rgba(241, 132, 37, 0.14);
    border-color: rgba(241, 132, 37, 0.42);
}

.mtz-project-directory__item:focus-visible {
    outline:
        3px solid rgba(241, 132, 37, 0.32);

    outline-offset: 2px;
}

.mtz-project-directory__number {
    display: grid;
    place-items: center;

    width: 31px;
    height: 31px;

    color: var(--mtz-orange-500);
    background: rgba(241, 132, 37, 0.1);

    border-radius: 9px;

    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 0.07em;
}

.mtz-project-directory__item.is-active
.mtz-project-directory__number {
    color: var(--mtz-navy-950);
    background: var(--mtz-orange-500);
}

.mtz-project-directory__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.mtz-project-directory__copy strong {
    overflow: hidden;

    margin-bottom: 3px;

    color: rgba(255, 255, 255, 0.84);

    font-size: 0.6rem;
    font-weight: 850;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.mtz-project-directory__copy small {
    color: rgba(255, 255, 255, 0.34);

    font-size: 0.46rem;
}

.mtz-project-directory__count {
    display: grid;
    place-items: center;

    min-width: 29px;
    min-height: 25px;
    padding-inline: 6px;

    color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.06);

    border-radius: 8px;

    font-size: 0.49rem;
    font-weight: 850;
}


/* CTA */

.mtz-project-directory__cta {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 9px;

    margin-top: 17px;
    padding: 10px;

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

    border:
        1px solid rgba(255, 255, 255, 0.085);

    border-radius: 14px;
}

.mtz-project-directory__cta-icon {
    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;

    color: var(--mtz-navy-950);
    background: var(--mtz-orange-500);

    border-radius: 11px;
}

.mtz-project-directory__cta-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mtz-project-directory__cta > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.mtz-project-directory__cta small {
    margin-bottom: 3px;

    color: rgba(255, 255, 255, 0.35);

    font-size: 0.45rem;
}

.mtz-project-directory__cta strong {
    color: rgba(255, 255, 255, 0.8);

    font-size: 0.58rem;
    line-height: 1.25;
}

.mtz-project-directory__cta > a {
    display: grid;
    place-items: center;

    width: 31px;
    height: 31px;

    color: var(--mtz-navy-950);
    background: var(--mtz-orange-500);

    border-radius: 9px;
}

.mtz-project-directory__cta > a svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   GALERÍA ACTIVA
========================================================= */

.mtz-active-gallery {
    position: relative;

    min-width: 0;
    padding: 11px 13px 28px;
}

.mtz-active-gallery__panel {
    position: relative;

    min-width: 0;
    padding: 24px;

    overflow: hidden;

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

    border:
        1px solid rgba(16, 36, 58, 0.1);

    border-radius: 31px;

    box-shadow:
        var(
            --mtz-shadow-lg,
            0 25px 65px rgba(11, 22, 36, 0.16)
        );

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

.mtz-active-gallery__panel::before {
    position: absolute;
    top: -175px;
    right: -150px;

    width: 380px;
    height: 380px;

    content: "";

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(47, 111, 159, 0.14),
            transparent 68%
        );

    pointer-events: none;
}


/* Header */

.mtz-active-gallery__header {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    padding-bottom: 18px;

    border-bottom:
        1px solid rgba(16, 36, 58, 0.09);
}

.mtz-active-gallery__identity {
    display: flex;
    align-items: center;
    gap: 13px;

    min-width: 0;
}

.mtz-active-gallery__number {
    display: grid;
    place-items: center;

    width: 51px;
    height: 51px;

    flex: 0 0 auto;

    color: var(--mtz-navy-950);
    background: var(--mtz-orange-500);

    border-radius: 15px;

    box-shadow:
        0 13px 28px rgba(217, 106, 22, 0.2);

    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.mtz-active-gallery__identity > div {
    min-width: 0;
}

.mtz-active-gallery__category {
    display: block;
    margin-bottom: 5px;

    color: var(--mtz-orange-700);

    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.mtz-active-gallery__identity h3 {
    margin: 0;

    color: var(--mtz-navy-950);

    font-size: clamp(1.65rem, 2.7vw, 2.7rem);
    line-height: 1;
}

.mtz-active-gallery__actions {
    display: flex;
    align-items: center;
    gap: 10px;

    flex: 0 0 auto;
}

.mtz-active-gallery__photo-count {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 7px 10px 7px 7px;

    background: var(--mtz-gray-100);

    border-radius: 13px;
}

.mtz-active-gallery__photo-icon {
    display: grid;
    place-items: center;

    width: 33px;
    height: 33px;

    color: var(--mtz-white);
    background: var(--mtz-navy-900);

    border-radius: 10px;
}

.mtz-active-gallery__photo-icon svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mtz-active-gallery__photo-count > span:last-child {
    display: flex;
    flex-direction: column;
}

.mtz-active-gallery__photo-count small {
    margin-bottom: 2px;

    color: var(--mtz-muted);

    font-size: 0.45rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mtz-active-gallery__photo-count strong {
    color: var(--mtz-navy-950);

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

.mtz-active-gallery__request {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 47px;
    padding: 9px 14px;

    color: var(--mtz-white);
    background:
        linear-gradient(
            135deg,
            var(--mtz-orange-500),
            var(--mtz-orange-600)
        );

    border-radius: 13px;

    box-shadow:
        0 12px 27px rgba(217, 106, 22, 0.22);

    font-size: 0.62rem;
    font-weight: 850;

    transition:
        color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.mtz-active-gallery__request:hover {
    color: var(--mtz-white);

    box-shadow:
        0 16px 34px rgba(217, 106, 22, 0.3);

    transform: translateY(-2px);
}

.mtz-active-gallery__request svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Description */

.mtz-active-gallery__description {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;

    padding: 19px 0;
}

.mtz-active-gallery__description > p {
    max-width: 680px;
    margin: 0;

    color: var(--mtz-slate);

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

.mtz-active-gallery__tags {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
}

.mtz-active-gallery__tags span {
    display: inline-flex;
    align-items: center;

    min-height: 27px;
    padding: 5px 9px;

    color: var(--mtz-navy-800);
    background: var(--mtz-blue-100);

    border-radius: 999px;

    font-size: 0.49rem;
    font-weight: 800;
}


/* Status */

.mtz-active-gallery__status {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 13px;

    color: var(--mtz-muted);

    font-size: 0.56rem;
    font-weight: 750;
}

.mtz-active-gallery__status strong {
    color: var(--mtz-navy-950);
}

.mtz-active-gallery__status-progress {
    width: 110px;
    height: 5px;

    overflow: hidden;

    background: var(--mtz-gray-200);

    border-radius: 999px;
}

.mtz-active-gallery__status-progress > span {
    display: block;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--mtz-blue-500),
            var(--mtz-orange-500)
        );

    border-radius: inherit;

    transition:
        width 350ms
        var(
            --mtz-ease-standard,
            cubic-bezier(0.2, 0.8, 0.2, 1)
        );
}


/* =========================================================
   GRID DE FOTOGRAFÍAS
========================================================= */

.mtz-active-gallery__grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    grid-auto-rows: 145px;
    grid-auto-flow: dense;
    gap: 8px;
}

.mtz-project-photo {
    position: relative;

    min-width: 0;
    min-height: 0;
    padding: 0;

    overflow: hidden;

    color: var(--mtz-white);
    background:
        linear-gradient(
            135deg,
            var(--mtz-gray-200),
            var(--mtz-blue-100)
        );

    border:
        1px solid rgba(16, 36, 58, 0.08);

    border-radius: 15px;

    cursor: zoom-in;
}

.mtz-project-photo--featured {
    grid-column: span 2;
    grid-row: span 2;
}

.mtz-project-photo--wide {
    grid-column: span 2;
}

.mtz-project-photo--tall {
    grid-row: span 2;
}

.mtz-project-photo::before {
    position: absolute;
    inset: 0;
    z-index: 0;

    content: "";

    background:
        linear-gradient(
            100deg,
            transparent 15%,
            rgba(255, 255, 255, 0.45) 45%,
            transparent 75%
        );

    transform: translateX(-120%);

    animation:
        mtzProjectPhotoLoading
        1.45s
        ease-in-out
        infinite;
}

.mtz-project-photo.is-loaded::before,
.mtz-project-photo.is-error::before {
    display: none;
}

.mtz-project-photo img {
    position: relative;
    z-index: 1;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    transition:
        opacity 300ms ease,
        transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mtz-project-photo.is-loaded img {
    opacity: 1;
}

.mtz-project-photo:hover img {
    transform: scale(1.055);
}

.mtz-project-photo__fallback {
    position: absolute;
    inset: 0;
    z-index: 1;

    display: none;
    place-items: center;

    padding: 15px;

    color: var(--mtz-navy-900);

    font-size: 0.63rem;
    font-weight: 850;
    text-align: center;
}

.mtz-project-photo.is-error
.mtz-project-photo__fallback {
    display: grid;
}

.mtz-project-photo.is-error img {
    display: none;
}

.mtz-project-photo__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;

    padding: 12px;

    color: var(--mtz-white);

    background:
        linear-gradient(
            180deg,
            transparent 35%,
            rgba(11, 22, 36, 0.8)
        );

    opacity: 0;

    transition:
        opacity 230ms ease;
}

.mtz-project-photo:hover
.mtz-project-photo__overlay,
.mtz-project-photo:focus-visible
.mtz-project-photo__overlay {
    opacity: 1;
}

.mtz-project-photo:focus-visible {
    outline:
        4px solid rgba(241, 132, 37, 0.35);

    outline-offset: 2px;
}

.mtz-project-photo__overlay > span {
    display: flex;
    flex-direction: column;
}

.mtz-project-photo__overlay small {
    margin-bottom: 3px;

    color: var(--mtz-orange-500);

    font-size: 0.43rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mtz-project-photo__overlay strong {
    font-size: 0.58rem;
    font-weight: 850;
}

.mtz-project-photo__overlay > svg {
    width: 25px;
    height: 25px;

    flex: 0 0 auto;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes mtzProjectPhotoLoading {

    to {
        transform: translateX(120%);
    }
}


/* Footer */

.mtz-active-gallery__footer {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-top: 16px;
    padding: 12px 13px;

    background: var(--mtz-gray-50);

    border:
        1px solid rgba(16, 36, 58, 0.08);

    border-radius: 15px;
}

.mtz-active-gallery__footer-copy {
    display: flex;
    align-items: center;
    gap: 9px;
}

.mtz-active-gallery__footer-icon {
    display: grid;
    place-items: center;

    width: 35px;
    height: 35px;

    color: var(--mtz-white);
    background: var(--mtz-navy-900);

    border-radius: 11px;
}

.mtz-active-gallery__footer-icon svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mtz-active-gallery__footer-copy > span:last-child {
    display: flex;
    flex-direction: column;
}

.mtz-active-gallery__footer-copy small {
    margin-bottom: 3px;

    color: var(--mtz-orange-700);

    font-size: 0.46rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mtz-active-gallery__footer-copy strong {
    color: var(--mtz-navy-950);

    font-size: 0.6rem;
    font-weight: 800;
}

.mtz-active-gallery__load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 43px;
    padding: 8px 13px;

    color: var(--mtz-white);
    background: var(--mtz-navy-900);

    border: 0;
    border-radius: 12px;

    font-size: 0.59rem;
    font-weight: 850;

    cursor: pointer;

    transition:
        background-color 180ms ease,
        transform 180ms ease;
}

.mtz-active-gallery__load-more:hover {
    background: var(--mtz-orange-600);

    transform: translateY(-2px);
}

.mtz-active-gallery__load-more[hidden] {
    display: none;
}

.mtz-active-gallery__load-more svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Floating card */

.mtz-active-gallery__floating-card {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 4;

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

    max-width: 245px;
    padding: 9px 11px;

    color: var(--mtz-navy-950);
    background: rgba(255, 255, 255, 0.96);

    border:
        1px solid rgba(16, 36, 58, 0.1);

    border-radius: 14px;

    box-shadow:
        var(
            --mtz-shadow-md,
            0 16px 38px rgba(11, 22, 36, 0.15)
        );
}

.mtz-active-gallery__floating-icon {
    display: grid;
    place-items: center;

    width: 31px;
    height: 31px;

    color: var(--mtz-navy-950);
    background: var(--mtz-orange-500);

    border-radius: 10px;
}

.mtz-active-gallery__floating-icon svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mtz-active-gallery__floating-card > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.mtz-active-gallery__floating-card small {
    margin-bottom: 3px;

    color: var(--mtz-muted);

    font-size: 0.44rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mtz-active-gallery__floating-card strong {
    overflow: hidden;

    font-size: 0.59rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   LIGHTBOX
========================================================= */

html.mtz-project-lightbox-open {
    overflow: hidden;
}

.mtz-project-lightbox {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    padding: 0;

    overflow: hidden;

    color: var(--mtz-white);
    background: rgba(6, 12, 20, 0.94);

    border: 0;

    opacity: 0;

    transition:
        opacity 240ms ease;
}

.mtz-project-lightbox[open] {
    display: grid;
    place-items: center;

    opacity: 1;
}

.mtz-project-lightbox::backdrop {
    background: rgba(6, 12, 20, 0.94);

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

.mtz-project-lightbox__dialog {
    display: grid;
    grid-template-rows:
        auto
        minmax(0, 1fr)
        auto;

    width: min(96vw, 1500px);
    height: min(94vh, 940px);

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            var(--mtz-navy-950),
            #0d2236
        );

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 25px;
}

.mtz-project-lightbox__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    min-height: 69px;
    padding: 13px 16px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.1);
}

.mtz-project-lightbox__header > div > small {
    display: block;
    margin-bottom: 4px;

    color: var(--mtz-orange-500);

    font-size: 0.49rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mtz-project-lightbox__header h2 {
    display: flex;
    align-items: baseline;
    gap: 9px;

    margin: 0;

    color: var(--mtz-white);

    font-size: 1rem;
}

.mtz-project-lightbox__header h2 > small {
    color: rgba(255, 255, 255, 0.44);

    font-size: 0.55rem;
}

.mtz-project-lightbox__close {
    display: grid;
    place-items: center;

    width: 41px;
    height: 41px;

    color: var(--mtz-white);
    background: rgba(255, 255, 255, 0.08);

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius: 13px;

    cursor: pointer;

    transition:
        color 180ms ease,
        background-color 180ms ease;
}

.mtz-project-lightbox__close:hover {
    color: var(--mtz-navy-950);
    background: var(--mtz-orange-500);
}

.mtz-project-lightbox__close svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.mtz-project-lightbox__media {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 13px;

    min-height: 0;
    padding: 15px;
}

.mtz-project-lightbox__media figure {
    position: relative;

    display: grid;
    place-items: center;

    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;

    overflow: hidden;

    background: rgba(0, 0, 0, 0.24);

    border-radius: 17px;
}

.mtz-project-lightbox__media img {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 0;

    object-fit: contain;
}

.mtz-project-lightbox__media figcaption {
    position: absolute;
    right: 13px;
    bottom: 12px;

    padding: 7px 10px;

    color: rgba(255, 255, 255, 0.72);
    background: rgba(11, 22, 36, 0.78);

    border-radius: 9px;

    font-size: 0.51rem;
}

.mtz-project-lightbox__navigation {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    color: var(--mtz-white);
    background: rgba(255, 255, 255, 0.08);

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius: 14px;

    cursor: pointer;

    transition:
        color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.mtz-project-lightbox__navigation:hover {
    color: var(--mtz-navy-950);
    background: var(--mtz-orange-500);

    transform: scale(1.05);
}

.mtz-project-lightbox__navigation svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mtz-project-lightbox__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    min-height: 59px;
    padding: 11px 16px;

    border-top:
        1px solid rgba(255, 255, 255, 0.1);
}

.mtz-project-lightbox__footer > span {
    color: rgba(255, 255, 255, 0.44);

    font-size: 0.54rem;
}

.mtz-project-lightbox__footer > a {
    display: inline-flex;
    align-items: center;

    min-height: 36px;
    padding: 7px 11px;

    color: var(--mtz-navy-950);
    background: var(--mtz-orange-500);

    border-radius: 10px;

    font-size: 0.56rem;
    font-weight: 850;
}


/* =========================================================
   NOSCRIPT
========================================================= */

.mtz-project-explorer__noscript {
    margin-top: 20px;
    padding: 13px;

    color: var(--mtz-navy-950);
    background: var(--mtz-orange-100);

    border-radius: 14px;

    font-size: 0.72rem;
}


/* =========================================================
   ENTRADA
========================================================= */

.mtz-project-explorer.is-in-view
.mtz-project-explorer__header {
    animation:
        mtzExplorerHeaderEntrance
        700ms
        cubic-bezier(0.2, 0.8, 0.2, 1)
        both;
}

.mtz-project-explorer.is-in-view
.mtz-project-directory {
    animation:
        mtzExplorerDirectoryEntrance
        760ms
        70ms
        cubic-bezier(0.2, 0.8, 0.2, 1)
        both;
}

.mtz-project-explorer.is-in-view
.mtz-active-gallery {
    animation:
        mtzExplorerGalleryEntrance
        760ms
        120ms
        cubic-bezier(0.2, 0.8, 0.2, 1)
        both;
}

.mtz-active-gallery__panel.is-changing {
    animation:
        mtzGalleryPanelChange
        420ms
        cubic-bezier(0.2, 0.8, 0.2, 1)
        both;
}

@keyframes mtzExplorerHeaderEntrance {

    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mtzExplorerDirectoryEntrance {

    from {
        opacity: 0;
        transform:
            translate(-22px, 16px)
            scale(0.985);
    }

    to {
        opacity: 1;
        transform:
            translate(0, 0)
            scale(1);
    }
}

@keyframes mtzExplorerGalleryEntrance {

    from {
        opacity: 0;
        transform:
            translate(22px, 16px)
            scale(0.985);
    }

    to {
        opacity: 1;
        transform:
            translate(0, 0)
            scale(1);
    }
}

@keyframes mtzGalleryPanelChange {

    from {
        opacity: 0;
        transform: translateY(13px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}











































/* =========================================================
   MTZ CONSTRUCTION & REMODELING LLC
   INTRODUCCIÓN COMPACTA DE GALERÍA
========================================================= */

.mtz-gallery-intro {
    position: relative;
    z-index: 3;

    padding: 28px 0 16px;

    background:
        linear-gradient(
            180deg,
            rgba(245, 241, 233, 0.98),
            rgba(238, 243, 247, 0.98)
        );
}

.mtz-gallery-intro__container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   PANEL PRINCIPAL
========================================================= */

.mtz-gallery-intro__panel {
    position: relative;

    display: grid;
    grid-template-columns:
        minmax(165px, 0.58fr)
        minmax(0, 1.55fr)
        minmax(285px, 0.87fr);
    align-items: center;
    gap: 31px;

    min-height: 205px;
    padding: 27px 30px;

    overflow: hidden;

    color: var(--mtz-white, #ffffff);

    background:
        radial-gradient(
            circle at 91% 12%,
            rgba(47, 111, 159, 0.4),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            var(--mtz-navy-950, #0b1624),
            var(--mtz-navy-800, #173653)
        );

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius: 29px;

    box-shadow:
        var(
            --mtz-shadow-lg,
            0 25px 65px rgba(11, 22, 36, 0.18)
        );

    isolation: isolate;
}


/* =========================================================
   DECORACIÓN
========================================================= */

.mtz-gallery-intro__background {
    position: absolute;
    inset: 0;
    z-index: -1;

    overflow: hidden;
    pointer-events: none;
}

.mtz-gallery-intro__grid {
    position: absolute;
    inset: 0;

    opacity: 0.12;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.15) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.15) 1px,
            transparent 1px
        );

    background-size: 43px 43px;
}

.mtz-gallery-intro__glow {
    position: absolute;
    top: -170px;
    right: -100px;

    width: 390px;
    height: 390px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(241, 132, 37, 0.17),
            transparent 68%
        );
}

.mtz-gallery-intro__frame {
    position: absolute;
    top: -74px;
    left: 17%;

    width: 170px;
    height: 260px;

    opacity: 0.1;

    border:
        2px solid var(--mtz-white, #ffffff);

    border-radius: 24px;

    transform: rotate(10deg);
}

.mtz-gallery-intro__line {
    position: absolute;
    right: 29%;
    bottom: 19px;

    width: 215px;
    height: 2px;

    opacity: 0.24;

    background:
        repeating-linear-gradient(
            90deg,
            var(--mtz-orange-500, #f18425) 0,
            var(--mtz-orange-500, #f18425) 5px,
            transparent 5px,
            transparent 13px
        );

    transform: rotate(-6deg);
}


/* =========================================================
   MARCADOR
========================================================= */

.mtz-gallery-intro__marker {
    display: flex;
    align-items: center;
    gap: 13px;

    min-width: 0;
}

.mtz-gallery-intro__number {
    display: grid;
    place-items: center;

    width: 59px;
    height: 59px;

    flex: 0 0 auto;

    color: var(--mtz-navy-950, #0b1624);
    background: var(--mtz-orange-500, #f18425);

    border-radius: 18px;

    box-shadow:
        0 15px 32px rgba(241, 132, 37, 0.22);

    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.mtz-gallery-intro__marker-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.mtz-gallery-intro__marker-copy small {
    margin-bottom: 5px;

    color: var(--mtz-orange-500, #f18425);

    font-size: 0.5rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.mtz-gallery-intro__marker-copy strong {
    color: rgba(255, 255, 255, 0.91);

    font-family:
        var(
            --mtz-font-heading,
            system-ui,
            sans-serif
        );

    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.25;
}


/* =========================================================
   CONTENIDO
========================================================= */

.mtz-gallery-intro__content {
    min-width: 0;
    padding-inline: 29px;

    border-right:
        1px solid rgba(255, 255, 255, 0.1);

    border-left:
        1px solid rgba(255, 255, 255, 0.1);
}

.mtz-gallery-intro__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 9px;

    color: var(--mtz-orange-500, #f18425);

    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mtz-gallery-intro__eyebrow > span {
    width: 22px;
    height: 2px;

    background: currentColor;
}

.mtz-gallery-intro__content h2 {
    max-width: 670px;
    margin: 0 0 10px;

    color: var(--mtz-white, #ffffff);

    font-family:
        var(
            --mtz-font-heading,
            system-ui,
            sans-serif
        );

    font-size:
        clamp(
            1.55rem,
            2.45vw,
            2.65rem
        );

    font-weight: 850;
    line-height: 1.02;
    letter-spacing: -0.025em;
}

.mtz-gallery-intro__content h2 span {
    color: var(--mtz-blue-100, #ddecf6);
}

.mtz-gallery-intro__content p {
    max-width: 720px;
    margin: 0;

    color: rgba(255, 255, 255, 0.57);

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


/* =========================================================
   HERRAMIENTAS
========================================================= */

.mtz-gallery-intro__tools {
    display: grid;
    gap: 8px;

    min-width: 0;
}

.mtz-gallery-intro__active-category {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr);
    align-items: center;
    gap: 9px;

    min-width: 0;
    padding: 8px 10px;

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

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius: 14px;
}

.mtz-gallery-intro__active-category.has-service {
    background: rgba(241, 132, 37, 0.1);
    border-color: rgba(241, 132, 37, 0.3);
}

.mtz-gallery-intro__active-icon {
    display: grid;
    place-items: center;

    width: 35px;
    height: 35px;

    color: var(--mtz-navy-950, #0b1624);
    background: var(--mtz-orange-500, #f18425);

    border-radius: 11px;
}

.mtz-gallery-intro__active-icon svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mtz-gallery-intro__active-category > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.mtz-gallery-intro__active-category small {
    margin-bottom: 3px;

    color: rgba(255, 255, 255, 0.4);

    font-size: 0.44rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mtz-gallery-intro__active-category strong {
    overflow: hidden;

    color: rgba(255, 255, 255, 0.88);

    font-size: 0.61rem;
    font-weight: 850;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Summary */

.mtz-gallery-intro__summary {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);
    align-items: center;
    gap: 10px;

    padding: 8px 11px;

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

    border:
        1px solid rgba(255, 255, 255, 0.075);

    border-radius: 13px;
}

.mtz-gallery-intro__summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mtz-gallery-intro__summary small {
    color: rgba(255, 255, 255, 0.38);

    font-size: 0.44rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.mtz-gallery-intro__summary strong {
    color: var(--mtz-orange-500, #f18425);

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

.mtz-gallery-intro__summary > span {
    width: 1px;
    height: 22px;

    background: rgba(255, 255, 255, 0.11);
}


/* Button */

.mtz-gallery-intro__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    min-height: 42px;
    padding: 8px 12px;

    color: var(--mtz-navy-950, #0b1624);
    background:
        linear-gradient(
            135deg,
            var(--mtz-orange-500, #f18425),
            var(--mtz-orange-600, #d96a16)
        );

    border-radius: 13px;

    box-shadow:
        0 12px 25px rgba(217, 106, 22, 0.2);

    font-size: 0.58rem;
    font-weight: 900;

    transition:
        color var(--mtz-transition-fast, 180ms ease),
        box-shadow var(--mtz-transition-fast, 180ms ease),
        transform var(--mtz-transition-fast, 180ms ease);
}

.mtz-gallery-intro__button:hover {
    color: var(--mtz-navy-950, #0b1624);

    box-shadow:
        0 16px 31px rgba(217, 106, 22, 0.27);

    transform: translateY(-2px);
}

.mtz-gallery-intro__button svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform var(--mtz-transition-fast, 180ms ease);
}

.mtz-gallery-intro__button:hover svg {
    transform: translateY(3px);
}


/* =========================================================
   INSTRUCCIONES
========================================================= */

.mtz-gallery-intro__instructions {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);
    align-items: center;
    gap: 22px;

    width: calc(100% - 48px);
    margin: -1px auto 0;
    padding: 15px 22px;

    color: var(--mtz-navy-950, #0b1624);
    background: rgba(255, 255, 255, 0.91);

    border:
        1px solid rgba(16, 36, 58, 0.09);

    border-top: 0;
    border-radius: 0 0 19px 19px;

    box-shadow:
        0 14px 35px rgba(16, 36, 58, 0.08);

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

.mtz-gallery-intro__instruction {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr);
    align-items: center;
    gap: 10px;

    min-width: 0;
}

.mtz-gallery-intro__instruction-icon {
    display: grid;
    place-items: center;

    width: 35px;
    height: 35px;

    color: var(--mtz-orange-600, #d96a16);
    background: var(--mtz-orange-100, #fde8d5);

    border-radius: 11px;
}

.mtz-gallery-intro__instruction-icon svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mtz-gallery-intro__instruction > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.mtz-gallery-intro__instruction strong {
    margin-bottom: 3px;

    color: var(--mtz-navy-950, #0b1624);

    font-size: 0.59rem;
    font-weight: 850;
}

.mtz-gallery-intro__instruction small {
    color: var(--mtz-muted, #6d7884);

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

.mtz-gallery-intro__divider {
    width: 1px;
    height: 34px;

    background: rgba(16, 36, 58, 0.1);
}


/* =========================================================
   ENTRADA
========================================================= */

.mtz-gallery-intro.is-ready
.mtz-gallery-intro__panel {
    animation:
        mtzGalleryIntroPanelEntrance
        720ms
        var(
            --mtz-ease-standard,
            cubic-bezier(0.2, 0.8, 0.2, 1)
        )
        both;
}

.mtz-gallery-intro.is-ready
.mtz-gallery-intro__instructions {
    animation:
        mtzGalleryIntroInstructionsEntrance
        650ms
        100ms
        var(
            --mtz-ease-standard,
            cubic-bezier(0.2, 0.8, 0.2, 1)
        )
        both;
}

@keyframes mtzGalleryIntroPanelEntrance {

    from {
        opacity: 0;

        transform:
            translate3d(0, 22px, 0)
            scale(0.988);
    }

    to {
        opacity: 1;

        transform:
            translate3d(0, 0, 0)
            scale(1);
    }
}

@keyframes mtzGalleryIntroInstructionsEntrance {

    from {
        opacity: 0;
        transform: translate3d(0, -10px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}









































/* =========================================================
   MTZ CONSTRUCTION & REMODELING LLC
   PROJECT QUALITY
========================================================= */

.mtz-project-quality {
    position: relative;
    z-index: 1;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(248, 247, 243, 0.99),
            rgba(238, 243, 247, 0.98)
        );

    border-top:
        1px solid rgba(16, 36, 58, 0.08);
}

.mtz-project-quality__container {
    position: relative;
    z-index: 3;
}


/* =========================================================
   DECORACIÓN
========================================================= */

.mtz-project-quality__background {
    position: absolute;
    inset: 0;
    z-index: 0;

    overflow: hidden;
    pointer-events: none;
}

.mtz-project-quality__grid {
    position: absolute;
    inset: 0;

    opacity: 0.25;

    background-image:
        linear-gradient(
            rgba(16, 36, 58, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(16, 36, 58, 0.045) 1px,
            transparent 1px
        );

    background-size: 52px 52px;

    mask-image:
        linear-gradient(
            90deg,
            black,
            transparent 49%,
            black
        );

    -webkit-mask-image:
        linear-gradient(
            90deg,
            black,
            transparent 49%,
            black
        );
}

.mtz-project-quality__glow {
    position: absolute;

    border-radius: 50%;
    filter: blur(12px);
}

.mtz-project-quality__glow--blue {
    top: -230px;
    left: -190px;

    width: 560px;
    height: 560px;

    background:
        radial-gradient(
            circle,
            rgba(47, 111, 159, 0.18),
            transparent 68%
        );
}

.mtz-project-quality__glow--orange {
    right: -210px;
    bottom: -250px;

    width: 540px;
    height: 540px;

    background:
        radial-gradient(
            circle,
            rgba(241, 132, 37, 0.13),
            transparent 68%
        );
}

.mtz-project-quality__frame {
    position: absolute;
    top: 16%;
    right: -110px;

    width: 280px;
    height: 395px;

    opacity: 0.11;

    border:
        2px solid var(--mtz-blue-600, #2f6f9f);

    border-radius: 35px;

    background:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 52px,
            rgba(47, 111, 159, 0.35) 53px,
            rgba(47, 111, 159, 0.35) 55px
        );

    transform: rotate(8deg);
}

.mtz-project-quality__measure {
    position: absolute;
    top: 47%;
    left: 3%;

    width: 300px;
    height: 2px;

    opacity: 0.23;

    background:
        repeating-linear-gradient(
            90deg,
            var(--mtz-orange-500, #f18425) 0,
            var(--mtz-orange-500, #f18425) 6px,
            transparent 6px,
            transparent 14px
        );

    transform: rotate(-28deg);
}

.mtz-project-quality__corner {
    position: absolute;
    left: -75px;
    bottom: 8%;

    width: 190px;
    height: 190px;

    opacity: 0.09;

    border-left:
        32px solid var(--mtz-orange-500, #f18425);

    border-bottom:
        32px solid var(--mtz-orange-500, #f18425);

    border-radius: 0 0 0 42px;

    transform: rotate(12deg);
}


/* =========================================================
   ENCABEZADO
========================================================= */

.mtz-project-quality__header {
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(330px, 0.92fr);
    align-items: end;
    gap: 62px;

    margin-bottom: 48px;
}

.mtz-project-quality__heading,
.mtz-project-quality__introduction {
    min-width: 0;
}

.mtz-project-quality__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 17px;

    color: var(--mtz-orange-700, #b9530e);

    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mtz-project-quality__eyebrow > span {
    width: 29px;
    height: 2px;

    background: var(--mtz-orange-500, #f18425);
}

.mtz-project-quality__title {
    max-width: 850px;
    margin: 0;

    color: var(--mtz-navy-950, #0b1624);

    font-size:
        clamp(
            2.7rem,
            4.8vw,
            5rem
        );

    line-height: 0.97;
}

.mtz-project-quality__title span {
    display: block;

    color: var(--mtz-blue-600, #2f6f9f);
}

.mtz-project-quality__introduction > p {
    max-width: 590px;
    margin: 0 0 20px;

    color: var(--mtz-slate, #4e5d6c);

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

.mtz-project-quality__intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 9px 14px 9px 9px;

    color: var(--mtz-navy-950, #0b1624);
    background: rgba(255, 255, 255, 0.78);

    border:
        1px solid rgba(16, 36, 58, 0.1);

    border-radius:
        var(--mtz-radius-pill, 999px);

    box-shadow:
        var(
            --mtz-shadow-xs,
            0 8px 24px rgba(16, 36, 58, 0.08)
        );
}

.mtz-project-quality__intro-icon {
    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    color: var(--mtz-white, #ffffff);
    background: var(--mtz-orange-500, #f18425);

    border-radius: 50%;
}

.mtz-project-quality__intro-icon svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mtz-project-quality__intro-badge > span:last-child {
    display: flex;
    flex-direction: column;
}

.mtz-project-quality__intro-badge small {
    margin-bottom: 3px;

    color: var(--mtz-muted, #6d7884);

    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mtz-project-quality__intro-badge strong {
    font-size: 0.76rem;
    font-weight: 850;
}


/* =========================================================
   LAYOUT
========================================================= */

.mtz-project-quality__layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.17fr)
        minmax(330px, 0.83fr);
    align-items: stretch;
    gap: 28px;
}


/* =========================================================
   PANEL VISUAL
========================================================= */

.mtz-project-quality__visual {
    position: relative;

    display: grid;
    grid-template-rows:
        auto
        minmax(0, 1fr)
        auto;

    min-width: 0;
    min-height: 610px;
    padding: 22px;

    overflow: hidden;

    color: var(--mtz-white, #ffffff);

    background:
        radial-gradient(
            circle at 92% 8%,
            rgba(47, 111, 159, 0.42),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            var(--mtz-navy-950, #0b1624),
            var(--mtz-navy-800, #173653)
        );

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius: 33px;

    box-shadow:
        var(
            --mtz-shadow-lg,
            0 25px 65px rgba(11, 22, 36, 0.18)
        );

    isolation: isolate;
}

.mtz-project-quality__visual-grid {
    position: absolute;
    inset: 0;
    z-index: -2;

    opacity: 0.12;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.13) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.13) 1px,
            transparent 1px
        );

    background-size: 42px 42px;
}

.mtz-project-quality__visual::before {
    position: absolute;
    right: -130px;
    bottom: -145px;
    z-index: -1;

    width: 330px;
    height: 330px;

    content: "";

    border:
        48px solid rgba(241, 132, 37, 0.075);

    border-radius: 50%;
}

.mtz-project-quality__visual-header {
    position: relative;
    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 15px;
}

.mtz-project-quality__visual-header > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mtz-project-quality__visual-header > div > span {
    color: var(--mtz-orange-500, #f18425);

    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.mtz-project-quality__visual-header strong {
    color: rgba(255, 255, 255, 0.48);

    font-size: 0.61rem;
    font-weight: 850;
}

.mtz-project-quality__visual-header strong span {
    color: var(--mtz-orange-500, #f18425);
}

.mtz-project-quality__visual-icon {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    color: var(--mtz-navy-950, #0b1624);
    background: var(--mtz-orange-500, #f18425);

    border-radius: 13px;
}

.mtz-project-quality__visual-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Imagen */

.mtz-project-quality__media {
    position: relative;

    min-width: 0;
    min-height: 0;
    margin: 0;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            var(--mtz-gray-200, #dce2e8),
            var(--mtz-blue-100, #ddecf6)
        );

    border:
        1px solid rgba(255, 255, 255, 0.13);

    border-radius: 24px;

    isolation: isolate;
}

.mtz-project-quality__media img {
    position: absolute;
    inset: 0;
    z-index: 1;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 1;

    transition:
        opacity 280ms ease,
        transform 700ms
        var(
            --mtz-ease-standard,
            cubic-bezier(0.2, 0.8, 0.2, 1)
        );
}

.mtz-project-quality__media:hover img {
    transform: scale(1.035);
}

.mtz-project-quality__visual.is-changing
.mtz-project-quality__media img {
    opacity: 0.25;
    transform: scale(1.025);
}

.mtz-project-quality__media-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    background:
        linear-gradient(
            180deg,
            rgba(11, 22, 36, 0.04) 20%,
            rgba(11, 22, 36, 0.86) 100%
        );

    pointer-events: none;
}

.mtz-project-quality__image-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;

    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;

    color: var(--mtz-navy-900, #10243a);
    background:
        linear-gradient(
            135deg,
            var(--mtz-gray-200, #dce2e8),
            var(--mtz-blue-100, #ddecf6)
        );
}

.mtz-project-quality__fallback-icon {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    color: var(--mtz-white, #ffffff);
    background: var(--mtz-navy-900, #10243a);

    border-radius: 15px;
}

.mtz-project-quality__fallback-icon svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.mtz-project-quality__image-fallback strong {
    font-size: 0.72rem;
}

.mtz-project-quality__visual.is-image-error
.mtz-project-quality__media img {
    display: none;
}


/* Caption */

.mtz-project-quality__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;

    padding: 28px;
}

.mtz-project-quality__caption-eyebrow {
    display: block;
    margin-bottom: 7px;

    color: var(--mtz-orange-500, #f18425);

    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.mtz-project-quality__caption h3 {
    max-width: 620px;
    margin: 0 0 10px;

    color: var(--mtz-white, #ffffff);

    font-size:
        clamp(
            2rem,
            3.7vw,
            3.8rem
        );

    line-height: 0.98;
}

.mtz-project-quality__caption p {
    max-width: 680px;
    margin: 0;

    color: rgba(255, 255, 255, 0.68);

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

.mtz-project-quality__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 17px;
}

.mtz-project-quality__tags span {
    display: inline-flex;
    align-items: center;

    min-height: 28px;
    padding: 5px 9px;

    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.09);

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius:
        var(--mtz-radius-pill, 999px);

    font-size: 0.49rem;
    font-weight: 800;

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


/* Footer visual */

.mtz-project-quality__visual-footer {
    position: relative;
    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding-top: 15px;
}

.mtz-project-quality__visual-footer > span:first-child {
    display: flex;
    flex-direction: column;
}

.mtz-project-quality__visual-footer small {
    margin-bottom: 3px;

    color: var(--mtz-orange-500, #f18425);

    font-size: 0.47rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mtz-project-quality__visual-footer strong {
    color: rgba(255, 255, 255, 0.62);

    font-size: 0.59rem;
    font-weight: 750;
}

.mtz-project-quality__progress {
    width: 115px;
    height: 5px;

    overflow: hidden;

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

    border-radius:
        var(--mtz-radius-pill, 999px);
}

.mtz-project-quality__progress span {
    display: block;

    width: 25%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--mtz-orange-500, #f18425),
            var(--mtz-orange-600, #d96a16)
        );

    border-radius: inherit;

    transition:
        width 350ms
        var(
            --mtz-ease-standard,
            cubic-bezier(0.2, 0.8, 0.2, 1)
        );
}

.mtz-project-quality__visual-frame {
    position: absolute;
    top: 106px;
    right: -48px;
    z-index: 0;

    width: 145px;
    height: 210px;

    opacity: 0.12;

    border:
        2px solid var(--mtz-white, #ffffff);

    border-radius: 22px;

    pointer-events: none;
}


/* =========================================================
   CONTROLES
========================================================= */

.mtz-project-quality__controls {
    display: flex;
    min-width: 0;
    flex-direction: column;

    padding: 25px;

    color: var(--mtz-navy-950, #0b1624);
    background: rgba(255, 255, 255, 0.91);

    border:
        1px solid rgba(16, 36, 58, 0.1);

    border-radius: 31px;

    box-shadow:
        var(
            --mtz-shadow-lg,
            0 25px 65px rgba(11, 22, 36, 0.15)
        );

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

.mtz-project-quality__controls-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding-bottom: 17px;

    border-bottom:
        1px solid rgba(16, 36, 58, 0.09);
}

.mtz-project-quality__controls-header > div > span {
    display: block;
    margin-bottom: 5px;

    color: var(--mtz-orange-700, #b9530e);

    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mtz-project-quality__controls-header h3 {
    margin: 0;

    color: var(--mtz-navy-950, #0b1624);

    font-size: 1.25rem;
    line-height: 1.1;
}

.mtz-project-quality__controls-icon {
    display: grid;
    place-items: center;

    width: 43px;
    height: 43px;

    flex: 0 0 auto;

    color: var(--mtz-white, #ffffff);
    background: var(--mtz-navy-900, #10243a);

    border-radius: 14px;
}

.mtz-project-quality__controls-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mtz-project-quality__controls-description {
    margin: 15px 0;

    color: var(--mtz-muted, #6d7884);

    font-size: 0.68rem;
    line-height: 1.5;
}


/* Opciones */

.mtz-project-quality__options {
    display: grid;
    gap: 8px;
}

.mtz-project-quality__option {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 11px;

    min-height: 87px;
    padding: 11px 12px;

    color: var(--mtz-navy-950, #0b1624);
    background: var(--mtz-gray-50, #f7f9fa);

    border:
        1px solid rgba(16, 36, 58, 0.09);

    border-radius: 16px;

    text-align: left;
    cursor: pointer;

    transition:
        background-color
        var(--mtz-transition-fast, 180ms ease),
        border-color
        var(--mtz-transition-fast, 180ms ease),
        box-shadow
        var(--mtz-transition-fast, 180ms ease),
        transform
        var(--mtz-transition-fast, 180ms ease);
}

.mtz-project-quality__option:hover {
    border-color: rgba(47, 111, 159, 0.28);

    transform: translateX(3px);
}

.mtz-project-quality__option.is-active {
    background: rgba(221, 236, 246, 0.74);
    border-color: var(--mtz-blue-500, #4284b5);

    box-shadow:
        0 12px 27px rgba(47, 111, 159, 0.11);
}

.mtz-project-quality__option:focus-visible {
    outline:
        3px solid rgba(241, 132, 37, 0.28);

    outline-offset: 3px;
}

.mtz-project-quality__option-number {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    color: var(--mtz-orange-600, #d96a16);
    background: var(--mtz-orange-100, #fde8d5);

    border-radius: 12px;

    font-size: 0.54rem;
    font-weight: 900;
    letter-spacing: 0.08em;

    transition:
        color var(--mtz-transition-fast, 180ms ease),
        background-color
        var(--mtz-transition-fast, 180ms ease);
}

.mtz-project-quality__option.is-active
.mtz-project-quality__option-number {
    color: var(--mtz-navy-950, #0b1624);
    background: var(--mtz-orange-500, #f18425);
}

.mtz-project-quality__option-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.mtz-project-quality__option-copy small {
    margin-bottom: 3px;

    color: var(--mtz-orange-700, #b9530e);

    font-size: 0.46rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.mtz-project-quality__option-copy strong {
    margin-bottom: 4px;

    color: var(--mtz-navy-950, #0b1624);

    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.15;
}

.mtz-project-quality__option-copy > span {
    color: var(--mtz-muted, #6d7884);

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

.mtz-project-quality__option-arrow {
    display: grid;
    place-items: center;

    width: 30px;
    height: 30px;

    color: var(--mtz-muted, #6d7884);
    background: var(--mtz-gray-100, #eef1f4);

    border-radius: 10px;

    transition:
        color var(--mtz-transition-fast, 180ms ease),
        background-color
        var(--mtz-transition-fast, 180ms ease),
        transform
        var(--mtz-transition-fast, 180ms ease);
}

.mtz-project-quality__option.is-active
.mtz-project-quality__option-arrow {
    color: var(--mtz-navy-950, #0b1624);
    background: var(--mtz-orange-500, #f18425);

    transform: translateX(2px);
}

.mtz-project-quality__option-arrow svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Nota */

.mtz-project-quality__note {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin-top: auto;
    padding-top: 18px;
}

.mtz-project-quality__note-icon {
    display: grid;
    place-items: center;

    width: 31px;
    height: 31px;

    flex: 0 0 auto;

    color: var(--mtz-navy-950, #0b1624);
    background: var(--mtz-orange-500, #f18425);

    border-radius: 10px;
}

.mtz-project-quality__note-icon svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mtz-project-quality__note p {
    margin: 2px 0 0;

    color: var(--mtz-muted, #6d7884);

    font-size: 0.57rem;
    line-height: 1.5;
}


/* =========================================================
   FRANJA INFERIOR
========================================================= */

.mtz-project-quality__features {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr)
        auto
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 20px;

    margin-top: 28px;
    padding: 18px 20px;

    color: var(--mtz-navy-950, #0b1624);
    background: rgba(255, 255, 255, 0.86);

    border:
        1px solid rgba(16, 36, 58, 0.09);

    border-radius: 21px;

    box-shadow:
        var(
            --mtz-shadow-sm,
            0 12px 34px rgba(16, 36, 58, 0.08)
        );

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

.mtz-project-quality__feature {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.mtz-project-quality__feature-icon {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    color: var(--mtz-orange-600, #d96a16);
    background: var(--mtz-orange-100, #fde8d5);

    border-radius: 12px;
}

.mtz-project-quality__feature-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mtz-project-quality__feature > span:last-child {
    display: flex;
    flex-direction: column;
}

.mtz-project-quality__feature small {
    margin-bottom: 3px;

    color: var(--mtz-muted, #6d7884);

    font-size: 0.47rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.mtz-project-quality__feature strong {
    color: var(--mtz-navy-950, #0b1624);

    font-size: 0.63rem;
    font-weight: 850;
}

.mtz-project-quality__feature-divider {
    width: 1px;
    height: 37px;

    background: rgba(16, 36, 58, 0.1);
}

.mtz-project-quality__return-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 43px;
    padding: 8px 13px;

    color: var(--mtz-white, #ffffff);
    background: var(--mtz-navy-900, #10243a);

    border-radius: 12px;

    font-size: 0.58rem;
    font-weight: 850;
    white-space: nowrap;

    transition:
        color var(--mtz-transition-fast, 180ms ease),
        background-color
        var(--mtz-transition-fast, 180ms ease),
        transform
        var(--mtz-transition-fast, 180ms ease);
}

.mtz-project-quality__return-link:hover {
    color: var(--mtz-white, #ffffff);
    background: var(--mtz-orange-600, #d96a16);

    transform: translateY(-2px);
}

.mtz-project-quality__return-link svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   ANIMACIONES
========================================================= */

.mtz-project-quality.is-in-view
.mtz-project-quality__header {
    animation:
        mtzQualityHeaderEntrance
        700ms
        var(
            --mtz-ease-standard,
            cubic-bezier(0.2, 0.8, 0.2, 1)
        )
        both;
}

.mtz-project-quality.is-in-view
.mtz-project-quality__visual {
    animation:
        mtzQualityVisualEntrance
        780ms
        70ms
        var(
            --mtz-ease-standard,
            cubic-bezier(0.2, 0.8, 0.2, 1)
        )
        both;
}

.mtz-project-quality.is-in-view
.mtz-project-quality__controls {
    animation:
        mtzQualityControlsEntrance
        780ms
        120ms
        var(
            --mtz-ease-standard,
            cubic-bezier(0.2, 0.8, 0.2, 1)
        )
        both;
}

.mtz-project-quality.is-in-view
.mtz-project-quality__features {
    animation:
        mtzQualityFeaturesEntrance
        680ms
        180ms
        var(
            --mtz-ease-standard,
            cubic-bezier(0.2, 0.8, 0.2, 1)
        )
        both;
}

@keyframes mtzQualityHeaderEntrance {

    from {
        opacity: 0;
        transform: translate3d(0, 22px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes mtzQualityVisualEntrance {

    from {
        opacity: 0;

        transform:
            translate3d(-23px, 17px, 0)
            scale(0.985);
    }

    to {
        opacity: 1;

        transform:
            translate3d(0, 0, 0)
            scale(1);
    }
}

@keyframes mtzQualityControlsEntrance {

    from {
        opacity: 0;

        transform:
            translate3d(23px, 17px, 0)
            scale(0.985);
    }

    to {
        opacity: 1;

        transform:
            translate3d(0, 0, 0)
            scale(1);
    }
}

@keyframes mtzQualityFeaturesEntrance {

    from {
        opacity: 0;
        transform: translate3d(0, 17px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}










































/* =========================================================
   1. COMPUTADORAS
========================================================= */

@media (min-width: 1200px) {
     .mtz-project-quality__layout {
        grid-template-columns:
            minmax(0, 1.19fr)
            minmax(360px, 0.81fr);

        gap: 30px;
    }

    .mtz-project-quality__visual {
        min-height: 630px;
    }
     .mtz-gallery-intro__panel {
        grid-template-columns:
            minmax(180px, 0.56fr)
            minmax(0, 1.58fr)
            minmax(305px, 0.86fr);

        padding-inline: 34px;
    }
      .mtz-project-explorer__layout {
        grid-template-columns:
            minmax(300px, 0.67fr)
            minmax(0, 1.33fr);

        gap: 30px;
    }

    .mtz-active-gallery__grid {
        grid-auto-rows: 155px;
    }

    .mtz-gallery-hero__container {
        grid-template-columns:
            minmax(0, 1.08fr)
            minmax(430px, 0.92fr);

        gap: clamp(60px, 6vw, 96px);
    }

    .mtz-gallery-hero__collage {
        width: min(100%, 550px);
        height: min(100%, 625px);
    }
}


/* =========================================================
   2. TABLETS Y COMPUTADORAS PEQUEÑAS
========================================================= */

@media (min-width: 768px) and (max-width: 1199px) {
     .mtz-project-quality__header {
        grid-template-columns:
            minmax(0, 1.04fr)
            minmax(290px, 0.96fr);
        gap: 39px;

        margin-bottom: 40px;
    }

    .mtz-project-quality__title {
        font-size:
            clamp(
                2.4rem,
                4.8vw,
                4rem
            );
    }

    .mtz-project-quality__introduction > p {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .mtz-project-quality__layout {
        grid-template-columns:
            minmax(0, 1.08fr)
            minmax(280px, 0.92fr);
        gap: 19px;
    }

    .mtz-project-quality__visual {
        min-height: 590px;
        padding: 18px;

        border-radius: 28px;
    }

    .mtz-project-quality__caption {
        padding: 22px;
    }

    .mtz-project-quality__caption h3 {
        font-size: 2.55rem;
    }

    .mtz-project-quality__controls {
        padding: 19px;

        border-radius: 27px;
    }

    .mtz-project-quality__option {
        min-height: 79px;
        padding: 9px;
    }

    .mtz-project-quality__option-copy > span {
        display: none;
    }

    .mtz-project-quality__features {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
        gap: 11px;
    }

    .mtz-project-quality__feature-divider {
        display: none;
    }

    .mtz-project-quality__return-link {
        grid-column: 1 / -1;
    }
     .mtz-gallery-intro {
        padding-top: 23px;
    }

    .mtz-gallery-intro__panel {
        grid-template-columns:
            minmax(135px, 0.47fr)
            minmax(0, 1.35fr)
            minmax(235px, 0.88fr);
        gap: 19px;

        min-height: 190px;
        padding: 22px;

        border-radius: 25px;
    }

    .mtz-gallery-intro__content {
        padding-inline: 20px;
    }

    .mtz-gallery-intro__marker {
        gap: 9px;
    }

    .mtz-gallery-intro__number {
        width: 49px;
        height: 49px;

        border-radius: 15px;
    }

    .mtz-gallery-intro__marker-copy strong {
        font-size: 0.67rem;
    }

    .mtz-gallery-intro__content h2 {
        font-size: clamp(1.4rem, 2.8vw, 2.1rem);
    }

    .mtz-gallery-intro__content p {
        font-size: 0.65rem;
    }

    .mtz-gallery-intro__instructions {
        gap: 14px;

        width: calc(100% - 36px);
        padding-inline: 17px;
    }

    .mtz-gallery-intro__instruction small {
        display: none;
    }
     .mtz-project-explorer__header {
        grid-template-columns:
            minmax(0, 1.04fr)
            minmax(290px, 0.96fr);

        gap: 38px;

        margin-bottom: 40px;
    }

    .mtz-project-explorer__title {
        font-size: clamp(2.4rem, 4.8vw, 4rem);
    }

    .mtz-project-explorer__introduction > p {
        font-size: 0.91rem;
    }

    .mtz-project-explorer__layout {
        grid-template-columns:
            minmax(235px, 0.7fr)
            minmax(0, 1.3fr);

        gap: 18px;
    }

    .mtz-project-directory {
        top:
            calc(
                var(--mtz-chrome-height, 106px) +
                14px
            );

        padding: 18px;

        border-radius: 25px;
    }

    .mtz-project-directory__item {
        min-height: 48px;
        padding: 6px;
    }

    .mtz-project-directory__number {
        width: 28px;
        height: 28px;
    }

    .mtz-project-directory__copy strong {
        font-size: 0.54rem;
    }

    .mtz-project-directory__copy small {
        display: none;
    }

    .mtz-active-gallery {
        padding-inline: 4px;
    }

    .mtz-active-gallery__panel {
        padding: 18px;

        border-radius: 26px;
    }

    .mtz-active-gallery__header {
        align-items: flex-start;
    }

    .mtz-active-gallery__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .mtz-active-gallery__description {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .mtz-active-gallery__tags {
        justify-content: flex-start;
    }

    .mtz-active-gallery__grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        grid-auto-rows: 140px;
    }

    .mtz-project-lightbox__dialog {
        width: 96vw;
        height: 92vh;
    }

    .mtz-gallery-hero__container {
        grid-template-columns:
            minmax(0, 1.02fr)
            minmax(305px, 0.98fr);

        gap: 29px;

        padding-top: 19px;
        padding-bottom: 30px;
    }

    .mtz-gallery-hero__breadcrumb {
        margin-bottom: 10px;
    }

    .mtz-gallery-hero__eyebrow {
        margin-bottom: 13px;
    }

    .mtz-gallery-hero__title {
        margin-bottom: 14px;

        font-size:
            clamp(
                2.45rem,
                5.2vw,
                4.35rem
            );
    }

    .mtz-gallery-hero__description {
        margin-bottom: 18px;

        font-size: 0.92rem;
        line-height: 1.56;
    }

    .mtz-gallery-hero__actions {
        margin-bottom: 17px;
    }

    .mtz-gallery-hero__highlights {
        gap: 5px;
    }

    .mtz-gallery-hero__highlights li {
        padding: 7px;
    }

    .mtz-gallery-hero__highlights strong {
        font-size: 0.56rem;
    }

    .mtz-gallery-hero__highlights small {
        display: none;
    }

    .mtz-gallery-hero__visual {
        padding-inline: 7px;
    }

    .mtz-gallery-hero__collage {
        width: min(100%, 440px);
        height: min(100%, 520px);
        min-height: 345px;
    }

    .mtz-gallery-hero__photo--main {
        border-radius: 29px;
    }

    .mtz-gallery-hero__photo--secondary,
    .mtz-gallery-hero__photo--detail {
        border-radius: 19px;
    }

    .mtz-gallery-hero__active-card {
        max-width: 240px;
    }

    .mtz-gallery-hero__categories-card {
        left: -3px;
    }
}


/* =========================================================
   3. CELULARES
========================================================= */

@media (min-width: 481px) and (max-width: 767px) {
     .mtz-project-quality__header {
        grid-template-columns: 1fr;
        gap: 20px;

        margin-bottom: 35px;
    }

    .mtz-project-quality__title {
        font-size:
            clamp(
                2.3rem,
                8.5vw,
                3.6rem
            );
    }

    .mtz-project-quality__introduction > p {
        max-width: 650px;

        font-size: 0.92rem;
    }

    .mtz-project-quality__layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .mtz-project-quality__visual {
        min-height: 570px;
        padding: 20px;

        border-radius: 28px;
    }

    .mtz-project-quality__controls {
        padding: 21px;

        border-radius: 27px;
    }

    .mtz-project-quality__options {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .mtz-project-quality__option {
        grid-template-columns:
            auto
            minmax(0, 1fr);

        min-height: 105px;
    }

    .mtz-project-quality__option-arrow {
        display: none;
    }

    .mtz-project-quality__features {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
        gap: 9px;

        padding: 15px;
    }

    .mtz-project-quality__feature {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .mtz-project-quality__feature-icon {
        margin-inline: auto;
    }

    .mtz-project-quality__feature-divider {
        display: none;
    }

    .mtz-project-quality__return-link {
        grid-column: 1 / -1;
    }
    .mtz-gallery-intro {
        padding: 19px 0 12px;
    }

    .mtz-gallery-intro__panel {
        grid-template-columns:
            auto
            minmax(0, 1fr);
        gap: 21px;

        min-height: 0;
        padding: 22px;

        border-radius: 24px;
    }

    .mtz-gallery-intro__marker {
        align-self: start;
    }

    .mtz-gallery-intro__marker-copy {
        display: none;
    }

    .mtz-gallery-intro__content {
        padding: 0;

        border: 0;
    }

    .mtz-gallery-intro__content h2 {
        font-size: clamp(1.6rem, 5.8vw, 2.3rem);
    }

    .mtz-gallery-intro__content p {
        font-size: 0.69rem;
    }

    .mtz-gallery-intro__tools {
        grid-column: 1 / -1;
        grid-template-columns:
            minmax(0, 1fr)
            auto;
    }

    .mtz-gallery-intro__active-category {
        min-width: 0;
    }

    .mtz-gallery-intro__summary {
        min-width: 155px;
    }

    .mtz-gallery-intro__button {
        grid-column: 1 / -1;
    }

    .mtz-gallery-intro__instructions {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
        gap: 9px;

        width: calc(100% - 28px);
        padding: 13px;
    }

    .mtz-gallery-intro__divider {
        display: none;
    }

    .mtz-gallery-intro__instruction {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .mtz-gallery-intro__instruction-icon {
        margin-inline: auto;
    }

    .mtz-gallery-intro__instruction small {
        display: none;
    }
        .mtz-project-explorer__header {
        grid-template-columns: 1fr;
        gap: 20px;

        margin-bottom: 31px;
    }

    .mtz-project-explorer__title {
        font-size: clamp(2.3rem, 8.5vw, 3.6rem);
    }

    .mtz-project-explorer__introduction > p {
        max-width: 650px;

        font-size: 0.92rem;
    }

    .mtz-project-explorer__mobile-selector {
        display: block;
    }

    .mtz-project-explorer__layout {
        grid-template-columns: 1fr;
    }

    .mtz-project-directory {
        display: none;
    }

    .mtz-active-gallery {
        padding: 7px 6px 24px;
    }

    .mtz-active-gallery__panel {
        padding: 19px;

        border-radius: 26px;
    }

    .mtz-active-gallery__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .mtz-active-gallery__actions {
        justify-content: space-between;

        width: 100%;
    }

    .mtz-active-gallery__description {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .mtz-active-gallery__tags {
        justify-content: flex-start;
    }

    .mtz-active-gallery__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-auto-rows: 165px;
    }

    .mtz-project-photo--featured {
        grid-column: 1 / -1;
        grid-row: span 2;
    }

    .mtz-project-photo--wide {
        grid-column: 1 / -1;
    }

    .mtz-active-gallery__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .mtz-active-gallery__load-more {
        width: 100%;
    }

    .mtz-project-lightbox__dialog {
        width: 96vw;
        height: 92vh;

        border-radius: 20px;
    }

    .mtz-project-lightbox__media {
        grid-template-columns:
            42px
            minmax(0, 1fr)
            42px;

        gap: 6px;
        padding: 9px;
    }

    .mtz-project-lightbox__navigation {
        width: 40px;
        height: 40px;
    }

    .mtz-gallery-hero__container {
        grid-template-columns: 1fr;
        grid-template-rows:
            auto
            minmax(185px, 1fr);

        align-content: center;
        gap: 10px;

        width: calc(100% - 32px);

        padding-top: 10px;
        padding-bottom: 25px;
    }

    .mtz-gallery-hero__breadcrumb {
        display: none;
    }

    .mtz-gallery-hero__eyebrow {
        min-height: 29px;
        margin-bottom: 8px;
        padding: 5px 11px 5px 5px;

        font-size: 0.56rem;
    }

    .mtz-gallery-hero__eyebrow-icon {
        width: 21px;
        height: 21px;
    }

    .mtz-gallery-hero__title {
        margin-bottom: 8px;

        font-size:
            clamp(
                2.05rem,
                8vw,
                3.1rem
            );

        line-height: 0.95;
    }

    .mtz-gallery-hero__description {
        max-width: 650px;
        margin-bottom: 11px;

        font-size: 0.81rem;
        line-height: 1.42;
    }

    .mtz-gallery-hero__actions {
        gap: 7px;
        margin-bottom: 9px;
    }

    .mtz-gallery-hero__actions .mtz-btn {
        min-height: 41px;
        padding: 9px 14px;

        font-size: 0.7rem;
    }

    .mtz-gallery-hero__highlights {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 5px;
    }

    .mtz-gallery-hero__highlights li {
        padding: 6px;
    }

    .mtz-gallery-hero__highlight-icon {
        width: 23px;
        height: 23px;
    }

    .mtz-gallery-hero__highlights strong {
        font-size: 0.51rem;
    }

    .mtz-gallery-hero__highlights small {
        display: none;
    }

    .mtz-gallery-hero__visual {
        align-items: stretch;

        padding: 0 8px 15px;
    }

    .mtz-gallery-hero__collage {
        width: min(100%, 530px);
        height: 100%;
        min-height: 175px;
        margin-inline: auto;
    }

    .mtz-gallery-hero__photo--main {
        inset: 2% 21% 2% 5%;

        border-radius: 23px;
    }

    .mtz-gallery-hero__photo--secondary {
        top: 5%;

        width: 34%;
        height: 43%;

        border-radius: 17px;
    }

    .mtz-gallery-hero__photo--detail {
        bottom: 4%;

        width: 37%;
        height: 40%;

        border-radius: 17px;
    }

    .mtz-gallery-hero__photo--main figcaption {
        right: 14px;
        bottom: 13px;
        left: 14px;
    }

    .mtz-gallery-hero__collage::before {
        width: 79%;

        border-radius: 27px;
    }

    .mtz-gallery-hero__categories-card {
        top: -2px;
        left: 0;

        padding: 7px 9px;
    }

    .mtz-gallery-hero__categories-icon {
        width: 30px;
        height: 30px;
    }

    .mtz-gallery-hero__active-card {
        right: 0;
        bottom: 0;

        max-width: 235px;
        padding: 8px 10px;
    }

    .mtz-gallery-hero__active-icon {
        width: 31px;
        height: 31px;
    }

    .mtz-gallery-hero__location-card {
        display: none;
    }

    .mtz-gallery-hero__scroll {
        bottom: 8px;
    }
}


/* =========================================================
   4. CELULARES PEQUEÑOS
========================================================= */

@media (max-width: 480px) {
      .mtz-project-quality__header {
        grid-template-columns: 1fr;
        gap: 17px;

        margin-bottom: 29px;
    }

    .mtz-project-quality__eyebrow {
        margin-bottom: 13px;

        font-size: 0.61rem;
    }

    .mtz-project-quality__title {
        font-size:
            clamp(
                2.05rem,
                10vw,
                2.9rem
            );
    }

    .mtz-project-quality__introduction > p {
        margin-bottom: 16px;

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

    .mtz-project-quality__layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .mtz-project-quality__visual {
        min-height: 520px;
        padding: 14px;

        border-radius: 22px;
    }

    .mtz-project-quality__visual-header {
        margin-bottom: 11px;
    }

    .mtz-project-quality__visual-icon {
        width: 37px;
        height: 37px;

        border-radius: 11px;
    }

    .mtz-project-quality__media {
        border-radius: 17px;
    }

    .mtz-project-quality__caption {
        padding: 17px;
    }

    .mtz-project-quality__caption h3 {
        margin-bottom: 8px;

        font-size: 2rem;
    }

    .mtz-project-quality__caption p {
        font-size: 0.69rem;
        line-height: 1.5;
    }

    .mtz-project-quality__tags {
        gap: 4px;
        margin-top: 12px;
    }

    .mtz-project-quality__tags span {
        min-height: 25px;

        font-size: 0.43rem;
    }

    .mtz-project-quality__visual-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .mtz-project-quality__progress {
        width: 100%;
    }

    .mtz-project-quality__controls {
        padding: 15px;

        border-radius: 22px;
    }

    .mtz-project-quality__controls-header h3 {
        font-size: 1.08rem;
    }

    .mtz-project-quality__controls-description {
        font-size: 0.63rem;
    }

    .mtz-project-quality__option {
        min-height: 76px;
        padding: 8px;
    }

    .mtz-project-quality__option-number {
        width: 34px;
        height: 34px;
    }

    .mtz-project-quality__option-copy strong {
        font-size: 0.65rem;
    }

    .mtz-project-quality__option-copy > span {
        display: none;
    }

    .mtz-project-quality__option-arrow {
        width: 27px;
        height: 27px;
    }

    .mtz-project-quality__features {
        grid-template-columns: 1fr;
        gap: 8px;

        margin-top: 20px;
        padding: 13px;

        border-radius: 18px;
    }

    .mtz-project-quality__feature {
        padding: 8px;

        background: var(--mtz-gray-50, #f7f9fa);

        border-radius: 12px;
    }

    .mtz-project-quality__feature-divider {
        display: none;
    }

    .mtz-project-quality__return-link {
        width: 100%;
    }

    .mtz-project-quality__frame {
        right: -210px;
    }
     .mtz-gallery-intro {
        padding: 15px 0 9px;
    }

    .mtz-gallery-intro__panel {
        grid-template-columns: 1fr;
        gap: 16px;

        min-height: 0;
        padding: 17px;

        border-radius: 21px;
    }

    .mtz-gallery-intro__marker {
        gap: 9px;
    }

    .mtz-gallery-intro__number {
        width: 42px;
        height: 42px;

        border-radius: 13px;

        font-size: 0.58rem;
    }

    .mtz-gallery-intro__marker-copy small {
        font-size: 0.42rem;
    }

    .mtz-gallery-intro__marker-copy strong {
        font-size: 0.59rem;
    }

    .mtz-gallery-intro__content {
        padding: 0;

        border: 0;
    }

    .mtz-gallery-intro__eyebrow {
        margin-bottom: 7px;

        font-size: 0.47rem;
    }

    .mtz-gallery-intro__content h2 {
        margin-bottom: 8px;

        font-size: clamp(1.55rem, 8vw, 2rem);
    }

    .mtz-gallery-intro__content p {
        font-size: 0.65rem;
        line-height: 1.55;
    }

    .mtz-gallery-intro__tools {
        gap: 7px;
    }

    .mtz-gallery-intro__active-category {
        padding: 7px 8px;
    }

    .mtz-gallery-intro__active-category strong {
        font-size: 0.56rem;
    }

    .mtz-gallery-intro__summary {
        padding: 7px 9px;
    }

    .mtz-gallery-intro__button {
        min-height: 40px;
    }

    .mtz-gallery-intro__instructions {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
        gap: 5px;

        width: calc(100% - 18px);
        padding: 10px 7px;

        border-radius: 0 0 15px 15px;
    }

    .mtz-gallery-intro__divider {
        display: none;
    }

    .mtz-gallery-intro__instruction {
        grid-template-columns: 1fr;
        gap: 6px;

        text-align: center;
    }

    .mtz-gallery-intro__instruction-icon {
        width: 29px;
        height: 29px;
        margin-inline: auto;

        border-radius: 9px;
    }

    .mtz-gallery-intro__instruction-icon svg {
        width: 14px;
        height: 14px;
    }

    .mtz-gallery-intro__instruction strong {
        font-size: 0.48rem;
        line-height: 1.2;
    }

    .mtz-gallery-intro__instruction small {
        display: none;
    }
      .mtz-project-explorer__header {
        grid-template-columns: 1fr;
        gap: 17px;

        margin-bottom: 25px;
    }

    .mtz-project-explorer__eyebrow {
        margin-bottom: 13px;

        font-size: 0.61rem;
    }

    .mtz-project-explorer__title {
        font-size: clamp(2.05rem, 10vw, 2.9rem);
    }

    .mtz-project-explorer__introduction > p {
        margin-bottom: 15px;

        font-size: 0.84rem;
        line-height: 1.58;
    }

    .mtz-project-explorer__summary {
        gap: 9px;

        padding: 8px 11px;
    }

    .mtz-project-explorer__summary small {
        font-size: 0.47rem;
    }

    .mtz-project-explorer__summary strong {
        font-size: 0.7rem;
    }

    .mtz-project-explorer__mobile-selector {
        display: block;

        margin-bottom: 18px;
    }

    .mtz-project-explorer__select-wrapper {
        min-height: 53px;

        border-radius: 14px;
    }

    .mtz-project-explorer__select-icon {
        width: 42px;
        height: 42px;

        border-radius: 11px;
    }

    .mtz-project-explorer__select-wrapper select {
        height: 51px;

        font-size: 0.67rem;
    }

    .mtz-project-explorer__layout {
        grid-template-columns: 1fr;
    }

    .mtz-project-directory {
        display: none;
    }

    .mtz-active-gallery {
        padding: 5px 0 20px;
    }

    .mtz-active-gallery__panel {
        padding: 14px;

        border-radius: 21px;
    }

    .mtz-active-gallery__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .mtz-active-gallery__number {
        width: 44px;
        height: 44px;

        border-radius: 13px;
    }

    .mtz-active-gallery__identity h3 {
        font-size: 1.42rem;
    }

    .mtz-active-gallery__actions {
        display: grid;
        grid-template-columns:
            auto
            minmax(0, 1fr);

        width: 100%;
    }

    .mtz-active-gallery__request {
        width: 100%;
        min-height: 44px;
    }

    .mtz-active-gallery__description {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;

        padding-block: 15px;
    }

    .mtz-active-gallery__description > p {
        font-size: 0.72rem;
    }

    .mtz-active-gallery__tags {
        justify-content: flex-start;
    }

    .mtz-active-gallery__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 235px;
        gap: 7px;
    }

    .mtz-project-photo--featured,
    .mtz-project-photo--wide,
    .mtz-project-photo--tall {
        grid-column: auto;
        grid-row: auto;
    }

    .mtz-project-photo {
        border-radius: 13px;
    }

    .mtz-project-photo__overlay {
        opacity: 1;

        padding: 10px;
    }

    .mtz-active-gallery__footer {
        align-items: stretch;
        flex-direction: column;
        gap: 11px;
    }

    .mtz-active-gallery__load-more {
        width: 100%;
    }

    .mtz-active-gallery__floating-card {
        right: 5px;

        max-width: 205px;
    }

    .mtz-project-lightbox__dialog {
        width: 100vw;
        height: 100vh;

        border-radius: 0;
    }

    .mtz-project-lightbox__header {
        min-height: 61px;
        padding: 10px;
    }

    .mtz-project-lightbox__header h2 {
        font-size: 0.78rem;
    }

    .mtz-project-lightbox__media {
        position: relative;

        display: block;

        padding: 7px;
    }

    .mtz-project-lightbox__media figure {
        height: 100%;
    }

    .mtz-project-lightbox__navigation {
        position: absolute;
        top: 50%;
        z-index: 4;

        width: 40px;
        height: 40px;

        background: rgba(11, 22, 36, 0.76);

        transform: translateY(-50%);
    }

    .mtz-project-lightbox__navigation:hover {
        transform:
            translateY(-50%)
            scale(1.04);
    }

    .mtz-project-lightbox__navigation--previous {
        left: 13px;
    }

    .mtz-project-lightbox__navigation--next {
        right: 13px;
    }

    .mtz-project-lightbox__footer {
        align-items: stretch;
        flex-direction: column;
        gap: 7px;

        padding: 9px 11px;
    }

    .mtz-project-lightbox__footer > a {
        justify-content: center;

        width: 100%;
    }

    .mtz-gallery-hero__container {
        grid-template-columns: 1fr;
        grid-template-rows:
            auto
            minmax(145px, 1fr);

        align-content: center;
        gap: 7px;

        width: calc(100% - 24px);

        padding-top: 7px;
        padding-bottom: 22px;
    }

    .mtz-gallery-hero__breadcrumb {
        display: none;
    }

    .mtz-gallery-hero__eyebrow {
        min-height: 26px;
        margin-bottom: 6px;
        padding: 4px 9px 4px 4px;
        gap: 6px;

        font-size: 0.48rem;
        letter-spacing: 0.08em;
    }

    .mtz-gallery-hero__eyebrow-icon {
        width: 19px;
        height: 19px;
    }

    .mtz-gallery-hero__title {
        margin-bottom: 6px;

        font-size:
            clamp(
                1.8rem,
                9vw,
                2.5rem
            );

        line-height: 0.96;
    }

    .mtz-gallery-hero__description {
        margin-bottom: 8px;

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

    .mtz-gallery-hero__actions {
        display: grid;
        grid-template-columns:
            minmax(0, 1.18fr)
            minmax(0, 0.82fr);
        gap: 5px;

        margin-bottom: 7px;
    }

    .mtz-gallery-hero__actions .mtz-btn {
        width: 100%;
        min-height: 37px;
        padding: 7px;

        font-size: 0.58rem;
    }

    .mtz-gallery-hero__primary-action svg {
        display: none;
    }

    .mtz-gallery-hero__highlights {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 3px;
    }

    .mtz-gallery-hero__highlights li {
        display: flex;
        gap: 4px;

        padding: 4px;
    }

    .mtz-gallery-hero__highlight-icon {
        width: 19px;
        height: 19px;

        border-radius: 6px;
    }

    .mtz-gallery-hero__highlight-icon svg {
        width: 11px;
        height: 11px;
    }

    .mtz-gallery-hero__highlights strong {
        font-size: 0.42rem;
        line-height: 1.15;
    }

    .mtz-gallery-hero__highlights small {
        display: none;
    }

    .mtz-gallery-hero__visual {
        align-items: stretch;

        padding: 0 3px 12px;
    }

    .mtz-gallery-hero__collage {
        width: 100%;
        height: 100%;
        min-height: 140px;
    }

    .mtz-gallery-hero__photo--main {
        inset: 2% 22% 2% 3%;

        border-radius: 19px;
    }

    .mtz-gallery-hero__photo--secondary {
        top: 5%;
        right: 0;

        width: 34%;
        height: 42%;

        border-radius: 13px;
    }

    .mtz-gallery-hero__photo--detail {
        right: 0;
        bottom: 4%;

        width: 37%;
        height: 39%;

        border-radius: 13px;
    }

    .mtz-gallery-hero__photo--main figcaption {
        right: 10px;
        bottom: 9px;
        left: 10px;
    }

    .mtz-gallery-hero__photo--main figcaption span {
        display: none;
    }

    .mtz-gallery-hero__photo--main figcaption strong {
        font-size: 0.57rem;
    }

    .mtz-gallery-hero__collage::before {
        width: 79%;
        height: 94%;

        border-radius: 22px;
    }

    .mtz-gallery-hero__collage-frame,
    .mtz-gallery-hero__collage-corner {
        display: none;
    }

    .mtz-gallery-hero__categories-card {
        top: -2px;
        left: 0;

        padding: 5px 7px;
    }

    .mtz-gallery-hero__categories-icon {
        width: 26px;
        height: 26px;

        border-radius: 8px;
    }

    .mtz-gallery-hero__categories-card small {
        display: none;
    }

    .mtz-gallery-hero__categories-card strong {
        font-size: 0.51rem;
    }

    .mtz-gallery-hero__active-card {
        right: 0;
        bottom: 0;

        max-width: 200px;
        padding: 6px 8px;
    }

    .mtz-gallery-hero__active-icon {
        width: 27px;
        height: 27px;

        border-radius: 9px;
    }

    .mtz-gallery-hero__active-card small {
        font-size: 0.4rem;
    }

    .mtz-gallery-hero__active-card strong {
        font-size: 0.5rem;
    }

    .mtz-gallery-hero__location-card {
        display: none;
    }

    .mtz-gallery-hero__scroll {
        bottom: 6px;

        font-size: 0.47rem;
    }

    .mtz-gallery-hero__frame {
        right: -205px;
    }
}