* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #050a0d; color: #e0e0e0; min-height: 100vh; position: relative; }
.highlight { color: #01fe86; }

.checkout-wrapper { padding: 8rem 5% 4rem; display: flex; justify-content: center; }

/* --- CONTENEDOR AMPLIO PARA PC --- */
.checkout-form-container { 
    background: rgba(15, 20, 25, 0.8); width: 100%; max-width: 1100px; padding: 3rem; 
    border-radius: 15px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 40px rgba(0,0,0,0.5); 
}

.checkout-title { text-align: center; margin-bottom: 3rem; font-size: 2.5rem; font-family: 'Eurostyle Extend', sans-serif; }
.section-subtitle { margin-bottom: 1.5rem; font-size: 1.3rem; color: #fff; border-bottom: 1px solid rgba(1, 254, 134, 0.3); padding-bottom: 0.5rem;}

/* --- GRILLA RESPONSIVA: 2 COLUMNAS EN PC, 1 EN MÓVIL --- */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 850px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; margin-bottom: 0.5rem; color: #a0a0a0; font-weight: bold; font-size: 0.9rem;}
.input-group input { 
    width: 100%; padding: 1rem; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 8px; color: #fff; font-size: 1rem; transition: 0.3s; 
}
.input-group input:focus { outline: none; border-color: #01fe86; background: rgba(0,0,0,0.8); }

/* --- SELECTORES Y RESUMEN --- */
select {
    width: 100%; padding: 1rem; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px; color: #fff; font-size: 1rem; cursor: pointer; appearance: none; transition: 0.3s;
}
select:focus { outline: none; border-color: #01fe86; background: rgba(0,0,0,0.8); }
select option { background: #0a0f12; color: #fff; }

.order-summary {
    background: rgba(0, 0, 0, 0.4); padding: 1.5rem; border-radius: 8px;
    margin: 2rem 0; border: 1px solid rgba(255, 255, 255, 0.05);
}
.summary-row {
    display: flex; justify-content: space-between; margin-bottom: 0.8rem;
    color: #ccc; font-size: 1rem;
}
.summary-row.total-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1rem;
    margin-top: 1rem; margin-bottom: 0; font-size: 1.3rem; font-weight: bold; color: #fff;
}

.mp-button {
    background: #009ee3; color: #fff; border: none; width: 100%; padding: 1.2rem;
    font-size: 1.2rem; font-weight: bold; border-radius: 8px; cursor: pointer; transition: 0.2s;
}
.mp-button:hover { background: #007bb5; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 158, 227, 0.4); }

/* --- PANTALLA DE PROCESAMIENTO DE PAGO --- */
.payment-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(5, 10, 13, 0.95); backdrop-filter: blur(8px);
    z-index: 99999; display: flex; justify-content: center; align-items: center; flex-direction: column;
}
.payment-loader-content { text-align: center; animation: fadeIn 0.5s ease-out; }
.payment-loader-content .spinner {
    width: 80px; height: 80px; border: 6px solid rgba(1, 254, 134, 0.1);
    border-top-color: var(--primary-color, #01fe86); border-radius: 50%;
    animation: spin 1s linear infinite; margin: 0 auto 1.5rem auto; box-shadow: 0 0 20px rgba(1, 254, 134, 0.2);
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}