/*
 * REDE Theme Comercial 1.0.7
 * Única capa visual de .rede-sales-landing y .rede-v2-page.
 */

.rede-sales-landing,
.rede-sales-landing *,
.rede-v2-page,
.rede-v2-page * {
    box-sizing: border-box;
}

.rede-sales-landing {
    --rede-yellow: #ffd400;
    --rede-green: #128c3e;
    --rede-ink: #171717;
    --rede-muted: #62676b;
    width: calc(100% - 32px) !important;
    max-width: 1080px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    color: var(--rede-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rede-sales-landing img {
    max-width: 100%;
}

.rede-sales-landing p:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rede-sales-landing .rede-hero {
    overflow: hidden;
    border-radius: 24px;
    background: #171717;
    box-shadow: 0 18px 45px #0002;
}

.rede-sales-landing .rede-hero-image {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 650px !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    contain: none !important;
    contain-intrinsic-size: none !important;
    background: #eee;
}

.rede-sales-landing .rede-hero-copy {
    padding: 30px 34px 34px;
    color: #fff;
}

.rede-sales-landing .rede-eyebrow {
    display: inline-flex;
    margin: 0 0 11px;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--rede-yellow);
    color: #111;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
}

.rede-sales-landing .rede-hero h1 {
    max-width: 900px;
    margin: 0 0 11px;
    color: #fff;
    font-size: clamp(31px, 5vw, 57px);
    line-height: 1.03;
    letter-spacing: -.035em;
}

.rede-sales-landing .rede-hero p {
    margin: 0 0 17px;
    color: #f2f2f2;
    font-size: 18px;
}

.rede-sales-landing .rede-triggers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0 20px;
}

.rede-sales-landing .rede-triggers span {
    padding: 8px 11px;
    border: 1px solid #ffffff55;
    border-radius: 999px;
    background: #ffffff10;
    font-size: 14px;
    font-weight: 750;
}

.rede-sales-landing .rede-wa {
    display: inline-flex !important;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 13px;
    background: var(--rede-green);
    color: #fff !important;
    font-size: 17px;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 10px 25px #0003;
}

.rede-sales-landing .rede-wa::before {
    content: "●";
    margin-right: 9px;
    color: #fff;
    font-size: 13px;
}

.rede-sales-landing .rede-section {
    padding: 54px 0;
}

.rede-sales-landing .rede-section h2 {
    margin: 0 0 9px;
    font-size: clamp(27px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.rede-sales-landing .rede-section-lead {
    margin: 0 0 25px;
    color: var(--rede-muted);
    font-size: 17px;
}

.rede-sales-landing .rede-project-card {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
}

.rede-sales-landing .rede-project-card > h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.rede-sales-landing .rede-story-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: auto !important;
    gap: 18px !important;
    align-items: start !important;
    align-content: start !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.rede-sales-landing .rede-story-grid > figure.rede-stage,
.rede-sales-landing .rede-story-grid > div.rede-stage {
    display: flex !important;
    position: static !important;
    flex-direction: column !important;
    align-self: start !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    justify-self: stretch !important;
    float: none !important;
    clear: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    border: 1px solid #e5e5e5;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 9px 28px #00000012;
}

.rede-sales-landing .rede-stage > .rede-stage-media,
.rede-sales-landing .rede-stage > .rede-stage-display {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
    line-height: 0 !important;
}

.rede-sales-landing .rede-stage > img.rede-stage-image,
.rede-sales-landing .rede-stage .rede-stage-media > img.rede-stage-image,
.rede-sales-landing .rede-stage .rede-stage-display > img.rede-stage-image {
    display: block !important;
    position: static !important;
    inset: auto !important;
    float: none !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !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 !important;
    contain: none !important;
    contain-intrinsic-size: none !important;
    content-visibility: visible !important;
    transform: none !important;
    background: #fff;
}

.rede-sales-landing .rede-stage > figcaption,
.rede-sales-landing .rede-stage > .rede-stage-caption {
    display: block !important;
    position: static !important;
    inset: auto !important;
    float: none !important;
    clear: both !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 10px 12px 12px !important;
    aspect-ratio: auto !important;
    transform: none !important;
    line-height: 1.35 !important;
}

.rede-sales-landing .rede-stage > figcaption strong,
.rede-sales-landing .rede-stage > figcaption span,
.rede-sales-landing .rede-stage > .rede-stage-caption strong,
.rede-sales-landing .rede-stage > .rede-stage-caption span {
    display: block !important;
}

.rede-sales-landing .rede-stage > figcaption strong,
.rede-sales-landing .rede-stage > .rede-stage-caption strong {
    font-size: 18px;
}

.rede-sales-landing .rede-stage > figcaption span,
.rede-sales-landing .rede-stage > .rede-stage-caption span {
    margin-top: 4px !important;
    color: var(--rede-muted);
    font-size: 14px;
}

.rede-sales-landing .rede-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: start;
    padding: 34px;
    border-radius: 20px;
    background: #f5f5f5;
}

.rede-sales-landing .rede-details ul {
    display: grid;
    gap: 13px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.rede-sales-landing .rede-details li {
    display: flex;
    gap: 10px;
    font-size: 17px;
}

.rede-sales-landing .rede-details li span {
    color: var(--rede-green);
    font-weight: 950;
}

.rede-sales-landing .rede-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.rede-sales-landing .rede-trust div {
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 15px;
    background: #fff;
}

.rede-sales-landing .rede-trust strong,
.rede-sales-landing .rede-trust span {
    display: block;
}

.rede-sales-landing .rede-trust span {
    margin-top: 4px;
    color: var(--rede-muted);
    font-size: 14px;
}

.rede-sales-landing .rede-close {
    padding: 48px 24px;
    border-radius: 22px;
    background: #171717;
    color: #fff;
    text-align: center;
}

.rede-sales-landing .rede-close h2 {
    color: #fff;
}

.rede-sales-landing .rede-close p {
    font-size: 18px;
}

.rede-sales-landing .rede-progress {
    margin: 18px 0 0;
    color: #777;
    font-size: 12px;
    text-align: center;
}

.rede-sales-landing .rede-floating-wa {
    display: none;
}

/* Estructura REDE v2 conservada para futuras landings del mismo módulo. */
.rede-v2-page {
    width: min(100% - 32px, 1240px) !important;
    max-width: 1240px !important;
    margin-inline: auto !important;
}

.rede-v2-page .rede-v2-project-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 22px !important;
    align-items: start !important;
}

.rede-v2-page .rede-v2-card,
.rede-v2-page .rede-v2-card-media,
.rede-v2-page .rede-v2-card-body {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.rede-v2-page .rede-v2-card-media img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
}

@media screen and (max-width: 991px) and (min-width: 768px) {
    .rede-v2-page .rede-v2-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/*
 * Reconoce teléfonos táctiles aun si el navegador usa "sitio para
 * computadora" o un zoom que infla el ancho CSS del viewport.
 */
@media screen and (max-width: 767px), screen and (hover: none) and (pointer: coarse) {
    body #rede-private-landing-preview {
        max-width: none !important;
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .rede-sales-landing {
        width: 100% !important;
        max-width: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-bottom: 72px;
    }

    .rede-sales-landing .rede-hero {
        width: 100vw;
        max-width: none;
        margin-left: calc(50% - 50vw);
        border-radius: 0;
        box-shadow: none;
    }

    .rede-sales-landing .rede-hero-image {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }

    .rede-sales-landing .rede-hero-copy {
        padding: 24px 18px 28px;
    }

    .rede-sales-landing .rede-hero h1 {
        font-size: 30px;
        line-height: 1.08;
    }

    .rede-sales-landing .rede-hero p {
        font-size: 16px;
    }

    .rede-sales-landing .rede-triggers {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    .rede-sales-landing .rede-triggers span {
        font-size: 13px;
    }

    .rede-sales-landing .rede-wa {
        width: 100% !important;
        font-size: 16px;
    }

    .rede-sales-landing .rede-section {
        padding: 38px 6px;
    }

    .rede-sales-landing .rede-section h2 {
        font-size: 27px;
    }

    .rede-sales-landing .rede-section-lead {
        font-size: 15px;
    }

    .rede-sales-landing .rede-project-card > h2 {
        font-size: 21px;
    }

    .rede-sales-landing .rede-story-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-auto-rows: auto !important;
        gap: 14px !important;
        width: calc(100vw - 20px) !important;
        max-width: none !important;
        height: auto !important;
        margin-right: calc(50% - 50vw + 10px) !important;
        margin-left: calc(50% - 50vw + 10px) !important;
        padding: 0 !important;
    }

    .rede-sales-landing .rede-story-grid > figure.rede-stage,
    .rede-sales-landing .rede-story-grid > div.rede-stage {
        clear: both !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        border-radius: 14px;
    }

    .rede-sales-landing .rede-stage > img.rede-stage-image,
    .rede-sales-landing .rede-stage .rede-stage-media > img.rede-stage-image,
    .rede-sales-landing .rede-stage .rede-stage-display > img.rede-stage-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
    }

    .rede-sales-landing .rede-details {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 25px 18px;
    }

    .rede-sales-landing .rede-details li {
        font-size: 16px;
    }

    .rede-sales-landing .rede-trust {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .rede-sales-landing .rede-close {
        padding: 35px 18px;
        border-radius: 18px;
    }

    .rede-sales-landing .rede-floating-wa {
        position: fixed;
        z-index: 9999;
        right: 12px;
        bottom: 12px;
        left: 12px;
        display: flex;
        min-height: 55px;
        align-items: center;
        justify-content: center;
        border-radius: 13px;
        background: var(--rede-green);
        color: #fff !important;
        font-weight: 900;
        text-decoration: none !important;
        box-shadow: 0 8px 25px #0006;
    }

    .rede-v2-page {
        width: 100% !important;
        padding-inline: 10px !important;
    }

    .rede-v2-page .rede-v2-project-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
    }
}
