/*
 * REDE Theme — Orientación Responsive 0.1.6-final
 */

/* Fotos reales */
body.rede-orientation-rule-enabled .rede-sales-landing .rede-story-grid {
    align-items: start !important;
}

body.rede-orientation-rule-enabled .rede-sales-landing figure.rede-stage,
body.rede-orientation-rule-enabled .rede-approved-landing .rede-approved-project-media {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.rede-orientation-rule-enabled .rede-sales-landing img.rede-stage-image,
body.rede-orientation-rule-enabled .rede-sales-landing figure.rede-stage > img,
body.rede-orientation-rule-enabled .rede-approved-landing img.rede-approved-project-photo,
body.rede-orientation-rule-enabled .rede-approved-landing .rede-approved-project-media > img {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
}

/* Hero */
body.rede-orientation-rule-enabled .rede-sales-landing .rede-hero-image {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
}

body.rede-orientation-rule-enabled .rede-sales-landing .rede-hero.rede-hero-orientation-portrait .rede-hero-image,
body.rede-orientation-rule-enabled .rede-sales-landing .rede-hero.rede-hero-orientation-square .rede-hero-image {
    background: transparent !important;
}

body.rede-orientation-rule-enabled .rede-sales-landing .rede-hero-copy .rede-eyebrow {
    display: inline-flex !important;
    align-self: flex-start !important;
    width: auto !important;
    max-width: max-content !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

@media screen and (min-width: 901px) {
    body.rede-orientation-rule-enabled .rede-sales-landing .rede-hero.rede-hero-orientation-portrait {
        display: grid !important;
        grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr) !important;
        align-items: center !important;
        overflow: hidden !important;
        background: #171717 !important;
    }

    body.rede-orientation-rule-enabled .rede-sales-landing .rede-hero.rede-hero-orientation-portrait .rede-hero-copy {
        align-self: stretch !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        min-width: 0 !important;
    }
}

@media screen and (max-width: 900px) {
    body.rede-orientation-rule-enabled .rede-sales-landing .rede-hero.rede-hero-orientation-portrait,
    body.rede-orientation-rule-enabled .rede-sales-landing .rede-hero.rede-hero-orientation-square {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Trabajos parecidos */
body.rede-orientation-rule-enabled .rede-related-projects {
    width: 100%;
    margin: 8px 0 42px;
    padding: 34px 0 8px;
    border-top: 1px solid #e7e7e7;
}

body.rede-orientation-rule-enabled .rede-related-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 20px;
}

body.rede-orientation-rule-enabled .rede-related-head h2 {
    margin: 8px 0 6px;
    font-size: clamp(26px, 3.5vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

body.rede-orientation-rule-enabled .rede-related-head p {
    margin: 0;
    color: #62676b;
    font-size: 15px;
}

body.rede-orientation-rule-enabled .rede-related-hint {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f4f4f4;
    color: #333;
    font-size: 13px;
    font-weight: 800;
}

body.rede-orientation-rule-enabled .rede-related-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 31%);
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.rede-orientation-rule-enabled .rede-related-track::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body.rede-orientation-rule-enabled .rede-related-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2e2e2;
    border-radius: 16px;
    background: #fff;
    color: #171717 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 24px #0000000b;
    scroll-snap-align: start;
}

body.rede-orientation-rule-enabled .rede-related-media {
    display: block;
    width: 100%;
    background: #f5f5f5;
}

body.rede-orientation-rule-enabled .rede-related-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
}

body.rede-orientation-rule-enabled .rede-related-copy {
    display: grid;
    gap: 10px;
    padding: 16px;
}

body.rede-orientation-rule-enabled .rede-related-copy strong {
    color: #171717;
    font-size: 17px;
    line-height: 1.24;
}

body.rede-orientation-rule-enabled .rede-related-copy > span {
    color: #128c3e;
    font-size: 14px;
    font-weight: 850;
}

/* Oculta información técnica al visitante */
body.rede-orientation-rule-enabled .rede-sales-landing .rede-progress {
    display: none !important;
}

/* Responsive */
@media screen and (max-width: 767px) {
    body.rede-orientation-rule-enabled .rede-sales-landing {
        padding-bottom: 112px !important;
    }

    body.rede-orientation-rule-enabled .rede-sales-landing .rede-story-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px !important;
    }

    body.rede-orientation-rule-enabled .rede-sales-landing .rede-project-card,
    body.rede-orientation-rule-enabled .rede-sales-landing figure.rede-stage,
    body.rede-orientation-rule-enabled .rede-approved-landing .rede-approved-project,
    body.rede-orientation-rule-enabled .rede-approved-landing .rede-approved-project-media {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    body.rede-orientation-rule-enabled .rede-related-projects {
        margin-bottom: 30px;
        padding-top: 28px;
    }

    body.rede-orientation-rule-enabled .rede-related-head {
        display: block;
        padding: 0 2px;
    }

    body.rede-orientation-rule-enabled .rede-related-hint {
        display: inline-flex;
        margin-top: 12px;
    }

    body.rede-orientation-rule-enabled .rede-related-track {
        grid-auto-columns: 82%;
        gap: 13px;
        padding-right: 18%;
    }

    body.rede-orientation-rule-enabled .rede-related-copy strong {
        font-size: 16px;
    }

    body.rede-orientation-rule-enabled .rede-sales-landing .rede-floating-wa {
        left: 18px !important;
        right: 18px !important;
        bottom: 12px !important;
        width: auto !important;
        min-height: 52px !important;
        padding: 10px 16px !important;
        border-radius: 15px !important;
        font-size: 17px !important;
        line-height: 1.15 !important;
        box-sizing: border-box !important;
    }
}

@media screen and (min-width: 768px) {
    body.rede-orientation-rule-enabled .rede-sales-landing .rede-story-grid > figure.rede-stage {
        width: 100% !important;
        max-width: none !important;
        align-self: start !important;
    }

    body.rede-orientation-rule-enabled .rede-sales-landing .rede-stage figcaption {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}
