/*
 * REDE Theme Comercial 1.1.0-lab
 * Capa visual universal. Solo actúa en páginas reconocidas como landings REDE.
 */
body.rede-commercial-universal {
    --rede-yellow: #ffd400;
    --rede-green: #128c3e;
    --rede-green-dark: #0b6d30;
    --rede-ink: #151515;
    --rede-soft: #f5f6f7;
    --rede-line: #e5e7eb;
    overflow-x: hidden;
}

body.rede-commercial-universal #rede-private-landing-preview {
    width: min(1120px, 100%) !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    padding: 20px 18px 64px !important;
}

body.rede-commercial-universal .rede-sales-landing,
body.rede-commercial-universal .rede-approved-landing,
body.rede-commercial-universal .rede-v2-page,
body.rede-commercial-universal .rede-recovered-landing {
    width: min(1080px, calc(100% - 32px)) !important;
    max-width: 1080px !important;
    margin: 0 auto 42px !important;
    color: var(--rede-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.rede-commercial-universal .rede-recovered-landing {
    overflow: hidden;
    border: 1px solid var(--rede-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(0,0,0,.08);
}

body.rede-commercial-universal .rede-recovered-landing > img:first-of-type,
body.rede-commercial-universal .rede-recovered-landing figure:first-of-type img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: contain;
    background: #eee;
}

body.rede-commercial-universal .rede-recovered-content {
    padding: 34px;
}

body.rede-commercial-universal .rede-recovered-content h1,
body.rede-commercial-universal .rede-recovered-content h2,
body.rede-commercial-universal .rede-recovered-content h3 {
    color: var(--rede-ink);
    line-height: 1.12;
    letter-spacing: -.025em;
}

body.rede-commercial-universal .rede-recovered-content h1 {
    margin: 0 0 18px;
    font-size: clamp(32px, 5vw, 56px);
}

body.rede-commercial-universal .rede-recovered-content h2 {
    margin: 34px 0 10px;
    font-size: clamp(26px, 3.5vw, 38px);
}

body.rede-commercial-universal .rede-recovered-content p,
body.rede-commercial-universal .rede-recovered-content li {
    font-size: 17px;
    line-height: 1.65;
}

body.rede-commercial-universal .rede-recovered-content img {
    display: block;
    width: 100%;
    height: auto;
    margin: 18px 0;
    border-radius: 16px;
    object-fit: contain;
}

body.rede-commercial-universal .rede-universal-wa,
body.rede-commercial-universal .rede-wa,
body.rede-commercial-universal .rede-approved-cta[href*="wa.me"],
body.rede-commercial-universal a[href*="whatsapp.com"],
body.rede-commercial-universal a[href*="wa.me"] {
    display: inline-flex !important;
    min-height: 58px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 15px 24px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--rede-green) !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    box-shadow: 0 12px 28px rgba(18,140,62,.28) !important;
}

body.rede-commercial-universal .rede-universal-wa:hover,
body.rede-commercial-universal a[href*="wa.me"]:hover,
body.rede-commercial-universal a[href*="whatsapp.com"]:hover {
    background: var(--rede-green-dark) !important;
    color: #fff !important;
}

body.rede-commercial-universal .rede-universal-wa::before {
    content: "☎";
    font-size: 20px;
}

body.rede-commercial-universal .rede-universal-cta-wrap {
    display: flex;
    justify-content: center;
    padding: 22px 0 10px;
}

body.rede-commercial-universal .rede-floating-wa {
    position: fixed !important;
    z-index: 99999 !important;
    right: 16px !important;
    bottom: 16px !important;
    min-height: 54px !important;
    padding: 14px 18px !important;
}

body.rede-commercial-universal .rede-story-grid,
body.rede-commercial-universal .rede-approved-projects-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

body.rede-commercial-universal .rede-stage img,
body.rede-commercial-universal .rede-approved-project img,
body.rede-commercial-universal .rede-approved-project-photo {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

@media (max-width: 767px) {
    body.rede-commercial-universal #rede-private-landing-preview {
        width: 100% !important;
        max-width: none !important;
        padding: 0 0 78px !important;
    }

    body.rede-commercial-universal .rede-sales-landing,
    body.rede-commercial-universal .rede-approved-landing,
    body.rede-commercial-universal .rede-v2-page,
    body.rede-commercial-universal .rede-recovered-landing {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body.rede-commercial-universal .rede-recovered-content {
        padding: 26px 18px 34px;
    }

    body.rede-commercial-universal .rede-story-grid,
    body.rede-commercial-universal .rede-approved-projects-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.rede-commercial-universal .rede-universal-wa,
    body.rede-commercial-universal .rede-wa,
    body.rede-commercial-universal .rede-approved-cta[href*="wa.me"],
    body.rede-commercial-universal a[href*="whatsapp.com"],
    body.rede-commercial-universal a[href*="wa.me"] {
        width: calc(100% - 32px) !important;
        margin-right: 16px !important;
        margin-left: 16px !important;
        font-size: 17px !important;
    }

    body.rede-commercial-universal .rede-floating-wa {
        right: 12px !important;
        bottom: 12px !important;
        width: auto !important;
        margin: 0 !important;
    }
}

/* 1.1.1 — CTA WhatsApp reforzado, sin alterar contenido ni lógica REDE */
body.rede-commercial-universal .rede-universal-wa,
body.rede-commercial-universal .rede-wa,
body.rede-commercial-universal .rede-approved-cta[href*="wa.me"],
body.rede-commercial-universal a[href*="whatsapp.com"],
body.rede-commercial-universal a[href*="wa.me"] {
    min-height: 64px !important;
    padding: 17px 28px !important;
    border: 2px solid rgba(255,255,255,.28) !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #25d366 0%, #128c3e 100%) !important;
    font-size: 19px !important;
    font-weight: 950 !important;
    letter-spacing: -.01em !important;
    box-shadow: 0 14px 34px rgba(37,211,102,.34), inset 0 1px 0 rgba(255,255,255,.26) !important;
    transform: translateZ(0);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}
body.rede-commercial-universal .rede-universal-wa:hover,
body.rede-commercial-universal .rede-wa:hover,
body.rede-commercial-universal a[href*="wa.me"]:hover,
body.rede-commercial-universal a[href*="whatsapp.com"]:hover {
    filter: brightness(.96) saturate(1.08) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 38px rgba(37,211,102,.42) !important;
}
body.rede-commercial-universal .rede-wa-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: inline-block;
    fill: currentColor;
}
body.rede-commercial-universal .rede-closing-cta {
    margin: 34px 0 10px;
    padding: 26px;
    border-radius: 20px;
    background: #111;
    color: #fff;
    text-align: center;
    box-shadow: 0 16px 36px rgba(0,0,0,.14);
}
body.rede-commercial-universal .rede-closing-cta h2 {
    margin: 0 0 8px !important;
    color: #fff !important;
    font-size: clamp(25px, 3vw, 36px) !important;
}
body.rede-commercial-universal .rede-closing-cta p {
    margin: 0 0 18px !important;
    color: rgba(255,255,255,.82) !important;
    font-size: 16px !important;
}
body.rede-commercial-universal .rede-closing-cta .rede-universal-wa {
    width: min(520px, 100%) !important;
}
body.rede-commercial-universal .rede-floating-wa {
    min-height: 58px !important;
    font-size: 17px !important;
    border-radius: 999px !important;
}
@media (max-width: 767px) {
    body.rede-commercial-universal .rede-universal-wa,
    body.rede-commercial-universal .rede-wa,
    body.rede-commercial-universal .rede-approved-cta[href*="wa.me"],
    body.rede-commercial-universal a[href*="whatsapp.com"],
    body.rede-commercial-universal a[href*="wa.me"] {
        width: calc(100% - 24px) !important;
        margin-left: 12px !important;
        margin-right: 12px !important;
        min-height: 66px !important;
        padding: 18px 16px !important;
        font-size: 18px !important;
    }
    body.rede-commercial-universal .rede-closing-cta {
        margin: 24px 12px 10px;
        padding: 24px 16px;
        border-radius: 18px;
    }
    body.rede-commercial-universal .rede-floating-wa {
        left: 12px !important;
        right: 12px !important;
        bottom: 10px !important;
        width: calc(100% - 24px) !important;
        margin: 0 !important;
        min-height: 58px !important;
    }
}
@media (prefers-reduced-motion: no-preference) {
    body.rede-commercial-universal .rede-floating-wa {
        animation: redeWaPulse 2.8s ease-in-out infinite;
    }
}
@keyframes redeWaPulse {
    0%, 100% { box-shadow: 0 12px 28px rgba(37,211,102,.30) !important; }
    50% { box-shadow: 0 14px 38px rgba(37,211,102,.52) !important; }
}
