﻿

#cintillo-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--info-10);
    z-index: 1030;
}


#cintillo-pago .cintillo {
    width: 100%;
    background: var(--info-10);
    color: #fff;
    padding: 1rem;
    text-align: center;
}



.content-header {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto; 
}


.breadcrumb-item + .breadcrumb-item::before {
    content: "";
    padding: 0 !important;
}

body.layout-footer-fixed {
    padding-right: 0 !important;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh !important;
}

/* Layout container for ASP.NET WebForms root */
form#aspnetForm, form#form1 {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    flex: 1;
    box-sizing: border-box;
    padding: 0 16px 0  !important;
}

/* Tablet: 576px */
@media (min-width: 576px) {
    form#aspnetForm, form#form1 {
        padding: 0 32px 16px 32px;
    }
}

/* Small desktop: 	792px and <1440px */
@media (min-width: 992px) and (max-width: 1439.98px) {
    form#aspnetForm, form#form1 {
        padding: 0 64px 16px 64px;
    }
}

/* Tablet ranges for portada images */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Familia */
    #ins-insurance .container-ins-img { width: 320px; height: 320px; }
    #ins-insurance .container-ins-img img.img-portada-section { width: 320px; height: 320px; object-fit: contain; }

    /* Doctora */
    #know-soa .container-ins-img { width: 420px; height: 420px; }
    #know-soa .container-ins-img img.img-portada-section { width: 420px; height: 420px; object-fit: contain; }
}

@media (min-width: 1200px) and (max-width: 1439.98px) {
    /* Banner */
    #search-ins-section .img-content { width: 760px; max-width: 760px; }
    #search-ins-section .img-content img.img-portada-section { width: 760px; height: auto; max-height: 440px; object-fit: cover; }

    /* Familia */
    #ins-insurance .container-ins-img { width: 340px; height: 340px; }
    #ins-insurance .container-ins-img img.img-portada-section { width: 340px; height: 340px; object-fit: contain; }

    /* Doctora */
    #know-soa .container-ins-img { width: 440px; height: 440px; }
    #know-soa .container-ins-img img.img-portada-section { width: 440px; height: 440px; object-fit: contain; }
}

/* Large desktop: 	1440px (Figma spec) */
@media (min-width: 1440px) {
    form#aspnetForm, form#form1 {
        padding: 0 128px 16px 128px;
    }

    /* Figma sizes at ≥1440px for portada images */
    /* Banner in search section */
    #search-ins-section .img-content {
        max-width: 820px;
        max-height: 440px;
    }
    #search-ins-section .img-content img.img-portada-section {
        width: 820px;
        height: 440px;
        max-width: 820px;
        max-height: 440px;
        object-fit: cover;
        border-radius: 16px;
    }

    /* Familia (Seguros del INS) */
    #ins-insurance .container-ins-img {
        width: 360px;
        height: 360px;
    }
    #ins-insurance .container-ins-img img.img-portada-section {
        width: 360px;
        height: 360px;
        object-fit: contain;
    }

    /* Doctora (Conozca SOA) */
    #know-soa .container-ins-img {
        width: 480px;
        height: 480px;
    }
    #know-soa .container-ins-img img.img-portada-section {
        width: 480px;
        height: 480px;
        object-fit: contain;
    }
}


.header-ins {
    min-height: 78px !important;
    height: auto !important;
    background: var(--gray-00);
}

nav.navbar.navbar-expand-lg {
    min-height: 78px;
    height: auto;
    max-width: 80%;
    margin: 0 auto;
    padding: 0;
}




.navbar {
    max-height: 78px;
}

    .navbar img {
        margin: 0 0 0 5%;
    }

#navMenuMarchamo {
    justify-content: end;
    align-items: center;
    font-size: 14px;
}

    #navMenuMarchamo a {
        min-width: fit-content;
    }


.collapse:not(.show) {
    display: none;
}

#step-3 {
    display:block;
}

#step-2{
    display:block;
}


button.navbar-toggler {
    border-radius: 999px !important;
    width: 44px !important;
    height: 44px !important;
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    margin-right: 30px !important;
}

.navbar-nav {
    text-align: center;
    gap: 3px;
    position: relative;
    z-index: 1;
    background: var(--gray-00);
    margin-top: 6px !important;
}

button:focus:not(:focus-visible) {
    box-shadow: unset !important;
}


#delimeter {
    width: 100%;
    display: flex;
    height: 2px;
    flex-direction: row;
}

span.ins-color-delimeter {
    height: 2px;
    width: 25%;
    display: block;
    transition: all 0.3s ease;
}

footer.main-footer {
    position: relative !important;
    margin: 0px 0px 0px 0px !important;
    min-height: 175px;
    background-color: var(--primary-dim) !important;
}

section#copyright .btn-link-ins {
    margin: 0;
    width: 160px !important;
    height: 31px !important;
}

section#copyright {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 5px;
}

section#menu-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    width: 95%;
    margin: 25px auto 15px auto;
}

#menu-footer a.ins-social-links {
    text-decoration: none;
    width: 32px;
    height: 32px;
    display: flex;
    background-color: var(--gray-25-trans);
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--gray-25-trans);
}

.social-media {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

p {
    margin: 3px !important;
    padding: 0;
}

.ins-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ins-section{
    border-top: 1px solid var(--gray-35);
    margin-top: 64px;
    padding-top: 64px;
}


.icon-content {
    border-radius: 50%;
    padding: 10px;
    background-color: var(--jade-50);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-icon-content {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
}

.img-content {
    width: 100%;
    max-width: 820px;
    max-height: 440px !important;
    border-radius: 16px;
}


.img-content img {
    height: auto;
    max-height: 440px !important;
    border-radius: 16px;
}

.search-ins-container {
    min-height: 526px;
    position: relative;
}

.search-ins-content {
    background: var(--primary-50-liquid);
    padding: 18px;
    border-radius: 8px;
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    min-height: 158px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: max-content;
}

.control-search-ins {
    display: flex;
    gap: 20px;
    width: 100%;
    padding: 10px;
    flex-wrap: wrap;
}  

.control-search-ins select,
.control-search-ins input {
    width: 375px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid;
}

.direct-access-ins-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.btn-link-ins {
    text-decoration: none;
    width: 191px !important;
    height: 44px;
    display: flex;
    padding: 2px;
    align-items: center;
    border-radius: 999px;
    justify-content: center;
    margin: 0 auto;
}

.inline-flex {
    display: inline-flex !important;
}

button#btnConsutaMarchamo {
    width: 135px;
    border: 2px solid;
    height: 44px;
    padding: 0;
}


#faq .card-ins {
    min-height: 404px !important;
}

/*Seguros*/

.card-ins {
    max-width: 272px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    min-height: 600px;
    justify-content: flex-start;
    text-align: center;
    position: relative;
}


    .card-ins .btn-link-ins {
        width: 272px !important;
    }


.card-ins-footer {
    position: absolute;
    bottom: 10px;
}

.card-ins-footer a {
    cursor: pointer;
}

#card-insurances {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 card per fila */
    gap: 16px; /* Espacio entre cartas en móvil */
    justify-content: center;
    justify-items: center;
    align-items: start;
}

/* Tablet: 2 columnas */
@media (min-width: 576px) {
    #card-insurances {
        grid-template-columns: repeat(2, 272px);
        column-gap: 24px;
        row-gap: 24px;
    }
}

/* Escritorio pequeño: 3 columnas */
@media (min-width: 992px) and (max-width: 1359.98px) {
    #card-insurances {
        grid-template-columns: repeat(3, 272px);
        column-gap: 32px;
        row-gap: 32px;
    }
}

/* iPad/tablet grande landscape (≥1360px y <1440px): 4 columnas */
@media (min-width: 1360px) and (max-width: 1439.98px) {
    #card-insurances {
        grid-template-columns: repeat(4, 272px);
        /* Gap responsivo para ocupar mejor el ancho disponible sin desbordar */
        column-gap: clamp(32px, calc((100vw - 1216px) / 3), 64px);
        row-gap: 32px;
        justify-content: center;
    }
}

/* Escritorio grande (≥1440px): 4 columnas, separación 32px */
@media (min-width: 1440px) {
    #card-insurances {
        grid-template-columns: repeat(4, 272px);
        column-gap: 32px;/* 32px entre cartas según Figma */
        row-gap: 32px;
    }
}

section#card-insurances .card-ins-footer {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.card-ins img.icon-buy {
    height: 24px;
    width: 24px;
    margin: 0px 0px 0px 5px;
}

.card-ins-body {
    text-align: left;
}


    .card-ins-body ul {
        padding: 0 0 0 18px;
    }

/*Seguro del INS*/

.container-ins-insurance {
    display: flex;
    justify-content: center;
    gap: 50px;
    align-items: center;
}

.container-ins-insurance .container-ins-insurance-iconbars-row {
    margin-top: 32px;
    margin-bottom: 32px;
}

.container-ins-insurance a.btn-link-ins{
    width: auto !important;
    padding-left: 20px;
    padding-right: 20px;
}

/* Make the long icon bar image fluid and prevent overflow */
.container-ins-insurance .container-ins-insurance-iconbars-row img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}


/*Conozca SOA*/

.container-know-soa {
    display: flex;
    justify-content: center;
    gap: 50px;
    align-items: center;
}



.container-ins-img {
    width: 480px;
    height: 480px;
}

    .container-ins-img img {
        width: 100%;
        height: 480px;
    }

/*Donde pagar*/

#card-faq {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 card per row */
    gap: 16px; /* Space between cards on mobile */
    justify-content: center;
    justify-items: center;
    align-items: start;
}

/* Tablet: 2 columns */
@media (min-width: 576px) {
    #card-faq {
        grid-template-columns: repeat(2, 272px);
        column-gap: 24px;
        row-gap: 24px;
    }
}

/* Small desktop: 3 columns */
@media (min-width: 992px) and (max-width: 1359.98px) {
    #card-faq {
        grid-template-columns: repeat(3, 272px);
        column-gap: 32px;
        row-gap: 32px;
    }
}

/* iPad/tablet large landscape (≥1360px and <1440px): 4 columns */
@media (min-width: 1360px) and (max-width: 1439.98px) {
    #card-faq {
        grid-template-columns: repeat(4, 272px);
        column-gap: clamp(32px, calc((100vw - 1088px) / 3), 64px);
        row-gap: 32px;
        justify-content: center;
    }
}

/* Large desktop (≥1440px): 4 columns, 32px separation */
@media (min-width: 1440px) {
    #card-faq {
        grid-template-columns: repeat(4, 272px);
        column-gap: 32px; /* 32px between cards */
        row-gap: 32px;
    }
}

/* iPad vertical (≈1024px): show 2 cards */
@media (min-width: 992px) and (max-width: 1024.98px) {
    #card-faq {
        grid-template-columns: repeat(2, 272px);
        column-gap: 24px;
        row-gap: 24px;
        justify-content: center;
    }
}

.icon-header-ins {
    margin: 0 0 6px 0px;
    display: flex;
}

#faq .card-ins {
    width: 272px !important;
    height: 404px !important;
    border-radius: 8px;
    border: 2px solid var(--primary-2);
    padding: 20px;
    text-align: left;
}


#faq .card-ins-footer {
    position: absolute;
    width: 100%;
    left: 20px;
    bottom: 30px;
}

    #faq .card-ins-footer a {
        text-decoration: none;
    }


.contenedor-form {
    max-width: 1440px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 0 auto !important;
    box-shadow: none !important;
    border-radius: 8px;
    justify-content: center;
}

.btnContinuarMV {
    display: none;
}

.btnContinuarWB {
    display: block;
}

#btnConsulta-container {
    flex-basis: 100%;
    display: flex;
    right: 0;
    flex-direction: row-reverse;
}   

.contenedor-con-borde {
    border: 1px solid var(--gray-35);
}

/*Datos propietarios*/
.ins-vehicle-owner-info-content {
    border-radius: 12px;
    background-color: var(--gray-05);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 25px;
    margin: 0 auto;
    width: 100%;
}
.ins-vehicle-owner-data-section {
    position: relative;
    height: 100%;
}

.ins-vehicle-owner-rest {
    position: absolute;
    bottom: 0;
}

.ins-vehicle-owner-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    justify-content: center;
    align-items: start;
    justify-items: center; 
    width: 100%;
}

.ins-vehicle-owner-data-section {
    padding: 20px;
    padding: 20px;
}

.ins-vehicle-owner-data-section h2 {
    margin-bottom: 15px;
    padding-bottom: 8px;
}

.data-item {
    margin-bottom: 12px;
    line-height: 1.5;
}

.data-label {
    font-weight: bold;
    color: #333;
    display: inline-block;
    min-width: 120px;
}

.data-value {
    color: #555;
}


/*Preguntas Frecuentes*/

.accordion-item {
    min-height: 104px !important;
    border-radius: 12px !important;
    border: 1px solid var(--primary-50) !important;
    box-shadow: 0 0 0 0 !important;

}

.accordion-button:not(.collapsed) {
    background: transparent !important;
    box-shadow: 0 0 0 0 !important;
}

.accordion-item h2 {
    min-height: 90px;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



.steps-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.step-content {
    display: flex;
    gap: 10px;
}

.step-info-content {
    max-width: 350px;
}

.ins-covergaes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.ins-covergae-content {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
}

/* Ensure responsive 3-per-row layout for SOA coverages */
@media (min-width: 650px) {
    #ins-section-coverages .ins-covergae-content {
        width: calc((100% - 15px) / 2);
    }
}

@media (min-width: 992px) {
    #ins-section-coverages .ins-covergae-content {
        width: calc((100% - 30px) / 3);
    }
}





.ins-form-container {
    display: inline-flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    width: auto !important;
    max-width: 100% !important;
}

.ins-form-row {
    width: 100%;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ins-form-row-btn {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.ins-search-container{
    display:flex !important;
}


.ins-prodAdic {
    width: 272px !important;
}
/* Additional products card presentation: fixed widths and aligned elements */
.ins-prodAdic .card-ins { 
    width: 272px !important; 
}
.ins-prodAdic .card-ins-header .card { 
    width: 272px !important; 
}
.ins-prodAdic .card-ins-header img.productos-img {
    width: 272px !important;
    max-width: 272px !important;
    height: 202px !important; /* Fixed height as per Figma capture */
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
/* Keep button aligned across cards despite title length */
.ins-prodAdic .card-ins-body h3 {
    min-height: 84px;
}


section#ins-section-help-dua {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}


body.hold-transition.layout-footer-fixed.modal-open {
    padding: 0 !important;
}



/*Modal rubros*/


#rubrosModal .modal-dialog.modal-lg.modal-dialog-centered {
    max-width: 712px;
}

.modal-body-rubros{
    border: solid 1px var(--gray-35);
    border-radius: 15px;
    max-width: 90%;
    padding: 15px;
    margin: 20px auto 0 auto;
}

.btn-rubros {
    width: 93% !important;
    
}

/*Contenedor Montos*/

.contenedor.contenedor-consulta {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}


@media (max-width: 1200px) {
    .img-content {
        width: 700px !important;
    }
}


@media (max-width: 1070px) {
    .img-content {
        width: 500px !important;
    }

        .img-content img {
            width: 500px !important;
        }
}


@media (max-width: 1000px) {

    .ins-text{
        text-align:center!important;
    }

    section#ins-section-help-dua {
        justify-content: center !important;
    }
    .contenedor-form.ins-form-container {
        width: 85% !important;
        margin: 0 auto !important;
    }

    .ins-form-row {
        justify-content: center;
    }
    .ins-form-row-btn {
        justify-content: center;
    }


    .img-content {
        width: 400px !important;
    }

        .img-content img {
            width: 400px !important;
        }

    .control-search-ins select, .control-search-ins input {
        width: 280px !important;
    }

    .search-ins-content {
        max-width: 828px !important;
        width: 100% !important;
    }
}

@media (max-width: 991.98px) {

    .contenedor-form.ins-form-container {
        width: 95% !important;
     
    }

    #delimeter {
        justify-content: space-evenly;
    }

        #delimeter span {
            border-radius: 8px;
            height: 5px;
        }

            #delimeter span:nth-child(1) {
                width: 15%;
                flex-grow: 0;
            }

            #delimeter span:nth-child(2) {
                width: 20%;
                flex-grow: 0;
            }

            #delimeter span:nth-child(3) {
                width: 5%;
                flex-grow: 0;
            }

            #delimeter span:nth-child(4) {
                width: 55%;
                flex-grow: 0;
            }

    .ins-logo-header {
        width: 100%;
        display: flex;
        height: 78px;
        align-items: center;
        justify-content: space-between;
        align-content: center;
    }

    button.navbar-toggler {
        display: flex;
        flex-direction: column;
        align-items: center;
        border: 2px solid var(--primary-50);
    }

    .icon-toggler span {
        display: block;
        width: 6px;
        height: 6px;
        background-color: #0A6378;
        border-radius: 50%;
        transition: all 0.3s ease;
        margin: 1px;
    }

    .icon-toggler:not(.collapsed) {
        gap: 0;
    }

        .icon-toggler:not(.collapsed) span:nth-child(1),
        .icon-toggler:not(.collapsed) span:nth-child(3) {
            width: 18px;
            height: 2px;
            border-radius: 1px;
            position: absolute;
            background-color: #0A6378;
        }

        .icon-toggler:not(.collapsed) span:nth-child(1) {
            transform: rotate(45deg);
        }

        .icon-toggler:not(.collapsed) span:nth-child(3) {
            transform: rotate(-45deg);
        }

        .icon-toggler:not(.collapsed) span:nth-child(2) {
            opacity: 0;
        }

    .ins-logo-header {
        margin-left: 0 !important;
    }

    /* Mobile navbar spacing: keep 16px to screen edges */
    nav.navbar.navbar-expand-lg {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    /* Remove extra offsets that push content away from the edges */
    .navbar img {
        margin-left: 0 !important;
    }
    button.navbar-toggler {
        margin-right: 0 !important;
    }

    /* Allow navbar/header to grow when menu is open */
    .navbar { max-height: none !important; }
    nav.navbar.navbar-expand-lg { height: auto !important; min-height: 78px; }

    /* Mobile hamburger menu (collapse) – Figma layout */
    #navMenuMarchamo {
        width: 100% !important;
    }
    #navMenuMarchamo .navbar-nav {
        width: 100%;
        align-items: flex-start;
        text-align: left; /* override global center */
        gap: 0; /* stacked list without gaps */
        background: transparent; /* no panel background */
        margin-top: 8px !important;
    }
    #navMenuMarchamo .navbar-nav .nav-link {
        display: block;
        width: 100%;
        text-align: left;
        padding: 14px 0; /* comfy touch target */
        margin: 0;
        border-radius: 0 !important; /* remove rounded pill */
        background: transparent !important; /* remove active pill bg */
    }
    #navMenuMarchamo .navbar-nav .nav-link.active {
        background: transparent !important; /* ensure no highlight */
    }
}


@media (max-width: 901px) {

    .ins-covergaes-container {
        justify-content:center !important;
    }

    .img-content {
        display: none !important;
    }


    .control-search-ins select, .control-search-ins input {
        width: 100% !important;
    }

    button#btnConsutaMarchamo {
        width: auto;
    }

    #btnConsulta-container {
       justify-content: center;
        align-items: center;
    }

    section#search-ins-section {
        display: flex;
        flex-direction: column;
        align-items: center !important;
        justify-content: center;
    }

    .datos-desglose {
        text-align: left;
    }

    .search-ins-content {
        height: auto;
        position: relative;
        left: auto;
        transform: none;
        margin-top: 50px !important;
        width: 90% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .control-search-ins {
        align-items: stretch;
        flex-wrap: nowrap;
        flex-direction: column;
        justify-content: center;
        width: fit-content;
    }


    section#management-ins-section .ins-row {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .direct-access-ins-container {
        flex-direction: column;
        justify-content: center;
        gap: 30px;
    }

    .ins-text-content.w-50 {
        width: 100% !important;
        text-align: center;
        margin-bottom: 15px;
    }

    .row-ins.m-0.p-0.container-ins-insurance {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
        text-align: center;
        justify-content: center;
    }

    .row-ins.m-0.p-0.container-know-soa {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
        text-align: center;
        justify-content: center;
    }

    .title-icon-content {
        justify-content: center;
    }

    .container-ins-img {
        width: 90% !important;
        height: auto !important;
        margin-left: auto;
        margin-right: auto;
    }

        .container-ins-img img {
            width: 90% !important;
            height: auto !important;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }

    .ins-text-content {
        text-align: center;
        margin-bottom: 25px;
    }
}
@media (max-width: 768px) {

    .step-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contenedor {
        padding: 0 !important;
    }
    .ins-vehicle-owner-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ins-vehicle-owner-data-section {
        width: 100%;

    }

    .ins-vehicle-owner-rest {
        position: unset;
  
    }

    div#filterZone {
        text-align: center;
    }

    div#vehiculoInfo h2 {
        text-align:center;
    }
}

@media (max-width: 575px){
    .btnContinuarMV {
        display: block;
    }

    .btnContinuarWB {
        display: none;
    }

    .modalpagador, .divtotal {
        display: flex;
        flex-flow: row wrap;
    }

    .divtotal div{
        margin:auto;
    }

    .modalpagador a {
        flex: 1 100%;
        order: 2;
    }
}


@media (max-width: 650px) {

    .ins-covergae-content {
     text-align:center;
        align-items: center;
    }

    section#ins-section-info {
        text-align: center;
    }


    .ins-input{
        width:95%!important;
    }

    .contenedor-form{
        padding:25px 16px 25px 16px;
    }

    

    footer.main-footer {
        text-align: center;
    }

    section#menu-footer {
        flex-direction: column;
        gap: 10px;
        height: auto;
    }

    section#copyright .btn-link-ins {
        width: 70% !important;
    }

    section#copyright {
        flex-direction: column;
        gap: 10px;
    }

        section#copyright span {
            display: none !important;
        }

    footer.main-footer {
        height: auto !important;
        padding: 20px;
    }

    section#search-ins-section {
        text-align: center;
    }

    section#self-issued-insurances {
        text-align: center;
    }

    section#self-issued-insurances {
        text-align: center;
    }

    section#faq {
        text-align: center;
    }

    .title-icon-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .title-icon-content h1 {
        text-align: center;
    }
    
    /* Center text for base typography class on mobile */
    .ins-ff-base {
        text-align: center !important;
    }
    
    /* Exception: Keep FAQ card content left-aligned on mobile */
    #card-faq .ins-ff-base {
        text-align: left !important;
    }
}

/* INS icon bars responsive toggle (mobile-first) */
.container-ins-insurance-iconbars-row {
    display: none;
}

.container-ins-insurance-iconbars-row-split {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

/* Keep vertical spacing consistent with the single-row version */
.container-ins-insurance .container-ins-insurance-iconbars-row-split {
    margin-top: 32px;
    margin-bottom: 32px;
}

/* Tablet and up: show single-row asset, hide split version */
@media (min-width: 768px) {
    .container-ins-insurance-iconbars-row {
        display: block;
    }
    .container-ins-insurance-iconbars-row-split {
        display: none;
    }
}


/* iPad vertical (≈1024px): mostrar 2 cartas */
@media (min-width: 992px) and (max-width: 1024.98px) {
    #card-insurances {
        grid-template-columns: repeat(2, 272px);
        column-gap: 24px;
        row-gap: 24px;
        justify-content: center;
    }
}


/* Steps container visual style and layout improvements */
.steps-container {
    border-radius: 8px;
    border: 1px solid var(--gray-35);
    background: var(--info-10);
    padding: 16px; /* requested padding */
}

/* Tablet and iPad: keep 3 steps in a single row as well */
@media (min-width: 768px) and (max-width: 1439.98px) {
    .steps .steps-content {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
        gap: 16px;
        justify-items: start;
    }
    .steps .step-content { min-width: 0; }
    .steps .icon-content {
        height: 30px;
        width: 30px;
    }
    .steps .step-info-content { 
        max-width: none; 
    }
}

/* At ≥1440px, show the 3 steps in a single row */
@media (min-width: 1440px) {
    .steps-content {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
        gap: 16px; /* requested gap */
        justify-items: start;
    }
    /* Reduce info width so each step fits alongside its icon within one column */
    .step-info-content {
        max-width: 301px;
    }
}

/* Additional products grid (Consulta Marchamo & Autoexpedibles) */
/* Target the specific Bootstrap row used by util.js/SeguroAutoexpedibles */
.row.row-cols-2.row-cols-md-3.row-cols-xl-5.g-4.justify-content-center,
.row.row-cols-2.row-cols-md-3.row-cols-xl-5.g-4.d-flex.justify-content-center,
.row.row-cols-2.row-cols-md-3.row-cols-xl-5.g-4.justify-content-center.align-items-center {
    display: grid !important;
    grid-template-columns: 1fr; /* Mobile: 1 card per row */
    gap: 16px; /* Space between cards on mobile */
    justify-content: center;
    justify-items: center;
    align-items: start;
}

/* Tablet: 2 columns */
@media (min-width: 576px) {
    .row.row-cols-2.row-cols-md-3.row-cols-xl-5.g-4.justify-content-center,
    .row.row-cols-2.row-cols-md-3.row-cols-xl-5.g-4.d-flex.justify-content-center,
    .row.row-cols-2.row-cols-md-3.row-cols-xl-5.g-4.justify-content-center.align-items-center {
        grid-template-columns: repeat(2, 272px);
        column-gap: 24px;
        row-gap: 24px;
    }
}

/* Small desktop: 3 columns */
@media (min-width: 992px) and (max-width: 1359.98px) {
    .row.row-cols-2.row-cols-md-3.row-cols-xl-5.g-4.justify-content-center,
    .row.row-cols-2.row-cols-md-3.row-cols-xl-5.g-4.d-flex.justify-content-center,
    .row.row-cols-2.row-cols-md-3.row-cols-xl-5.g-4.justify-content-center.align-items-center {
        grid-template-columns: repeat(3, 272px);
        column-gap: 32px;
        row-gap: 32px;
    }
}

/* iPad/tablet large landscape (≥1360px and <1440px): 4 columns */
@media (min-width: 1360px) and (max-width: 1439.98px) {
    .row.row-cols-2.row-cols-md-3.row-cols-xl-5.g-4.justify-content-center,
    .row.row-cols-2.row-cols-md-3.row-cols-xl-5.g-4.d-flex.justify-content-center,
    .row.row-cols-2.row-cols-md-3.row-cols-xl-5.g-4.justify-content-center.align-items-center {
        grid-template-columns: repeat(4, 272px);
        column-gap: clamp(32px, calc((100vw - 1216px) / 3), 64px);
        row-gap: 32px;
        justify-content: center;
    }
}

/* Large desktop (≥1440px): 4 columns, 32px separation */
@media (min-width: 1440px) {
    .row.row-cols-2.row-cols-md-3.row-cols-xl-5.g-4.justify-content-center,
    .row.row-cols-2.row-cols-md-3.row-cols-xl-5.g-4.d-flex.justify-content-center,
    .row.row-cols-2.row-cols-md-3.row-cols-xl-5.g-4.justify-content-center.align-items-center {
        grid-template-columns: repeat(4, 272px);
        column-gap: 32px; /* 32px between cards */
        row-gap: 32px;
    }
}

/* iPad vertical (≈1024px): show 2 cards */
@media (min-width: 992px) and (max-width: 1024.98px) {
    .row.row-cols-2.row-cols-md-3.row-cols-xl-5.g-4.justify-content-center,
    .row.row-cols-2.row-cols-md-3.row-cols-xl-5.g-4.d-flex.justify-content-center,
    .row.row-cols-2.row-cols-md-3.row-cols-xl-5.g-4.justify-content-center.align-items-center {
        grid-template-columns: repeat(2, 272px);
        column-gap: 24px;
        row-gap: 24px;
        justify-content: center;
    }
}


/* ===== Global container spacing reset (keep macro spacing only on the Master form) ===== */
/* Bootstrap/AdminLTE containers should not add their own outer spacing in this site */
.container-fluid {
    padding: 0 !important;
    margin: 0 !important;
}

/* Main wrappers: no extra padding/margins; shadow removed to avoid unintended gaps */
.contenedor,
/*.contenedor-form,*/
.content {
    padding: 0 !important;
    margin: 0 !important;
}

.contenedor,
.contenedor-form {
    box-shadow: none !important;
}

/* ===== Total a pagar (infoPago) – full‑bleed background with aligned content ===== */
/* Base: keep background color consistent */
.infoPago-container {
    background-color: var(--info-10) !important;
    border-radius: 0 !important;
}

/* Tablet and up: make the bar span the full viewport width while keeping inner content aligned */
@media (min-width: 768px) {
    /* Bleed background to screen edges and neutralize contenedor-form lateral padding */
    .infoPago-container {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding-top: 24px !important; /* Figma spacing */
        padding-bottom: 24px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* Align inner content with the same paddings used by the main form */
    .infoPago-container > .row {
        max-width: 1440px;
        margin: 0 auto;
        width: 100%;
        padding-left: 32px !important;  /* ≥576px form padding */
        padding-right: 32px !important;
        box-sizing: border-box;
    }
}

/* Small desktop (≥992px and <1440px): match form paddings (64px sides) */
@media (min-width: 992px) and (max-width: 1439.98px) {
    .infoPago-container > .row {
        padding-left: 64px !important;
        padding-right: 64px !important;
    }
}

/* Large desktop (≥1440px): match form paddings (128px sides) */
@media (min-width: 1440px) {
    .infoPago-container > .row {
        padding-left: 128px !important;
        padding-right: 128px !important;
    }
}


/* Mobile full-width cards (global) */
@media (max-width: 575.98px) {
    /* Any card-ins should take full available width on mobile */
    .card-ins {
        width: 100% !important;
        max-width: none !important;
    }
    .card-ins .card-ins-header,
    .card-ins .card-ins-header .card {
        width: 100% !important;
        max-width: none !important;
    }
    .card-ins .card-ins-header img,
    .card-ins .card-ins-header img.productos-img {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        display: block;
        border-radius: 8px;
    }

    /* Inicio.aspx grid: stretch items to column width */
    #card-insurances {
        justify-items: stretch !important; /* make items take full column width */
    }

    /* Override fixed widths used by ins-prodAdic (Consulta Marchamo/Autoexpedibles) */
    .ins-prodAdic .card-ins { width: 100% !important; }
    .ins-prodAdic .card-ins-header .card { width: 100% !important; }
    .ins-prodAdic .card-ins-header img.productos-img { width: 100% !important; max-width: none !important; height: auto !important; }
    
    /* File upload input responsiveness */
    #multi-selector-uniq {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }
    
    #multi-selector-uniq input[type="file"] {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }
}


/* Mobile: ensure spacing under card contents */
@media (max-width: 575.98px) {
  .card-ins .card-ins-body {
    margin-bottom: 32px !important;
  }
}


/* Mobile fixes for FAQ cards: full width, auto height, 16px spacing */
@media (max-width: 575.98px) {
  /* Ensure items stretch to the full column width */
  #card-faq {
    justify-items: stretch !important;
    gap: 16px !important;
  }
  /* Remove fixed/min heights and let content define height */
  #card-faq .card-ins {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
  }
  /* Footer should flow with content (no absolute positioning) */
  #card-faq .card-ins-footer {
    position: static !important;
    margin-top: 8px;
  }
}


/* Scoped fix: keep FAQ card icons small even on mobile */
#card-faq .icon-header-ins img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    object-fit: contain;
    display: block;
}
#card-faq .icon-header-ins {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}
@media (max-width: 575.98px) {
    /* Override global mobile rule that makes .card-ins-header img width:100% */
    #card-faq .card-ins .card-ins-header .icon-header-ins img {
        width: 40px !important;
        height: 40px !important;
        max-width: 40px !important;
        object-fit: contain !important;
    }
    
    /* Center UL lists completely in mobile - both text and bullets */
    ul {
        text-align: center !important;
        padding-left: 0 !important;
        list-style-position: inside !important;
    }
    
    /* Specific override for card body lists */
    .card-ins-body ul {
        padding-left: 0 !important;
        text-align: center !important;
        list-style-position: inside !important;
    }
}


/* Estilos para modales grandes en dispositivos móviles y tablets */

/* Mobile (smartphones en portrait y landscape) */
@media (max-width: 767.98px) {
    .modal-dialog.modal-lg {
        max-width: 95vw;
        width: 95vw;
        margin: 1rem auto;
        min-height: calc(100vh - 2rem);
    }

    .modal-content {
        min-height: calc(100vh - 2rem);
    }
}

/* Tablets en portrait */
@media (min-width: 768px) and (max-width: 991.98px) {
    .modal-dialog.modal-lg {
        max-width: 90vw;
        width: 90vw;
        margin: 1.5rem auto;
    }

    .modal-content {
        min-height: calc(100vh - 3rem);
    }
}

/* Tablets en landscape */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .modal-dialog.modal-lg {
        max-width: 85vw;
        width: 85vw;
    }
}

/* Opcional: Si quieres que el modal sea scrollable */
.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

/* Modal inicial - centrado vertical correcto en móviles */
@media (max-width: 767.98px) {
    #modalInicial .modal-dialog.modalInicial-size {
        margin: calc(50vh - 200px) 1rem 0 1rem !important; /* Override mb-0 mt-md-1 */
        display: flex !important;
        align-items: center !important;
        min-height: calc(100vh - 3.5rem) !important;
    }
}