/*_________text_________ */
#modal h1{
    font-size: 18px;
    margin-bottom: 8px;
}

#modal h2{
    font-size: 48px;
    margin-bottom: 0px;
}

#modal h1, #modal h2{
    color: white;
    text-align: center;
}

/* _________ Title _________ */

#modal .text-modal{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    /*align-items: center;*/
    align-items: flex-start;
}

#modal .text-modal .title{
    width: 100%;
}


/* _________butons_________ */

#modal .butons{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#modal .butons #btn-01 p,
#modal .butons #btn-02 p{
    margin: 5% 2%;
    text-align: start;
    font-weight: bold;
}

#modal .butons #btn-01 p{
    color: white;
    
}
#modal .butons #btn-02 p{
    color: #BA0C2F;
}

button#cerrar-modal {
    /*margin-top: -6%;*/
}

.mobile-img{
    display: none;
}

/*_________ Seletion Marckers _________ */
#modal .content {
    position: relative;
    height: 100%;
    width:100%;
}

#modal .actions{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

#modal .gobal-marckers{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    cursor: pointer;
}

#modal .marckers{
    /* width: 115%; */
    width: calc(100% + 40px);
    height: fit-content;
    max-width: 944px;
    max-height: 548px;
    position: absolute;
    bottom: -20px;
    left: -20px;
    z-index: 2;
    background-color: #fff;
    /* border: 1px solid #ccc; */
    /* border-radius: 8px; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#modal .marckers.hide{
    display:none;
}

#modal .marckers .columns-container{
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    padding: 25px 40px 0px;
}

#modal .marckers .columns-container .column{
    display: flex;
    justify-content: start;
    width: 33.33%;
    height: fit-content;
    flex-direction: column;
    padding-left: 30px;
    padding-right: 30px;
}

#modal .marckers .columns-container .column .region-container .region{
    font-weight: bold;
    color: #BA0C2F;
    padding-top: 30px;
    padding-bottom: 5px;
    border-bottom-width: 3px;
    border-bottom-color: #d31145;
}

#modal .marckers .columns-container .column .region-container .countries li{
    padding-top: 10px;
    border-bottom-width: 2px;
    border-bottom-color: #dbdbdb;
}

#modal .marckers .columns-container .column .region-container .countries li a{
    font-size: 16px;
}

#modal .marckers .columns-container .column:nth-child(-n+3) .region {
    padding-top: 25px;
}

#modal .marckers .columns-container .column:first-child .region-container:nth-child(2) .region,
#modal .marckers .columns-container .column:first-child .region-container:nth-child(3) .region{
    padding-top: 20px;
}

#modal .marckers .content_button_pop{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

#modal .marckers #id_button_pop{
    font-weight: bold;
    color: #d31145;
    font-size: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    outline: none;
}

#modal .marckers #id_button_pop:hover img{
    transform: rotate(90deg) translateX(5px); 
}

#modal .marckers #id_button_pop img{
    width: 25px;
    transform: rotate(90deg) translateX(-5px);
    transition: transform 0.5s ease-in-out;
}

/* @media (max-width: 1006px){
    #modal .marckers .columns-container{
        padding: 28px 20px 26px;
    }
} */

@media (max-width: 962px){
    #modal .marckers .columns-container{
        padding: 15px 20px 26px;
    }
    #modal .marckers .columns-container .column .region-container .region{
        font-size: 16px;
    }
    #modal .marckers .columns-container .column .region-container .countries li{
        padding: 5px;
    }
    #modal .marckers .columns-container .column .region-container .countries li a{
        font-size: 14px;
    }
    #modal .marckers .columns-container .column:nth-child(4) .region-container .region,
    #modal .marckers .columns-container .column:nth-child(5) .region-container .region{
        padding-top: 10px;
    }
}

@media (max-width: 768px){
    #modal .marckers .columns-container{
        padding: 25px 15px;
    }
    #modal .marckers .columns-container .column{
        padding-left: 11px;
        padding-right: 11px;
    }
}

@media (max-width: 650px){
    #modal{
        overflow: hidden;
    }
    #modal .marckers{
        width: calc(100% + 20px);
        overflow-x: hidden;
        scroll-behavior: smooth;
        left: -10px;
        bottom: -10px;
        border-radius: 10px;
    }
    #modal .marckers .columns-container{
        flex-direction: column;
        padding-top: 0px;
    }
    #modal .marckers .columns-container .column{
        width: 95%;
    }
}


/*_________ Modal _________ */

#modal .butons #btn-01,
#modal .butons #btn-02{
    height: 100%;
    width: 100%;
    max-height: 90px;
    max-width: 278px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#modal .butons img{
    width: 30px;
    height: 24px;
    margin-left: 2%;
}

#modal .butons #btn-01{
    background:  transparent;
    border: 1px solid white;
    margin-right: 2%;

}

#modal .butons #btn-02{
    background:  white;
    border: 1px solid white;
    margin-left: 2%;
}

#modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}
  
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* tono negro con opacidad */
    z-index: 900;
}
  
#modal {
    background-size: cover !important; /* Cubre todo el tamaño del elemento */
    background-position: center !important; /* Centra la imagen */
    background-repeat: no-repeat !important; /* No se repite la imagen */
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    max-width: 944px;
    max-height: 548px;
    background: rgb(186,12,47);
    background: linear-gradient(139deg, rgba(186,12,47,1) 0%, rgba(169,12,48,1) 50%, rgba(152,12,49,1) 100%);
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    /*border-radius: 40px;*/
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* sombra */
    z-index: 1000;
}

@media only screen and (max-width: 1378px) {
    #modal{
        width: 90%;
    }
}


@media only screen and (max-width: 768px) {
    #modal{
        width: 70%;
    }

    #modal .butons #btn-01{
        margin-right: 0px;
        margin-bottom: 10px;
    }
        
    #modal .butons #btn-02{
        margin-left: 0px;
    }
}

@media only screen and (max-width: 650px) {
    
    #modal {
        padding: 10px;
        width: 90%;
        max-width: 364px;
        max-height: 284px;
        border-radius: 10px;

    }

    #modal .butons #btn-01 {
        margin-right: 0px;
        margin-bottom: 0px;
        margin-right: 5px;
    }

    #modal .butons img{
        margin-left: 0px;
    }

    #modal h1.text-buttom{
        font-size: 12px !important;
    }

    #modal .butons #btn-01 p, #modal .butons #btn-02 p{
        width: 100%;
        font-size: 10px;
    }

    #modal .butons #btn-01 p,
    #modal .butons #btn-02 p{
        text-align: center;
        margin-right: 0;

    }

    #modal .butons #btn-01{}

    #modal h1, #modal h2 {
        text-align: left;
    }

    #modal h2{
        font-size: 22px;
    }

    #modal h1{
        font-size: 15px;
    }

    #modal .butons #btn-02 p {
        color: white;
    }

    #modal .butons #btn-02{
        background-color: transparent;
    }

    #modal .butons #btn-01, #modal .butons #btn-02 {
        max-height: 29px;
        max-width: 152px;
    }

    #modal .butons #btn-01, #modal .butons #btn-02 {
        border-radius: 20px;
    }

    #modal .butons img {
        width: 15px;
        height: 15px;
        margin-right: 5px;
    }

    .desktop-img,
    #modal .butons #btn-01 p br, #modal .butons #btn-02 p br{
        display: none;
    }
    .mobile-img{
        display: inline;
    }
}

/* @media only screen and (max-width: 500px) {
    #modal .marckers{
        left: 20%; 
        width: 210px;
    }
} */