body {
    font-family: 'Lato', sans-serif;
    color: #515151;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f7f7f9;
}
.modal-inactivo{
    overflow-y: auto;
}
.modal-activo{
    overflow: hidden;
}
.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding: 30px 30px 15px 30px;
    margin-top: 170px;
}

.row{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.column{
    display: flex;
    flex-direction: row;
}
/* -------------------- CONTENEDOR FORM -------------------- */
.central {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60%;
    height: 100%;
    margin: 0;
    padding: 0 30px 0 30px;
}

/* -------------------- ENCABEZADO -------------------- */

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    height: 170px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid #9f9f9f;
}

.elements-w-p{
    display: flex;
    justify-content: space-between;
    padding: 0 40px 0 0;
    width: 75%;
}
.logo-pago{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 40%;
}
 
.centrado {
    display: flex;
    justify-content: center;
    align-items: center;
}

.proceso-pago {
    display: flex;
    text-align: center;
    align-items: center;
    color: #9e9e9e;
    font-size: 23px;
    font-weight: bold;
}

.steps {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 38%;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #9e9e9e;
    z-index: -1;
    transform: translateY(-50%);
    margin: 0 18px;
}

.steps::after {
    content: '';
    position: absolute;
    top: 38%;
    left: 15px;
    width: var(--progress-width, 0%);
    height: 3px;
    background-color: var(--color-primario);
    z-index: -1;
    transform: translateY(-50%);
    transition: width 0.3s ease;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1; /* Sobre la línea */
}
.step-icon {
    width: 36px;
    height: 36px;
    background-color: #9e9e9e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
}
.step2-1{
    width: 56px;
}

.step.completed .step-icon {
    background-color: var(--color-primario);
}

.step.current .step-icon {
    background-color: #515151;
}

.step-label {
    font-size: 14px;
    font-weight: bold;
    color: #515151;
    margin-top: 5px;
}

.step.current ~ .step .step-label {
    color: #9e9e9e;
}
.timer {
    width: 22%;
    height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    background-color: var(--color-primario);
    padding: 20px 40px;
    margin: 0;
    transition: background-color 100s ease;
}
.timer.poco-tiempo{
    background-color: #d00000;
}

.timer .restante {
    font-size: 18px;
    text-align: center;
    color: white;
    margin-bottom: 15px;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}


.time-unit {
    font-size: 50px;
    margin: 0 0 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: normal;
}

.time-text{
    font-size: 18px;
    text-align: center;
    font-weight: normal;
    margin: 0;
}

.m-b-15{
    margin-bottom: 15px;
}
.o-0{
    opacity: 0;
}
.dos-puntos{
    margin-left: 10px;
    margin-right: 10px;
}
/* -------------------- FORMULARIO -------------------- */

.form{
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 30px;
    padding: 30px;
    gap: 30px;
    min-height: 100%;
    overflow-y: auto;
    border: 1px solid #c3c3c3;
}

.titulo-etapa{
    display: flex;
    justify-content: start;
    color: #515151;
    margin: 0 0 20px 0;
    font-size: 26px;
}
.titulo-compra{
    margin-bottom: 0;
}
 
.container-detalles{
    border-top: 2px solid #939393;
    margin: 20px 0 0 0;
    padding: 20px 0 0 0;
}
.container-containers-detalles{
    padding: 0;
    margin: 0;
}
.titulo-detalle{
    font-size: 18px;
    font-weight: bold;
    color: #515151;
    margin: 0 0 5px 0;
}
.desc-detalle{
    color: #515151;
}
.dropd{
    cursor: pointer;
}

.precio-nuevo-detalle{
    color: #515151;
    font-size: 20px;
    font-weight: bold;
}
.precio-original-detalle{
    color: #515151;
    font-size: 12px;
    text-decoration: line-through;
    margin-left: 5px;
}

.precio-detalle{
    display: flex;
    align-items: flex-start;
}
.dropdown-arrow {
    font-size: 14px;
    color: var(--color-primario);
    transition: transform 0.3s ease;
    cursor: pointer;
    display: inline-block;
    margin-left: 5px;
}
.dropdown-arrow.active {
    transform: rotate(-180deg);
}

.caracteristicas-detalle {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    list-style: none;
    transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.caracteristicas-detalle.active {
    max-height: 200px; /* Ajusta según el contenido */
    padding: 0 0 0 25px;
}


.li-detalle {
    font-size: 12px;
    opacity: 0.8;
    color: #9e9e9e;
    margin-top: 10px;
    position: relative;
    padding-left: 10px;
}

.li-detalle::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #9e9e9e;
    font-size: 16px;
}
.pagos-meses{
    font-size: 15px;
    font-weight: bold;
    color: #515151;
  }
  .pagos-desplegados{
    max-height: 0;
    display: grid;
    justify-content: right;
    overflow: hidden;
    padding: 0;
    margin: 0;
    list-style: none;
    transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
  }
  .pagos-desplegados.active {
    max-height: 300px; /* Ajustar según el contenido que tengamos (despues) */
    /*Si le colocamos fit-content se pierde la animación de desplegarse*/
  }
  .pago{
    font-size: 13px;
    color: #9e9e9e;
    gap: 25px;
    margin: 3px;
  }

.space-between{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.enganche-cantidad{
    color: #515151;
    font-size: 20px;
    font-weight: bold;
}
.tt-titulo{
    color: #9e9e9e;
    font-size: 17px;
    font-weight: bold;
    display: flex;
    align-items: center;
}
.total-cantidad{
    color: #9e9e9e;
    font-size: 32px;
}
.-detalles{
    height: 35px;
}

/* ------------------------ BOTON ACEPTAR ------------------------ */
.botones {
    display: flex;
    justify-content: space-between;
    padding: 0 60px;
}

.boton {
    background-color: var(--color-primario);
    color: #fff;
    padding: 11px 30px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    transition: background-color 0.3s ease;
}

.boton:hover {
    background-color: var(--color-hover);
}

.boton span {
    font-size: 18px;
}

.imgSig img{
    display: flex;
    padding-left: 10px;
    align-items: center;
}

.container-interno {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
.justify-content{
    display: flex;
    justify-content: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.form-row3{
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
}
.form-column {
    display: flex;
    flex-direction: column;
}

.date-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.calendar-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

input:not([type="checkbox"]),
select {
    padding: 5px 5px 5px 15px;
    border: 1px solid #9b9b9b;
    border-radius: 20px;
    color: #757575;
    background-color: #ffffff;
    font-size: 14px;
    width: 100%;
    height: 28px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

/* Estilos para anular el autocompletado del navegador */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    box-shadow: 0 0 0px 1000px #ffffff inset !important;
    -webkit-text-fill-color: #757575 !important;
    color: #757575 !important;
    padding: 5px 5px 5px 15px !important;
    background-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;

}
.select-css{
    outline: none;
}
select option[disabled][selected] {
    color: #757575;
}
.select-css option:not([selected]){
    outline: none;
    border: none;
    
}
select:valid {
    color: #757575;
}
input:not([readonly]):focus,
select:not([readonly]):focus{
    border-color: #e74f1d;
    outline: none;
}
input[readonly]:focus{
    outline: none;
}
select {
    appearance: none; /* Elimina la flecha nativa */
    -webkit-appearance: none; /* Para Safari */
    -moz-appearance: none; /* Para Firefox */
    background-image: var(--imagen-flecha);
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}
/* -------------------- RESUMEN DE COMPRA -------------------- */
@media(min-width: 885px){
    .resumenPaquete{
        position: sticky;
        top: 190px;
        bottom: 0;
        height: fit-content;
        width: 40%;
        margin-left: auto;
        padding: 0 30px 0 30px; /*Cambiar el 170px si ya no se necesita que baje el resumen*/
    }
}
.desplegar{
    display: none;
}

/* -------------------- FOOTER -------------------- */
.footer{
    padding-top: 40px;
}
footer {
    width: 100%;
    padding: 10px 80px;
    box-sizing: border-box;
    height: auto;
    background-color: var(--color-footer);
    color: var(--footer-letras);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    bottom: 0;  
    left: 0;
}
.footer-otros{
    width: 35%;
    gap: 15px;
}

/* -------------------- Responsividad -------------------- */
@media(max-width: 1200px){
    .elements-w-p{
        display: flex;
        flex-direction: column;
        padding: 0 20px;
        width: 100%;
    }
    .steps, .logo-pago{
        width: 100%;
    }
    .timer{
        width: 100%;
    }
}

@media (max-width: 884px) {
    
    .container {
        margin-top: 180px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .encabezado{
        flex-direction: column;
    }
    .top-bar{
        flex-direction: column;
        width: -webkit-fill-available;
        width: -moz-available;
        padding: 5px;
        gap: 5px;
    }
    .elements-w-p{
        flex-direction: column;
        width: 90%;
    }
    .timer{
        height: 40%;
        padding: 10px;
    }
    .countdown .row{
        font-size: 12px;
    }
    .time-unit{
        font-size: 40px;
        margin: 0;
    }
    .time-text{
        font-size: 14px;
    }
    .restante{
        display: none;
    }
    .steps::after,
    .steps::before{
        top: 32%;
    }
    .step-icon{
        width: 30px;
        height: 30px;
        border-radius: 5px;
    }
    .step2-1{
        width: 46px;
    }
    .central{
        width: 100%;
    }
    .form{
        gap: 15px;
    }
    .form-row,
    .form-row3 {
        grid-template-columns: 1fr;
    }
    .resumenPaquete {
        background-color: #f7f7f9;
        position: fixed;
        bottom: 0;
        width: 100%;
        z-index: 1;
        padding: 0;
        margin: 0;
        left: 0;
        height: 10vh;
        border: 1px solid black;
        overflow: hidden;
        transition: transform 0.3s ease;
        transition: height 0.3s ease-in-out;
    }
    .resumenPaquete.teclado-abierto {
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    .resumenPaquete.teclado-abierto.none{
        display: none;
    }
    .resumenPaquete .titulo-etapa{
        margin-left: 20px;
    }
    .desplegar {
        height: 10vh;
        margin-right: 10px;
        display: flex;
        margin-left: auto;
        align-items: center;
    }
    .desplegar img {   
        width: 5vh;
    }
    .container-detalles{
        margin-top: 0;
        padding: 15px 0;
    }

    /* -------------------- ESTILO CUANDO SE EXPANDE -------------------- */
    .resumenPaquete.expandido {
        transition: height 0.3s ease-in-out;
        overflow-y: hidden;
        height: 50vh;
    }
    .container-containers-detalles::-webkit-scrollbar{
        display: none;
    }
    .resumenPaquete.expandido .container-containers-detalles{
        max-height: 40vh;
        opacity: 1;
        transition: opacity 0.3s ease-in-out;
        scrollbar-width: none;
        overflow-y: auto;
        padding: 0 10px 10px 10px;
    }
    .flecha-desplegar {
        transition: transform 0.3s ease-in-out;
    }
    .resumenPaquete.expandido .flecha-desplegar {
        transform: rotate(180deg);
    }
    .resumenPaquete.expandido .container-containers-detalles {
        transition: opacity 0.3s ease-in-out;
    }
    .botones{
        padding: 15px;
    }
    /* -------------------- FOOTER -------------------- */
    .footer{
        margin-bottom: 10vh;
        font-size: 13px;
    }
    .footer.teclado-abierto{
        margin-bottom: 0;
    }
    footer{
        padding: 10px 20px;
        flex-direction: column;
    }
    .copyright{
        text-align: center;
        width: 100%;
    }
    .footer-otros{
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    .modal .modal-contenido{
        max-width: 200px;
        padding: 30px 50px;
    }


}



/* ---------------------------------- MODAL -----------------------------*/
.modal{
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4); /* oscurece el fondo */
}
.mostrar{
    display: flex;
}
.modal-contenido{
    background-color: #ffffff;
    border-radius: 30px;
    padding: 35px 70px;
    max-width: 500px;
    position: relative;
}
.elemento-modal{
    margin: 7px 0;
}
.msj-rojo{
    color: #df0000;
    font-weight: bold;
    font-size: 24px;
}
.texto-grande{
    color: #515151;
    font-size: 50px;
}
.msj-explicacion{
    color: #515151;
    text-align: justify;
}
.text-align{
    text-align: center;
}
.regresar{
    background-color: #515151;
    border-radius: 40px;
    border: none;
    padding: 10px 35px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
}
.enlace{    
    cursor: pointer;
}
.enlace:hover{
    text-decoration: underline;
    color: #ffffff;
}


@media(max-width: 400px){
    .logo-share img{
        width: 110px;
    }
    .proceso-pago{
        font-size: 21px;
    }
    .step-icon{
        width: 26px;
        height: 26px;
    }
    .step-icon img{
        width: 20px;
    }
}

/* ---------------------------------------- Pantalla de carga -------------------------------------------------*/
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.25); /* o el valor que prefieras */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    opacity: 1;
    visibility: visible;
    /* Sin blur aquí */
}


/*.loading-screen {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    opacity: 1;
    visibility: visible;
}*/
.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
body.no-scroll {
    overflow: hidden;
}
.-fondo{
    top: auto;
    background-color: #f7f7f9;
}

.loadingspinner {
    --square: 26px;
    --offset: 50px;
    --duration: 2.4s;
    --delay: 0.2s;
    --timing-function: ease-in-out;
    --in-duration: 0.4s;
    --in-delay: 0.1s;
    --in-timing-function: ease-out;
    width: calc( 3 * var(--offset) + var(--square));
    height: calc( 2 * var(--offset) + var(--square));
    padding: 0px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 30px;
    position: relative;
}

@keyframes colorchange {
    0% { background: var(--loading-1); }
    25% { background: var(--loading-2); }
    50% { background: var(--loading-3); }
    75% { background: var(--loading-4); }
    100% { background: var(--loading-5); }
}

.loadingspinner div {
    display: inline-block;
    background: darkorange;
    border: none;
    border-radius: 2px;
    width: var(--square);
    height: var(--square);
    position: absolute;
    padding: 0px;
    margin: 0px;
    font-size: 6pt;
    color: black;
}

.loadingspinner #square1 {
    left: calc( 0 * var(--offset) );
    top: calc( 0 * var(--offset) );
    animation: square1 var(--duration) var(--delay) var(--timing-function) infinite,
               squarefadein var(--in-duration) calc(1 * var(--in-delay)) var(--in-timing-function) both,
               colorchange 4s infinite alternate; /* Inicia sin retraso para el color */
}

.loadingspinner #square2 {
    left: calc( 0 * var(--offset) );
    top: calc( 1 * var(--offset) );
    animation: square2 var(--duration) var(--delay) var(--timing-function) infinite,
               squarefadein var(--in-duration) calc(1 * var(--in-delay)) var(--in-timing-function) both,
               colorchange 4s infinite alternate 0.2s; /* Retraso de 0.2 segundos */
}

.loadingspinner #square3 {
    left: calc( 1 * var(--offset) );
    top: calc( 1 * var(--offset) );
    animation: square3 var(--duration) var(--delay) var(--timing-function) infinite,
               squarefadein var(--in-duration) calc(2 * var(--in-delay)) var(--in-timing-function) both,
               colorchange 4s infinite alternate 0.4s; /* Retraso de 0.4 segundos */
}

.loadingspinner #square4 {
    left: calc( 2 * var(--offset) );
    top: calc( 1 * var(--offset) );
    animation: square4 var(--duration) var(--delay) var(--timing-function) infinite,
               squarefadein var(--in-duration) calc(3 * var(--in-delay)) var(--in-timing-function) both,
               colorchange 4s infinite alternate 0.6s; /* Retraso de 0.6 segundos */
}

.loadingspinner #square5 {
    left: calc( 3 * var(--offset) );
    top: calc( 1 * var(--offset) );
    animation: square5 var(--duration) var(--delay) var(--timing-function) infinite,
               squarefadein var(--in-duration) calc(4 * var(--in-delay)) var(--in-timing-function) both,
               colorchange 4s infinite alternate 0.8s; /* Retraso de 0.8 segundos */
}

@keyframes square1 {
    0% {
        left: calc( 0 * var(--offset) );
        top: calc( 0 * var(--offset) );
    }

    8.333% {
        left: calc( 0 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }

    100% {
        left: calc( 0 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
}

@keyframes square2 {
    0% {
        left: calc( 0 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }

    8.333% {
        left: calc( 0 * var(--offset) );
        top: calc( 2 * var(--offset) );
    }

    16.67% {
        left: calc( 1 * var(--offset) );
        top: calc( 2 * var(--offset) );
    }

    25.00% {
        left: calc( 1 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }

    83.33% {
        left: calc( 1 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }

    91.67% {
        left: calc( 1 * var(--offset) );
        top: calc( 0 * var(--offset) );
    }

    100% {
        left: calc( 0 * var(--offset) );
        top: calc( 0 * var(--offset) );
    }
}

@keyframes square3 {
    0%,100% {
        left: calc( 1 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }

    16.67% {
        left: calc( 1 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }

    25.00% {
        left: calc( 1 * var(--offset) );
        top: calc( 0 * var(--offset) );
    }

    33.33% {
        left: calc( 2 * var(--offset) );
        top: calc( 0 * var(--offset) );
    }

    41.67% {
        left: calc( 2 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }

    66.67% {
        left: calc( 2 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }

    75.00% {
        left: calc( 2 * var(--offset) );
        top: calc( 2 * var(--offset) );
    }

    83.33% {
        left: calc( 1 * var(--offset) );
        top: calc( 2 * var(--offset) );
    }

    91.67% {
        left: calc( 1 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
}

@keyframes square4 {
    0% {
        left: calc( 2 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }

    33.33% {
        left: calc( 2 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }

    41.67% {
        left: calc( 2 * var(--offset) );
        top: calc( 2 * var(--offset) );
    }

    50.00% {
        left: calc( 3 * var(--offset) );
        top: calc( 2 * var(--offset) );
    }

    58.33% {
        left: calc( 3 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }

    100% {
        left: calc( 3 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
}

@keyframes square5 {
    0% {
        left: calc( 3 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }

    50.00% {
        left: calc( 3 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }

    58.33% {
        left: calc( 3 * var(--offset) );
        top: calc( 0 * var(--offset) );
    }

    66.67% {
        left: calc( 2 * var(--offset) );
        top: calc( 0 * var(--offset) );
    }

    75.00% {
        left: calc( 2 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }

    100% {
        left: calc( 2 * var(--offset) );
        top: calc( 1 * var(--offset) );
    }
}

@keyframes squarefadein {
    0% {
        transform: scale(0.75);
        opacity: 0.0;
    }

    100% {
        transform: scale(1.0);
        opacity: 1.0;
    }
}