/* Fondo oscuro cuando el modal está activo */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.auth-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 66%);
    backdrop-filter: blur(6px);
}

.auth-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 530px;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, .5); */
    height: 293px;
    transform: translateY(30px);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 0 15px 12px #32323247;
    border: 5px solid #e8e8e83b;
}

@media (max-width: 768px) {
    .auth-modal-content {
        height: 305px;
    }
}


/* Animación de entrada */
.auth-modal.show {
    display: flex;
    opacity: 1;
}

.auth-modal.show .auth-modal-content {
    transform: translateY(0);
}

/* Animación de salida */
.auth-modal.hide {
    opacity: 0;
}

.auth-modal.hide .auth-modal-content {
    transform: translateY(30px);
}

.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
}

/* Botón de cerrar */
.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    font-size: 20px;
}

/* Botón volver */
.back-button {
    position: absolute;
    left: 15px;
    top: 15px;
    cursor: pointer;
    font-size: 18px;
    background: none;
    border: none;
    font-weight: bold;
}

/* Responsividad */
@media (max-width: 768px) {
    .auth-modal-content {
        width: 95%;
        padding: 15px;
        height: auto;
        padding-bottom: 34px;
    }
}

/* Vista my-account boton*/
#btn-obtener-codigo-my-account {
    background-color: #fff;
    color: #000;
    border: 2px solid #2c2c2c;
    padding: 4px 12px;
    border-radius: 1px;
    margin-bottom: 15px;
    height: 33px;
    font-weight: 600;
    transition: .4s;
}

#btn-obtener-codigo-my-account:hover {
    background-color: #000000;
    color: white;
    transition: .4s ease;
    border-radius: 5px;
    filter: drop-shadow(0 0px 1px #505050);
}

@media (max-width: 760px) {
    #btn-obtener-codigo-my-account {
        margin-bottom: 0px;
        min-width: 70%;
    }
}

/* vista checkout boton */

.checkout-temporal-container {
    margin-top: 15px;
    text-align: center;
    background-color: #f7f7f7;
    margin-top: -32px;
    padding: 0px 21px;
}

#btn-obtener-codigo-checkout {
    background-color: #fff;
    color: #000;
    border: 2px solid #2c2c2c;
    padding: 4px 12px;
    margin-bottom: 15px;
    height: 44px;
    font-weight: 600;
    transition: .4s;
    width: 100%;
}

#btn-obtener-codigo-checkout:hover {
    background-color: #000000;
    color: white;
    transition: .2s;
    /* border-radius: 5px; */
    filter: drop-shadow(0 0px 1px #505050);
}

@media (max-width: 760px) {
    .checkout-temporal-container {
        margin-top: -27px;
        padding: 0px 18px;
    }

    #btn-obtener-codigo-checkout {
        height: 39px;
    }
}

.temp-email-input {
    min-width: 80%;
    height: 41px;
    margin-top: 15px;
    width: 89%;
    outline: none;
    border-radius: 8px;
    height: 45px;
    border: 1.7px solid #aeaeae;
    background: transparent;
    padding-left: 10px;
    font-size: 18px;
}

#btn-enviar-codigo {
    min-width: 89%;
    margin-top: 6px;
    height: 55px;
    background: #f2f2f2;
    border-radius: 11px;
    border: 0;
    outline: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(180deg, #363636 0%, #1b1b1b 50%, #000000 100%);
    box-shadow: 0px 0px 0px 0px #ffffff, 0px 0px 0px 0px #000000;
    transition: all 0.3scubic-bezier(0.15, 0.83, 0.66, 1);
    cursor: pointer;
}

.temp-code-container {
    margin-top: 28px;
    margin-bottom: 0px;
}

.temp-btn-container {
    min-width: 80%;
    margin-top: 19px;
}

.btn-temp-code-validar {
    width: 35%;
    min-width: 43%;
    margin-top: 6px;
    height: 55px;
    background: #f2f2f2;
    border-radius: 11px;
    border: 0;
    outline: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(180deg, #363636 0%, #1b1b1b 50%, #000000 100%);
    box-shadow: 0px 0px 0px 0px #ffffff, 0px 0px 0px 0px #000000;
    transition: all 0.3scubic -bezier(0.15, 0.83, 0.66, 1);
    cursor: pointer;
}

.btn-temp-code-reenviar {
    width: 35%;
    margin-right: 2%;
    min-width: 43%;
    margin-top: 6px;
    height: 55px;
    background: #f2f2f2;
    border-radius: 11px;
    border: 0;
    outline: none;
    /* color: #ffffff; */
    font-size: 18px;
    font-weight: 700;
    /* background: linear-gradient(180deg, #363636 0%, #1b1b1b 50%, #000000 100%); */
    box-shadow: 0px 0px 0px 0px #ffffff, 0px 0px 0px 0px #000000;
    transition: all 0.3scubic -bezier(0.15, 0.83, 0.66, 1);
    cursor: pointer;
}

@media (max-width:768px) {
    .temp-code-verification {
        color: black;
        font-size: 1.7em;
        margin: 24px 41px;
        margin-bottom: -22px;
    }
}

@media (min-width:768px) {
    .temp-code-verification {
        font-size: 1.6em;
        margin-bottom: -10px;
    }
}

.btn-temp-hovers:hover {
    box-shadow: 0px 0px 0px 2px #ffffff, 0px 0px 0px 4px #0000003a !important;
    filter: brightness(1.3);
}

/* Loader steps */

/* Overlay para el loader with animation */
.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255 255 255);
    /* Fondo oscuro semitransparente */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Asegura que quede sobre el modal */
    border-radius: 10px;
}

/*Loader with animation */
.loader {
    width: fit-content;
    font-weight: bold;
    font-family: monospace;
    font-size: 30px;
    background: linear-gradient(90deg, #000 50%, #0000 0) right/200% 100%;
    animation: l21 2s infinite linear;
    margin: auto;
    padding: 18px;
}

/* Animación del texto */
.loader::before {
    content: attr(data-message);
    color: #0000;
    padding: 0 5px;
    background: inherit;
    background-image: linear-gradient(90deg, #fff 50%, #000 0);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Animación */
@keyframes l21 {
    100% {
        background-position: left;
    }
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .loader {
        font-size: 20px;
        padding: 10px;
    }
}

/* Loader without animation */

/* Overlay sin animación */
.loader-overlay-whitout-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255 255 255);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 10px;
    cursor: progress;
    /* Extra: el cursor también aquí */
}

/* Texto sin animación (centrado y fijo) */
.loader-without-animation {
    display: block;
    font-weight: bold;
    font-family: monospace;
    font-size: 30px;
    color: black;
    background-color: transparent;
    padding: 18px;
    transition: opacity 0.3s ease;
    text-align: center;
    position: relative;
}

/* Mostrar el mensaje desde data-message */
.loader-without-animation::before {
    content: attr(data-message);
    color: black;
    /* Que se vea correctamente */
    background: none;
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .loader-without-animation {
        font-size: 20px;
        padding: 10px;
    }
}



/* Notificaciones */

/* Contenedor de notificaciones */
#temporalAuthNotifications {
    position: relative;
    max-width: 89%;
    height: 5px;
    margin: auto;
    padding-top: 18px;
}

/* Estilos base de las notificaciones */
.temporal-auth-alert {
    padding: 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Notificación de éxito */
.temporal-auth-alert.success {
    background-color: #28a745;
    color: white;
}

/* Notificación de error */
.temporal-auth-alert.error {
    background-color: #dc3545;
    color: white;
}

/* Botón para cerrar la notificación */
.temporal-auth-alert .close-btn {
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-left: 10px;
}

.temporal-auth-alert {
    padding: 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    max-width: 89%;
    margin: auto;
}

/* Estado de entrada (fade-in desde arriba) */
.temporal-auth-alert.fade-in {
    opacity: 1;
    transform: translateY(17px);
}

/* Estado de salida (fade-out hacia arriba) */
.temporal-auth-alert.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}