/* =========================================================
   GALERÍA · ULTRA WASH POWER WASH
   Todo lo exclusivo de esta página vive en este archivo.
   El navegador pertenece únicamente a global.css.
   ========================================================= */

:root {
    --gallery-header-height: 92px;
    --gallery-navy: #061f33;
    --gallery-blue: #128fe8;
    --gallery-text: #627b8d;
    --gallery-soft-title: #86a4b7;
    --gallery-bg: #eef9ff;
    --gallery-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-padding-top: 0;
}

.gallery-page {
    min-width: 320px;
    min-height: 100%;
    overflow-x: hidden;
    color: var(--gallery-navy);
    background: var(--gallery-bg);
}

.gallery-page,
.gallery-page *,
.gallery-page *::before,
.gallery-page *::after {
    box-sizing: border-box;
}

.gallery-main {
    width: 100%;
    overflow: clip;
}

.gallery-container {
    width: min(1510px, calc(100% - 72px));
    margin-inline: auto;
}.gallery-hero,
.gallery-results {
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
    color: var(--gallery-navy);
    background:
        radial-gradient(circle at 92% 17%, rgba(62, 190, 247, 0.18), transparent 31rem),
        radial-gradient(circle at 5% 94%, rgba(72, 184, 236, 0.09), transparent 25rem),
        linear-gradient(135deg, #f9fcff 0%, #f0f9ff 50%, #e9f7ff 100%);
}.gallery-hero__grid,
.gallery-results::before {
    position: absolute;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(18, 143, 232, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 143, 232, 0.03) 1px, transparent 1px);
    background-size: 86px 86px;
}

.gallery-results::before {
    content: "";
}.gallery-hero__glow {
    position: absolute;
    z-index: -2;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(56, 178, 238, 0.13), transparent 68%);
}

.gallery-hero__glow {
    right: -170px;
    bottom: -190px;
}

/* =========================================================
   SECCIÓN 1 · PORTADA
   ========================================================= */

.gallery-hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: calc(var(--gallery-header-height) + 30px) 0 42px;
}

.gallery-hero__dots {
    position: absolute;
    top: calc(var(--gallery-header-height) + 102px);
    right: clamp(22px, 4vw, 72px);
    z-index: -1;
    width: 144px;
    height: 112px;
    opacity: 0.42;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(18, 143, 232, 0.33) 1.5px, transparent 1.7px);
    background-size: 16px 16px;
}

.gallery-hero__container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(42px, 4vw, 74px);
}

.gallery-hero__content,
.gallery-hero__visual,
.gallery-comparison {
    min-width: 0;
}

.gallery-hero__content {
    width: 100%;
    max-width: 700px;
}.gallery-hero__eyebrow {
    color: var(--gallery-blue);
    font-weight: 900;
    text-transform: uppercase;
}

.gallery-hero__eyebrow {
    margin: 0 0 16px 3px;
    font-size: clamp(0.76rem, 0.82vw, 0.9rem);
    line-height: 1.4;
    letter-spacing: 0.18em;
}

.gallery-hero__title {
    max-width: 700px;
    margin: 0;
    color: var(--gallery-navy);
    font-size: clamp(2.8rem, 3.45vw, 4rem);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.gallery-hero__title > span {
    display: block;
}

.gallery-hero__title-soft {
    margin-top: 8px;
    color: var(--gallery-soft-title);
}

.gallery-hero__description {
    width: min(100%, 665px);
    margin: 27px 0 0;
    color: var(--gallery-text);
    font-size: clamp(1.08rem, 1.25vw, 1.28rem);
    line-height: 1.7;
}

.gallery-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 31px;
}

.gallery-hero__button {
    min-height: 47px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 220ms var(--gallery-ease), color 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.gallery-hero__button--primary {
    min-width: 205px;
    color: #fff;
    border-color: #111;
    background: #111;
    box-shadow: 0 12px 27px rgba(0, 0, 0, 0.17);
}

.gallery-hero__button--secondary {
    min-width: 188px;
    color: #111;
    border-color: rgba(7, 26, 42, 0.17);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 24px rgba(7, 26, 42, 0.07);
}

.gallery-hero__button:hover,
.gallery-hero__button:focus-visible {
    transform: translateY(-3px);
}

.gallery-hero__button--primary:hover,
.gallery-hero__button--primary:focus-visible {
    color: #111;
    background: #fff;
}

.gallery-hero__button--secondary:hover,
.gallery-hero__button--secondary:focus-visible {
    color: #fff;
    background: #111;
}

.gallery-hero__button:focus-visible {
    outline: 3px solid rgba(18, 143, 232, 0.34);
    outline-offset: 4px;
}

.gallery-hero__note {
    width: min(100%, 680px);
    margin: 23px 0 0;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #587286;
    font-size: clamp(0.86rem, 0.96vw, 0.98rem);
    font-weight: 750;
    line-height: 1.45;
}

.gallery-hero__note-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border: 3px solid rgba(31, 209, 132, 0.22);
    border-radius: 50%;
    background: #27d989;
    box-shadow: 0 0 0 5px rgba(39, 217, 137, 0.10);
}

.gallery-hero__visual {
    width: 100%;
    max-width: 820px;
    justify-self: end;
}

/* =========================================================
   COMPARADOR ANTES / DESPUÉS
   ========================================================= */

.gallery-comparison {
    --comparison-position: 50%;
    position: relative;
    isolation: isolate;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid rgba(8, 66, 102, 0.13);
    border-radius: 11px;
    background: #d9e7ef;
    box-shadow: 0 28px 62px rgba(20, 70, 101, 0.18), 0 7px 18px rgba(20, 70, 101, 0.07);
    touch-action: pan-y;
}

.gallery-comparison__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
}

.gallery-comparison__after-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    clip-path: inset(0 0 0 var(--comparison-position));
}

.gallery-comparison__label {
    position: absolute;
    top: 18px;
    z-index: 6;
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    color: #fff;
    background: rgba(5, 29, 45, 0.79);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.74rem;
    font-weight: 900;
    pointer-events: none;
}

.gallery-comparison__label--before { left: 18px; }
.gallery-comparison__label--after { right: 18px; background: rgba(18, 143, 232, 0.94); }

.gallery-comparison__divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--comparison-position);
    z-index: 4;
    width: 2px;
    background: #fff;
    transform: translateX(-50%);
    pointer-events: none;
}

.gallery-comparison__handle {
    position: absolute;
    top: 50%;
    left: var(--comparison-position);
    z-index: 5;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 5px solid rgba(255, 255, 255, 0.97);
    border-radius: 50%;
    color: var(--gallery-navy);
    background: #fff;
    box-shadow: 0 12px 30px rgba(3, 39, 62, 0.27);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.gallery-comparison__range {
    position: absolute;
    inset: 0;
    z-index: 8;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    appearance: none;
    -webkit-appearance: none;
}

.gallery-comparison__range:focus-visible {
    opacity: 0.01;
    outline: 3px solid rgba(18, 143, 232, 0.48);
    outline-offset: -5px;
}

/* =========================================================
   SECCIÓN 3 · CUADRÍCULA DE TRANSFORMACIONES
   ========================================================= */

.gallery-results {
    padding: clamp(44px, 5.2vw, 72px) 0 clamp(58px, 6.5vw, 88px);
    border-top: 1px solid rgba(18, 143, 232, 0.08);
    scroll-margin-top: var(--gallery-header-height);
}

.gallery-results__container {
    position: relative;
    z-index: 1;
    width: min(1580px, calc(100% - 30px));
    margin-inline: auto;
}

.gallery-results__header {
    width: min(1080px, 100%);
    margin: 0 auto clamp(28px, 3.3vw, 42px);
    text-align: center;
}

.gallery-results__title {
    margin: 0;
    color: var(--gallery-navy);
    font-size: clamp(2.15rem, 3vw, 3.65rem);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.gallery-results__intro {
    width: min(880px, 100%);
    margin: 14px auto 0;
    color: #61798a;
    font-size: clamp(0.94rem, 0.95vw, 1.04rem);
    line-height: 1.58;
}

.gallery-results__carousel,
.gallery-results__viewport {
    width: 100%;
    overflow: visible;
}

.gallery-results__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(15px, 1.4vw, 22px);
    width: 100%;
}

.gallery-result-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(8, 66, 102, 0.10);
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(20, 70, 101, 0.11);
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.gallery-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 56px rgba(20, 70, 101, 0.16);
}

.gallery-result-card__comparison {
    width: 100%;
    height: clamp(220px, 18vw, 285px);
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
}

.gallery-result-card__comparison .gallery-comparison__label {
    top: 17px;
    min-height: 32px;
    padding: 0 13px;
    font-size: 0.68rem;
}

.gallery-result-card__comparison .gallery-comparison__label--before { left: 17px; }
.gallery-result-card__comparison .gallery-comparison__label--after { right: 17px; }
.gallery-result-card__comparison .gallery-comparison__handle { width: 52px; height: 52px; }

.gallery-result-card__body {
    display: block;
    padding: 14px 16px 16px;
    background: #fff;
}

.gallery-result-card__body h3 { margin: 0; color: #08263c; font-size: clamp(0.94rem, 1vw, 1.08rem); line-height: 1.2; }
.gallery-result-card__description { margin: 5px 0 0; color: #6b8190; font-size: 0.78rem; line-height: 1.45; }

/* =========================================================
   ANIMACIONES · ENTRADA SUAVE DESDE ABAJO
   ========================================================= */

@media (prefers-reduced-motion: no-preference) {

    /*
     * PORTADA
     */

    .has-js .gallery-hero__content,
    .has-js .gallery-hero__visual {

        opacity: 0;

        transform:
            translate3d(
                0,
                48px,
                0
            );

        transition:
            opacity 700ms var(--gallery-ease),
            transform 850ms var(--gallery-ease);
    }

    .has-js .gallery-hero.is-visible
    .gallery-hero__content,

    .has-js .gallery-hero.is-visible
    .gallery-hero__visual {

        opacity: 1;

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

    .has-js .gallery-hero.is-visible
    .gallery-hero__visual {

        transition-delay:
            120ms;
    }

    /*
     * MÁS RESULTADOS
     */

    .has-js .gallery-results__header {

        opacity: 0;

        transform:
            translate3d(
                0,
                52px,
                0
            );

        transition:
            opacity 700ms var(--gallery-ease),
            transform 850ms var(--gallery-ease);
    }

    .has-js .gallery-result-card {

        opacity: 0;

        transform:
            translate3d(
                0,
                58px,
                0
            );

        transition:
            opacity 680ms var(--gallery-ease),
            transform 850ms var(--gallery-ease),
            box-shadow 260ms ease;
    }

    .has-js .gallery-results.is-visible
    .gallery-results__header,

    .has-js .gallery-results.is-visible
    .gallery-result-card {

        opacity: 1;

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

    /*
     * Tarjetas escalonadas.
     */

    .has-js .gallery-results.is-visible
    .gallery-result-card:nth-child(1) {

        transition-delay:
            100ms;
    }

    .has-js .gallery-results.is-visible
    .gallery-result-card:nth-child(2) {

        transition-delay:
            180ms;
    }

    .has-js .gallery-results.is-visible
    .gallery-result-card:nth-child(3) {

        transition-delay:
            260ms;
    }

    .has-js .gallery-results.is-visible
    .gallery-result-card:nth-child(4) {

        transition-delay:
            340ms;
    }

    .has-js .gallery-results.is-visible
    .gallery-result-card:nth-child(5) {

        transition-delay:
            420ms;
    }

    .has-js .gallery-results.is-visible
    .gallery-result-card:nth-child(6) {

        transition-delay:
            500ms;
    }

}

/* =========================================================
   MOVIMIENTO REDUCIDO
   ========================================================= */

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

@media (max-width: 1199px) {
    :root { --gallery-header-height: 88px; }

    .gallery-container {
        width: min(930px, calc(100% - 48px));
    }

    .gallery-hero {
        min-height: auto;
        align-items: flex-start;
        padding: calc(var(--gallery-header-height) + 40px) 0 70px;
    }

    .gallery-hero__container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .gallery-hero__content {
        max-width: 790px;
        margin-inline: auto;
    }

    .gallery-hero__visual {
        max-width: 860px;
        justify-self: center;
    }
}

@media (max-width: 980px) {
    .gallery-results__container {
        width: calc(100% - 22px);
    }

    .gallery-results__track {
        grid-template-columns: 1fr;
    }

    .gallery-result-card__comparison {
        height: clamp(230px, 55vw, 300px);
    }
}

@media (max-width: 700px) {
    :root { --gallery-header-height: 78px; }

    .gallery-container {
        width: calc(100% - 28px);
    }

    .gallery-hero {
        padding: calc(var(--gallery-header-height) + 25px) 0 48px;
    }

    .gallery-hero__container { gap: 31px; }
    .gallery-hero__dots { display: none; }
    .gallery-hero__title { font-size: clamp(2.12rem, 10vw, 3.12rem); }
    .gallery-hero__description { margin-top: 20px; font-size: 1rem; line-height: 1.6; }

    .gallery-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 24px;
    }

    .gallery-hero__button,
    .gallery-hero__button--primary,
    .gallery-hero__button--secondary {
        width: 100%;
        min-width: 0;
    }

    .gallery-comparison {
        aspect-ratio: 4 / 3;
    }

    .gallery-comparison__label {
        top: 11px;
        min-height: 31px;
        padding-inline: 12px;
        font-size: 0.66rem;
    }

    .gallery-comparison__label--before { left: 11px; }
    .gallery-comparison__label--after { right: 11px; }
    .gallery-comparison__handle { width: 48px; height: 48px; }

    .gallery-results {
        padding: 40px 0 56px;
    }

    .gallery-results__container {
        width: calc(100% - 16px);
    }

    .gallery-results__title {
        font-size: clamp(1.9rem, 9vw, 2.75rem);
    }

    .gallery-result-card__comparison {
        height: clamp(235px, 70vw, 285px);
    }
}

@media (max-width: 420px) {
    .gallery-container { width: calc(100% - 22px); }
    .gallery-hero__title { font-size: clamp(1.95rem, 9.8vw, 2.55rem); }
    .gallery-comparison { aspect-ratio: 5 / 4; }
    .gallery-result-card__comparison { height: 235px; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-page *,
    .gallery-page *::before,
    .gallery-page *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .has-js .gallery-page * {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* =========================================================
   ENTRADA SIMPLE DESDE ABAJO
   ========================================================= */

/* =========================================================
   RESPONSIVE DE LA SECCIÓN
   ========================================================= */

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

body.gallery-lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    z-index: 9999;

    inset: 0;

    display: grid;
    place-items: center;

    padding:
        clamp(
            18px,
            3vw,
            42px
        );

    visibility:
        hidden;

    opacity: 0;

    pointer-events:
        none;

    transition:
        opacity
        260ms ease,

        visibility
        260ms ease;
}

.gallery-lightbox.is-open {
    visibility:
        visible;

    opacity: 1;

    pointer-events:
        auto;
}

.gallery-lightbox__backdrop {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    padding: 0;
    border: 0;

    background:
        rgba(
            2,
            12,
            20,
            0.92
        );

    backdrop-filter:
        blur(13px);

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

    cursor:
        zoom-out;
}

.gallery-lightbox__dialog {
    position: relative;
    z-index: 2;

    width:
        min(
            1420px,
            94vw
        );

    height:
        min(
            860px,
            88vh
        );

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    transform:
        translate3d(
            0,
            18px,
            0
        )
        scale(0.975);

    transition:
        transform
        360ms
        var(--gallery-ease);
}

.gallery-lightbox.is-open
.gallery-lightbox__dialog {
    transform:
        translate3d(
            0,
            0,
            0
        )
        scale(1);
}

.gallery-lightbox__figure {
    width: 100%;
    height: 100%;

    margin: 0;

    display: grid;

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

    gap: 18px;
}

.gallery-lightbox__image-wrap {
    min-height: 0;

    display: flex;

    align-items:
        center;

    justify-content:
        center;

    overflow: hidden;

    border-radius:
        18px;

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

.gallery-lightbox__image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit:
        contain;

    user-select:
        none;
}

.gallery-lightbox__caption {
    display: flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap: 26px;

    color: white;
}

.gallery-lightbox__caption > div {
    display: flex;

    flex-direction:
        column;

    gap: 5px;
}

.gallery-lightbox__eyebrow {
    color:
        #66c8f6;

    font-size:
        0.65rem;

    font-weight:
        900;

    letter-spacing:
        0.16em;
}

.gallery-lightbox__caption strong {
    font-size:
        clamp(
            1rem,
            1.2vw,
            1.25rem
        );
}

.gallery-lightbox__counter {
    color:
        rgba(
            255,
            255,
            255,
            0.68
        );

    font-size:
        0.82rem;

    font-weight:
        850;

    letter-spacing:
        0.08em;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
    position: absolute;
    z-index: 4;

    display: grid;
    place-items: center;

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

    border-radius:
        50%;

    color: white;

    background:
        rgba(
            10,
            31,
            45,
            0.68
        );

    backdrop-filter:
        blur(10px);

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

    cursor: pointer;

    transition:
        transform
        220ms ease,

        background-color
        220ms ease;
}

.gallery-lightbox__close {
    top: -10px;
    right: -10px;

    width: 46px;
    height: 46px;

    font-size:
        1.65rem;
}

.gallery-lightbox__nav {
    top: 47%;

    width: 52px;
    height: 52px;

    font-size:
        1.25rem;
}

.gallery-lightbox__nav--previous {
    left: -26px;
}

.gallery-lightbox__nav--next {
    right: -26px;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__nav:hover,
.gallery-lightbox__nav:focus-visible {
    transform:
        scale(1.08);

    background:
        rgba(
            18,
            143,
            232,
            0.82
        );
}

/* =========================================================
   RESPONSIVE DE LA NUEVA GALERÍA
   ========================================================= */

@media (max-width: 700px) {

    .gallery-lightbox {
        padding:
            14px;
    }

    .gallery-lightbox__dialog {
        width: 100%;

        height:
            min(
                82vh,
                760px
            );
    }

    .gallery-lightbox__nav {
        top: auto;
        bottom: 58px;
    }

    .gallery-lightbox__nav--previous {
        left: 8px;
    }

    .gallery-lightbox__nav--next {
        right: 8px;
    }

    .gallery-lightbox__close {
        top: 8px;
        right: 8px;
    }

}

/* =========================================================
   PUBLICACIÓN DE CLIENTES · FORMULARIO
   ========================================================= */

.gallery-customer-reviews__share {

    gap: 10px;

    font-size:
        0.8rem;

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

.gallery-customer-reviews__share:hover,
.gallery-customer-reviews__share:focus-visible {
    color:
        var(--gallery-navy);

    background:
        #fff;

    transform:
        translateY(-2px);
}

body.gallery-submission-open {
    overflow: hidden;
}

.gallery-submission {
    position: fixed;
    z-index: 10020;

    inset: 0;

    display: grid;
    place-items: center;

    padding:
        clamp(
            14px,
            3vw,
            36px
        );

    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    transition:
        opacity 240ms ease,
        visibility 240ms ease;
}

.gallery-submission.is-open {
    visibility: visible;
    opacity: 1;

    pointer-events: auto;
}

.gallery-submission__backdrop {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    padding: 0;
    border: 0;

    background:
        rgba(
            2,
            14,
            23,
            0.82
        );

    backdrop-filter:
        blur(11px);

    -webkit-backdrop-filter:
        blur(11px);

    cursor: pointer;
}

.gallery-submission__dialog {
    position: relative;
    z-index: 2;

    width:
        min(
            720px,
            96vw
        );

    max-height:
        min(
            880px,
            92vh
        );

    overflow-y: auto;

    padding:
        clamp(
            26px,
            3.2vw,
            42px
        );

    border:
        1px solid
        rgba(
            8,
            66,
            102,
            0.11
        );

    border-radius:
        22px;

    color:
        var(--gallery-navy);

    background:
        #f8fcff;

    box-shadow:
        0 38px 110px
        rgba(
            0,
            18,
            31,
            0.35
        );

    transform:
        translate3d(
            0,
            18px,
            0
        );

    transition:
        transform
        320ms
        var(--gallery-ease);
}

.gallery-submission.is-open
.gallery-submission__dialog {
    transform:
        translate3d(
            0,
            0,
            0
        );
}

.gallery-submission__close {
    position: absolute;

    top: 16px;
    right: 16px;

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(
            8,
            66,
            102,
            0.10
        );

    border-radius:
        50%;

    color:
        var(--gallery-navy);

    background:
        #fff;

    font-size:
        1.35rem;

    cursor: pointer;
}

.gallery-submission__heading {
    padding-right:
        46px;

    margin-bottom:
        28px;
}

.gallery-submission__eyebrow {
    display: block;

    margin-bottom:
        8px;

    color:
        var(--gallery-blue);

    font-size:
        0.67rem;

    font-weight:
        900;

    letter-spacing:
        0.16em;
}

.gallery-submission__heading h2 {
    margin: 0;

    font-size:
        clamp(
            1.9rem,
            3.3vw,
            2.8rem
        );

    line-height:
        1;

    letter-spacing:
        -0.045em;
}

.gallery-submission__heading p {
    margin:
        13px
        0
        0;

    color:
        #61798a;

    font-size:
        0.94rem;

    line-height:
        1.55;
}

.gallery-submission__form {
    display: grid;

    gap:
        20px;
}

.gallery-submission__type {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap:
        10px;

    margin: 0;
    padding: 0;

    border: 0;
}

.gallery-submission__type legend {
    grid-column:
        1 / -1;

    margin-bottom:
        4px;

    font-size:
        0.8rem;

    font-weight:
        850;
}

.gallery-submission__option {
    position: relative;

    min-height:
        76px;

    display: flex;
    align-items: flex-start;

    padding:
        15px;

    border:
        1px solid
        rgba(
            8,
            66,
            102,
            0.12
        );

    border-radius:
        13px;

    background:
        #fff;

    cursor:
        pointer;
}

.gallery-submission__option input {
    margin:
        3px
        10px
        0
        0;

    accent-color:
        var(--gallery-blue);
}

.gallery-submission__option strong,
.gallery-submission__option small {
    display: block;
}

.gallery-submission__option strong {
    font-size:
        0.88rem;
}

.gallery-submission__option small {
    margin-top:
        4px;

    color:
        #6c8291;

    font-size:
        0.72rem;
}

.gallery-submission__field {
    display: grid;

    gap:
        7px;
}

.gallery-submission__field > span {
    font-size:
        0.79rem;

    font-weight:
        850;
}

.gallery-submission__field input,
.gallery-submission__field textarea {
    width: 100%;

    padding:
        13px
        14px;

    border:
        1px solid
        rgba(
            8,
            66,
            102,
            0.15
        );

    border-radius:
        10px;

    color:
        var(--gallery-navy);

    background:
        #fff;

    font:
        inherit;

    font-size:
        0.9rem;

    outline: 0;

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

.gallery-submission__field textarea {
    resize: vertical;

    min-height:
        110px;
}

.gallery-submission__field input:focus,
.gallery-submission__field textarea:focus {
    border-color:
        rgba(
            18,
            143,
            232,
            0.72
        );

    box-shadow:
        0 0 0 3px
        rgba(
            18,
            143,
            232,
            0.10
        );
}

.gallery-submission__field > small {
    color:
        #8093a1;

    font-size:
        0.68rem;
}

.gallery-submission__photos {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap:
        10px;
}

.gallery-submission__photos[data-single-fields] {
    grid-template-columns:
        1fr;
}

.gallery-submission__photos[hidden] {
    display: none;
}

.gallery-submission__upload {
    position: relative;

    min-height:
        94px;

    display: flex;
    align-items: center;

    gap:
        13px;

    padding:
        15px;

    border:
        1px dashed
        rgba(
            18,
            143,
            232,
            0.38
        );

    border-radius:
        13px;

    background:
        rgba(
            18,
            143,
            232,
            0.035
        );

    cursor:
        pointer;

    overflow: hidden;
}

.gallery-submission__upload-icon {
    width: 38px;
    height: 38px;

    flex:
        0 0 auto;

    display: grid;
    place-items: center;

    border-radius:
        50%;

    color:
        var(--gallery-blue);

    background:
        rgba(
            18,
            143,
            232,
            0.10
        );

    font-size:
        0.82rem;

    font-weight:
        900;
}

.gallery-submission__upload strong,
.gallery-submission__upload small {
    display: block;
}

.gallery-submission__upload strong {
    font-size:
        0.82rem;
}

.gallery-submission__upload small {
    margin-top:
        4px;

    color:
        #708696;

    font-size:
        0.68rem;
}

.gallery-submission__upload input {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    cursor: pointer;
}

.gallery-submission__notice {
    padding:
        13px
        15px;

    border:
        1px solid
        rgba(
            18,
            143,
            232,
            0.13
        );

    border-radius:
        10px;

    background:
        rgba(
            18,
            143,
            232,
            0.045
        );
}

.gallery-submission__notice strong {
    font-size:
        0.75rem;
}

.gallery-submission__notice p {
    margin:
        5px
        0
        0;

    color:
        #687f90;

    font-size:
        0.72rem;

    line-height:
        1.45;
}

.gallery-submission__consent {
    display: flex;

    align-items: flex-start;

    gap:
        10px;

    color:
        #5f7687;

    font-size:
        0.74rem;

    line-height:
        1.45;

    cursor:
        pointer;
}

.gallery-submission__consent input {
    margin-top:
        2px;

    accent-color:
        var(--gallery-blue);
}

.gallery-submission__status {
    min-height:
        20px;

    margin: 0;

    color:
        #687f90;

    font-size:
        0.77rem;

    line-height:
        1.45;
}

.gallery-submission__status.is-error {
    color:
        #b42318;
}

.gallery-submission__status.is-success {
    color:
        #087443;

    font-weight:
        750;
}

.gallery-submission__submit {
    min-height:
        49px;

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

    gap:
        12px;

    padding:
        0
        20px;

    border:
        1px solid
        #111;

    border-radius:
        9px;

    color:
        #fff;

    background:
        #111;

    font:
        inherit;

    font-size:
        0.84rem;

    font-weight:
        850;

    cursor:
        pointer;

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.gallery-submission__submit:hover:not(:disabled) {
    transform:
        translateY(-2px);
}

.gallery-submission__submit:disabled {
    opacity:
        0.55;

    cursor:
        wait;
}

@media (max-width: 620px) {

    .gallery-submission {
        padding:
            8px;
    }

    .gallery-submission__dialog {
        width: 100%;

        max-height:
            94vh;

        padding:
            25px
            18px;
    }

    .gallery-submission__type,
    .gallery-submission__photos {
        grid-template-columns:
            1fr;
    }

    .gallery-submission__heading {
        padding-right:
            38px;
    }

}

/* =========================================================
   GALERÍA ÚNICA · FOTOS INDIVIDUALES Y CONTROLES
   ========================================================= */

.gallery-results__actions {
    display: flex;

    justify-content: center;

    margin-top:
        clamp(
            28px,
            3.5vw,
            44px
        );
}

.gallery-results__pagination {
    display: flex;

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

    flex-wrap: wrap;

    gap: 7px;
}

.gallery-results__pagination[hidden] {
    display: none;
}

.gallery-results__page-button {
    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    padding: 0;

    border:
        1px solid
        rgba(
            8,
            66,
            102,
            0.14
        );

    border-radius: 9px;

    color:
        var(--gallery-navy);

    background:
        #fff;

    font: inherit;

    font-size:
        0.8rem;

    font-weight:
        850;

    cursor: pointer;

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

.gallery-results__page-button:hover:not(:disabled),
.gallery-results__page-button:focus-visible:not(:disabled) {
    border-color:
        rgba(
            18,
            143,
            232,
            0.45
        );

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(
            20,
            70,
            101,
            0.10
        );
}

.gallery-results__page-button.is-active {
    color:
        #fff;

    border-color:
        var(--gallery-blue);

    background:
        var(--gallery-blue);

    box-shadow:
        0 8px 20px
        rgba(
            18,
            143,
            232,
            0.22
        );
}

.gallery-results__page-button:disabled {
    opacity:
        0.30;

    cursor:
        default;
}

.gallery-results__page-button--arrow {
    font-size:
        1.15rem;
}

.gallery-result-card[hidden] {
    display:
        none !important;
}

.gallery-result-card__single-media {
    position: relative;

    display: block;

    padding: 0;

    border: 0;

    overflow: hidden;

    background:
        #dce9ef;

    cursor:
        zoom-in;
}

.gallery-result-card__single-media img {
    width: 100%;
    height: 100%;

    display: block;

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

    transition:
        transform
        450ms
        var(--gallery-ease);
}

.gallery-result-card__single-media:hover img {
    transform:
        scale(1.045);
}

.gallery-result-card__single-expand,
.gallery-portfolio-expand {
    position: absolute;

    z-index: 30;

    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    padding: 0;

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

    border-radius: 50%;

    color: #fff;

    background:
        rgba(5, 31, 47, 0.72);

    backdrop-filter:
        blur(8px);

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

    font-size: 0.8rem;

    cursor: zoom-in;
}

.gallery-result-card__single-expand {
    top: 13px;
    right: 13px;

    pointer-events: none;
}

.gallery-portfolio-expand--before {
    left: 13px;
    bottom: 13px;
}

.gallery-portfolio-expand--after {
    right: 13px;
    bottom: 13px;
}

/* =========================================================
   RESULTADOS REALES DE CLIENTES · GALERÍA PRINCIPAL
   ========================================================= */

.gallery-result-card--client {
    position: relative;
}

.gallery-client-gallery__media {
    position: relative;

    width: 100%;

    height:
        clamp(
            220px,
            18vw,
            285px
        );

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #dcebf3,
            #eef7fb
        );
}

/* =========================================================
   CARGA
   ========================================================= */

.gallery-client-gallery__loader,
.gallery-client-gallery__error {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 10px;

    color:
        #6f8797;

    font-size:
        0.72rem;

    font-weight:
        750;
}

.gallery-client-gallery__spinner {
    width: 28px;
    height: 28px;

    border:
        3px solid
        rgba(
            18,
            143,
            232,
            0.18
        );

    border-top-color:
        var(--gallery-blue);

    border-radius:
        50%;

    animation:
        clientGallerySpin
        800ms
        linear
        infinite;
}

@keyframes clientGallerySpin {

    to {
        transform:
            rotate(
                360deg
            );
    }

}

/* =========================================================
   TEXTO DEL RESULTADO REAL
   ========================================================= */

.gallery-client-gallery__body {
    padding:
        16px
        18px
        18px;

    background:
        #fff;
}

.gallery-result-card__body--local {
    display: block;
}

.gallery-result-card__body--local h3 {
    margin:
        0
        0
        5px;
}

.gallery-result-card__badge {
    width: fit-content;

    display: inline-flex;

    align-items: center;

    margin-bottom: 8px;

    padding:
        4px
        8px;

    border:
        1px solid
        rgba(18, 143, 232, 0.18);

    border-radius:
        999px;

    color:
        #0879bd;

    background:
        #edf8ff;

    font-size:
        0.56rem;

    font-weight:
        900;

    line-height:
        1;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;
}

.gallery-client-gallery__body h3 {
    margin:
        0
        0
        5px;

    color:
        var(--gallery-navy);

    font-size:
        1rem;

    font-weight:
        850;

    line-height:
        1.2;
}

.gallery-client-gallery__body p {
    margin: 0;

    color:
        #687f8f;

    font-size:
        0.78rem;

    line-height:
        1.48;
}

/* =========================================================
   FOTO ÚNICA
   ========================================================= */

.gallery-client-gallery__single {
    position: relative;

    width: 100%;
    height: 100%;

    display: block;

    padding: 0;

    border: 0;

    overflow: hidden;

    background:
        #dce9ef;

    cursor:
        zoom-in;
}

.gallery-client-gallery__single img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit:
        cover;

    object-position:
        center;

    transition:
        transform
        420ms
        var(--gallery-ease);
}

.gallery-client-gallery__single:hover img {
    transform:
        scale(1.04);
}

.gallery-client-gallery__single-expand {
    position: absolute;

    right: 14px;
    bottom: 14px;

    width: 39px;
    height: 39px;

    display: grid;

    place-items:
        center;

    border-radius:
        50%;

    color:
        #fff;

    background:
        rgba(
            5,
            31,
            47,
            0.76
        );

    font-size:
        0.8rem;

    pointer-events:
        none;
}

/* =========================================================
   ANTES / DESPUÉS
   ========================================================= */

.gallery-client-gallery__comparison {
    --client-gallery-position:
        50%;

    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    user-select: none;

    -webkit-user-select:
        none;
}

.gallery-client-gallery__before,
.gallery-client-gallery__after {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;
}

.gallery-client-gallery__before img,
.gallery-client-gallery__after img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit:
        cover;

    object-position:
        center;

    pointer-events:
        none;
}

.gallery-client-gallery__after {
    clip-path:
        inset(
            0
            0
            0
            var(
                --client-gallery-position
            )
        );
}

/* =========================================================
   ETIQUETAS
   ========================================================= */

.gallery-client-gallery__label {
    position: absolute;

    z-index: 7;

    top: 14px;

    min-height:
        30px;

    display:
        inline-flex;

    align-items:
        center;

    padding:
        0
        12px;

    border-radius:
        999px;

    color:
        #fff;

    font-size:
        0.62rem;

    font-weight:
        900;

    pointer-events:
        none;
}

.gallery-client-gallery__label--before {
    left: 14px;

    background:
        rgba(
            7,
            38,
            55,
            0.88
        );
}

.gallery-client-gallery__label--after {
    right: 14px;

    background:
        var(--gallery-blue);
}

/* =========================================================
   DIVISOR
   ========================================================= */

.gallery-client-gallery__divider {
    position: absolute;

    z-index: 6;

    top: 0;
    bottom: 0;

    left:
        var(
            --client-gallery-position
        );

    width:
        2px;

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

    transform:
        translateX(
            -50%
        );

    pointer-events:
        none;
}

.gallery-client-gallery__handle {
    position: absolute;

    z-index: 8;

    top:
        50%;

    left:
        var(
            --client-gallery-position
        );

    width: 48px;
    height: 48px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        50%;

    color:
        var(--gallery-navy);

    background:
        #fff;

    box-shadow:
        0
        8px
        22px
        rgba(
            5,
            36,
            55,
            0.19
        );

    font-size:
        0.75rem;

    transform:
        translate(
            -50%,
            -50%
        );

    pointer-events:
        none;
}

/* =========================================================
   SLIDER
   ========================================================= */

.gallery-client-gallery__range {
    position: absolute;

    z-index: 10;

    inset: 0;

    width: 100%;
    height: 100%;

    margin: 0;

    opacity: 0;

    cursor:
        ew-resize;
}

/* =========================================================
   AMPLIAR ANTES / DESPUÉS
   ========================================================= */

.gallery-client-gallery__expand {
    position: absolute;

    z-index: 20;

    bottom: 14px;

    width: 39px;
    height: 39px;

    display: grid;

    place-items:
        center;

    padding: 0;

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

    border-radius:
        50%;

    color: #fff;

    background:
        rgba(
            5,
            31,
            47,
            0.76
        );

    cursor:
        zoom-in;
}

.gallery-client-gallery__expand--before {
    left: 14px;
}

.gallery-client-gallery__expand--after {
    right: 14px;
}

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

@media (
    max-width:
    700px
) {

    .gallery-client-gallery__media {
        height:
            clamp(
                230px,
                70vw,
                300px
            );
    }

}

/* =========================================================
   MOVIMIENTO REDUCIDO
   ========================================================= */

@media (
    prefers-reduced-motion:
    reduce
) {

    .gallery-client-gallery__spinner {
        animation:
            none;
    }

}

/* =========================================================
   OPINIONES · FRANJA HORIZONTAL
   ========================================================= */

.gallery-customer-reviews {
    position: relative;

    padding:
        clamp(44px, 4.8vw, 66px)
        0
        clamp(48px, 5vw, 70px);

    overflow: hidden;

    border-top:
        1px solid
        rgba(8, 66, 102, 0.13);

    border-bottom:
        1px solid
        rgba(8, 66, 102, 0.10);

    background:
        linear-gradient(
            135deg,
            #d7ebf5 0%,
            #e4f2f9 48%,
            #d5eaf5 100%
        );
}

.gallery-customer-reviews__container {
    width:
        min(
            1420px,
            calc(100% - 64px)
        );
}

.gallery-customer-reviews__heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 28px;

    margin-bottom:
        25px;
}

.gallery-customer-reviews__eyebrow {
    margin:
        0
        0
        7px;

    color:
        var(--gallery-blue);

    font-size:
        0.66rem;

    font-weight: 900;

    letter-spacing:
        0.17em;

    text-transform:
        uppercase;
}

.gallery-customer-reviews__heading h2 {
    margin: 0;

    color:
        var(--gallery-navy);

    font-size:
        clamp(
            1.75rem,
            2.5vw,
            2.7rem
        );

    line-height: 1;

    letter-spacing:
        -0.045em;
}

.gallery-customer-reviews__share {
    min-height: 44px;

    flex: 0 0 auto;

    display: inline-flex;

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

    gap: 9px;

    padding:
        0
        18px;

    border:
        1px solid
        var(--gallery-navy);

    border-radius: 8px;

    color: #fff;

    background:
        var(--gallery-navy);

    font: inherit;

    font-size:
        0.78rem;

    font-weight: 850;

    cursor: pointer;
}

.gallery-customer-reviews__marquee {
    position: relative;

    width: 100%;

    overflow: hidden;

    padding:
        22px
        18px
        24px;

    border:
        1px solid
        rgba(8, 66, 102, 0.11);

    border-radius:
        24px;

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

    box-shadow:
        inset
        0
        1px
        0
        rgba(255, 255, 255, 0.65);

    mask-image:
        linear-gradient(
            90deg,
            transparent,
            #000 3%,
            #000 97%,
            transparent
        );

    -webkit-mask-image:
        linear-gradient(
            90deg,
            transparent,
            #000 3%,
            #000 97%,
            transparent
        );
}

.gallery-customer-reviews__track {
    --reviews-duration:
        42s;

    display: flex;

    width: max-content;

    animation:
        galleryReviewsMarquee
        var(--reviews-duration)
        linear
        infinite;

    will-change:
        transform;
}

.gallery-customer-reviews__marquee:hover
.gallery-customer-reviews__track,

.gallery-customer-reviews__marquee:focus-within
.gallery-customer-reviews__track {
    animation-play-state:
        paused;
}

.gallery-customer-reviews__group {
    display: flex;

    align-items: stretch;

    gap: 16px;

    padding-right:
        16px;
}

@keyframes galleryReviewsMarquee {

    from {
        transform:
            translate3d(
                -50%,
                0,
                0
            );
    }

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

}

/* =========================================================
   RESEÑA COMPACTA
   ========================================================= */

.gallery-customer-review {
    position: relative;

    width: 335px;

    min-height: 176px;

    flex:
        0
        0
        335px;

    display: grid;

    grid-template-columns:
        1fr
        92px;

    grid-template-rows:
        auto
        1fr;

    gap:
        12px
        14px;

    overflow: hidden;

    padding:
        17px;

    border:
        1px solid
        rgba(6, 60, 94, 0.18);

    border-radius:
        16px;

    background:
        #ffffff;

    box-shadow:
        0
        16px
        38px
        rgba(16, 60, 87, 0.16);

    transition:
        transform
        220ms
        ease,

        box-shadow
        220ms
        ease,

        border-color
        220ms
        ease;
}

.gallery-customer-review::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            #128fe8,
            #5fc2f4
        );
}

.gallery-customer-review:hover {
    transform:
        translateY(-5px);

    border-color:
        rgba(18, 143, 232, 0.30);

    box-shadow:
        0
        23px
        48px
        rgba(16, 60, 87, 0.22);
}

.gallery-customer-review__profile {
    min-width: 0;

    display: flex;

    align-items: center;

    gap: 10px;
}

.gallery-customer-review__avatar {
    width: 39px;
    height: 39px;

    flex: 0 0 auto;

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(18,143,232,0.16);

    border-radius: 50%;

    color:
        #0879bd;

    background:
        #eef9ff;

    font-size:
        0.72rem;

    font-weight: 900;
}

.gallery-customer-review__identity {
    min-width: 0;
}

.gallery-customer-review__name {
    display: block;

    overflow: hidden;

    color:
        var(--gallery-navy);

    font-size:
        0.82rem;

    font-weight: 850;

    white-space: nowrap;

    text-overflow:
        ellipsis;
}

.gallery-customer-review__source {
    width: fit-content;

    display: inline-flex;

    align-items: center;

    margin-top: 4px;

    padding:
        3px
        7px;

    border:
        1px solid
        rgba(8, 66, 102, 0.10);

    border-radius:
        999px;

    color:
        #617b8b;

    background:
        #edf4f7;

    font-size:
        0.57rem;

    font-weight:
        800;
}

.gallery-customer-review__source--real {
    color:
        #08734f;

    border-color:
        rgba(14, 132, 91, 0.18);

    background:
        #e5f6ef;
}

.gallery-customer-review__stars {
    display: flex;

    gap: 2px;

    margin-top: 7px;

    color:
        #ffb400;

    font-size:
        0.82rem;
}

.gallery-customer-review__stars
.is-empty {
    color:
        #d6dee4;
}

.gallery-customer-review__quote {
    grid-column:
        1;

    margin: 0;

    color:
        #536b7b;

    font-size:
        0.76rem;

    line-height:
        1.48;

    align-self: start;
}

.gallery-customer-review__media {
    grid-column:
        2;

    grid-row:
        1 / 3;

    align-self:
        stretch;

    min-height:
        128px;

    display: grid;

    grid-template-columns:
        1fr;

    overflow: hidden;

    border-radius:
        11px;

    background:
        #dbe8ee;
}

.gallery-customer-review__media--compare {
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
}

.gallery-customer-review__photo {
    position: relative;

    min-width: 0;

    display: block;

    overflow: hidden;

    padding: 0;

    border: 0;

    background:
        #dbe8ee;

    cursor:
        zoom-in;
}

.gallery-customer-review__photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.gallery-customer-review__photo-label {
    position: absolute;

    left: 5px;
    bottom: 5px;

    padding:
        3px
        5px;

    border-radius:
        999px;

    color: #fff;

    background:
        rgba(6,31,47,0.78);

    font-size:
        0.48rem;

    font-weight: 900;

    pointer-events: none;
}

.gallery-customer-review__photo-label--after {
    left: auto;
    right: 5px;

    background:
        rgba(18,143,232,0.90);
}

.gallery-customer-reviews__note {
    margin:
        15px
        0
        0;

    color:
        #82929d;

    font-size:
        0.66rem;

    text-align:
        right;
}

/* =========================================================
   VISOR DE RESEÑAS
   ========================================================= */

body.gallery-customer-viewer-open {
    overflow: hidden;
}

.gallery-customer-viewer {
    position: fixed;

    z-index: 10050;

    inset: 0;

    display: grid;

    place-items: center;

    padding:
        clamp(
            12px,
            3vw,
            34px
        );

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 220ms ease,
        visibility 220ms ease;
}

.gallery-customer-viewer.is-open {
    visibility: visible;

    opacity: 1;

    pointer-events: auto;
}

.gallery-customer-viewer__backdrop {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    padding: 0;

    border: 0;

    background:
        rgba(2,12,20,0.94);

    cursor:
        zoom-out;
}

.gallery-customer-viewer__dialog {
    position: relative;

    z-index: 2;

    width:
        min(
            1400px,
            94vw
        );

    height:
        min(
            860px,
            88vh
        );
}

.gallery-customer-viewer__image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}

.gallery-customer-viewer__close {
    position: absolute;

    z-index: 5;

    top: 8px;
    right: 8px;

    width: 44px;
    height: 44px;

    display: grid;

    place-items: center;

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

    border-radius: 50%;

    color: #fff;

    background:
        rgba(5,29,44,0.78);

    font-size:
        1.4rem;

    cursor: pointer;
}

/* =========================================================
   ESTRELLAS DEL FORMULARIO
   ========================================================= */

.gallery-submission__rating {
    margin: 0;
    padding: 0;

    border: 0;
}

.gallery-submission__rating legend {
    margin-bottom: 8px;

    color:
        var(--gallery-navy);

    font-size:
        0.79rem;

    font-weight: 850;
}

.gallery-submission__rating-stars {
    display: flex;

    gap: 4px;
}

.gallery-submission__rating-stars label {
    position: relative;

    cursor: pointer;
}

.gallery-submission__rating-stars input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}

.gallery-submission__rating-stars
label > span:first-of-type {
    display: block;

    padding: 2px;

    color:
        #c9d4db;

    font-size:
        1.75rem;

    line-height: 1;
}

.gallery-submission__rating-stars[data-rating="1"]
label:nth-child(-n/**/+1) > span:first-of-type,

.gallery-submission__rating-stars[data-rating="2"]
label:nth-child(-n/**/+2) > span:first-of-type,

.gallery-submission__rating-stars[data-rating="3"]
label:nth-child(-n/**/+3) > span:first-of-type,

.gallery-submission__rating-stars[data-rating="4"]
label:nth-child(-n/**/+4) > span:first-of-type,

.gallery-submission__rating-stars[data-rating="5"]
label:nth-child(-n/**/+5) > span:first-of-type {
    color:
        #ffb400;
}

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

@media (max-width: 700px) {

    .gallery-customer-reviews {
    position: relative;

    padding:
        clamp(44px, 4.8vw, 66px)
        0
        clamp(48px, 5vw, 70px);

    overflow: hidden;

    border-top:
        1px solid
        rgba(8, 66, 102, 0.13);

    border-bottom:
        1px solid
        rgba(8, 66, 102, 0.10);

    background:
        linear-gradient(
            135deg,
            #d7ebf5 0%,
            #e4f2f9 48%,
            #d5eaf5 100%
        );
}

    .gallery-customer-reviews__container {
        width:
            calc(
                100% - 28px
            );
    }

    .gallery-customer-reviews__heading {
        align-items:
            flex-start;

        flex-direction:
            column;

        gap: 17px;

        margin-bottom:
            18px;
    }

    .gallery-customer-reviews__share {
        width: 100%;
    }

    .gallery-customer-review {
    position: relative;

    width: 335px;

    min-height: 176px;

    flex:
        0
        0
        335px;

    display: grid;

    grid-template-columns:
        1fr
        92px;

    grid-template-rows:
        auto
        1fr;

    gap:
        12px
        14px;

    overflow: hidden;

    padding:
        17px;

    border:
        1px solid
        rgba(6, 60, 94, 0.18);

    border-radius:
        16px;

    background:
        #ffffff;

    box-shadow:
        0
        16px
        38px
        rgba(16, 60, 87, 0.16);

    transition:
        transform
        220ms
        ease,

        box-shadow
        220ms
        ease,

        border-color
        220ms
        ease;
}

    .gallery-customer-review__media {
        min-height:
            112px;
    }

    .gallery-customer-reviews__note {
        text-align: left;
    }

}

/* =========================================================
   MOVIMIENTO REDUCIDO
   ========================================================= */

@media (
    prefers-reduced-motion:
    reduce
) {

    .gallery-customer-reviews__marquee {
    position: relative;

    width: 100%;

    overflow: hidden;

    padding:
        22px
        18px
        24px;

    border:
        1px solid
        rgba(8, 66, 102, 0.11);

    border-radius:
        24px;

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

    box-shadow:
        inset
        0
        1px
        0
        rgba(255, 255, 255, 0.65);

    mask-image:
        linear-gradient(
            90deg,
            transparent,
            #000 3%,
            #000 97%,
            transparent
        );

    -webkit-mask-image:
        linear-gradient(
            90deg,
            transparent,
            #000 3%,
            #000 97%,
            transparent
        );
}

    .gallery-customer-reviews__track {
        animation: none;
    }

    .gallery-customer-reviews__group:nth-child(2) {
        display: none;
    }

}

/* VISOR UNIFICADO V2 START */

.gallery-lightbox.is-project-viewer {
    padding:
        16px
        82px
        18px;
}

.gallery-lightbox.is-project-viewer
.gallery-lightbox__dialog {
    width:
        100%;

    height:
        100%;

    max-width:
        none;

    max-height:
        none;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    outline:
        none;

    border:
        0;

    background:
        transparent;

    box-shadow:
        none;
}

.gallery-lightbox.is-project-viewer
.gallery-lightbox__figure {
    width:
        100%;

    height:
        100%;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    gap:
        10px;

    background:
        transparent;
}

/* =========================================================
   EL MARCO TIENE EXACTAMENTE EL TAMAÑO DE LA FOTO
   ========================================================= */

.gallery-lightbox.is-project-viewer
.gallery-lightbox__image-wrap {
    position:
        relative;

    flex:
        0
        0
        auto;

    min-width:
        0;

    min-height:
        0;

    display:
        block;

    overflow:
        hidden;

    border-radius:
        14px;

    background:
        #09151d;

    box-shadow:
        0
        18px
        48px
        rgba(
            0,
            0,
            0,
            0.28
        );
}

.gallery-lightbox__image[hidden],
.gallery-project-comparison[hidden] {
    display:
        none !important;
}

/* =========================================================
   FOTO ÚNICA
   ========================================================= */

.gallery-lightbox.is-project-viewer
.gallery-lightbox__image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit:
        contain;

    object-position:
        center;

    image-rendering:
        auto;
}

/* =========================================================
   COMPARADOR ÚNICO
   ========================================================= */

.gallery-project-comparison {
    --comparison-position:
        50%;

    position:
        relative;

    width:
        100%;

    height:
        100%;

    overflow:
        hidden;

    border-radius:
        14px;

    background:
        #09151d;

    user-select:
        none;

    -webkit-user-select:
        none;
}

.gallery-project-comparison__before,
.gallery-project-comparison__after {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background:
        #09151d;
}

/*
 * Fondo suave usando la MISMA foto.
 * Solo rellena el espacio lateral.
 */
/*
 * Oscurece ligeramente el relleno para que
 * la fotografía real destaque.
 */
.gallery-project-comparison__before img,
.gallery-project-comparison__after img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit:
        contain;

    object-position:
        center;

    image-rendering:
        auto;

    pointer-events:
        none;
}

.gallery-project-comparison__after {
    clip-path:
        inset(
            0
            0
            0
            var(
                --comparison-position
            )
        );
}

/* =========================================================
   ETIQUETAS
   ========================================================= */

.gallery-project-comparison__label {
    position:
        absolute;

    z-index:
        60;

    top:
        14px;

    min-height:
        32px;

    display:
        inline-flex;

    align-items:
        center;

    padding:
        0
        13px;

    border-radius:
        999px;

    color:
        #fff;

    font-size:
        0.65rem;

    font-weight:
        900;

    pointer-events:
        none;
}

.gallery-project-comparison__label--before {
    left:
        14px;

    background:
        rgba(
            5,
            31,
            47,
            0.90
        );
}

.gallery-project-comparison__label--after {
    right:
        14px;

    background:
        var(--gallery-blue);
}

/* =========================================================
   DIVISOR
   ========================================================= */

.gallery-project-comparison__divider {
    position:
        absolute;

    z-index:
        50;

    top:
        0;

    bottom:
        0;

    left:
        var(
            --comparison-position
        );

    width:
        2px;

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

    transform:
        translateX(
            -50%
        );

    pointer-events:
        none;
}

.gallery-project-comparison__handle {
    position:
        absolute;

    z-index:
        61;

    top:
        50%;

    left:
        var(
            --comparison-position
        );

    width:
        50px;

    height:
        50px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        50%;

    color:
        var(--gallery-navy);

    background:
        #fff;

    box-shadow:
        0
        8px
        24px
        rgba(
            0,
            0,
            0,
            0.22
        );

    transform:
        translate(
            -50%,
            -50%
        );

    pointer-events:
        none;
}

/*
 * El slider SOLO existe encima de la fotografía.
 */
.gallery-project-comparison__range {
    position:
        absolute;

    z-index:
        70;

    inset:
        0;

    width:
        100%;

    height:
        100%;

    margin:
        0;

    opacity:
        0;

    cursor:
        ew-resize;
}

/* =========================================================
   TEXTO MISMO ANCHO QUE LA FOTO
   ========================================================= */

.gallery-lightbox.is-project-viewer
.gallery-lightbox__caption {
    flex:
        0
        0
        auto;

    margin:
        0;

    padding:
        10px
        14px;

    border-radius:
        10px;

    background:
        rgba(
            4,
            18,
            27,
            0.88
        );
}

.gallery-lightbox__description {
    max-width:
        900px;

    margin:
        4px
        0
        0;

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

    font-size:
        0.82rem;

    line-height:
        1.42;
}

.gallery-lightbox__description[hidden] {
    display:
        none;
}

.gallery-lightbox.is-project-viewer
[data-gallery-lightbox-counter] {
    min-width:
        64px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        flex-end;

    white-space:
        nowrap;

    word-break:
        keep-all;

    flex-shrink:
        0;

    font-variant-numeric:
        tabular-nums;
}

/* =========================================================
   X Y FLECHAS FUERA DE LA FOTO
   ========================================================= */

.gallery-lightbox.is-project-viewer
.gallery-lightbox__close {
    position:
        fixed;

    z-index:
        500;

    top:
        16px;

    right:
        18px;

    width:
        48px;

    height:
        48px;

    pointer-events:
        auto;
}

.gallery-lightbox.is-project-viewer
.gallery-lightbox__nav {
    position:
        fixed;

    z-index:
        490;

    top:
        50%;

    width:
        52px;

    height:
        52px;

    pointer-events:
        auto;
}

.gallery-lightbox.is-project-viewer
.gallery-lightbox__nav--previous {
    left:
        16px;
}

.gallery-lightbox.is-project-viewer
.gallery-lightbox__nav--next {
    right:
        16px;
}

/* =========================================================
   SOLO UN ⛶ EN TARJETAS
   ========================================================= */

.gallery-portfolio-expand--before[hidden],
.gallery-client-gallery__expand--before[hidden] {
    display:
        none !important;
}

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

@media (
    max-width:
    700px
) {

    .gallery-lightbox.is-project-viewer {
        padding:
            62px
            12px
            14px;
    }

    .gallery-lightbox.is-project-viewer
    .gallery-lightbox__close {
        top:
            8px;

        right:
            8px;
    }

    .gallery-lightbox.is-project-viewer
    .gallery-lightbox__nav {
        width:
            43px;

        height:
            43px;
    }

    .gallery-lightbox.is-project-viewer
    .gallery-lightbox__nav--previous {
        left:
            5px;
    }

    .gallery-lightbox.is-project-viewer
    .gallery-lightbox__nav--next {
        right:
            5px;
    }

    .gallery-project-comparison__label {
        top:
            9px;

        min-height:
            28px;

        padding:
            0
            9px;

        font-size:
            0.58rem;
    }

    .gallery-project-comparison__label--before {
        left:
            9px;
    }

    .gallery-project-comparison__label--after {
        right:
            9px;
    }

    .gallery-project-comparison__handle {
        width:
            44px;

        height:
            44px;
    }

    .gallery-lightbox.is-project-viewer
    .gallery-lightbox__caption {
        padding:
            9px
            11px;
    }

}

/* VISOR UNIFICADO V2 END */

/* PATCH 05 - MOBILE CONTENT CENTERING - GALLERY */
@media (max-width: 700px) {
    .gallery-hero__content {
        margin-inline: auto;
        text-align: center;
    }

    .gallery-hero__eyebrow,
    .gallery-hero__title,
    .gallery-hero__description,
    .gallery-hero__note {
        margin-inline: auto;
    }

    .gallery-hero__actions {
        justify-items: center;
    }

    .gallery-hero__button,
    .gallery-hero__button--primary,
    .gallery-hero__button--secondary {
        width: min(100%, 420px);
        margin-inline: auto;
    }

    .gallery-hero__note {
        justify-content: center;
        text-align: center;
    }

    .gallery-result-card__body {
        text-align: center;
    }

    .gallery-result-card__badge {
        margin-inline: auto;
    }

    .gallery-customer-reviews__heading {
        align-items: center !important;
        text-align: center;
    }

    .gallery-customer-reviews__heading > div {
        width: 100%;
    }

    .gallery-customer-reviews__share {
        width: min(100%, 360px);
        margin-inline: auto;
    }

    .gallery-customer-reviews__note {
        margin-inline: auto;
        text-align: center !important;
    }
}

/* ULTRA WASH - PHOTO & REVIEW TERMS */
.gallery-submission__consent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

.gallery-submission__consent-row .gallery-submission__consent {
    flex: 1 1 auto;
    margin: 0;
}

.gallery-submission__terms-link {
    flex: 0 0 auto;
    padding: 5px 0;
    border: 0;
    color: var(--gallery-blue);
    background: transparent;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.25;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.gallery-submission__terms-link:hover {
    color: #086caf;
}

.gallery-submission__terms-link:focus-visible,
.gallery-review-terms button:focus-visible,
.gallery-review-terms a:focus-visible {
    outline: 3px solid rgba(18, 143, 232, 0.28);
    outline-offset: 3px;
}

.gallery-review-terms {
    width: min(560px, calc(100% - 28px));
    max-height: min(720px, calc(100% - 32px));
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 20px;
    color: var(--gallery-navy);
    background: transparent;
}

.gallery-review-terms::backdrop {
    background: rgba(4, 20, 33, 0.62);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.gallery-review-terms__panel {
    overflow: hidden;
    border: 1px solid rgba(8, 66, 102, 0.11);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(5, 33, 52, 0.30);
}

.gallery-review-terms__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid rgba(8, 66, 102, 0.08);
}

.gallery-review-terms__eyebrow {
    margin: 0 0 6px;
    color: var(--gallery-blue);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.gallery-review-terms__header h3 {
    margin: 0;
    color: #071f33;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.15;
}

.gallery-review-terms__x {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid rgba(8, 66, 102, 0.10);
    border-radius: 50%;
    color: #17384f;
    background: #f3f8fb;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-review-terms__text {
    margin: 0;
    padding: 22px 24px 24px;
    color: #587286;
    font-size: 0.96rem;
    line-height: 1.7;
}

.gallery-review-terms__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 24px 22px;
    border-top: 1px solid rgba(8, 66, 102, 0.08);
    background: #f8fbfd;
}

.gallery-review-terms__privacy {
    color: var(--gallery-blue);
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gallery-review-terms__close {
    min-width: 112px;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    background: #071f33;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
}

@media (max-width: 560px) {
    .gallery-submission__consent-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .gallery-submission__terms-link {
        margin-left: 27px;
    }

    .gallery-review-terms {
        width: calc(100% - 20px);
    }

    .gallery-review-terms__header {
        padding: 20px 18px 15px;
    }

    .gallery-review-terms__text {
        padding: 18px;
        font-size: 0.89rem;
        line-height: 1.62;
    }

    .gallery-review-terms__actions {
        align-items: stretch;
        flex-direction: column;
        padding: 15px 18px 18px;
    }

    .gallery-review-terms__close {
        width: 100%;
    }
}

/* ULTRA WASH - INLINE PHOTO & REVIEW TERMS V2 */
.gallery-submission__consent-block {
    display: block;
    margin-top: 2px;
}

.gallery-submission__consent-block .gallery-submission__consent {
    margin: 0;
}

.gallery-submission__consent-block .gallery-submission__terms-link {
    display: inline-block;
    margin: 4px 0 0 27px;
    padding: 0;
    border: 0;
    color: #168bd1;
    background: transparent;
    font: inherit;
    font-size: 0.69rem;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.gallery-submission__consent-block .gallery-submission__terms-link:hover {
    color: #086ba8;
}

.gallery-submission__consent-block .gallery-submission__terms-link:focus-visible {
    outline: 2px solid rgba(18, 143, 232, 0.28);
    outline-offset: 3px;
}

.gallery-submission__terms-inline {
    margin: 8px 0 2px 27px;
    padding: 9px 11px;
    border-left: 2px solid rgba(18, 143, 232, 0.38);
    border-radius: 0 7px 7px 0;
    background: rgba(18, 143, 232, 0.04);
}

.gallery-submission__terms-inline[hidden] {
    display: none !important;
}

.gallery-submission__terms-inline p {
    margin: 0;
    color: #687d8d;
    font-size: 0.70rem;
    font-weight: 400;
    line-height: 1.5;
}

.gallery-submission__terms-inline a {
    display: inline-block;
    margin-top: 6px;
    color: #168bd1;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gallery-submission__terms-inline a:hover,
.gallery-submission__terms-inline a:focus-visible {
    color: #086ba8;
}

.gallery-review-terms {
    display: none !important;
}

@media (max-width: 560px) {
    .gallery-submission__consent-block .gallery-submission__terms-link,
    .gallery-submission__terms-inline {
        margin-left: 27px;
    }

    .gallery-submission__terms-inline p {
        font-size: 0.69rem;
    }

    .gallery-submission__terms-inline a {
        font-size: 0.67rem;
    }
}

/* ===== FINAL GALLERY EXPAND POSITION ===== */
.gallery-page .gallery-portfolio-expand,
.gallery-page .gallery-comparison .gallery-portfolio-expand,
.gallery-page .gallery-result-card .gallery-portfolio-expand,
.gallery-page .gallery-result-card__single-expand,
.gallery-page .gallery-result-card__single-media .gallery-result-card__single-expand {
    top: auto !important;
    right: 14px !important;
    bottom: 14px !important;
    left: auto !important;
    z-index: 12 !important;
    transform: none !important;
}

@media (max-width: 700px) {
    .gallery-page .gallery-portfolio-expand,
    .gallery-page .gallery-comparison .gallery-portfolio-expand,
    .gallery-page .gallery-result-card .gallery-portfolio-expand,
    .gallery-page .gallery-result-card__single-expand,
    .gallery-page .gallery-result-card__single-media .gallery-result-card__single-expand {
        right: 12px !important;
        bottom: 12px !important;
    }
}

