﻿/* =============================================
   SX-RAINBOW — Banner "imagen + texto"
   Full-bleed image, left-side text overlay.
   Depends on theme.css variables.
   ============================================= */

/* --------------------------------------------------
   OVERRIDE iPOS GRID — force full width
   Target every platform class that could add
   padding, max-width, or constrain the layout.
-------------------------------------------------- */
.sx-rainbow-container,
.sx-rainbow-container.container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.sx-rainbow-row,
.sx-rainbow-row.container_row {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sx-rainbow-hide,
.sx-rainbow-hide.container_first_cell,
.sx-rainbow-hide.container_last_cell {
    display: none !important;
}

.sx-rainbow-wrap,
.sx-rainbow-wrap.container_cell,
.sx-rainbow-wrap.container_cell_col8,
.sx-rainbow-wrap.index_texto {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* --------------------------------------------------
   BANNER — positioning context
-------------------------------------------------- */
.sx-rainbow-banner {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
    font-family: var(--font-body, 'Raleway', sans-serif);
    display: block;
}

/* --------------------------------------------------
   IMAGE — full bleed
-------------------------------------------------- */
.sx-rainbow-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* --------------------------------------------------
   GRADIENT OVERLAY — dark left → transparent right
-------------------------------------------------- */
.sx-rainbow-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.50) 38%, rgba(0, 0, 0, 0.10) 65%, rgba(0, 0, 0, 0.00) 100% );
}

/* --------------------------------------------------
   CONTENT — left column, over the overlay
-------------------------------------------------- */
.sx-rainbow-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 52px;
    max-width: 540px;
}

/* Small uppercase label */
.sx-rainbow-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted, #A1A1AA);
    margin: 0 0 12px 0;
    line-height: 1;
}

/* Main title */
.sx-rainbow-title {
    display: block;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-white, #fff);
    margin: 0 0 28px 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.40);
}

/* --------------------------------------------------
   BUTTON
   The <a> tag carries inline style="XXIndex.ColorTextoXX"
   which we cannot remove (platform-injected).
   The text is isolated in a child <span> so we can
   force white independently of the parent color.
-------------------------------------------------- */
.sx-rainbow-btn {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 12px 24px;
    background: var(--color-primary, #22C55E);
    font-family: var(--font-body, 'Raleway', sans-serif);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: 0 5px 0px rgba(0, 0, 0, 0.35);
}

    .sx-rainbow-btn:hover {
        background: var(--color-primary-dark, #16A34A);
    }

/* Text span — white regardless of parent inline color */
.sx-rainbow-btn__text {
    color: #ffffff !important;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    line-height: 1;
}

/* --------------------------------------------------
   MOBILE
-------------------------------------------------- */
@media (max-width: 600px) {
    .sx-rainbow-banner {
        height: 380px;
    }

    .sx-rainbow-content {
        padding: 28px 24px;
        max-width: 100%;
    }

    .sx-rainbow-title {
        font-size: 22px;
    }

    .sx-rainbow-overlay {
        background: linear-gradient( to right, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.15) 100% );
    }
}
