* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f2f2f2; 
    color: #333; 
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: rgba(255, 0, 0, 0.801);
    font-size: 2.5rem; 
}


.form-container {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; 
    height: 70vh;
}

.form {
    background-color: white;
    padding: 30px;
    border-radius: 10px; /* Rango de esquinas más suave */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Sombra más sutil */
    width: 550px;
    margin: 20px 0;
    position: relative;
    z-index: 1;
    border-radius: 1rem;
}

.back-button {
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

.volver {
    display: inline-block;
    color: #E1381B;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    background-color: transparent;
    border: 2px solid #E1381B;
    border-radius: 5px;
    padding: 8px 12px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.volver:hover {
    background-color: #E1381B;
    color: white;
}


.order-data input,
.btn input {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 9px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}


.order-data input:focus {
    border-color: rgba(255, 0, 0, 0.692);
    outline: none;
}

.btn input {
    background-color: rgba(255, 0, 0, 0.692);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Agrega una animación */
}

.btn input:hover {
    background-color: rgba(255, 0, 0, 0.85);
    transform: scale(1.05); /* Efecto de zoom al pasar el mouse */
}

.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.sk-chase {
    width: 30px; 
    height: 30px; 
    position: relative;
    animation: sk-chase 2.5s infinite linear both;
    z-index: 2; 
}

.sk-chase-dot {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    animation: sk-chase-dot 2.0s infinite ease-in-out both;
}

.sk-chase-dot:before {
    content: '';
    display: block;
    width: 25%;
    height: 25%;
    background-color: black;
    border-radius: 100%;
    animation: sk-chase-dot-before 2.0s infinite ease-in-out both;
}

.sk-chase-dot:nth-child(1) { animation-delay: -1.1s; }
.sk-chase-dot:nth-child(2) { animation-delay: -1.0s; }
.sk-chase-dot:nth-child(3) { animation-delay: -0.9s; }
.sk-chase-dot:nth-child(4) { animation-delay: -0.8s; }
.sk-chase-dot:nth-child(5) { animation-delay: -0.7s; }
.sk-chase-dot:nth-child(6) { animation-delay: -0.6s; }

@keyframes sk-chase {
    100% { transform: rotate(360deg); }
}

@keyframes sk-chase-dot {
    80%, 100% { transform: rotate(360deg); }
}

@keyframes sk-chase-dot-before {
    50% { transform: scale(0.4); }
    100%, 0% { transform: scale(1.0); }
}

.ocultarSpiner {
    visibility: hidden;
}

.resultado {
 
    border-radius: 10px;
    padding: 20px;
    margin-top: 60px; 
    text-align: center;
    z-index: 0; 
}

.orderStatus {
    font-size: 20px; 
    font-weight: bold;
    color: #333;
}

.success {
    color: green;
}

.error {
    color: red;
}

@media (max-width: 768px) {
    .form {
        width: 90%;
    }

    h1 {
        font-size: 2rem; 
    }

   
}

/* Fondo oscuro (overlay) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
}

/* Estilos del modal */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: none;
    max-width: 500px;
    width: 90%;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out forwards;
}

.modal-content {
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Botón de cierre */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.close:hover {
    color: #333;
    transform: scale(1.2);
}

/* Estilo de listas dentro del modal */
.modal-content ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.modal-content ul li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    color: #333;
}

.modal-content ul li:last-child {
    border-bottom: none;
}

.modal-content ul li::before {
    content: "• ";
    color: rgba(255, 0, 0, 0.8);
    font-weight: bold;
}



.success {
    color: green;
}

.error {
    color: red;
}



.fondoEstado{
    background-color: #E1381B;
    color: #fff;
    font-weight: bold;
    padding: 8px;
    border-radius: 1rem;
}


.succesStatus{
    background-color: green;
    color: white;
    padding: 5px;
    font-weight: bold;
    border-radius: 1rem;
}

.pago_img{
    display: block;
    text-align: center;
    color: #E1381B;

}



/* Estilos para placeholder */
input::placeholder {
    opacity: 1; 
}

@media (max-width: 768px) {
    input::placeholder {
        font-size: 12px; 
    }
}
