:root {
    --light1: #FFFFFF;
    --light2: #FAFAFA;
    --dark1: #393939;
    --danger-bqb: #dc3545;
    --success-bqb: #28a745;
    /* Visibilidad + profundidad (frontend-design) */
    --bqb-text-on-dark: rgba(255, 255, 255, 0.96);
    --bqb-scrim-strong: linear-gradient(
        105deg,
        rgba(8, 42, 62, 0.72) 0%,
        rgba(8, 42, 62, 0.38) 42%,
        rgba(8, 42, 62, 0.08) 68%,
        transparent 100%
    );
    --bqb-glass-bg: rgba(255, 255, 255, 0.12);
    --bqb-glass-border: rgba(255, 255, 255, 0.28);
    --bqb-glass-blur: blur(12px);
    --bqb-shadow-float: 0 -4px 24px rgba(15, 45, 68, 0.22);
    --bqb-shadow-cta: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* ============================================= */
/* GLOBAL                                        */
/* ============================================= */
.bqb-landing-main,
.bqb-producer-landing,
.bqb-producer-claims,
.bqb-claims-page {
    font-family: 'Montserrat', sans-serif !important;
    word-wrap: break-word;
    overflow-x: hidden;
}

@media (max-width: 1199px) {
    .bqb-landing-main,
    .bqb-producer-landing {
        padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
    }
}

.bqb-landing-main h1,
.bqb-landing-main h2,
.bqb-landing-main h3,
.bqb-landing-main h4,
.bqb-landing-main h5,
.bqb-landing-main h6,
.bqb-producer-landing h1,
.bqb-producer-landing h2,
.bqb-producer-landing h3,
.bqb-producer-landing h4,
.bqb-producer-landing h5,
.bqb-producer-landing h6 {
    color: var(--primary-bqb);
    font-weight: 600;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

.bqb-header-logo {
    height: 40px;
    max-height: 40px;
}

/* ============================================= */
/* CAROUSEL                                      */
/* ============================================= */
.bqb-landing-main .bqb-snippet-carousel .carousel,
.bqb-landing-main .bqb-snippet-carousel .carousel-inner {
    overflow: hidden;
    background: var(--primary-bqb-dark, #1573a5);
}

.bqb-landing-main .bqb-snippet-carousel .carousel-item {
    width: 100%;
}

.bqb-landing-main .bqb-snippet-carousel .carousel-item > div {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 220px;
    max-height: 480px;
    overflow: hidden;
    background: var(--primary-bqb-dark, #1573a5);
}

.bqb-landing-main .bqb-snippet-carousel .carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0 !important;
    transform: none !important;
}

.bqb-landing-main #banner4 .carousel-img {
    object-position: 60% center;
    transform: none !important;
}

.carousel-img {
    width: 100%;
}

.slider-info-div {
    position: absolute;
    right: 15%;
    bottom: 20px;
    left: 55%;
    z-index: 10;
    padding-top: 20px;
    padding-bottom: 20px;
    color: var(--light1);
    text-align: left;
}

.bqb-landing-main .bqb-snippet-carousel .carousel-item > div::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: var(--bqb-scrim-strong);
}

.bqb-landing-main .bqb-snippet-carousel .carousel-indicators {
    z-index: 3;
    margin-bottom: 0.65rem;
}

.bqb-landing-main .bqb-snippet-carousel .carousel-indicators li {
    width: 28px;
    height: 4px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.45);
    border: none;
    transition: background-color 200ms ease, transform 200ms ease;
}

.bqb-landing-main .bqb-snippet-carousel .carousel-indicators li.active {
    background-color: #fff;
    transform: scaleX(1.08);
}

.bqb-landing-main .slider-info-div {
    display: block !important;
    left: auto;
    right: 6%;
    bottom: 20px;
    max-width: min(52%, 320px);
    z-index: 2;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--bqb-glass-bg);
    border: 1px solid var(--bqb-glass-border);
    backdrop-filter: var(--bqb-glass-blur);
    -webkit-backdrop-filter: var(--bqb-glass-blur);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-shadow: none;
}

.bqb-landing-main .slider-info-div h5 {
    color: var(--bqb-text-on-dark) !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.bqb-landing-main .slider-info-div p {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

.bqb-landing-main .slider-info-div img {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
    margin-bottom: 0.35rem;
}

.carousel-item h5 {
    color: var(--light1) !important;
}

/* ============================================= */
/* COMPANIES LOGOS                                */
/* ============================================= */
#companies-logos {
    border: 0;
    background: linear-gradient(to bottom, var(--light1) 5%, var(--primary-bqb-subtle) 100%);
    height: auto;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 11)); }
}

.slider_companies {
    animation: scroll 11s linear infinite;
    display: flex;
    width: calc(250px * 22);
    height: 100%;
}

.image_companies {
    width: 150px;
    height: 150px;
}

.color_image_companies {
    filter: invert(50%);
}

/* ============================================= */
/* CHOOSE US                                     */
/* ============================================= */
#choose-us {
    background-color: var(--primary-bqb);
    color: var(--light1);
}

#choose-us h1 {
    color: var(--light1) !important;
}

.bg-bqb1 {
    background-color: var(--primary-bqb);
}

.shadow-text {
    text-shadow: .5rem .5rem 1rem rgba(0, 0, 0, .45) !important;
}

.choose-us-logo {
    height: 45px;
    width: 45px;
    margin-bottom: 1.5rem;
}

.choose-us-title {
    font-weight: 700;
    font-size: 1.2rem;
}

.choose-us-div {
    max-width: 220px;
    margin: 0 2rem;
    border-radius: 0 0 50% 50% / 45px;
}

/* ============================================= */
/* TESTIMONIALS                                  */
/* ============================================= */
.star {
    height: 20px;
    width: 20px;
}

.opinion {
    border-radius: 15px;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.1);
    margin: 0 2rem;
    max-width: 360px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#clients {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    border-radius: 50% 50% 0 0 / 45px;
}

.div-rounded-top {
    border-radius: 50% 50% 0 0 / 45px;
}

.scrollable-div {
    flex-wrap: wrap;
}

.text-bqb-dark {
    color: var(--dark1);
}

/* ============================================= */
/* ABOUT US                                      */
/* ============================================= */
#us {
    background-image: url(/seguro/static/src/img/fondo_circulo1.svg), url(/seguro/static/src/img/fondo_circulo2.svg);
    background-position: 10% top, 140% center;
    background-repeat: no-repeat;
    background-size: 50%, 60%;
    background-color: var(--light2);
}

.us-img {
    border-radius: 15px;
}

.img-full-width {
    width: 100%;
}

/* ============================================= */
/* JOIN US                                       */
/* ============================================= */
#join-us {
    border-radius: 50% 50% 0 0 / 45px;
}

.bg-bqb-light2 {
    background-color: var(--light2);
}

.join-us-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
}

.btn-bqb {
    width: 224px;
    height: 58px;
    background: var(--secondary-bqb);
    border-radius: 10px;
    border: none;
    color: var(--light1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(27, 136, 194, 0.35);
    transition:
        background 220ms cubic-bezier(0.05, 0.7, 0.1, 1),
        transform 180ms cubic-bezier(0.05, 0.7, 0.1, 1),
        box-shadow 220ms ease;
}

.btn-bqb:hover {
    text-decoration: none;
    background: var(--primary-bqb);
    color: var(--light1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 136, 194, 0.4);
}

.btn-bqb:active {
    transform: scale(0.97);
}

/* ============================================= */
/* FLOATING BUTTONS                              */
/* ============================================= */
.bqb-floating-buttons.buttons-div,
.bqb-floating-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    border: 0;
    box-shadow: var(--bqb-shadow-float);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bqb-floating-buttons .main-button {
    min-height: 52px;
    padding: 0.5rem 0.65rem;
    color: var(--light1) !important;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: clamp(0.72rem, 2.6vw, 0.9375rem);
    line-height: 1.2;
    letter-spacing: 0.02em;
    border: 0;
    border-radius: 0;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    cursor: pointer;
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.18);
    transition:
        filter 180ms cubic-bezier(0.05, 0.7, 0.1, 1),
        transform 120ms cubic-bezier(0.05, 0.7, 0.1, 1),
        box-shadow 180ms ease;
}

.bqb-floating-buttons .main-button:first-child {
    box-shadow: none;
}

.bqb-floating-buttons .main-button:hover {
    text-decoration: none;
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: var(--bqb-shadow-cta);
}

.bqb-floating-buttons .main-button:active {
    transform: scale(0.97);
    filter: brightness(0.95);
}

.bqb-floating-buttons .btn-danger {
    background-color: var(--danger-bqb) !important;
}

.bqb-floating-buttons .btn-primary {
    background-color: var(--primary-bqb) !important;
}

.bqb-floating-buttons .btn-success {
    background-color: var(--success-bqb) !important;
}

.bqb-floating-buttons .main-button img,
.bqb-floating-buttons .logo-whastapp-size,
.bqb-floating-buttons .bqb-floating-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ============================================= */
/* FOOTER BQB (dentro de website.layout nativo)  */
/* ============================================= */
footer#bottom {
    background-color: transparent !important;
}

/* BQB FOOTER (unificado — website.layout) */

.bqb-footer-main {
    background-color: var(--primary-bqb, #1B88C2);
    padding: 3rem 0 0;
    color: #fff;
}

.bqb-footer-logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.bqb-footer-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 280px;
}

.bqb-footer-heading {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.bqb-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.bqb-footer-contact-item img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.bqb-footer-contact-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.875rem;
}

.bqb-footer-contact-item a:hover {
    color: #fff;
    text-decoration: none;
}

.bqb-footer-social {
    display: flex;
    gap: 1rem;
}

.bqb-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.2s;
}

.bqb-footer-social a:hover {
    background: rgba(255, 255, 255, 0.25);
}

.bqb-footer-social a img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.bqb-footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 2rem;
    padding: 1rem 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.bqb-footer-legal {
    background: #f8f9fa;
    padding: 0.6rem 0;
}

.bqb-footer-legal-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem 0.5rem;
    font-size: 0.72rem;
    color: #555;
}

.bqb-footer-legal-inner a {
    color: #333;
    text-decoration: underline;
}

.bqb-footer-legal-sep {
    color: #ccc;
}

.bqb-footer-ssn-logo {
    height: 28px;
    width: auto;
}

/* ============================================= */
/* HERO + PAGE HEADER (alineado a portal clinicas) */
/* ============================================= */
.bqb-producer-hero,
.bqb-claims-hero {
    width: 100%;
}

.bqb-hero-banner {
    width: 100%;
    aspect-ratio: 16 / 4.5;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.bqb-hero-banner--default-claims {
    background-image: url(/seguro/static/src/img/Denuncia.jpg);
    background-position: center 60%;
}

.bqb-page-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(27, 136, 194, 0.1);
    border-bottom: 3px solid var(--primary-bqb, #1b88c2);
    width: 100%;
}

.bqb-page-header--sticky {
    position: sticky;
    top: var(--bqb-site-nav-h, var(--bqb-nav-h, 66px));
    z-index: 50;
}

.bqb-page-header-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.bqb-page-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.bqb-page-header-logo {
    height: 50px;
    width: auto;
    flex-shrink: 0;
}

.bqb-page-header-divider {
    border-left: 2px solid #e0e0e0;
    height: 45px;
    flex-shrink: 0;
}

.bqb-page-header-title {
    min-width: 0;
}

.bqb-page-header-title-main {
    color: #2c3e50 !important;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.bqb-page-header-title-sub {
    color: var(--primary-bqb-dark, #1573a5) !important;
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

/* CTAs: pills compartidos (reclamos + landing PAS) */
.bqb-page-header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.bqb-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    min-height: 52px;
    border-radius: 12px;
    border: 2px solid transparent;
    text-decoration: none !important;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.bqb-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bqb-cta-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.2;
}

.bqb-cta-title {
    font-size: 0.9rem;
    font-weight: 700;
}

.bqb-cta-sub {
    font-size: 0.72rem;
    font-weight: 500;
    color: #5a6c7d;
}

.bqb-cta--wa {
    background: #e8faf0;
    border-color: #25D366;
    color: #1a7a4a;
}

.bqb-cta--wa .bqb-cta-icon {
    color: #25D366;
}

.bqb-cta--wa:hover {
    background: #dcf5e6;
    border-color: #1da851;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    transform: translateY(-1px);
}

.bqb-cta--phone {
    background: var(--primary-bqb-subtle, #e8f4fc);
    border-color: var(--primary-bqb, #1b88c2);
    color: var(--primary-bqb-dark, #1573a5);
}

.bqb-cta--phone .bqb-cta-icon {
    color: var(--primary-bqb, #1b88c2);
}

.bqb-cta--phone:hover {
    background: #d2eaf5;
    border-color: var(--primary-bqb-dark, #1573a5);
    box-shadow: 0 4px 12px rgba(27, 136, 194, 0.2);
    transform: translateY(-1px);
}

.bqb-page-header-help {
    margin: 0;
    padding: 10px 16px 12px;
    text-align: center;
    background: linear-gradient(180deg, #f4fafd 0%, var(--primary-bqb-subtle, #e8f4fc) 100%);
    border-top: 1px solid rgba(27, 136, 194, 0.08);
}

.bqb-page-header-help-text {
    font-size: 0.85rem;
    color: var(--primary-bqb-dark, #1573a5);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.bqb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.bqb-btn-primary {
    background: var(--primary-bqb);
    color: #fff;
}

.bqb-btn-primary:hover {
    background: var(--primary-bqb-hover, var(--primary-bqb));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.bqb-btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.bqb-btn-icon-img {
    height: 18px;
    width: auto;
}

/* Tablet: hero más bajo, header en fila cuando hay espacio */
@media (min-width: 576px) {
    .bqb-page-header-content {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 14px 16px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .bqb-page-header-left {
        flex: 1 1 220px;
    }

    .bqb-page-header-actions {
        flex: 1 1 280px;
        max-width: 340px;
        margin-left: auto;
    }

    .bqb-cta {
        min-height: 48px;
        padding: 8px 14px;
    }
}

@media (min-width: 768px) {
    .bqb-page-header-content {
        flex-wrap: nowrap;
    }

    .bqb-page-header-actions {
        flex: 0 0 auto;
        width: auto;
        min-width: 300px;
        max-width: 360px;
    }
}

@media (min-width: 992px) {
    .bqb-page-header-title-main {
        font-size: 20px;
    }

    .bqb-page-header-title-sub {
        font-size: 14px;
    }

    .bqb-page-header-actions {
        gap: 12px;
        min-width: 320px;
    }

    .bqb-cta-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 991px) {
    .bqb-hero-banner {
        aspect-ratio: 768 / 320;
    }
}

@media (max-width: 575px) {
    .bqb-hero-banner {
        aspect-ratio: 375 / 250;
    }

    .bqb-page-header-logo {
        height: 40px;
    }

    .bqb-page-header-divider {
        height: 38px;
    }

    .bqb-page-header-title-main {
        font-size: 16px;
    }

    .bqb-page-header-title-sub {
        font-size: 12px;
    }

    .bqb-page-header-actions {
        gap: 8px;
    }

    .bqb-cta {
        min-height: 50px;
        padding: 8px 10px;
        gap: 8px;
    }

    .bqb-cta-title {
        font-size: 0.82rem;
    }

    .bqb-cta-sub {
        font-size: 0.68rem;
    }

    .bqb-page-header-help {
        padding: 8px 12px 10px;
    }

    .bqb-page-header-help-text {
        font-size: 0.78rem;
    }
}

/* ============================================= */
/* CLAIMS                                        */
/* ============================================= */
.bqb-claims-banner {
    margin-bottom: 2rem;
}

.bqb-claims-banner-inner {
    background-image: url(/seguro/static/src/img/Denuncia.jpg);
    height: 250px;
    background-size: cover;
    background-position: center 60%;
    display: flex;
    align-items: flex-end;
}

.banner {
    background-image: url(/seguro/static/src/img/Denuncia.jpg);
    height: 400px;
    background-size: cover;
    background-position: center 60%;
    margin: 0 0 3rem 0;
}

/* ============================================= */
/* RESPONSIVE                                    */
/* ============================================= */
@media only screen and (min-width: 1200px) {
    .bqb-floating-buttons.buttons-div,
    .bqb-floating-buttons {
        position: absolute;
        left: 75%;
        top: 15%;
        width: 20%;
        bottom: auto;
        right: auto;
        flex-direction: column;
    }

    .bqb-floating-buttons .main-button {
        margin-bottom: 0.5rem;
        border-radius: 1rem;
        flex: none;
        width: 100%;
    }
}

@media (max-width: 991px) {
    .bqb-landing-main .bqb-snippet-carousel .carousel-item > div {
        aspect-ratio: 768 / 320;
        min-height: 200px;
        max-height: none;
    }

    .bqb-landing-main .slider-info-div {
        right: 4%;
        left: 4%;
        max-width: none;
        bottom: 16px;
        padding: 12px 14px;
    }

    .bqb-floating-buttons .mobile-hide {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .bqb-landing-main .bqb-snippet-carousel .carousel-item > div {
        aspect-ratio: 375 / 250;
        min-height: 180px;
    }

    .slider-info-div {
        left: 15%;
    }

    .scrollable-div {
        overflow-x: scroll;
        flex-wrap: nowrap;
    }

    .choose-us-div {
        max-width: 85%;
    }

    .choose-us-logo {
        margin: 0 1rem;
    }

    #companies-logos {
        padding-bottom: 2rem;
    }

    #join-us {
        border-radius: 50% 50% 0 0 / 45px;
        margin-top: 0;
    }
}

@media (max-width: 450px) {
    .bqb-landing-main .slider-info-div {
        bottom: 10px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .bqb-landing-main .slider-info-div h5 {
        font-size: 1rem;
    }
}

@media (min-width: 767px) {
    #banner4 .slider-info-div {
        left: 62% !important;
    }
}
