.sb-section {
    background-color: #fff;
    margin-top: 10rem;
    margin-bottom: 10rem;
}

.sb-inner {
    width: 85%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* ── Columna izquierda ── */
.sb-left {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sb-titulo {
    font-family: "Lexend Deca";
    font-size: 32px;
    font-style: normal;
    font-weight: 800;
    line-height: 43px;
    color: var(--color3);
}

.sb-titulo .sb-marca {
    color: var(--color1);
}

.sb-desc {
    color: var(--neutro2);
    font-family: "Lexend Deca";
    font-size: 22px;
    font-style: normal;
    font-weight: 300;
    line-height: 39px;
}

.sb-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Lexend Deca", sans-serif;
    font-size: 22px;
    font-weight: 300;
    line-height: 39px;
    color: var(--neutro2);
    margin: 0;
    border: 1px solid var(--color1);
    border-radius: 15px;
    width: fit-content;
    padding: 2px 15px;
}

.sb-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
}

.sb-brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px 24px;
    align-items: center;
    margin-top: 32px;
    margin-bottom: 32px;
    width: 100%;
}

.sb-brand-logo {
    display: block;
    width: 100%;
    height: 36px;
    background-color: var(--color3);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transform: scale(1);
    will-change: transform;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.sb-brand-logo:hover {
    transform: scale(1.08);
}

.sb-btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background-color: var(--color1);
    color: #fff;
    font-family: "Lexend Deca", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
    line-height: 24px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
    width: 100%;
}

.sb-btn:hover {
    background-color: var(--color2);
    color: var(--color1);
    text-decoration: none;
}

/* Botón móvil oculto en desktop */
.sb-btn--mobile { display: none; }

/* ── Columna derecha ── */
.sb-right {
    flex: 1 1 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.sb-foto {
    width: auto;
    height: auto;
    border-radius: 16px;
    display: block;
    object-fit: cover;
    max-height: 320px;
}

/* Tarjetas flotantes sobre la foto */
.sb-cards {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 60%;
    gap: 5px;
}

.sb-card {
    background: #fff;
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    gap: 0.5rem;
    width: 90%;
}

.sb-card:nth-child(1) {
    margin-left: 0;
    margin-bottom: -10px;
    z-index: 1;
}

.sb-card-unit{
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 44px;
}

.sb-card:nth-child(2) {
    margin-left: 20px;
    margin-bottom: -10px;
    z-index: 2;
}

.sb-card:nth-child(3) {
    margin-left: 40px;
    z-index: 1;
}

.sb-card--highlight {
    box-shadow: 0 4px 20px rgba(0,0,0,0.16);
    transform: scale(1.04);
}

.sb-card:nth-child(2),
.sb-card:nth-child(3) {
    opacity: 1;
    background: rgba(255,255,255,0.65);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.sb-card:nth-child(2) .sb-card-left,
.sb-card:nth-child(3) .sb-card-left {
    opacity: 0.6;
}

.sb-card-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sb-card-left img {
    height: 34px;
    width: 130px;
    object-fit: contain;
}

.sb-card-file {
    color: var(--color3);
    font-family: "Lexend Deca";
    font-size: 14px;
    font-style: normal;
    font-weight: 250;
    line-height: 20px;
}

.sb-card-price {
    color: var(--color3);
    font-family: "Lexend Deca";
    font-size: 25px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
    .sb-inner {
        flex-direction: column;
    }
    .sb-cards {
        position: absolute;
        left: -90px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: fit-content;
        gap: 5px;
    }
}
@media (max-width: 768px) {
    .sb-inner {
        flex-direction: column;
        width: 90%;
    }

    .sb-right {
        width: 100%;
        position: relative;
        min-height: 300px;
        justify-content: flex-start;
    }

    .sb-foto {
        position: absolute;
        right: 0;
        top: 0;
        width: 55%;
        height: 100%;
        object-fit: cover;
        border-radius: 16px;
        margin-left: 0;
        max-height: none;
    }

    .sb-cards {
        position: absolute;
        left: -20px;
        top: 50%;
        transform: translateY(-50%);
        width: 85%;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-top: 0;
        z-index: 2;
    }

    .sb-card {
        width: fit-content;
        margin-left: 0 !important;
        margin-bottom: -12px !important;
        transform: none !important;
    }

    .sb-card:nth-child(2) {
        margin-left: 10px !important;
        z-index: 3;
    }

    .sb-card:nth-child(3) {
        margin-left: 20px !important;
        margin-bottom: 0 !important;
        z-index: 2;
    }

    .sb-card--highlight {
        transform: scale(1.03) !important;
        z-index: 4 !important;
    }

    .sb-card:nth-child(2),
    .sb-card:nth-child(3) {
        background: rgba(255,255,255,0.92);
        box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    }

    .sb-card:nth-child(2) .sb-card-left,
    .sb-card:nth-child(3) .sb-card-left {
        opacity: 0.7;
    }

    .sb-btn--desktop { display: none; }
    .sb-brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 20px;
    }
    .sb-brand-logo {
        height: 30px;
    }

    .sb-btn--mobile {
        display: block;
        width: 100%;
        max-width: 100%;
        order: 3;
    }

    .sb-left {
        width: 100%;
        order: 1;
    }

    .sb-right {
        order: 2;
    }

    .sb-titulo {
        font-size: 30px;
        line-height: 30px;
        margin-bottom: 10px;
    }

    .sb-desc {
        font-size: 20px;
        line-height: 24px;
    }

    .sb-badge {
        font-size: 15px;
        line-height: 24px;
    }

    .sb-btn {
        font-size: 20px;
        font-weight: 600;
    }

    .sb-card-price {
        font-size: 20px;
        line-height: 28px;
    }

    .sb-card-unit {
        font-size: 16px;
        line-height: 28px;
    }

    .sb-card-file {
        font-size: 11px;
        line-height: 18px;
    }
}

@media (max-width: 680px) {
    .sb-inner {
        width: 100%;
    }
}
