/* ==============================================================
   CHECKOUT DE UNA PÁGINA (ONE-PAGE CHECKOUT) & URGENCE BADGES
   ============================================================== */

/* --- Gatillos de Urgencia (Social Proof) --- */
.urgencia-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 45, 85, 0.9);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 0 10px rgba(255, 45, 85, 0.5);
    animation: pulse-urgencia 2s infinite;
    font-family: 'Rajdhani', sans-serif;
}

@keyframes pulse-urgencia {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(255, 45, 85, 0.8); }
    100% { transform: scale(1); }
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    opacity: 0.8;
}

.trust-badges i {
    color: #00ffcc;
    font-size: 1.2rem;
}

/* --- Contenedor del Checkout --- */
.checkout-container {
    background: rgba(10, 15, 25, 0.95);
    border: 1px solid #00ffcc;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
    animation: slide-down 0.3s ease-out forwards;
    font-family: 'Rajdhani', sans-serif;
}

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 204, 0.3);
    padding-bottom: 10px;
}

.checkout-header h4 {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.btn-close-checkout {
    background: transparent;
    border: none;
    color: #ff2d55;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.btn-close-checkout:hover {
    color: #fff;
    transform: scale(1.1);
}

/* --- Selector B2B / B2C --- */
.tipo-cliente-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

.tipo-cliente-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tipo-cliente-btn.active {
    background: rgba(0, 255, 204, 0.2);
    color: #00ffcc;
    box-shadow: inset 0 -2px 0 #00ffcc;
}

/* --- Formulario --- */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 4px;
}

.input-group input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 10px;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: #00ffcc;
    box-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
}

/* Campos B2B ocultos por defecto */
.b2b-fields {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding-left: 10px;
    border-left: 2px solid #00ffcc;
    margin-top: 5px;
    margin-bottom: 5px;
}

.b2b-fields.active {
    display: flex;
    animation: fade-in 0.3s ease-in;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Botón de Enviar (WhatsApp) */
.btn-submit-checkout {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-submit-checkout:hover {
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

/* Loader */
.checkout-loader {
    display: none;
    text-align: center;
    color: #00ffcc;
    font-size: 0.9rem;
    padding: 10px;
}
.checkout-loader i {
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.checkout-loader.active {
    display: block;
}
