/*body { font-family: Arial, sans-serif; text-align: center; }*/
.step{display: none;}
.active { display: block; }
#userID { padding: 10px; width: 50%; margin: 20px auto; }
.btn { 
    padding: 10px 20px; 
    cursor: pointer;
    background: #E91A2F; 
    color: white; 
    border: none; 
    width: 100%;
    font-size: 16px; 
    border-radius: 15px; 
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.modal-container a.btn{
    color: #fff!important;
    text-decoration: none!important;
    box-sizing: border-box!important;
}

#step7 > h2{
    max-width: 250px;
}

.g-recaptcha{
    margin-bottom: 20px;
}

.return{
    background-color: transparent;
    border: 1px solid #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: .5s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 0px!important;
}

.return:hover{
    opacity: .5;
}

.form-payment-openpay .facturas{
    border: 1px solid #000;
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 20px;
}

.form-payment-openpay{
    max-width: 650px;
    margin: 0 auto;
}

.form-payment-openpay .resumen div{
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.form-payment-openpay .resumen .col3{
    padding: 10px 0px 0px;
}

.form-payment-openpay .resumen div span,
.form-payment-openpay .resumen div p{
    font-size: 16px;
    margin-bottom: 0px;
}

.axx_badge_vencidas{
background: #f4d6d6;
    color: #7c1018;
    padding: 5px 20px;
    border-radius: 20px;
}

.axx_show_facturas{
    font-size: 16px;
    margin-bottom: 20px;
}

.axx_show_facturas.active:after{
   transform: rotate(180deg);
}

.axx_show_facturas:after{
    background: #4C048C;
    background-image: url(../icons/ardw.svg);
    background-repeat: no-repeat;
    border-radius: 100%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    cursor: pointer;
    transition: 1s;
    content: '';
    display: inline-block;margin-left: 10px;
    position: relative;
    top: 5px;
    background-position: center center;
}

#axx_domi{
    width: 100%;
}

.domy-notice{
    padding: 20px;
    font-size: 14px;
    background: #f5cf09;
    border-radius: 10px;
    margin-bottom: 20px;
}

#axx_facturas_vencidas{
    margin-top: 20px;
    flex-direction: column;
    gap: 10px;
}

.axx_show_facturas:hover:after{
    background-color: red;
}

#axx_facturas_vencidas.items{
    display: none;
}

#axx_facturas_vencidas.items span{
    font-size: 16px;
}

#axx_facturas_vencidas .item{
    display: grid;
    grid-template-columns: 120px 220px 1fr;
    align-items: center;
}

#axx_facturas_vencidas .item span strong{
    font-weight: bold;
}

#axx_facturas_vencidas .item .vencido{
    background: #f4d6d6;
    width: fit-content;
    padding: 5px 15px;
    border-radius: 20px;
    color: #7c1018;
    justify-self: end;
}

/* STEP 1 */

#axx_welcome{
    display: flex;
    align-items: center;
    flex-direction: column;
}

#axx_welcome span{
    text-align: center;
    display: inline-block;
    font-size: 16px;
    max-width: 300px;
    margin-bottom: 20px;
}

#axx_welcome label{
    font-weight: bold;
}

#axx_modal {
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    pointer-events: all;
    display: none;
    position: fixed;
    inset: 0; /* más limpio que top/bottom/left/right = 0 */
    z-index: 999;
    overflow: auto; /* importante: scroll en el modal completo si es necesario */
    max-height: none; /* evita conflicto con altura interna */
    height: 100dvh; /* usa 100dvh para dispositivos móviles (viewport real) */
}

#axx_modal .modal-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    max-height: 90dvh; /* mejor para móviles, ajusta según necesidad */
    overflow-y: auto;
    box-sizing: border-box;
    width: 90%;
    max-width: 600px;
}




#axx_modal .modal-container .close-modal{
    position: absolute;
    top: 20px;
    right: 40px;
    z-index: 99;
    cursor: pointer;
}

#axx_modal .modal-container .close-modal svg{
    width: 30px;
    height: 30px;
    z-index: 99;
    fill: #000000;
    transition: .5;
}

#axx_modal .modal-container .close-modal svg:hover{
    fill: #7c1018;
}

/* STEP 1 */

#step1 #axx_userName{
    font-size: 18px;
    font-weight: bold;
}

.axx_deuda{
    display: flex;
    align-items: center;
    gap: 5px;
}

/* STEP 2 */

#step2 .method{
    padding: 20px;
    border: 1px solid #000;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    background: #ffffff;
    gap: 20px;
    cursor: pointer;
    transition: .5s;
}

#step2 .method:hover{
    box-shadow: 00px 0px 2px 4px #00000038;
}

#step2 .method_description h3{
    margin-bottom: 0px;
    margin-top: 0px;
}

#step2 .method_description span{
    font-size: 12px;
}

#step2 .method_description p{
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 0px;
}


/* BADGE PAYMENT */
.badge-paymet{
    background-color: #FAFAFA;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 20px;
}

.badge-paymet *{
    font-size: 16px;
}

.badge-paymet .cantidad,
.badge-paymet .cantidad-package{
    font-weight: bold;
}

/* FORMS STYLES */
.form-group-payments{
    margin-bottom: 30px;
}

.form-group-payments label{
    display: block;
    font-size: 16px;
    font-weight: bold;
}

.form-group-payments input{
    color: rgb(55, 55, 55);
    display: flex;
    width: 100%;
    background: rgb(255, 255, 255);
    border: 1px solid rgb(226, 226, 226);
    border-radius: 4px;
    padding: 4px 8px;
    gap: 8px;
    height: 40px;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    margin-top: 5px;
    box-sizing: border-box;
}

.form-group-payments span{
    color: #707070;
    font-size: 12px;
}

.form-group-payments.two-columns {
    display: grid;
    grid-template-columns: 47.5% 47.5%;
    gap: 5%;
}

.btn_method{
    width: 100%;
    border-radius: 5px;
    background-color: #4C048C;
    color: #fff;
    font-size: 20px;
    text-align: center;
    display: block;
    margin-top: 30px;
    padding: 15px;
    font-size: 16px;
    cursor: pointer;
    transition: 1s;
}


.btn_method:hover{
    background-color: #007bff;
    box-shadow: 00px 0px 2px 4px #00000038;
}

.soporte_tarjetas h3{
    font-size: 16px;
    font-weight: bold;
}

.soporte_tarjetas{
    margin-bottom: 20px;
}

.by_openpay{
    display: flex;
    align-items: center;
    gap: 20px;
}

.by_openpay span{
    font-size: 16px;
}

#axx_card_date_mm,
#axx_card_date_yy{
    width: 12%;
    display: inline-block;
}


/* GENERADOR DE POPUP SUCCESS */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'Segoe UI', sans-serif;
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  max-width: 400px;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: #fff;
  animation: slideIn 0.4s ease forwards;
  position: relative;
  overflow: hidden;
}

.toast-icon {
  font-size: 22px;
  margin-right: 12px;
}

.toast-message {
  flex-grow: 1;
  margin-right: 60px;
}

.toast-button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.toast-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.toast-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
}

.toast.success {
  background-color: #28a745;
}

.toast.error {
  background-color: #dc3545;
}

.toast.warning {
  background-color: #ffc107;
  color: #000;
}


@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* STEP 6*/

#step6 p{
    font-size: 16px;
}

/* PRELOADER */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.9);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s;
  max-width: 100% !important;
  width: 100% !important;
}

.loader {
  width: 60px;
  height: 60px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* SCS STEP */

.step-sccs{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
}

.step-sccs .success-buttons{
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    
}

.step-sccs .btn{
    color: #fff;
    text-decoration: none;
    max-width: 45%;
    display: inline-block;
    background-color: #E91A2F;
    transition: 1s;
}

.step-sccs .btn:hover{
    color: #fff;
    background-color: #C91729;
}

.step-sccs svg{
    width: 50px;
    margin-bottom: 20px;
}

/* PAYMENT TRANSFER */

.payment-guides{
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.payment-guides .guide-payment-axx{
    font-size: 16px;
    background-color: thistle;
    padding: 10px;
}


#axx_store_bars,
#axx_store_bars_oxxo{
    text-align: center;
}

.data-tiendas p{
    text-align: center;
    font-size: 16px;
}

.data-tiendas .logos{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin: 20px 0px;
}

.data-tiendas .logos .logo{
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-tiendas .logos .logo img {
    max-width: 100%;
    max-height: 40px;
}

/* RESPONSIVE */

@media(max-width:768px){

    .form-payment-openpay .resumen div{
        display: block;
    }

    .axx_badge_vencidas{
        margin-top: 20px;
        display: inline-block;
    }

    #axx_userName{
        max-width: 70%;
    }

    .axx_metodo_de_pago, 
    .col2 > p{
        display: none;
    }

    #axx_show_facturas {
        margin-bottom: 20px;
    }

    .resumen{
        margin-bottom: 20px;
    }

    #axx_facturas_vencidas .item{
        grid-template-columns: 2fr 2fr;
        grid-template-rows: auto 1fr;
        margin-bottom: 20px;
        gap: 10px;
    }

    #axx_facturas_vencidas .item span{
        font-size: 14px;
    }

    #axx_facturas_vencidas .item .vencido{
        width: 100%;
        display: inline-block;
        justify-self: auto;
    }

    .soporte_tarjetas img{
        max-width: 100%;
    }

    .payment-guides{
        display: block;
    }

    .guide-payment-axx{
        margin-bottom: 20px;
    }

    .soporte_tarjetas h3,
    .form-group-payments label{
        font-size: 14px;
    }

    .form-group-payments input{
        font-size: 12px;
    }
    
    #step2 .method_description h3{
        font-size: 16px;
    }

    #step2 .method_description p{
        font-size: 12px;
    }
}

@media(max-width:350px){
    .modal-container{
        margin-top: 60px;
        /*margin-bottom: 60px;*/
    }
}