.main-cards-container,.main-cards-container-modal {
    margin: 0 auto;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: minmax(150px, auto);
    gap: 55px 10px;
    justify-items: center;
}

.main-card-content {
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    align-self: normal;
    text-align: center;
    width: 250px;
    min-height: 190px;
    display: grid;
}

.main-card-content:hover {
    background: rgba(0, 31, 63, 0.2);
    box-shadow: 0px 15px 26px rgba(0, 0, 0, 0.50);
    -webkit-transition: all 0.5s ease-in;
    -moz-transition: all 0.5s ease-in;
    -ms-transition: all 0.5s ease-in;
    -o-transition: all 0.5s ease-in;
    transition: all 0.5s ease-in;
}

.elipsis-v3 {
    display: flex;
    justify-content: end;
    height: 36px;
}

.main-card-text > span{
    padding: 0px 3px;
    font-weight: 600;
    color: #6c6c6c;
}

.main-card-arrow {
    display: flex;
    justify-content: end;
    height: 15px;
    margin: 10px 10px;
}


/**
* modal css
*/

/* The Modal (background) */
.home2-cards-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content/Box */
  .home2-cards-modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
  }
  
  /* The Close Button */
  .home2-cards-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .home2-cards-modal-close:hover,
  .home2-cards-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .main-cards-container{
        grid-template-columns: repeat(1, 1fr);
    }

    
    .main-cards-container-modal{
        grid-template-columns: repeat(1, 1fr);
    }

    .h1-mobile{
        font-size: 1.5rem;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {

    .main-cards-container{
        grid-template-columns: repeat(2, 1fr);
    }

    
    .main-cards-container-modal{
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {

    .main-cards-container{
        grid-template-columns: repeat(3, 1fr);
    }

    
    .main-cards-container-modal{
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .main-cards-container{
        grid-template-columns: repeat(4, 1fr);
    }

    
    .main-cards-container-modal{
        grid-template-columns: repeat(2, 1fr);
    }

}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .main-cards-container{
        grid-template-columns: repeat(4, 1fr);
    }

    
    .main-cards-container-modal{
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra x large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1600px) {
    .main-cards-container{
        grid-template-columns: repeat(6, 1fr);
    }

    .main-cards-container-modal{
        grid-template-columns: repeat(5, 1fr);
    }
}


/* .body-card-dashs {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f7f7ff;
    line-height: 1.5;
}

.card-body{
    background-color: #213665;
    color: white;
}

.container-cards {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.row-card-dashs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.icon {
    margin-top: 0 !important;
    width: 70px;
    height: 70px;
}

.elipsis-v2 {
    margin: -20px 20px;
    right: 0;
    position: absolute;
    bottom: 0;
    color: #2e5387 !important;
    font-size: xx-large;
}

.elipsis-v2:hover {
    text-decoration: none;
}

.flecha-icon {
    width: 10px;
    height: 16px;
    right: 0;
    position: absolute;
    bottom: 0;
    margin: 20px 20px;
}

a {
    text-decoration: none;
}

.card-dash {
    border-radius: 8px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 20px;
    background: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    align-self: normal;
    width: clamp(200px, 16.563rem, 600px);
}

.card-dash:hover {
    background: rgba(0, 31, 63, 0.2);
    box-shadow: 0px 15px 26px rgba(0, 0, 0, 0.50);
    -webkit-transition: all 0.5s ease-in;
    -moz-transition: all 0.5s ease-in;
    -ms-transition: all 0.5s ease-in;
    -o-transition: all 0.5s ease-in;
    transition: all 0.5s ease-in;
}

.card-dash a {
    text-decoration: none !important;
}

.card-dash p {
    text-align: center;
    font-weight: bolder;
    letter-spacing: 1px;
    color: #6E6E6E;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .row-cards {
        justify-content: center !important;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .row-cards {
        justify-content: center !important;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .row-cards {
        justify-content: center !important;
    }
}


/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .row-cards {
        justify-content: flex-start !important;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .row-cards {
        justify-content: flex-start !important;
    }
}
