
/* Overrides and custom css */

/* Cotizar Poliza */

.bg-color-gris {
    background: #e7e7e7;
}
.bg-color-white {
    background: #fff;
}
.bg-color-blue {
    background: #1b4177;
}
.bg-color-light-grey {
    background: #e1e1e1;
}

/* Forms */
.form-control,
.form-select {
    width: 100%;
    padding: 20px;
}
/* Tipos de Seguros */
.tiposdeseguros img {
    margin: 0 auto;
    width: 200px !important;
}
header {
    .container {
        max-width: 100%;
        margin-right: 0;
        padding-left: 2.75rem;
    }
}
.promo {
    margin-left: 0!important;
    background: transparent;
}

/* ── Navbar Dropdown Seguros ── */
.rs-dropdown-li { position: relative; }
.rs-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,57,150,0.13);
    min-width: 220px;
    z-index: 9999;
    padding: 8px 0;
    border: 1px solid rgba(0,90,200,0.08);
}
.rs-dropdown-li:hover .rs-dropdown-menu { display: block; }
.rs-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #0d1f3c !important;
    font-size: 14px;
    transition: background .15s;
    white-space: nowrap;
    text-decoration: none;
}
.rs-dropdown-menu li a:hover { background: #f0f7ff; color: #0057b8 !important; }
.rs-dropdown-menu li a i { font-size: 16px; color: #0057b8; }
.rs-dropdown-soon a { opacity: 0.55; pointer-events: none; }
.badge-soon {
    background: #e8f0fe;
    color: #0057b8;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    margin-left: auto;
}
.rs-dropdown-toggle { display: flex; align-items: center; gap: 4px; }

/* ── Page Banner Hero Gradient ── */
.rs-page-banner::before {
    background: linear-gradient(135deg, #0057b8 0%, #0d1f3c 100%) !important;
}
.rs-page-banner .title,
.rs-page-banner h1,
.rs-page-banner h2 {
    color: #fff !important;
}
.rs-page-banner p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ── Keep Cotizar Online button visible until hamburger appears ── */
@media only screen and (min-width: 992px) {
    .rs-header__main .rs-header-rightside .rs-header-btn {
        display: block !important;
    }
}

/* ── Fix navbar wrapping at tight resolutions (992px-1175px) ── */
@media only screen and (min-width: 992px) and (max-width: 1200px) {
    .rs-header__main .rs-header-rightside .main-menu ul.nav-menu > li {
        margin: 0 0 0 2px !important;
    }
    .rs-header__main .rs-header-rightside .main-menu ul.nav-menu > li > a {
        font-size: 12px !important;
    }
    .rs-header-btn {
        margin-left: 4px !important;
    }
    .rs-header-btn .main-btn {
        padding: 8px 8px !important;
        font-size: 12px !important;
    }
}

/* ── Fix navbar wrapping at medium resolutions (1175px-1300px) ── */
@media only screen and (min-width: 1200px) and (max-width: 1300px) {
    .rs-header__main .rs-header-rightside .main-menu ul.nav-menu > li {
        margin: 0 0 0 14px !important;
    }
    .rs-header__main .rs-header-rightside .main-menu ul.nav-menu > li > a {
        font-size: 14px !important;
    }
    .rs-header-btn {
        margin-left: 10px !important;
    }
    .rs-header-btn .main-btn {
        padding: 9px 18px !important;
        font-size: 13px !important;
    }
}

/* ══════════════════════════════════════════════════════════
   HAMBURGER BUTTON (visible only at ≤991px)
══════════════════════════════════════════════════════════ */
.rs-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: 12px;
    z-index: 1001;
    flex-shrink: 0;
}
.rs-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #0d1f3c;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.rs-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rs-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.rs-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media only screen and (max-width: 991px) {
    .rs-hamburger { display: flex; }
}

/* ══════════════════════════════════════════════════════════
   MOBILE NAV DRAWER
══════════════════════════════════════════════════════════ */
.rs-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    backdrop-filter: blur(2px);
}
.rs-mobile-overlay.active { display: block; }

.rs-mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 88vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -6px 0 32px rgba(0, 29, 80, 0.18);
}
.rs-mobile-nav.open { right: 0; }

.rs-mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eef2f8;
    flex-shrink: 0;
}
.rs-mobile-close {
    background: none;
    border: 1px solid #eef2f8;
    border-radius: 8px;
    font-size: 22px;
    color: #0d1f3c;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: background 0.15s;
}
.rs-mobile-close:hover { background: #f0f7ff; }

.rs-mobile-nav__list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    flex: 1;
}
.rs-mobile-nav__list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 22px;
    color: #0d1f3c;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #f0f4fa;
    transition: background 0.15s, color 0.15s;
    gap: 8px;
}
.rs-mobile-nav__list > li > a:hover,
.rs-mobile-nav__list > li > a.active {
    background: #f0f7ff;
    color: #0057b8;
}
.rs-mobile-nav__list > li > a.active { font-weight: 700; }

/* Mobile accordion for Seguros */
.rs-mobile-has-dropdown > a .ri-arrow-down-s-line {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.rs-mobile-has-dropdown > a.expanded .ri-arrow-down-s-line {
    transform: rotate(180deg);
}
.rs-mobile-submenu {
    display: none;
    list-style: none;
    padding: 4px 0;
    margin: 0;
    background: #f8faff;
    border-bottom: 1px solid #f0f4fa;
}
.rs-mobile-submenu.open { display: block; }
.rs-mobile-submenu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px 10px 36px;
    color: #5a6a85;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    border: none;
}
.rs-mobile-submenu li a:hover { color: #0057b8; background: #eef5ff; }
.rs-mobile-submenu li a i { color: #0057b8; font-size: 15px; flex-shrink: 0; }
.rs-mobile-submenu li.rs-dropdown-soon a { opacity: 0.5; pointer-events: none; }

/* Mobile CTA */
.rs-mobile-nav__cta {
    padding: 18px 20px;
    border-top: 1px solid #eef2f8;
    flex-shrink: 0;
}
.rs-mobile-nav__cta .main-btn {
    display: block !important;
    text-align: center;
    color: #fff !important;
    width: 100%;
}

/* ══════════════════════════════════════════════════════════
   MOBILE BANNER MODIFICATIONS
══════════════════════════════════════════════════════════ */
/* Hide mobile images by default */
.rs-banner-mobile-image {
    display: none !important;
    max-width: 100%;
    max-height: 300px;
}

@media only screen and (max-width: 767px) {
    /* Remove background image on mobile */
    .rs-banner-3 {
        background-image: none !important;
        background: #f8faff;
        padding: 0px 0px 0px 0px !important;
        margin-top: 0px !important;
    }
    
    /* Center content and make it full width */
    .rs-banner-3 .col-lg-7 {
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .rs-banner-3 .rs-banner__content {
        text-align: center;
        padding: 0 15px;
    }
    
    .rs-banner-3 .hero-cta-group {
        justify-content: center !important;
    }
    
    /* Show banner image at bottom on mobile only */
    .rs-banner-mobile-image {
        display: block !important;
        margin: 30px auto 0;
        max-width: 100%;
        height: auto;
        border-radius: 12px;
    }
}

/* Explicitly hide on larger screens (redundant but ensures it works) */
@media only screen and (min-width: 768px) {
    .rs-banner-mobile-image {
        display: none !important;
    }
}