// Imágenes para redes (1080×1920). La captura en pantalla usa 540×960; html2canvas scale:2 → export full.
// Escala tipográfica y ritmo vertical pensados para lectura en móvil (stories / estados).

.generate-image-capture {
    --gis-space-2xs: 4px;
    --gis-space-xs: 8px;
    --gis-space-sm: 12px;
    --gis-space-md: 18px;
    --gis-space-lg: 26px;
    --gis-space-xl: 34px;
    --gis-space-2xl: 42px;

    --gis-type-eyebrow: 21px;
    --gis-type-price: 56px;
    --gis-type-address: 30px;
    --gis-type-location: 23px;
    --gis-type-spec: 20px;
    --gis-type-spec-icon: 19px;
    --gis-type-credit: 17px;

    --gis-lh-tight: 1.05;
    --gis-lh-snug: 1.2;
    --gis-lh-body: 1.35;

    --gis-tracking-eyebrow: 0.06em;
    --gis-logo-max-h: 132px;
}

.generate-image-story {
    font-feature-settings: "kern" 1, "liga" 1;
    letter-spacing: 0.01em;
}

// —— Bloques reutilizables ——

.gis-eyebrow {
    font-size: var(--gis-type-eyebrow);
    font-weight: 600;
    letter-spacing: var(--gis-tracking-eyebrow);
    line-height: var(--gis-lh-tight);
    text-transform: uppercase;
}

.gis-price {
    font-size: var(--gis-type-price);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: var(--gis-lh-tight);
}

.gis-address {
    color: rgba(33, 37, 41, 0.92);
    font-size: var(--gis-type-address);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: var(--gis-lh-snug);
}

.gis-location {
    color: rgba(33, 37, 41, 0.55);
    font-size: var(--gis-type-location);
    font-weight: 500;
    line-height: var(--gis-lh-body);
    margin-top: var(--gis-space-2xs);
}

.gis-address--inline .gis-location {
    display: inline;
    margin-top: 0;

    &::before {
        color: rgba(33, 37, 41, 0.35);
        content: " · ";
        font-weight: 400;
    }
}

.gis-brand-bar {
    padding: var(--gis-space-sm) var(--gis-space-lg);
}

.gis-brand-bar .gis-eyebrow {
    margin-bottom: var(--gis-space-xs);
}

.gis-brand-bar .gis-price {
    margin-top: var(--gis-space-2xs);
}

.gis-measures-pill {
    border-radius: 10px;
    font-size: var(--gis-type-spec);
    font-weight: 500;
    line-height: var(--gis-lh-body);
    padding: var(--gis-space-sm) var(--gis-space-md);

    i,
    .fa,
    .fa-regular,
    .fa-solid {
        font-size: var(--gis-type-spec-icon);
    }
}

.gis-specs {
    font-size: var(--gis-type-spec);
    font-weight: 500;
    gap: var(--gis-space-md) var(--gis-space-lg);
    line-height: var(--gis-lh-body);

    i,
    .fa,
    .fa-regular,
    .fa-solid {
        font-size: var(--gis-type-spec-icon);
        opacity: 0.85;
    }
}

.gis-credit-badge {
    font-size: var(--gis-type-credit);
    letter-spacing: 0.04em;
    margin-bottom: var(--gis-space-sm);
}

.gis-logo-wrap {
    align-items: center;
    display: flex;
    flex-grow: 1;
    justify-content: center;
    min-height: 0;
    padding-bottom: var(--gis-space-lg);
    padding-top: var(--gis-space-md);
}

.gis-logo-wrap img {
    height: auto;
    max-height: var(--gis-logo-max-h);
    width: auto;
}

.gis-panel {
    padding: var(--gis-space-xl) var(--gis-space-lg) var(--gis-space-lg);
}

.gis-panel--compact {
    padding-bottom: var(--gis-space-md);
    padding-top: var(--gis-space-lg);
}

// —— Variante 1: Collage ——

.generate-image-story--status1 {
    .gis-collage-photos {
        flex-shrink: 0;
        position: relative;
    }

    .gis-collage-badge-wrap {
        bottom: 0;
        left: 50%;
        margin-bottom: calc(-1 * var(--gis-space-md));
        position: absolute;
        transform: translateX(-50%);
        width: 100%;
        z-index: 2;
    }

    .gis-collage-badge {
        padding: var(--gis-space-sm) var(--gis-space-lg);
    }

    .gis-collage-info {
        padding: var(--gis-space-2xl) var(--gis-space-md) var(--gis-space-lg);
    }

    .gis-collage-info .gis-address {
        margin-bottom: var(--gis-space-sm);
    }

    .gis-collage-info .gis-price {
        margin-top: var(--gis-space-xs);
    }

    .gis-collage-measures-anchor {
        flex-shrink: 0;
        min-height: var(--gis-space-lg);
        position: relative;
    }

    .gis-collage-measures-float {
        left: 50%;
        position: absolute;
        top: 0;
        transform: translate(-50%, -50%);
        z-index: 3;
    }

    .gis-collage-specs {
        flex-shrink: 0;
        margin-top: var(--gis-space-xl);
        padding-left: var(--gis-space-md);
        padding-right: var(--gis-space-md);
    }
}

// —— Variante 2: Hero ——

.generate-image-story--status2 {
    .generate-image-story__hero {
        min-height: 54%;
    }

    .generate-image-story__hero-shade {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.35) 45%,
            rgba(0, 0, 0, 0.78) 100%
        ) !important;
        height: 62% !important;
    }

    .gis-hero-caption {
        padding: var(--gis-space-lg) var(--gis-space-lg) var(--gis-space-xl);
    }

    .gis-hero-caption .gis-eyebrow {
        margin-bottom: var(--gis-space-sm);
    }

    .gis-hero-caption .gis-price {
        margin-top: var(--gis-space-xs);
    }

    .gis-panel--hero {
        padding: var(--gis-space-xl) var(--gis-space-lg) var(--gis-space-lg);
    }

    .gis-panel--hero .gis-address {
        margin-bottom: var(--gis-space-md);
    }

    .gis-panel--hero .gis-measures-pill {
        margin-bottom: var(--gis-space-md);
    }

    .gis-panel--hero .gis-specs {
        margin-bottom: var(--gis-space-lg);
    }

    .gis-panel--hero .gis-logo-wrap {
        flex-grow: 0;
        padding-bottom: 0;
        padding-top: var(--gis-space-sm);
    }
}

// —— Variante 3: Mosaico ——

.generate-image-story--status3 {
    .gis-mosaic-grid {
        height: 45%;
        padding: var(--gis-space-md) var(--gis-space-md) 0;
    }

    .gis-mosaic-brand {
        padding: var(--gis-space-md) var(--gis-space-lg) var(--gis-space-lg);
    }

    .gis-mosaic-body {
        padding: var(--gis-space-xl) var(--gis-space-lg) var(--gis-space-lg);
    }

    .gis-mosaic-body .gis-address {
        margin-bottom: var(--gis-space-2xs);
    }

    .gis-mosaic-body .gis-location {
        margin-bottom: var(--gis-space-md);
    }

    .gis-mosaic-body .gis-specs {
        margin-bottom: var(--gis-space-lg);
    }

    .gis-mosaic-body .gis-logo-wrap {
        flex-grow: 0;
        padding-bottom: var(--gis-space-sm);
        padding-top: var(--gis-space-md);
    }
}

// —— Variante 4: Revista (foto dominante + pie compacto) ——

.generate-image-story--status4 {
    background: #161618;

    .gis-s4-hero {
        flex: 1 1 auto;
        min-height: 72%;
        overflow: hidden;
        position: relative;
    }

    .gis-s4-hero-img {
        display: block;
        height: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: center center;
        width: 100%;
    }

    .gis-s4-hero-shade {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0) 35%,
            rgba(0, 0, 0, 0.45) 72%,
            rgba(22, 22, 24, 0.92) 100%
        );
        inset: 0;
        pointer-events: none;
        position: absolute;
        z-index: 1;
    }

    .gis-s4-ribbon {
        border-radius: 0 6px 6px 0;
        box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.3);
        left: 0;
        padding: 12px 10px;
        position: absolute;
        top: 8%;
        z-index: 3;
    }

    .gis-s4-ribbon-text {
        font-size: 16px;
        font-weight: 800;
        letter-spacing: 0.18em;
        line-height: 1;
        writing-mode: vertical-rl;
    }

    .gis-s4-inset {
        border: 3px solid #fff;
        border-radius: 10px;
        bottom: 28%;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
        height: 96px;
        overflow: hidden;
        position: absolute;
        right: 4%;
        width: 96px;
        z-index: 3;
    }

    .gis-s4-hero-copy {
        bottom: 0;
        left: 0;
        padding: 0 20px 16px;
        position: absolute;
        right: 0;
        z-index: 2;
    }

    .gis-s4-credit {
        font-size: 12px;
        letter-spacing: 0.05em;
        margin-bottom: 8px;
        padding: 4px 10px !important;
    }

    .gis-s4-type {
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.12em;
        margin-bottom: 4px;
    }

    .gis-s4-price {
        font-size: 44px;
        font-weight: 800;
        letter-spacing: -0.03em;
        line-height: 1;
        margin-bottom: 8px;
        text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    }

    .gis-s4-address {
        font-size: 22px;
        font-weight: 600;
        line-height: 1.2;
        margin-bottom: 2px;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    }

    .gis-s4-location {
        color: rgba(255, 255, 255, 0.75);
        font-size: 17px;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    }

    .gis-s4-panel {
        background: #161618;
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        gap: 10px;
        padding: 12px 16px 14px;
    }

    .gis-s4-facts-row {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;

        .mr10,
        .mr20 {
            margin: 0 !important;
        }
    }

    .gis-s4-chip {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        padding: 6px 10px !important;
    }

    .gis-s4-logo {
        text-align: center;

        img {
            max-height: 64px;
            opacity: 0.95;
        }
    }
}

// —— Variante 5: Polaroid (flujo vertical, sin solapar fotos) ——

.generate-image-story--status5 {
    background: linear-gradient(180deg, #faf6ee 0%, #ebe3d4 100%);

    .gis-s5-header {
        flex-shrink: 0;
        padding: 10px 14px 6px;
    }

    .gis-s5-tag {
        border-radius: 999px;
        box-shadow: 0 4px 14px rgba($theme-color3, 0.25);
        display: inline-block;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.1em;
        padding: 7px 18px;
    }

    .gis-s5-body {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: 0 12px 14px;
    }

    .gis-s5-main-wrap {
        margin-left: auto;
        margin-right: auto;
        position: relative;
        width: 76%;
    }

    .gis-s5-polaroid {
        background: #fff;
        box-shadow: 0 10px 28px rgba(50, 40, 28, 0.14);
        padding: 8px 8px 18px;
        position: relative;
    }

    .gis-s5-polaroid--main {
        transform: rotate(-1.5deg);
        width: 100%;
    }

    .gis-s5-tape {
        background: rgba(255, 252, 235, 0.9);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        height: 16px;
        left: 50%;
        position: absolute;
        top: -5px;
        transform: translateX(-50%);
        width: 48px;
        z-index: 2;
    }

    .gis-s5-polaroid-photo {
        background: #ece8e0;
        overflow: hidden;
        width: 100%;
    }

    .gis-s5-polaroid--main .gis-s5-polaroid-photo {
        aspect-ratio: 4 / 3.5;
    }

    .gis-s5-polaroid-caption {
        color: #2a2622;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.25;
        margin-top: 8px;
        text-align: center;
    }

    .gis-s5-sticker {
        border: 3px solid rgba(255, 255, 255, 0.4);
        border-radius: 50%;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        height: 96px;
        justify-content: center;
        position: absolute;
        right: -6%;
        text-align: center;
        top: 6%;
        width: 96px;
        z-index: 3;
    }

    .gis-s5-sticker-label {
        display: block;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .gis-s5-sticker-price {
        display: block;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.15;
        margin-top: 2px;
        padding: 0 6px;
    }

    .gis-s5-secondary {
        gap: 12px;
        margin-top: 12px;
        padding: 0 2px;
    }

    .gis-s5-polaroid--sm {
        flex: 0 0 42%;
        max-width: 42%;
        padding-bottom: 10px;
    }

    .gis-s5-polaroid--left {
        transform: rotate(3deg);
    }

    .gis-s5-polaroid--right {
        transform: rotate(-2.5deg);
    }

    .gis-s5-polaroid--sm .gis-s5-polaroid-photo {
        aspect-ratio: 1;
        min-height: 100px;
    }

    .gis-s5-footer {
        display: flex;
        flex-direction: column;
        margin-top: 14px;
        min-height: 0;
    }

    .gis-s5-facts-card {
        background: #fff;
        border: 1px solid rgba(50, 40, 28, 0.08);
        border-radius: 14px;
        box-shadow: 0 6px 20px rgba(50, 40, 28, 0.1);
        margin: 0 auto;
        max-width: 100%;
        padding: 14px 12px;
        width: 100%;
    }

    .gis-s5-location {
        color: #2a2622;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 10px;
        text-align: center;
    }

    .gis-s5-facts-row {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        margin-bottom: 8px;

        .mr10,
        .mr20 {
            margin: 0 !important;
        }
    }

    .gis-s5-facts-row--specs {
        margin-bottom: 0;
    }

    .gis-s5-chip {
        background: #2a2622;
        border-radius: 8px;
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        padding: 7px 11px !important;
    }

    .gis-s5-chip i {
        color: rgba(255, 255, 255, 0.9);
    }

    .gis-s5-chip span {
        color: #fff;
    }

    .gis-s5-footer-brand {
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-top: 12px;
        text-align: center;
        width: 100%;
    }

    .gis-s5-credit {
        display: inline-flex !important;
        font-size: 12px;
        letter-spacing: 0.05em;
        margin: 0 !important;
        padding: 5px 12px !important;
    }

    .gis-s5-logo img {
        max-height: 88px;
    }
}

// —— Variante 6: Nocturno (foto visible + tarjeta al pie) ——

.generate-image-story--status6 {
    background: #1a1a1e;

    .gis-s6-bg {
        filter: brightness(1) saturate(1.08) contrast(1.02);
    }

    .gis-s6-vignette {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0) 38%,
            rgba(0, 0, 0, 0.35) 68%,
            rgba(0, 0, 0, 0.72) 100%
        );
        pointer-events: none;
    }

    .gis-s6-content {
        padding: 14px 14px 16px;
        z-index: 1;
    }

    .gis-s6-top {
        padding: 4px 12px 8px;
    }

    .gis-s6-logo {
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.65));
        max-height: 58px;
    }

    .gis-s6-spacer {
        min-height: 12%;
        pointer-events: none;
    }

    .gis-s6-frame {
        border: 1px solid rgba($theme-color3, 0.45);
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
        max-width: 96%;
        padding: 2px;
    }

    .gis-s6-frame-inner {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        background: rgba(18, 18, 22, 0.72);
        border-radius: 14px;
        padding: 18px 16px 16px;
    }

    .gis-s6-eyebrow {
        color: rgba(255, 255, 255, 0.88);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.14em;
        margin-bottom: 6px;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    }

    .gis-s6-price {
        color: #fff;
        font-size: 46px;
        font-weight: 800;
        letter-spacing: -0.02em;
        line-height: 1;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    }

    .gis-s6-divider {
        background: linear-gradient(90deg, transparent, rgba($theme-color3, 0.75), transparent);
        height: 2px;
        margin: 12px auto;
        width: 45%;
    }

    .gis-s6-address {
        font-size: 22px;
        font-weight: 600;
        line-height: 1.25;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    }

    .gis-s6-location {
        color: rgba(255, 255, 255, 0.82);
        font-size: 16px;
        margin-top: 4px;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    }

    .gis-s6-facts {
        margin-top: 12px;
    }

    .gis-s6-facts-row {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        margin-bottom: 6px;

        .mr10,
        .mr20 {
            margin: 0 !important;
        }
    }

    .gis-s6-chip {
        background: rgba(0, 0, 0, 0.55);
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 999px;
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        padding: 6px 12px !important;
    }

    .gis-s6-chip i,
    .gis-s6-chip span {
        color: #fff;
    }

    .gis-s6-credit {
        font-size: 11px;
        letter-spacing: 0.05em;
        margin-top: 10px !important;
        padding: 4px 10px !important;
    }

    .gis-s6-footer {
        padding-top: 8px;
    }

    .gis-s6-cta {
        color: rgba(255, 255, 255, 0.75);
        font-size: 11px;
        letter-spacing: 0.12em;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
        text-transform: uppercase;
    }
}
